Skip to content

Commit

Permalink
New compatibilities FF_131 and SAFARI_18
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Oct 4, 2024
1 parent 05243b9 commit 8cbcc9e
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 26 deletions.
5 changes: 3 additions & 2 deletions Features.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ This table lists features available in the most common engines.
<li><a href="api-doc/interfaces/FeatureAll.md#HISTORY"><code>HISTORY</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#INCR_CHAR"><code>INCR_CHAR</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#INTL"><code>INTL</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#ITERATOR_HELPER"><code>ITERATOR_HELPER</code></a> (Firefox 131+)
<li><a href="api-doc/interfaces/FeatureAll.md#JAPANESE_INFINITY"><code>JAPANESE_INFINITY</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_INFINITY"><code>LOCALE_INFINITY</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS"><code>LOCALE_NUMERALS</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS_EXT"><code>LOCALE_NUMERALS_EXT</code></a> and <a href="api-doc/interfaces/FeatureAll.md#SHORT_LOCALES"><code>SHORT_LOCALES</code></a>)
Expand All @@ -90,7 +91,7 @@ This table lists features available in the most common engines.
<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#FF_SRC"><code>FF_SRC</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#NO_OLD_SAFARI_ARRAY_ITERATOR"><code>NO_OLD_SAFARI_ARRAY_ITERATOR</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#NO_V8_SRC"><code>NO_V8_SRC</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#FF_SRC"><code>FF_SRC</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_ARRAY_ENTRIES_CTOR"><code>OBJECT_ARRAY_ENTRIES_CTOR</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_ARRAY_ENTRIES_CTOR"><code>OBJECT_ARRAY_ENTRIES_CTOR</code></a> (not in Firefox 131+)
<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#OBJECT_W_SELF"><code>OBJECT_W_SELF</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#WINDOW"><code>WINDOW</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#REGEXP_STRING_ITERATOR"><code>REGEXP_STRING_ITERATOR</code></a>
Expand Down Expand Up @@ -188,7 +189,7 @@ This table lists features available in the most common engines.
<li><a href="api-doc/interfaces/FeatureAll.md#PLAIN_INTL"><code>PLAIN_INTL</code></a> (Safari 10.0+, not in Safari 14.0.1+)
<li><a href="api-doc/interfaces/FeatureAll.md#REGEXP_STRING_ITERATOR"><code>REGEXP_STRING_ITERATOR</code></a> (Safari 13+)
<li><a href="api-doc/interfaces/FeatureAll.md#SELF_OBJ"><code>SELF_OBJ</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#ANY_WINDOW"><code>ANY_WINDOW</code></a>, <a href="api-doc/interfaces/FeatureAll.md#OBJECT_W_SELF"><code>OBJECT_W_SELF</code></a>, and <a href="api-doc/interfaces/FeatureAll.md#WINDOW"><code>WINDOW</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#SHORT_LOCALES"><code>SHORT_LOCALES</code></a> (Safari 10.0+)
<li><a href="api-doc/interfaces/FeatureAll.md#SHORT_LOCALES"><code>SHORT_LOCALES</code></a> (Safari 10.0+, not in Safari 18+)
<li><a href="api-doc/interfaces/FeatureAll.md#STATUS"><code>STATUS</code></a>
<li><a href="api-doc/interfaces/FeatureAll.md#UNDEFINED"><code>UNDEFINED</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#GLOBAL_UNDEFINED"><code>GLOBAL_UNDEFINED</code></a> and <a href="api-doc/interfaces/FeatureAll.md#OBJECT_UNDEFINED"><code>OBJECT_UNDEFINED</code></a>)
<li><a href="api-doc/interfaces/FeatureAll.md#WINDOW"><code>WINDOW</code></a>
Expand Down
40 changes: 32 additions & 8 deletions api-doc/interfaces/FeatureAll.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,19 +330,35 @@ Available in Chrome, Edge, Firefox, Internet Explorer, Safari, Opera, and Node.j
Features available in the current stable version of Firefox.

An alias for `FF_90`.
An alias for `FF_131`.

***

### FF\_131

> **FF\_131**: [`PredefinedFeature`](PredefinedFeature.md)
Features available in Firefox 131 or later.

