jscrewit 2.39.0 → 2.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Features.md +13 -6
- package/api-doc/README.md +2 -5
- package/api-doc/interfaces/CustomFeature.md +15 -9
- package/api-doc/interfaces/ElementaryFeature.md +14 -8
- package/api-doc/interfaces/EncodeOptions.md +2 -2
- package/api-doc/interfaces/Feature.md +14 -8
- package/api-doc/interfaces/FeatureAll.md +60 -16
- package/api-doc/interfaces/FeatureConstructor.md +103 -31
- package/api-doc/interfaces/PredefinedFeature.md +14 -8
- package/api-doc/interfaces/default.md +1 -1
- package/api-doc/interfaces/encode.md +8 -4
- package/api-doc/type-aliases/ElementaryFeatureName.md +2 -2
- package/api-doc/type-aliases/FeatureElement.md +2 -2
- package/api-doc/type-aliases/FeatureElementOrCompatibleArray.md +2 -2
- package/api-doc/type-aliases/PredefinedFeatureName.md +2 -2
- package/api-doc/type-aliases/RunAs.md +3 -3
- package/api-doc/variables/Feature.md +1 -1
- package/api-doc/variables/default.md +1 -1
- package/api-doc/variables/encode.md +7 -0
- package/lib/feature-all.d.ts +47 -15
- package/lib/jscrewit.d.ts +3 -3
- package/lib/jscrewit.js +122 -69
- package/lib/jscrewit.min.js +2 -2
- package/package.json +1 -1
- package/ui/ui.js +1 -1
- package/api-doc/functions/encode.md +0 -35
package/Features.md
CHANGED
|
@@ -35,6 +35,7 @@ This table lists features available in the most common engines.
|
|
|
35
35
|
<li><a href="api-doc/interfaces/FeatureAll.md#JAPANESE_INFINITY"><code>JAPANESE_INFINITY</code></a>
|
|
36
36
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_INFINITY"><code>LOCALE_INFINITY</code></a>
|
|
37
37
|
<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>)
|
|
38
|
+
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS_BN"><code>LOCALE_NUMERALS_BN</code></a>
|
|
38
39
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS_EXT"><code>LOCALE_NUMERALS_EXT</code></a>
|
|
39
40
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCATION"><code>LOCATION</code></a>
|
|
40
41
|
<li><a href="api-doc/interfaces/FeatureAll.md#MOZILLA"><code>MOZILLA</code></a>
|
|
@@ -84,6 +85,7 @@ This table lists features available in the most common engines.
|
|
|
84
85
|
<li><a href="api-doc/interfaces/FeatureAll.md#JAPANESE_INFINITY"><code>JAPANESE_INFINITY</code></a>
|
|
85
86
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_INFINITY"><code>LOCALE_INFINITY</code></a>
|
|
86
87
|
<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>)
|
|
88
|
+
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS_BN"><code>LOCALE_NUMERALS_BN</code></a>
|
|
87
89
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS_EXT"><code>LOCALE_NUMERALS_EXT</code></a>
|
|
88
90
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCATION"><code>LOCATION</code></a>
|
|
89
91
|
<li><a href="api-doc/interfaces/FeatureAll.md#MOZILLA"><code>MOZILLA</code></a>
|
|
@@ -96,7 +98,7 @@ This table lists features available in the most common engines.
|
|
|
96
98
|
<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>)
|
|
97
99
|
<li><a href="api-doc/interfaces/FeatureAll.md#REGEXP_STRING_ITERATOR"><code>REGEXP_STRING_ITERATOR</code></a>
|
|
98
100
|
<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>)
|
|
99
|
-
<li><a href="api-doc/interfaces/FeatureAll.md#SHORT_LOCALES"><code>SHORT_LOCALES</code></a>
|
|
101
|
+
<li><a href="api-doc/interfaces/FeatureAll.md#SHORT_LOCALES"><code>SHORT_LOCALES</code></a> (not in Firefox 134+)
|
|
100
102
|
<li><a href="api-doc/interfaces/FeatureAll.md#STATUS"><code>STATUS</code></a>
|
|
101
103
|
<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>)
|
|
102
104
|
<li><a href="api-doc/interfaces/FeatureAll.md#WINDOW"><code>WINDOW</code></a>
|
|
@@ -125,6 +127,7 @@ This table lists features available in the most common engines.
|
|
|
125
127
|
<li><a href="api-doc/interfaces/FeatureAll.md#JAPANESE_INFINITY"><code>JAPANESE_INFINITY</code></a> (Internet Explorer 11)
|
|
126
128
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_INFINITY"><code>LOCALE_INFINITY</code></a> (Internet Explorer 11 on Windows 10)
|
|
127
129
|
<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>; Internet Explorer 11)
|
|
130
|
+
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS_BN"><code>LOCALE_NUMERALS_BN</code></a> (Internet Explorer 11 on Windows 10)
|
|
128
131
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS_EXT"><code>LOCALE_NUMERALS_EXT</code></a> (Internet Explorer 11 on Windows 10)
|
|
129
132
|
<li><a href="api-doc/interfaces/FeatureAll.md#MOZILLA"><code>MOZILLA</code></a>
|
|
130
133
|
<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#IE_SRC"><code>IE_SRC</code></a>)
|
|
@@ -170,9 +173,11 @@ This table lists features available in the most common engines.
|
|
|
170
173
|
<li><a href="api-doc/interfaces/FeatureAll.md#HISTORY"><code>HISTORY</code></a>
|
|
171
174
|
<li><a href="api-doc/interfaces/FeatureAll.md#INCR_CHAR"><code>INCR_CHAR</code></a>
|
|
172
175
|
<li><a href="api-doc/interfaces/FeatureAll.md#INTL"><code>INTL</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#PLAIN_INTL"><code>PLAIN_INTL</code></a>; Safari 10.0+)
|
|
176
|
+
<li><a href="api-doc/interfaces/FeatureAll.md#ITERATOR_HELPER"><code>ITERATOR_HELPER</code></a> (Safari 18.4+)
|
|
173
177
|
<li><a href="api-doc/interfaces/FeatureAll.md#JAPANESE_INFINITY"><code>JAPANESE_INFINITY</code></a> (Safari 10.0+)
|
|
174
178
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_INFINITY"><code>LOCALE_INFINITY</code></a> (Safari 10.0+)
|
|
175
179
|
<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>; Safari 10.0+)
|
|
180
|
+
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS_BN"><code>LOCALE_NUMERALS_BN</code></a> (Safari 10.0+, not in Safari 18.4+)
|
|
176
181
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS_EXT"><code>LOCALE_NUMERALS_EXT</code></a> (Safari 10.0+)
|
|
177
182
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCATION"><code>LOCATION</code></a>
|
|
178
183
|
<li><a href="api-doc/interfaces/FeatureAll.md#MOZILLA"><code>MOZILLA</code></a>
|
|
@@ -181,7 +186,7 @@ This table lists features available in the most common engines.
|
|
|
181
186
|
<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>)
|
|
182
187
|
<li><a href="api-doc/interfaces/FeatureAll.md#NO_OLD_SAFARI_ARRAY_ITERATOR"><code>NO_OLD_SAFARI_ARRAY_ITERATOR</code></a> (Safari 9+)
|
|
183
188
|
<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>)
|
|
184
|
-
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_ARRAY_ENTRIES_CTOR"><code>OBJECT_ARRAY_ENTRIES_CTOR</code></a> (Safari 9+)
|
|
189
|
+
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_ARRAY_ENTRIES_CTOR"><code>OBJECT_ARRAY_ENTRIES_CTOR</code></a> (Safari 9+, not in Safari 18.4+)
|
|
185
190
|
<li><a href="api-doc/interfaces/FeatureAll.md#OBJECT_L_LOCATION_CTOR"><code>OBJECT_L_LOCATION_CTOR</code></a> (not in Safari 10.0+)
|
|
186
191
|
<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>)
|
|
187
192
|
<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>)
|
|
@@ -189,7 +194,7 @@ This table lists features available in the most common engines.
|
|
|
189
194
|
<li><a href="api-doc/interfaces/FeatureAll.md#PLAIN_INTL"><code>PLAIN_INTL</code></a> (Safari 10.0+, not in Safari 14.0.1+)
|
|
190
195
|
<li><a href="api-doc/interfaces/FeatureAll.md#REGEXP_STRING_ITERATOR"><code>REGEXP_STRING_ITERATOR</code></a> (Safari 13+)
|
|
191
196
|
<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>)
|
|
192
|
-
<li><a href="api-doc/interfaces/FeatureAll.md#SHORT_LOCALES"><code>SHORT_LOCALES</code></a> (Safari 10.0+, not in Safari 18+)
|
|
197
|
+
<li><a href="api-doc/interfaces/FeatureAll.md#SHORT_LOCALES"><code>SHORT_LOCALES</code></a> (Safari 10.0+, not in Safari 18.0+)
|
|
193
198
|
<li><a href="api-doc/interfaces/FeatureAll.md#STATUS"><code>STATUS</code></a>
|
|
194
199
|
<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>)
|
|
195
200
|
<li><a href="api-doc/interfaces/FeatureAll.md#WINDOW"><code>WINDOW</code></a>
|
|
@@ -219,6 +224,7 @@ This table lists features available in the most common engines.
|
|
|
219
224
|
<li><a href="api-doc/interfaces/FeatureAll.md#JAPANESE_INFINITY"><code>JAPANESE_INFINITY</code></a> (Android Browser 4.4)
|
|
220
225
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_INFINITY"><code>LOCALE_INFINITY</code></a> (Android Browser 4.4)
|
|
221
226
|
<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>; Android Browser 4.4)
|
|
227
|
+
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS_BN"><code>LOCALE_NUMERALS_BN</code></a> (Android Browser 4.4)
|
|
222
228
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS_EXT"><code>LOCALE_NUMERALS_EXT</code></a> (Android Browser 4.4)
|
|
223
229
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCATION"><code>LOCATION</code></a>
|
|
224
230
|
<li><a href="api-doc/interfaces/FeatureAll.md#MOZILLA"><code>MOZILLA</code></a>
|
|
@@ -261,20 +267,21 @@ This table lists features available in the most common engines.
|
|
|
261
267
|
<li><a href="api-doc/interfaces/FeatureAll.md#GMT"><code>GMT</code></a>
|
|
262
268
|
<li><a href="api-doc/interfaces/FeatureAll.md#INCR_CHAR"><code>INCR_CHAR</code></a>
|
|
263
269
|
<li><a href="api-doc/interfaces/FeatureAll.md#INTL"><code>INTL</code></a> (implied by <a href="api-doc/interfaces/FeatureAll.md#PLAIN_INTL"><code>PLAIN_INTL</code></a>; Node.js 0.12+)
|
|
264
|
-
<li><a href="api-doc/interfaces/FeatureAll.md#ITERATOR_HELPER"><code>ITERATOR_HELPER</code></a> (Node.js 22+)
|
|
270
|
+
<li><a href="api-doc/interfaces/FeatureAll.md#ITERATOR_HELPER"><code>ITERATOR_HELPER</code></a> (Node.js 22.0+)
|
|
265
271
|
<li><a href="api-doc/interfaces/FeatureAll.md#JAPANESE_INFINITY"><code>JAPANESE_INFINITY</code></a> (Node.js 0.12+)
|
|
266
272
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_INFINITY"><code>LOCALE_INFINITY</code></a> (Node.js 0.12+)
|
|
267
273
|
<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>; Node.js 13+)
|
|
274
|
+
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS_BN"><code>LOCALE_NUMERALS_BN</code></a> (Node.js 13+)
|
|
268
275
|
<li><a href="api-doc/interfaces/FeatureAll.md#LOCALE_NUMERALS_EXT"><code>LOCALE_NUMERALS_EXT</code></a> (Node.js 13+)
|
|
269
276
|
<li><a href="api-doc/interfaces/FeatureAll.md#NAME"><code>NAME</code></a>
|
|
270
277
|
<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>)
|
|
271
278
|
<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>)
|
|
272
279
|
<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+)
|
|
273
|
-
<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+)
|
|
280
|
+
<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.0+)
|
|
274
281
|
<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>)
|
|
275
282
|
<li><a href="api-doc/interfaces/FeatureAll.md#PLAIN_INTL"><code>PLAIN_INTL</code></a> (Node.js 0.12+, not in Node.js 15+)
|
|
276
283
|
<li><a href="api-doc/interfaces/FeatureAll.md#REGEXP_STRING_ITERATOR"><code>REGEXP_STRING_ITERATOR</code></a> (Node.js 12+)
|
|
277
|
-
<li><a href="api-doc/interfaces/FeatureAll.md#SHORT_LOCALES"><code>SHORT_LOCALES</code></a> (Node.js 13+)
|
|
284
|
+
<li><a href="api-doc/interfaces/FeatureAll.md#SHORT_LOCALES"><code>SHORT_LOCALES</code></a> (Node.js 13+, not in Node.js 22.12–22.14 and 23.3+)
|
|
278
285
|
<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>)
|
|
279
286
|
<li><a href="api-doc/interfaces/FeatureAll.md#V8_SRC"><code>V8_SRC</code></a>
|
|
280
287
|
</ul>
|
package/api-doc/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**JScrewIt**
|
|
1
|
+
**JScrewIt**
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -27,8 +27,5 @@
|
|
|
27
27
|
## Variables
|
|
28
28
|
|
|
29
29
|
- [default](variables/default.md)
|
|
30
|
+
- [encode](variables/encode.md)
|
|
30
31
|
- [Feature](variables/Feature.md)
|
|
31
|
-
|
|
32
|
-
## Functions
|
|
33
|
-
|
|
34
|
-
- [encode](functions/encode.md)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**JScrewIt**](../README.md)
|
|
1
|
+
[**JScrewIt**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ Objects of this type indicate which of the capabilities that JScrewIt can use to
|
|
|
8
8
|
length of its output are available in a particular JavaScript engine.
|
|
9
9
|
|
|
10
10
|
JScrewIt comes with a set of predefined feature objects exposed as property values of
|
|
11
|
-
`JScrewIt.Feature` or [
|
|
11
|
+
`JScrewIt.Feature` or [\`JScrewIt.Feature.ALL\`](FeatureConstructor.md#all), where the property
|
|
12
12
|
name is the feature's name or alias.
|
|
13
13
|
|
|
14
14
|
Besides these predefined features, it is possible to construct custom features from the union or
|
|
@@ -20,8 +20,8 @@ they are different from such a union in that they exclude some other feature not
|
|
|
20
20
|
their elementary components.
|
|
21
21
|
All other features, called *composite* features, can be constructed as a union of zero or more
|
|
22
22
|
elementary features.
|
|
23
|
-
Two of the predefined composite features are particularly important: [
|
|
24
|
-
feature is available at all; [
|
|
23
|
+
Two of the predefined composite features are particularly important: [\`DEFAULT\`](FeatureConstructor.md#default) is the empty feature, indicating that no elementary
|
|
24
|
+
feature is available at all; [\`AUTO\`](FeatureConstructor.md#auto) is the union of all
|
|
25
25
|
elementary features available in the current environment.
|
|
26
26
|
|
|
27
27
|
Not all features can be available at the same time: some features are necessarily incompatible,
|
|
@@ -93,7 +93,9 @@ Determines whether this feature object includes all of the specified features.
|
|
|
93
93
|
|
|
94
94
|
#### Parameters
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
##### features
|
|
97
|
+
|
|
98
|
+
...[`FeatureElementOrCompatibleArray`](../type-aliases/FeatureElementOrCompatibleArray.md)[]
|
|
97
99
|
|
|
98
100
|
#### Returns
|
|
99
101
|
|
|
@@ -110,7 +112,7 @@ If no arguments are specified, the return value is `true`.
|
|
|
110
112
|
|
|
111
113
|
### restrict()
|
|
112
114
|
|
|
113
|
-
> **restrict**(`environment`, `engineFeatureObjs
|
|
115
|
+
> **restrict**(`environment`, `engineFeatureObjs?`): `CustomFeature`
|
|
114
116
|
|
|
115
117
|
Creates a new feature object from this feature by removing elementary features that are not
|
|
116
118
|
available inside a particular environment.
|
|
@@ -120,7 +122,7 @@ that require strict mode code, or inside web workers.
|
|
|
120
122
|
|
|
121
123
|
#### Parameters
|
|
122
124
|
|
|
123
|
-
|
|
125
|
+
##### environment
|
|
124
126
|
|
|
125
127
|
The environment to which this feature should be restricted.
|
|
126
128
|
Two environments are currently supported.
|
|
@@ -137,7 +139,11 @@ Removes features that are not available in environments that require strict mode
|
|
|
137
139
|
|
|
138
140
|
</dl>
|
|
139
141
|
|
|
140
|
-
|
|
142
|
+
`"forced-strict-mode"` | `"web-worker"`
|
|
143
|
+
|
|
144
|
+
##### engineFeatureObjs?
|
|
145
|
+
|
|
146
|
+
readonly [`PredefinedFeature`](PredefinedFeature.md)[]
|
|
141
147
|
|
|
142
148
|
An array of predefined feature objects, each corresponding to a particular engine in which
|
|
143
149
|
the restriction should be enacted.
|
|
@@ -145,7 +151,7 @@ If this parameter is omitted, the restriction is enacted in all engines.
|
|
|
145
151
|
|
|
146
152
|
#### Returns
|
|
147
153
|
|
|
148
|
-
|
|
154
|
+
`CustomFeature`
|
|
149
155
|
|
|
150
156
|
#### Inherited from
|
|
151
157
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**JScrewIt**](../README.md)
|
|
1
|
+
[**JScrewIt**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ Objects of this type indicate which of the capabilities that JScrewIt can use to
|
|
|
8
8
|
length of its output are available in a particular JavaScript engine.
|
|
9
9
|
|
|
10
10
|
JScrewIt comes with a set of predefined feature objects exposed as property values of
|
|
11
|
-
`JScrewIt.Feature` or [
|
|
11
|
+
`JScrewIt.Feature` or [\`JScrewIt.Feature.ALL\`](FeatureConstructor.md#all), where the property
|
|
12
12
|
name is the feature's name or alias.
|
|
13
13
|
|
|
14
14
|
Besides these predefined features, it is possible to construct custom features from the union or
|
|
@@ -20,8 +20,8 @@ they are different from such a union in that they exclude some other feature not
|
|
|
20
20
|
their elementary components.
|
|
21
21
|
All other features, called *composite* features, can be constructed as a union of zero or more
|
|
22
22
|
elementary features.
|
|
23
|
-
Two of the predefined composite features are particularly important: [
|
|
24
|
-
feature is available at all; [
|
|
23
|
+
Two of the predefined composite features are particularly important: [\`DEFAULT\`](FeatureConstructor.md#default) is the empty feature, indicating that no elementary
|
|
24
|
+
feature is available at all; [\`AUTO\`](FeatureConstructor.md#auto) is the union of all
|
|
25
25
|
elementary features available in the current environment.
|
|
26
26
|
|
|
27
27
|
Not all features can be available at the same time: some features are necessarily incompatible,
|
|
@@ -93,7 +93,9 @@ Determines whether this feature object includes all of the specified features.
|
|
|
93
93
|
|
|
94
94
|
#### Parameters
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
##### features
|
|
97
|
+
|
|
98
|
+
...[`FeatureElementOrCompatibleArray`](../type-aliases/FeatureElementOrCompatibleArray.md)[]
|
|
97
99
|
|
|
98
100
|
#### Returns
|
|
99
101
|
|
|
@@ -110,7 +112,7 @@ If no arguments are specified, the return value is `true`.
|
|
|
110
112
|
|
|
111
113
|
### restrict()
|
|
112
114
|
|
|
113
|
-
> **restrict**(`environment`, `engineFeatureObjs
|
|
115
|
+
> **restrict**(`environment`, `engineFeatureObjs?`): [`CustomFeature`](CustomFeature.md)
|
|
114
116
|
|
|
115
117
|
Creates a new feature object from this feature by removing elementary features that are not
|
|
116
118
|
available inside a particular environment.
|
|
@@ -120,7 +122,7 @@ that require strict mode code, or inside web workers.
|
|
|
120
122
|
|
|
121
123
|
#### Parameters
|
|
122
124
|
|
|
123
|
-
|
|
125
|
+
##### environment
|
|
124
126
|
|
|
125
127
|
The environment to which this feature should be restricted.
|
|
126
128
|
Two environments are currently supported.
|
|
@@ -137,7 +139,11 @@ Removes features that are not available in environments that require strict mode
|
|
|
137
139
|
|
|
138
140
|
</dl>
|
|
139
141
|
|
|
140
|
-
|
|
142
|
+
`"forced-strict-mode"` | `"web-worker"`
|
|
143
|
+
|
|
144
|
+
##### engineFeatureObjs?
|
|
145
|
+
|
|
146
|
+
readonly [`PredefinedFeature`](PredefinedFeature.md)[]
|
|
141
147
|
|
|
142
148
|
An array of predefined feature objects, each corresponding to a particular engine in which
|
|
143
149
|
the restriction should be enacted.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**JScrewIt**](../README.md)
|
|
1
|
+
[**JScrewIt**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
Specifies the features available in the engines that evaluate the encoded output.
|
|
14
14
|
|
|
15
|
-
If this parameter is unspecified, [
|
|
15
|
+
If this parameter is unspecified, [\`JScrewIt.Feature.DEFAULT\`](FeatureConstructor.md#default) is assumed: this ensures maximum compatibility but also generates
|
|
16
16
|
the largest code.
|
|
17
17
|
To generate shorter code, specify all features available in all target engines explicitly.
|
|
18
18
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**JScrewIt**](../README.md)
|
|
1
|
+
[**JScrewIt**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ Objects of this type indicate which of the capabilities that JScrewIt can use to
|
|
|
8
8
|
length of its output are available in a particular JavaScript engine.
|
|
9
9
|
|
|
10
10
|
JScrewIt comes with a set of predefined feature objects exposed as property values of
|
|
11
|
-
`JScrewIt.Feature` or [
|
|
11
|
+
`JScrewIt.Feature` or [\`JScrewIt.Feature.ALL\`](FeatureConstructor.md#all), where the property
|
|
12
12
|
name is the feature's name or alias.
|
|
13
13
|
|
|
14
14
|
Besides these predefined features, it is possible to construct custom features from the union or
|
|
@@ -20,8 +20,8 @@ they are different from such a union in that they exclude some other feature not
|
|
|
20
20
|
their elementary components.
|
|
21
21
|
All other features, called *composite* features, can be constructed as a union of zero or more
|
|
22
22
|
elementary features.
|
|
23
|
-
Two of the predefined composite features are particularly important: [
|
|
24
|
-
feature is available at all; [
|
|
23
|
+
Two of the predefined composite features are particularly important: [\`DEFAULT\`](FeatureConstructor.md#default) is the empty feature, indicating that no elementary
|
|
24
|
+
feature is available at all; [\`AUTO\`](FeatureConstructor.md#auto) is the union of all
|
|
25
25
|
elementary features available in the current environment.
|
|
26
26
|
|
|
27
27
|
Not all features can be available at the same time: some features are necessarily incompatible,
|
|
@@ -78,7 +78,9 @@ Determines whether this feature object includes all of the specified features.
|
|
|
78
78
|
|
|
79
79
|
#### Parameters
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
##### features
|
|
82
|
+
|
|
83
|
+
...[`FeatureElementOrCompatibleArray`](../type-aliases/FeatureElementOrCompatibleArray.md)[]
|
|
82
84
|
|
|
83
85
|
#### Returns
|
|
84
86
|
|
|
@@ -91,7 +93,7 @@ If no arguments are specified, the return value is `true`.
|
|
|
91
93
|
|
|
92
94
|
### restrict()
|
|
93
95
|
|
|
94
|
-
> **restrict**(`environment`, `engineFeatureObjs
|
|
96
|
+
> **restrict**(`environment`, `engineFeatureObjs?`): [`CustomFeature`](CustomFeature.md)
|
|
95
97
|
|
|
96
98
|
Creates a new feature object from this feature by removing elementary features that are not
|
|
97
99
|
available inside a particular environment.
|
|
@@ -101,7 +103,7 @@ that require strict mode code, or inside web workers.
|
|
|
101
103
|
|
|
102
104
|
#### Parameters
|
|
103
105
|
|
|
104
|
-
|
|
106
|
+
##### environment
|
|
105
107
|
|
|
106
108
|
The environment to which this feature should be restricted.
|
|
107
109
|
Two environments are currently supported.
|
|
@@ -118,7 +120,11 @@ Removes features that are not available in environments that require strict mode
|
|
|
118
120
|
|
|
119
121
|
</dl>
|
|
120
122
|
|
|
121
|
-
|
|
123
|
+
`"forced-strict-mode"` | `"web-worker"`
|
|
124
|
+
|
|
125
|
+
##### engineFeatureObjs?
|
|
126
|
+
|
|
127
|
+
readonly [`PredefinedFeature`](PredefinedFeature.md)[]
|
|
122
128
|
|
|
123
129
|
An array of predefined feature objects, each corresponding to a particular engine in which
|
|
124
130
|
the restriction should be enacted.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**JScrewIt**](../README.md)
|
|
1
|
+
[**JScrewIt**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -340,7 +340,7 @@ Available in Chrome, Edge, Firefox, Internet Explorer, Safari, Opera, and Node.j
|
|
|
340
340
|
|
|
341
341
|
Features available in the current stable version of Firefox.
|
|
342
342
|
|
|
343
|
-
An alias for `
|
|
343
|
+
An alias for `FF_134`.
|
|
344
344
|
|
|
345
345
|
***
|
|
346
346
|
|
|
@@ -348,11 +348,27 @@ An alias for `FF_131`.
|
|
|
348
348
|
|
|
349
349
|
> **FF\_131**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
350
350
|
|
|
351
|
-
Features available in Firefox 131
|
|
351
|
+
Features available in Firefox 131 to 133.
|
|
352
352
|
|
|
353
353
|
#### Remarks
|
|
354
354
|
|
|
355
|
-
This feature may be replaced or removed in the near future when current browser versions become obsolete.
|
|
355
|
+
This feature may be replaced or removed in the near future when current browser versions become obsolete.
|
|
356
|
+
|
|
357
|
+
#### See
|
|
358
|
+
|
|
359
|
+
[Engine Support Policy](https://github.com/fasttime/JScrewIt#engine-support-policy)
|
|
360
|
+
|
|
361
|
+
***
|
|
362
|
+
|
|
363
|
+
### FF\_134
|
|
364
|
+
|
|
365
|
+
> **FF\_134**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
366
|
+
|
|
367
|
+
Features available in Firefox 134 or later.
|
|
368
|
+
|
|
369
|
+
#### Remarks
|
|
370
|
+
|
|
371
|
+
This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `FF` or `FF_PREV` instead of `FF_134` for long term support.
|
|
356
372
|
|
|
357
373
|
#### See
|
|
358
374
|
|
|
@@ -368,7 +384,7 @@ Features available in Firefox 90 to 130.
|
|
|
368
384
|
|
|
369
385
|
#### Remarks
|
|
370
386
|
|
|
371
|
-
This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `FF_ESR`
|
|
387
|
+
This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `FF_ESR` instead of `FF_90` for long term support.
|
|
372
388
|
|
|
373
389
|
#### See
|
|
374
390
|
|
|
@@ -392,7 +408,7 @@ An alias for `FF_90`.
|
|
|
392
408
|
|
|
393
409
|
Features available in the previous to current version of Firefox.
|
|
394
410
|
|
|
395
|
-
An alias for `
|
|
411
|
+
An alias for `FF_134`.
|
|
396
412
|
|
|
397
413
|
***
|
|
398
414
|
|
|
@@ -620,7 +636,7 @@ Availability of iterator helpers.
|
|
|
620
636
|
|
|
621
637
|
#### Remarks
|
|
622
638
|
|
|
623
|
-
Available in Chrome, Edge, Firefox 131+, Opera, and Node.js 22+.
|
|
639
|
+
Available in Chrome, Edge, Firefox 131+, Safari 18.4+, Opera, and Node.js 22.0+.
|
|
624
640
|
|
|
625
641
|
***
|
|
626
642
|
|
|
@@ -660,17 +676,29 @@ Available in Chrome, Edge, Firefox, Internet Explorer 11, Safari 10.0+, Opera, A
|
|
|
660
676
|
|
|
661
677
|
***
|
|
662
678
|
|
|
679
|
+
### LOCALE\_NUMERALS\_BN
|
|
680
|
+
|
|
681
|
+
> **LOCALE\_NUMERALS\_BN**: [`ElementaryFeature`](ElementaryFeature.md)
|
|
682
|
+
|
|
683
|
+
Localized number formatting for Bengali.
|
|
684
|
+
|
|
685
|
+
#### Remarks
|
|
686
|
+
|
|
687
|
+
Available in Chrome, Edge, Firefox, Internet Explorer 11 on Windows 10, Safari 10.0+ before 18.4, Opera, Android Browser 4.4, and Node.js 13+.
|
|
688
|
+
|
|
689
|
+
***
|
|
690
|
+
|
|
663
691
|
### LOCALE\_NUMERALS\_EXT
|
|
664
692
|
|
|
665
693
|
> **LOCALE\_NUMERALS\_EXT**: [`ElementaryFeature`](ElementaryFeature.md)
|
|
666
694
|
|
|
667
695
|
Extended localized number formatting.
|
|
668
696
|
|
|
669
|
-
This includes all features of LOCALE_NUMERALS plus the output of the first three letters in the second word of the Arabic string representation of NaN \("رقم"\),
|
|
697
|
+
This includes all features of LOCALE_NUMERALS plus the output of the first three letters in the second word of the Arabic string representation of NaN \("رقم"\), the letters in the Russian string representation of NaN \("не число"\) and the letters in the Persian string representation of NaN \("ناعدد"\).
|
|
670
698
|
|
|
671
699
|
#### Remarks
|
|
672
700
|
|
|
673
|
-
Available in Chrome, Edge, Firefox, Internet Explorer 11 on Windows 10, Safari 10.0+, Opera, Android Browser 4.4, and Node.js 13+.
|
|
701
|
+
Available in Chrome, Edge, Firefox, Internet Explorer 11 on Windows 10, Safari 10.0+, Opera, Android Browser 4.4, and Node.js 13+. This feature is not available inside web workers in Safari 18.4+.
|
|
674
702
|
|
|
675
703
|
***
|
|
676
704
|
|
|
@@ -838,7 +866,15 @@ Features available in Node.js 16.6 to 21.
|
|
|
838
866
|
|
|
839
867
|
> **NODE\_22**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
840
868
|
|
|
841
|
-
Features available in Node.js 22
|
|
869
|
+
Features available in Node.js 22.0 to 22.11 and Node.js 23.0 to 23.2.
|
|
870
|
+
|
|
871
|
+
***
|
|
872
|
+
|
|
873
|
+
### NODE\_22\_12
|
|
874
|
+
|
|
875
|
+
> **NODE\_22\_12**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
876
|
+
|
|
877
|
+
Features available in Node.js 22.12 to 22.14 and Node.js 23.3 or later.
|
|
842
878
|
|
|
843
879
|
***
|
|
844
880
|
|
|
@@ -896,7 +932,7 @@ The property that the Array.prototype.entries\(\).constructor is the Object cons
|
|
|
896
932
|
|
|
897
933
|
#### Remarks
|
|
898
934
|
|
|
899
|
-
Available in Firefox before 131, Safari 9
|
|
935
|
+
Available in Firefox before 131, Safari 9+ before 18.4, and Node.js 0.12+ before 22.0.
|
|
900
936
|
|
|
901
937
|
***
|
|
902
938
|
|
|
@@ -978,7 +1014,7 @@ Available in Chrome, Edge, Firefox, Safari 13+, Opera, and Node.js 12+.
|
|
|
978
1014
|
|
|
979
1015
|
Features available in the current stable version of Safari.
|
|
980
1016
|
|
|
981
|
-
An alias for `
|
|
1017
|
+
An alias for `SAFARI_18_4`.
|
|
982
1018
|
|
|
983
1019
|
***
|
|
984
1020
|
|
|
@@ -1046,11 +1082,19 @@ Features available in Safari 17.4 to 17.6.
|
|
|
1046
1082
|
|
|
1047
1083
|
***
|
|
1048
1084
|
|
|
1049
|
-
### SAFARI\_18
|
|
1085
|
+
### SAFARI\_18\_0
|
|
1086
|
+
|
|
1087
|
+
> **SAFARI\_18\_0**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
1088
|
+
|
|
1089
|
+
Features available in Safari 18.0 to 18.3.
|
|
1090
|
+
|
|
1091
|
+
***
|
|
1092
|
+
|
|
1093
|
+
### SAFARI\_18\_4
|
|
1050
1094
|
|
|
1051
|
-
> **SAFARI\_18**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
1095
|
+
> **SAFARI\_18\_4**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
1052
1096
|
|
|
1053
|
-
Features available in Safari 18 or later.
|
|
1097
|
+
Features available in Safari 18.4 or later.
|
|
1054
1098
|
|
|
1055
1099
|
***
|
|
1056
1100
|
|
|
@@ -1106,7 +1150,7 @@ Support for the two-letter locale name "ar" to format decimal numbers as Arabic
|
|
|
1106
1150
|
|
|
1107
1151
|
#### Remarks
|
|
1108
1152
|
|
|
1109
|
-
Available in Firefox, Internet Explorer 11, Safari 10.0+ before 18, Android Browser 4.4, and Node.js 13
|
|
1153
|
+
Available in Firefox before 134, Internet Explorer 11, Safari 10.0+ before 18.0, Android Browser 4.4, and Node.js 13+ before 22.12–22.14 and 23.3.
|
|
1110
1154
|
|
|
1111
1155
|
***
|
|
1112
1156
|
|