Skip to content

Commit

Permalink
Node.js 22 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Apr 29, 2024
1 parent d860ec3 commit 3106d35
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/JScrewIt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

strategy:
matrix:
node-version: ['0.10', '0.12', '4', '6', '8', '10', '12', '14', '16', '18', '20', '21']
node-version: ['0.10', '0.12', '4', '6', '8', '10', '12', '14', '16', '18', '20', '22']

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/~feature-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

strategy:
matrix:
node-version: ['14', '16', '18', '20', '21']
node-version: ['14', '16', '18', '20', '22']

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/~result-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

strategy:
matrix:
node-version: ['14', '16', '18', '20', '21']
node-version: ['14', '16', '18', '20', '22']

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/~solution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

strategy:
matrix:
node-version: ['14', '16', '18', '20', '21']
node-version: ['14', '16', '18', '20', '22']

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion Features.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ This table lists features available in the most common engines.
<li><a href="api-doc/interfaces/FeatureAll.md#NO_FF_SRC"><code>NO_FF_SRC</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#V8_SRC"><code>V8_SRC</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#NO_IE_SRC"><code>NO_IE_SRC</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#V8_SRC"><code>V8_SRC</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#NO_OLD_SAFARI_ARRAY_ITERATOR"><code>NO_OLD_SAFARI_ARRAY_ITERATOR</code></a> (Node.js 0.12+)
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_ARRAY_ENTRIES_CTOR"><code>OBJECT_ARRAY_ENTRIES_CTOR</code></a> (Node.js 0.12+)
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_ARRAY_ENTRIES_CTOR"><code>OBJECT_ARRAY_ENTRIES_CTOR</code></a> (Node.js 0.12+, not in Node.js 22+)
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_UNDEFINED"><code>OBJECT_UNDEFINED</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#GLOBAL_UNDEFINED"><code>GLOBAL_UNDEFINED</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#PLAIN_INTL"><code>PLAIN_INTL</code></a> (Node.js 0.12+, not in Node.js 15+)
<li><a href="api-doc/interfaces/FeatureAll.md#REGEXP_STRING_ITERATOR"><code>REGEXP_STRING_ITERATOR</code></a> (Node.js 12+)
Expand Down
2 changes: 1 addition & 1 deletion api-doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ ___

### PredefinedFeatureName