#### Remarks

This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `FF` instead of `FF_131` for long term support.

#### See

[Engine Support Policy](https://github.com/fasttime/JScrewIt#engine-support-policy)

***

### FF\_90

> **FF\_90**: [`PredefinedFeature`](PredefinedFeature.md)
Features available in Firefox 90 or later.
Features available in Firefox 90 to 130.

#### Remarks

This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `FF`, `FF_ESR`, or `FF_PREV` instead of `FF_90` for long term support.
This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `FF_ESR` or `FF_PREV` instead of `FF_90` for long term support.

#### See

Expand Down Expand Up @@ -584,7 +600,7 @@ Availability of iterator helpers.

#### Remarks

Available in Chrome, Edge, Opera, and Node.js 22+.
Available in Chrome, Edge, Firefox 131+, Opera, and Node.js 22+.

***

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

#### Remarks

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

***

Expand Down Expand Up @@ -932,7 +948,7 @@ Available in Chrome, Edge, Firefox, Safari 13+, Opera, and Node.js 12+.
Features available in the current stable version of Safari.

An alias for `SAFARI_17_4`.
An alias for `SAFARI_18`.

***

Expand Down Expand Up @@ -996,7 +1012,15 @@ Features available in Safari 15.4 to 17.3.

> **SAFARI\_17\_4**: [`PredefinedFeature`](PredefinedFeature.md)
Features available in Safari 17.4 or later.
Features available in Safari 17.4 to 17.6.

***

### SAFARI\_18

> **SAFARI\_18**: [`PredefinedFeature`](PredefinedFeature.md)
Features available in Safari 18 or later.

***

Expand Down Expand Up @@ -1052,7 +1076,7 @@ Support for the two-letter locale name "ar" to format decimal numbers as Arabic

#### Remarks

Available in Firefox, Internet Explorer 11, Safari 10.0+, Android Browser 4.4, and Node.js 13+.
Available in Firefox, Internet Explorer 11, Safari 10.0+ before 18, Android Browser 4.4, and Node.js 13+.

***

Expand Down
48 changes: 40 additions & 8 deletions api-doc/interfaces/FeatureConstructor.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,23 +556,43 @@ Available in Chrome, Edge, Firefox, Internet Explorer, Safari, Opera, and Node.j
Features available in the current stable version of Firefox.

An alias for `FF_90`.
An alias for `FF_131`.

#### Inherited from

[`FeatureAll`](FeatureAll.md).[`FF`](FeatureAll.md#ff)

***

### FF\_131

> **FF\_131**: [`PredefinedFeature`](PredefinedFeature.md)
Features available in Firefox 131 or later.

#### Remarks

This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `FF` instead of `FF_131` for long term support.

#### See

[Engine Support Policy](https://github.com/fasttime/JScrewIt#engine-support-policy)

#### Inherited from

[`FeatureAll`](FeatureAll.md).[`FF_131`](FeatureAll.md#ff_131)

***

### FF\_90

> **FF\_90**: [`PredefinedFeature`](PredefinedFeature.md)
Features available in Firefox 90 or later.
Features available in Firefox 90 to 130.

#### Remarks

This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `FF`, `FF_ESR`, or `FF_PREV` instead of `FF_90` for long term support.
This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `FF_ESR` or `FF_PREV` instead of `FF_90` for long term support.

#### See

Expand Down Expand Up @@ -898,7 +918,7 @@ Availability of iterator helpers.

#### Remarks

Available in Chrome, Edge, Opera, and Node.js 22+.
Available in Chrome, Edge, Firefox 131+, Opera, and Node.js 22+.

#### Inherited from

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

#### Remarks

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

#### Inherited from

Expand Down Expand Up @@ -1378,7 +1398,7 @@ Available in Chrome, Edge, Firefox, Safari 13+, Opera, and Node.js 12+.
Features available in the current stable version of Safari.

An alias for `SAFARI_17_4`.
An alias for `SAFARI_18`.

#### Inherited from

Expand Down Expand Up @@ -1474,14 +1494,26 @@ Features available in Safari 15.4 to 17.3.

> **SAFARI\_17\_4**: [`PredefinedFeature`](PredefinedFeature.md)
Features available in Safari 17.4 or later.
Features available in Safari 17.4 to 17.6.

#### Inherited from

[`FeatureAll`](FeatureAll.md).[`SAFARI_17_4`](FeatureAll.md#safari_17_4)

***

### SAFARI\_18

> **SAFARI\_18**: [`PredefinedFeature`](PredefinedFeature.md)
Features available in Safari 18 or later.

#### Inherited from

[`FeatureAll`](FeatureAll.md).[`SAFARI_18`](FeatureAll.md#safari_18)

***

### SAFARI\_7\_0

> **SAFARI\_7\_0**: [`PredefinedFeature`](PredefinedFeature.md)
Expand Down Expand Up @@ -1554,7 +1586,7 @@ Support for the two-letter locale name "ar" to format decimal numbers as Arabic

#### Remarks

Available in Firefox, Internet Explorer 11, Safari 10.0+, Android Browser 4.4, and Node.js 13+.
Available in Firefox, Internet Explorer 11, Safari 10.0+ before 18, Android Browser 4.4, and Node.js 13+.

#### Inherited from

Expand Down
2 changes: 1 addition & 1 deletion api-doc/type-aliases/PredefinedFeatureName.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

# Type Alias: PredefinedFeatureName

> **PredefinedFeatureName**: [`ElementaryFeatureName`](ElementaryFeatureName.md) \| `"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"` \| `"NODE_7_6"` \| `"SAFARI_10_0"` \| `"SAFARI_10_1"` \| `"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`](ElementaryFeatureName.md) \| `"ANDRO_4_0"` \| `"ANDRO_4_1"` \| `"ANDRO_4_4"` \| `"AUTO"` \| `"BROWSER"` \| `"CHROME_122"` \| `"COMPACT"` \| `"DEFAULT"` \| `"FF_131"` \| `"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"` \| `"NODE_7_6"` \| `"SAFARI_10_0"` \| `"SAFARI_10_1"` \| `"SAFARI_12"` \| `"SAFARI_13"` \| `"SAFARI_14_0_1"` \| `"SAFARI_14_1"` \| `"SAFARI_15_4"` \| `"SAFARI_17_4"` \| `"SAFARI_18"` \| `"SAFARI_7_0"` \| `"SAFARI_7_1"` \| `"SAFARI_9"`
Name of a predefined feature.
26 changes: 19 additions & 7 deletions src/lib/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -1020,12 +1020,12 @@ var featureInfos =
FF:
{
description: describeEngine('the current stable version of Firefox'),
aliasFor: 'FF_90',
aliasFor: 'FF_131',
},
FF_90:
{
families: ['Firefox'],
versions: [['90']],
versions: [['90',, '130']],
includes:
[
'ANY_DOCUMENT',
Expand Down Expand Up @@ -1069,6 +1069,12 @@ var featureInfos =
'web-worker-restriction': null,
},
},
FF_131:
{
inherits: 'FF_90',
versions: [['131']],
includes: { ITERATOR_HELPER: true, OBJECT_ARRAY_ENTRIES_CTOR: false },
},
IE_9:
{
families: ['Internet Explorer'],
Expand Down Expand Up @@ -1330,16 +1336,22 @@ var featureInfos =
versions: [['15.4',, '17.3']],
includes: { AT: true },
},
SAFARI_17_4:
{
inherits: 'SAFARI_15_4',
versions: [['17.4',, '17.6']],
includes: { FUNCTION_19_LF: true, FUNCTION_22_LF: false },
},
SAFARI:
{
description: describeEngine('the current stable version of Safari'),
aliasFor: 'SAFARI_17_4',
aliasFor: 'SAFARI_18',
},
SAFARI_17_4:
SAFARI_18:
{
inherits: 'SAFARI_15_4',
versions: [['17.4']],
includes: { FUNCTION_19_LF: true, FUNCTION_22_LF: false },
inherits: 'SAFARI_17_4',
versions: [['18']],
includes: { SHORT_LOCALES: false },
},
};
(function ()
Expand Down

0 comments on commit 8cbcc9e

Please sign in to comment.