Skip to content

Commit 795d740

Browse files
authored
Release v2.1.3 (#51)
- mv Changes.md CHANGELOG.md - dep(eslint): upgrade to v9 - doc(CONTRIBUTORS): added - doc(Changes): fix markdown formatting (#50) - style(prettier)
1 parent 5c617f8 commit 795d740

File tree

12 files changed

+714
-311
lines changed

12 files changed

+714
-311
lines changed

.eslintrc.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: CI
22

3-
on: [ push ]
3+
on: [push, pull_request]
44

55
env:
66
CI: true
77

88
jobs:
9-
109
lint:
1110
uses: haraka/.github/.github/workflows/lint.yml@master
1211

@@ -15,9 +14,9 @@ jobs:
1514
secrets: inherit
1615

1716
test:
18-
needs: [ lint ]
17+
needs: [lint]
1918
uses: haraka/.github/.github/workflows/ubuntu.yml@master
2019

2120
windows:
22-
needs: [ lint ]
21+
needs: [lint]
2322
uses: haraka/.github/.github/workflows/windows.yml@master

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: CodeQL
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
77
# The branches below must be a subset of the branches above
8-
branches: [ master ]
8+
branches: [master]
99
schedule:
1010
- cron: '18 7 * * 4'
1111

Changes.md renamed to CHANGELOG.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,89 @@
1+
# Changelog
2+
3+
The format is based on [Keep a Changelog](https://keepachangelog.com/).
14

25
### Unreleased
36

7+
### [2.1.3] - 2025-01-31
8+
9+
- dep(eslint): upgrade to v9
10+
- doc: mv Changes.md CHANGELOG.md
11+
- doc(CONTRIBUTORS): added
12+
- doc(Changes): fix markdown formatting (#50)
13+
- style: prettier
414

515
### [2.1.2] - 2024-02-23
616

717
- load npm version of punycode (specify / after require)
818
- dep(mocha): remove dev dep (installed by npx)
919
- dep(punycode): bump 2.3.0 to 2.3.1
1020

11-
1221
### 2.1.1 - 2023-08-22
1322

1423
- feat: bundle grammar.js, build with prepack, fixes #46
1524
- ci: updated to latest
1625
- added .release
1726
- README: update badge URLs
1827

19-
2028
### 2.0.1 - 2021-01-21
2129

2230
- grammer.ne: add polyfill for Array.flat (#43)
2331
- restore compatibility with Node < 12
2432
- restore node 10 testing
2533

26-
2734
### 2.0.0 - 2021-01-05
2835

2936
- major version bump, nearley output requires node.js > 11
3037
- package.json: declare dependency on node >= 12
3138

32-
3339
### 1.2.3 - 2021-01-05
3440

3541
- revert nearley version in 1.x line, incompatible with node < 11
3642

37-
3843
### 1.2.2 - 2021-01-05
3944

4045
- package.json: remove spurious < character #37
4146
- README: update for es6 syntax #36
4247

43-
4448
### 1.2.1 - 2021-01-01
4549

4650
- The '+' character was mistakenly missing from atext/atom definition #31
4751
- package.json: tell npx the nearlyc package name #34
4852

49-
5053
### 1.2.0 - 2020-12-25
5154

5255
- Replace regular expression based parser with parser based on <https://nearley.js.org/>
5356
- Double quote characters are not stripped from the local-part of the address if present.
5457
- No added escaping is attempted inside quoted-strings
5558

56-
5759
### 1.1.4 - 2020-12-14
5860

5961
- packaging updates
6062
- replace Travis CI & AppVeyor for GH Actions
6163

62-
6364
### 1.1.3 - 2018-05-11
6465

6566
- change unicode regexps to not escape latin chars #15
6667

67-
6868
### 1.1.2 - 2017-06-25
6969

7070
- remove dev dependency versions
7171

72-
7372
### 1.1.1
7473

7574
- Fix a bug when using the constructor to generate an address
7675

77-
7876
### 1.1.0
7977

8078
- support IDN email addresses
8179

82-
8380
### 1.0.0 - 2016-12-08
8481

8582
- replaced null host or user values with empty strings
8683

8784
[2.1.0]: https://github.com/haraka/node-address-rfc2821/releases/tag/2.1.0
8885
[2.1.1]: https://github.com/haraka/node-address-rfc2821/releases/tag/2.1.1
8986
[2.1.2]: https://github.com/haraka/node-address-rfc2821/releases/tag/2.1.2
87+
[2.1.3]: https://github.com/haraka/node-address-rfc2821/releases/tag/2.1.3
88+
[1.1.4]: https://github.com/haraka/node-address-rfc2821/releases/tag/1.1.4
89+
[2.0.0]: https://github.com/haraka/node-address-rfc2821/releases/tag/2.0.0

CONTRIBUTORS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Contributors
2+
3+
This handcrafted artisinal software is brought to you by:
4+
5+
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/node-address-rfc2821/commits?author=msimerson">72</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/662371?v=4"><br><a href="https://github.com/baudehlo">baudehlo</a> (<a href="https://github.com/haraka/node-address-rfc2821/commits?author=baudehlo">6</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/934254?v=4"><br><a href="https://github.com/analogic">analogic</a> (<a href="https://github.com/haraka/node-address-rfc2821/commits?author=analogic">4</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/3957811?v=4"><br><a href="https://github.com/gene-hightower">gene-hightower</a> (<a href="https://github.com/haraka/node-address-rfc2821/commits?author=gene-hightower">2</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/66543853?v=4"><br><a href="https://github.com/sent">sent</a> (<a href="https://github.com/haraka/node-address-rfc2821/commits?author=sent">1</a>) |
6+
| :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
7+
8+
<sub>this file is generated by [.release](https://github.com/msimerson/.release).
9+
Contribute to this project to get your GitHub profile included here.</sub>

README.md

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,34 @@
11
[![Build Status][ci-img]][ci-url]
22
[![Coverage Status][cov-img]][cov-url]
33

4-
54
# address-rfc2821
65

76
Parser for RFC-821/RFC-2821/RFC-5321 (envelope) format email addresses (Mailbox and Path).
87

98
This module parses email addresses from the SMTP envelope. These are the portions immediately following the SMTP verbs `MAIL FROM:` and `RCPT TO:`. RFC-5321 email addesses look like this:
109

11-
````
10+
```
1211
<> // null
1312
<Postmaster>
1413
<from@example.com>
1514
<to@example.com>
1615
<dot.atom.string@example.com>
1716
<"quoted string"@example.com>
1817
angle-brackets-optional@example.com
19-
````
18+
```
2019

2120
To parse email addresses contained in the message headers (To: From: BCC, CC), look instead at an RFC 2822/5322 parser such as [address-rfc2822](https://www.npmjs.com/package/address-rfc2822) or [email-addresses](https://www.npmjs.com/package/email-addresses).
2221

23-
24-
Installation
25-
------------
22+
## Installation
2623

2724
npm install address-rfc2821
2825

29-
Usage
30-
-----
26+
## Usage
3127

3228
const Address = require('address-rfc2821').Address;
3329

3430
const parsed = new Address('<user@example.com>');
3531

36-
3732
# Address Object
3833

3934
The Address object is an interface to reading email addresses passed in at
@@ -44,50 +39,48 @@ email addresses.
4439

4540
## API
4641

47-
* new Address (user, host)
42+
- new Address (user, host)
4843

4944
Create a new address object for user@host
5045

51-
* new Address (email)
46+
- new Address (email)
5247

5348
Creates a new address object by parsing the email address. Will throw an
5449
exception if the address cannot be parsed.
5550

56-
* address.user
51+
- address.user
5752

5853
Access the local part of the email address
5954

60-
* address.host
55+
- address.host
6156

6257
Access the domain part of the email address, decoded if necessary to punycode
6358

64-
* address.original_host
59+
- address.original_host
6560

6661
Access the domain part of the email address, unencoded and case preserved
6762

68-
* address.format(use_punycode=false)
63+
- address.format(use_punycode=false)
6964

7065
Provides the email address in the appropriate `<user@host>` format. And
7166
deals correctly with the null sender and local names.
7267

7368
If use_punycode = true, uses address.host instead of address.original_host.
7469

75-
* address.toString()
70+
- address.toString()
7671

7772
Same as format().
7873

79-
* address.address(newval=null, use_punycode=false)
74+
- address.address(newval=null, use_punycode=false)
8075

8176
Provides the email address in 'user@host' format.
8277

8378
If use_punycode = true, uses address.host instead of address.original_host.
8479

85-
License
86-
-------
80+
## License
8781

8882
This module is MIT licensed.
8983

90-
9184
[ci-img]: https://github.com/haraka/node-address-rfc2821/actions/workflows/ci.yml/badge.svg
9285
[ci-url]: https://github.com/haraka/node-address-rfc2821/actions/workflows/ci.yml
9386
[cov-img]: https://codecov.io/github/haraka/node-address-rfc2821/coverage.svg?branch=master

eslint.config.mjs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import globals from 'globals'
2+
import path from 'node:path'
3+
import { fileURLToPath } from 'node:url'
4+
import js from '@eslint/js'
5+
import { FlatCompat } from '@eslint/eslintrc'
6+
7+
const __filename = fileURLToPath(import.meta.url)
8+
const __dirname = path.dirname(__filename)
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all,
13+
})
14+
15+
export default [
16+
...compat.extends('@haraka'),
17+
{
18+
languageOptions: {
19+
globals: {
20+
...globals.node,
21+
...globals.mocha,
22+
},
23+
},
24+
25+
rules: {
26+
indent: [
27+
2,
28+
4,
29+
{
30+
SwitchCase: 1,
31+
},
32+
],
33+
},
34+
},
35+
]

0 commit comments

Comments
 (0)