Ƭ **PredefinedFeatureName**: [`ElementaryFeatureName`](README.md#elementaryfeaturename) \| ``"ANDRO_4_0"`` \| ``"ANDRO_4_1"`` \| ``"ANDRO_4_4"`` \| ``"AUTO"`` \| ``"BROWSER"`` \| ``"CHROME_122"`` \| ``"COMPACT"`` \| ``"DEFAULT"`` \| ``"FF_90"`` \| ``"IE_10"`` \| ``"IE_11"`` \| ``"IE_11_WIN_10"`` \| ``"IE_9"`` \| ``"NODE_0_10"`` \| ``"NODE_0_12"`` \| ``"NODE_10"`` \| ``"NODE_11"`` \| ``"NODE_12"`` \| ``"NODE_13"`` \| ``"NODE_15"`` \| ``"NODE_16_0"`` \| ``"NODE_16_6"`` \| ``"NODE_4"`` \| ``"NODE_5"`` \| ``"SAFARI_10"`` \| ``"SAFARI_12"`` \| ``"SAFARI_13"`` \| ``"SAFARI_14_0_1"`` \| ``"SAFARI_14_1"`` \| ``"SAFARI_15_4"`` \| ``"SAFARI_17_4"`` \| ``"SAFARI_7_0"`` \| ``"SAFARI_7_1"`` \| ``"SAFARI_9"``
Ƭ **PredefinedFeatureName**: [`ElementaryFeatureName`](README.md#elementaryfeaturename) \| ``"ANDRO_4_0"`` \| ``"ANDRO_4_1"`` \| ``"ANDRO_4_4"`` \| ``"AUTO"`` \| ``"BROWSER"`` \| ``"CHROME_122"`` \| ``"COMPACT"`` \| ``"DEFAULT"`` \| ``"FF_90"`` \| ``"IE_10"`` \| ``"IE_11"`` \| ``"IE_11_WIN_10"`` \| ``"IE_9"`` \| ``"NODE_0_10"`` \| ``"NODE_0_12"`` \| ``"NODE_10"`` \| ``"NODE_11"`` \| ``"NODE_12"`` \| ``"NODE_13"`` \| ``"NODE_15"`` \| ``"NODE_16_0"`` \| ``"NODE_16_6"`` \| ``"NODE_22"`` \| ``"NODE_4"`` \| ``"NODE_5"`` \| ``"SAFARI_10"`` \| ``"SAFARI_12"`` \| ``"SAFARI_13"`` \| ``"SAFARI_14_0_1"`` \| ``"SAFARI_14_1"`` \| ``"SAFARI_15_4"`` \| ``"SAFARI_17_4"`` \| ``"SAFARI_7_0"`` \| ``"SAFARI_7_1"`` \| ``"SAFARI_9"``

Name of a predefined feature.

Expand Down
13 changes: 11 additions & 2 deletions api-doc/interfaces/FeatureAll.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
- [NODE\_15](FeatureAll.md#node_15)
- [NODE\_16\_0](FeatureAll.md#node_16_0)
- [NODE\_16\_6](FeatureAll.md#node_16_6)
- [NODE\_22](FeatureAll.md#node_22)
- [NODE\_4](FeatureAll.md#node_4)
- [NODE\_5](FeatureAll.md#node_5)
- [NO\_FF\_SRC](FeatureAll.md#no_ff_src)
Expand Down Expand Up @@ -804,7 +805,15 @@ ___

**NODE\_16\_6**: [`PredefinedFeature`](PredefinedFeature.md)

Features available in Node.js 16.6 or later.
Features available in Node.js 16.6 to 21.

___

### NODE\_22

**NODE\_22**: [`PredefinedFeature`](PredefinedFeature.md)

Features available in Node.js 22 or later.

___

Expand Down Expand Up @@ -884,7 +893,7 @@ The property that the Array.prototype.entries\(\).constructor is the Object cons

**`Remarks`**

Available in Firefox, Safari 9+, and Node.js 0.12+.
Available in Firefox, Safari 9+, and Node.js 0.12+ before 22.

___

Expand Down
17 changes: 15 additions & 2 deletions api-doc/interfaces/FeatureConstructor.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ An error is thrown if any of the specified features are not mutually compatible.
- [NODE\_15](FeatureConstructor.md#node_15)
- [NODE\_16\_0](FeatureConstructor.md#node_16_0)
- [NODE\_16\_6](FeatureConstructor.md#node_16_6)
- [NODE\_22](FeatureConstructor.md#node_22)
- [NODE\_4](FeatureConstructor.md#node_4)
- [NODE\_5](FeatureConstructor.md#node_5)
- [NO\_FF\_SRC](FeatureConstructor.md#no_ff_src)
Expand Down Expand Up @@ -1191,14 +1192,26 @@ ___

**NODE\_16\_6**: [`PredefinedFeature`](PredefinedFeature.md)

Features available in Node.js 16.6 or later.
Features available in Node.js 16.6 to 21.

#### Inherited from

[FeatureAll](FeatureAll.md).[NODE_16_6](FeatureAll.md#node_16_6)

___

### NODE\_22

**NODE\_22**: [`PredefinedFeature`](PredefinedFeature.md)

Features available in Node.js 22 or later.

#### Inherited from

[FeatureAll](FeatureAll.md).[NODE_22](FeatureAll.md#node_22)

___

### NODE\_4

**NODE\_4**: [`PredefinedFeature`](PredefinedFeature.md)
Expand Down Expand Up @@ -1299,7 +1312,7 @@ The property that the Array.prototype.entries\(\).constructor is the Object cons

**`Remarks`**

Available in Firefox, Safari 9+, and Node.js 0.12+.
Available in Firefox, Safari 9+, and Node.js 0.12+ before 22.

#### Inherited from

Expand Down
8 changes: 7 additions & 1 deletion src/lib/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -1155,9 +1155,15 @@ var featureInfos =
NODE_16_6:
{
inherits: 'NODE_16_0',
versions: [['16.6']],
versions: [['16.6',, '21']],
includes: { AT: true },
},
NODE_22:
{
inherits: 'NODE_16_6',
versions: [['22']],
includes: { OBJECT_ARRAY_ENTRIES_CTOR: false },
},
SAFARI_7_0:
{
families: ['Safari'],
Expand Down
2 changes: 1 addition & 1 deletion src/package.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

strategy:
matrix:
node-version: ['14', '16', '18', '20', '21']
node-version: ['14', '16', '18', '20', '22']

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 3106d35

Please sign in to comment.