jscrewit 2.29.0 → 2.33.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 +9 -3
- package/JScrewIt.html +1 -1
- package/api-doc/.nojekyll +1 -0
- package/api-doc/README.md +18 -19
- package/api-doc/interfaces/CustomFeature.md +3 -3
- package/api-doc/interfaces/ElementaryFeature.md +3 -3
- package/api-doc/interfaces/EncodeOptions.md +1 -1
- package/api-doc/interfaces/Feature.md +5 -4
- package/api-doc/interfaces/FeatureAll.md +125 -99
- package/api-doc/interfaces/FeatureConstructor.md +147 -113
- package/api-doc/interfaces/PredefinedFeature.md +3 -3
- package/lib/encode.d.ts +2 -2
- package/lib/feature-all.d.ts +49 -28
- package/lib/feature.d.ts +21 -22
- package/lib/jscrewit.js +1804 -2122
- package/lib/jscrewit.min.js +2 -2
- package/package.json +13 -6
- package/readme.md +2 -2
- package/ui/ui.js +1 -1
|
@@ -44,7 +44,7 @@ An error is thrown if any of the specified features are not mutually compatible.
|
|
|
44
44
|
|
|
45
45
|
| Name | Type |
|
|
46
46
|
| :------ | :------ |
|
|
47
|
-
| `...features` |
|
|
47
|
+
| `...features` | [`FeatureElementOrCompatibleArray`](../README.md#featureelementorcompatiblearray)[] |
|
|
48
48
|
|
|
49
49
|
#### Returns
|
|
50
50
|
|
|
@@ -59,98 +59,100 @@ An error is thrown if any of the specified features are not mutually compatible.
|
|
|
59
59
|
### Properties
|
|
60
60
|
|
|
61
61
|
- [ALL](FeatureConstructor.md#all)
|
|
62
|
-
- [
|
|
63
|
-
- [
|
|
64
|
-
- [
|
|
65
|
-
- [
|
|
66
|
-
- [
|
|
67
|
-
- [
|
|
62
|
+
- [ANDRO_4_0](FeatureConstructor.md#andro_4_0)
|
|
63
|
+
- [ANDRO_4_1](FeatureConstructor.md#andro_4_1)
|
|
64
|
+
- [ANDRO_4_4](FeatureConstructor.md#andro_4_4)
|
|
65
|
+
- [ANY_DOCUMENT](FeatureConstructor.md#any_document)
|
|
66
|
+
- [ANY_WINDOW](FeatureConstructor.md#any_window)
|
|
67
|
+
- [ARRAY_ITERATOR](FeatureConstructor.md#array_iterator)
|
|
68
68
|
- [ARROW](FeatureConstructor.md#arrow)
|
|
69
69
|
- [AT](FeatureConstructor.md#at)
|
|
70
70
|
- [ATOB](FeatureConstructor.md#atob)
|
|
71
71
|
- [AUTO](FeatureConstructor.md#auto)
|
|
72
72
|
- [BARPROP](FeatureConstructor.md#barprop)
|
|
73
73
|
- [BROWSER](FeatureConstructor.md#browser)
|
|
74
|
-
- [
|
|
74
|
+
- [CAPITAL_HTML](FeatureConstructor.md#capital_html)
|
|
75
75
|
- [CHROME](FeatureConstructor.md#chrome)
|
|
76
|
-
- [
|
|
77
|
-
- [
|
|
76
|
+
- [CHROME_92](FeatureConstructor.md#chrome_92)
|
|
77
|
+
- [CHROME_PREV](FeatureConstructor.md#chrome_prev)
|
|
78
78
|
- [COMPACT](FeatureConstructor.md#compact)
|
|
79
79
|
- [CONSOLE](FeatureConstructor.md#console)
|
|
80
80
|
- [DEFAULT](FeatureConstructor.md#default)
|
|
81
81
|
- [DOCUMENT](FeatureConstructor.md#document)
|
|
82
82
|
- [DOMWINDOW](FeatureConstructor.md#domwindow)
|
|
83
83
|
- [ELEMENTARY](FeatureConstructor.md#elementary)
|
|
84
|
-
- [
|
|
85
|
-
- [
|
|
86
|
-
- [
|
|
87
|
-
- [
|
|
88
|
-
- [
|
|
89
|
-
- [EXTERNAL](FeatureConstructor.md#external)
|
|
84
|
+
- [ESC_HTML_ALL](FeatureConstructor.md#esc_html_all)
|
|
85
|
+
- [ESC_HTML_QUOT](FeatureConstructor.md#esc_html_quot)
|
|
86
|
+
- [ESC_HTML_QUOT_ONLY](FeatureConstructor.md#esc_html_quot_only)
|
|
87
|
+
- [ESC_REGEXP_LF](FeatureConstructor.md#esc_regexp_lf)
|
|
88
|
+
- [ESC_REGEXP_SLASH](FeatureConstructor.md#esc_regexp_slash)
|
|
90
89
|
- [FF](FeatureConstructor.md#ff)
|
|
91
|
-
- [
|
|
92
|
-
- [
|
|
93
|
-
- [
|
|
94
|
-
- [
|
|
95
|
-
- [
|
|
96
|
-
- [
|
|
90
|
+
- [FF_78](FeatureConstructor.md#ff_78)
|
|
91
|
+
- [FF_83](FeatureConstructor.md#ff_83)
|
|
92
|
+
- [FF_90](FeatureConstructor.md#ff_90)
|
|
93
|
+
- [FF_ESR](FeatureConstructor.md#ff_esr)
|
|
94
|
+
- [FF_PREV](FeatureConstructor.md#ff_prev)
|
|
95
|
+
- [FF_SRC](FeatureConstructor.md#ff_src)
|
|
97
96
|
- [FILL](FeatureConstructor.md#fill)
|
|
98
97
|
- [FLAT](FeatureConstructor.md#flat)
|
|
99
|
-
- [
|
|
100
|
-
- [
|
|
101
|
-
- [
|
|
102
|
-
- [
|
|
103
|
-
- [
|
|
98
|
+
- [FROM_CODE_POINT](FeatureConstructor.md#from_code_point)
|
|
99
|
+
- [FUNCTION_19_LF](FeatureConstructor.md#function_19_lf)
|
|
100
|
+
- [FUNCTION_22_LF](FeatureConstructor.md#function_22_lf)
|
|
101
|
+
- [GENERIC_ARRAY_TO_STRING](FeatureConstructor.md#generic_array_to_string)
|
|
102
|
+
- [GLOBAL_UNDEFINED](FeatureConstructor.md#global_undefined)
|
|
104
103
|
- [GMT](FeatureConstructor.md#gmt)
|
|
105
104
|
- [HISTORY](FeatureConstructor.md#history)
|
|
106
105
|
- [HTMLAUDIOELEMENT](FeatureConstructor.md#htmlaudioelement)
|
|
107
106
|
- [HTMLDOCUMENT](FeatureConstructor.md#htmldocument)
|
|
108
|
-
- [
|
|
109
|
-
- [
|
|
110
|
-
- [
|
|
111
|
-
- [
|
|
112
|
-
- [
|
|
113
|
-
- [
|
|
107
|
+
- [IE_10](FeatureConstructor.md#ie_10)
|
|
108
|
+
- [IE_11](FeatureConstructor.md#ie_11)
|
|
109
|
+
- [IE_11_WIN_10](FeatureConstructor.md#ie_11_win_10)
|
|
110
|
+
- [IE_9](FeatureConstructor.md#ie_9)
|
|
111
|
+
- [IE_SRC](FeatureConstructor.md#ie_src)
|
|
112
|
+
- [INCR_CHAR](FeatureConstructor.md#incr_char)
|
|
114
113
|
- [INTL](FeatureConstructor.md#intl)
|
|
115
|
-
- [
|
|
116
|
-
- [
|
|
117
|
-
- [
|
|
114
|
+
- [LOCALE_INFINITY](FeatureConstructor.md#locale_infinity)
|
|
115
|
+
- [LOCALE_NUMERALS](FeatureConstructor.md#locale_numerals)
|
|
116
|
+
- [LOCALE_NUMERALS_EXT](FeatureConstructor.md#locale_numerals_ext)
|
|
118
117
|
- [LOCATION](FeatureConstructor.md#location)
|
|
119
118
|
- [NAME](FeatureConstructor.md#name)
|
|
120
119
|
- [NODECONSTRUCTOR](FeatureConstructor.md#nodeconstructor)
|
|
121
|
-
- [
|
|
122
|
-
- [
|
|
123
|
-
- [
|
|
124
|
-
- [
|
|
125
|
-
- [
|
|
126
|
-
- [
|
|
127
|
-
- [
|
|
128
|
-
- [
|
|
129
|
-
- [
|
|
130
|
-
- [
|
|
131
|
-
- [
|
|
132
|
-
- [
|
|
133
|
-
- [
|
|
134
|
-
- [
|
|
135
|
-
- [
|
|
136
|
-
- [
|
|
137
|
-
- [
|
|
120
|
+
- [NODE_0_10](FeatureConstructor.md#node_0_10)
|
|
121
|
+
- [NODE_0_12](FeatureConstructor.md#node_0_12)
|
|
122
|
+
- [NODE_10](FeatureConstructor.md#node_10)
|
|
123
|
+
- [NODE_11](FeatureConstructor.md#node_11)
|
|
124
|
+
- [NODE_12](FeatureConstructor.md#node_12)
|
|
125
|
+
- [NODE_13](FeatureConstructor.md#node_13)
|
|
126
|
+
- [NODE_15](FeatureConstructor.md#node_15)
|
|
127
|
+
- [NODE_16_0](FeatureConstructor.md#node_16_0)
|
|
128
|
+
- [NODE_16_6](FeatureConstructor.md#node_16_6)
|
|
129
|
+
- [NODE_4](FeatureConstructor.md#node_4)
|
|
130
|
+
- [NODE_5](FeatureConstructor.md#node_5)
|
|
131
|
+
- [NO_FF_SRC](FeatureConstructor.md#no_ff_src)
|
|
132
|
+
- [NO_IE_SRC](FeatureConstructor.md#no_ie_src)
|
|
133
|
+
- [NO_OLD_SAFARI_ARRAY_ITERATOR](FeatureConstructor.md#no_old_safari_array_iterator)
|
|
134
|
+
- [NO_V8_SRC](FeatureConstructor.md#no_v8_src)
|
|
135
|
+
- [OBJECT_L_LOCATION_CTOR](FeatureConstructor.md#object_l_location_ctor)
|
|
136
|
+
- [OBJECT_UNDEFINED](FeatureConstructor.md#object_undefined)
|
|
137
|
+
- [OBJECT_W_CTOR](FeatureConstructor.md#object_w_ctor)
|
|
138
|
+
- [OLD_SAFARI_LOCATION_CTOR](FeatureConstructor.md#old_safari_location_ctor)
|
|
139
|
+
- [PLAIN_INTL](FeatureConstructor.md#plain_intl)
|
|
140
|
+
- [REGEXP_STRING_ITERATOR](FeatureConstructor.md#regexp_string_iterator)
|
|
138
141
|
- [SAFARI](FeatureConstructor.md#safari)
|
|
139
|
-
- [
|
|
140
|
-
- [
|
|
141
|
-
- [
|
|
142
|
-
- [
|
|
143
|
-
- [
|
|
144
|
-
- [
|
|
145
|
-
- [
|
|
146
|
-
- [
|
|
147
|
-
- [SAFARI\_9](FeatureConstructor.md#safari_9)
|
|
142
|
+
- [SAFARI_10](FeatureConstructor.md#safari_10)
|
|
143
|
+
- [SAFARI_12](FeatureConstructor.md#safari_12)
|
|
144
|
+
- [SAFARI_13](FeatureConstructor.md#safari_13)
|
|
145
|
+
- [SAFARI_14_0_1](FeatureConstructor.md#safari_14_0_1)
|
|
146
|
+
- [SAFARI_14_1](FeatureConstructor.md#safari_14_1)
|
|
147
|
+
- [SAFARI_7_0](FeatureConstructor.md#safari_7_0)
|
|
148
|
+
- [SAFARI_7_1](FeatureConstructor.md#safari_7_1)
|
|
149
|
+
- [SAFARI_9](FeatureConstructor.md#safari_9)
|
|
148
150
|
- [SELF](FeatureConstructor.md#self)
|
|
149
|
-
- [
|
|
150
|
-
- [
|
|
151
|
+
- [SELF_OBJ](FeatureConstructor.md#self_obj)
|
|
152
|
+
- [SHORT_LOCALES](FeatureConstructor.md#short_locales)
|
|
151
153
|
- [STATUS](FeatureConstructor.md#status)
|
|
152
154
|
- [UNDEFINED](FeatureConstructor.md#undefined)
|
|
153
|
-
- [
|
|
155
|
+
- [V8_SRC](FeatureConstructor.md#v8_src)
|
|
154
156
|
- [WINDOW](FeatureConstructor.md#window)
|
|
155
157
|
|
|
156
158
|
### Methods
|
|
@@ -198,7 +200,7 @@ An error is thrown if any of the specified features are not mutually compatible.
|
|
|
198
200
|
|
|
199
201
|
| Name | Type |
|
|
200
202
|
| :------ | :------ |
|
|
201
|
-
| `...features` |
|
|
203
|
+
| `...features` | [`FeatureElementOrCompatibleArray`](../README.md#featureelementorcompatiblearray)[] |
|
|
202
204
|
|
|
203
205
|
#### Inherited from
|
|
204
206
|
|
|
@@ -336,7 +338,7 @@ Existence of the native function Array.prototype.at.
|
|
|
336
338
|
|
|
337
339
|
**`remarks`**
|
|
338
340
|
|
|
339
|
-
Available in Firefox 90+.
|
|
341
|
+
Available in Chrome, Edge, Firefox 90+, Opera, and Node.js 16.6+.
|
|
340
342
|
|
|
341
343
|
#### Inherited from
|
|
342
344
|
|
|
@@ -352,7 +354,7 @@ Existence of the global functions atob and btoa.
|
|
|
352
354
|
|
|
353
355
|
**`remarks`**
|
|
354
356
|
|
|
355
|
-
Available in Chrome, Edge, Firefox, Internet Explorer 10+, Safari, Opera, Android Browser, and Node.js 16+. This feature is not available inside web workers in Safari before 10.
|
|
357
|
+
Available in Chrome, Edge, Firefox, Internet Explorer 10+, Safari, Opera, Android Browser, and Node.js 16.0+. This feature is not available inside web workers in Safari before 10.
|
|
356
358
|
|
|
357
359
|
#### Inherited from
|
|
358
360
|
|
|
@@ -364,7 +366,7 @@ ___
|
|
|
364
366
|
|
|
365
367
|
• **AUTO**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
366
368
|
|
|
367
|
-
|
|
369
|
+
Features available in the current environment.
|
|
368
370
|
|
|
369
371
|
#### Inherited from
|
|
370
372
|
|
|
@@ -424,7 +426,7 @@ ___
|
|
|
424
426
|
|
|
425
427
|
Features available in the current stable versions of Chrome, Edge and Opera.
|
|
426
428
|
|
|
427
|
-
An alias for `
|
|
429
|
+
An alias for `CHROME_92`.
|
|
428
430
|
|
|
429
431
|
#### Inherited from
|
|
430
432
|
|
|
@@ -432,15 +434,15 @@ An alias for `CHROME_86`.
|
|
|
432
434
|
|
|
433
435
|
___
|
|
434
436
|
|
|
435
|
-
### CHROME\
|
|
437
|
+
### CHROME\_92
|
|
436
438
|
|
|
437
|
-
• **CHROME\
|
|
439
|
+
• **CHROME\_92**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
438
440
|
|
|
439
|
-
Features available in Chrome
|
|
441
|
+
Features available in Chrome 92, Edge 92 and Opera 78 or later.
|
|
440
442
|
|
|
441
443
|
**`remarks`**
|
|
442
444
|
|
|
443
|
-
This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `CHROME` or `CHROME_PREV` instead of `
|
|
445
|
+
This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `CHROME` or `CHROME_PREV` instead of `CHROME_92` for long term support.
|
|
444
446
|
|
|
445
447
|
**`see`**
|
|
446
448
|
|
|
@@ -448,7 +450,7 @@ This feature may be replaced or removed in the near future when current browser
|
|
|
448
450
|
|
|
449
451
|
#### Inherited from
|
|
450
452
|
|
|
451
|
-
[FeatureAll](FeatureAll.md).[
|
|
453
|
+
[FeatureAll](FeatureAll.md).[CHROME_92](FeatureAll.md#chrome_92)
|
|
452
454
|
|
|
453
455
|
___
|
|
454
456
|
|
|
@@ -458,7 +460,7 @@ ___
|
|
|
458
460
|
|
|
459
461
|
Features available in the previous to current versions of Chrome and Edge.
|
|
460
462
|
|
|
461
|
-
An alias for `
|
|
463
|
+
An alias for `CHROME_92`.
|
|
462
464
|
|
|
463
465
|
#### Inherited from
|
|
464
466
|
|
|
@@ -630,22 +632,6 @@ Available in Chrome, Edge, Firefox, Internet Explorer, Safari, Opera, and Node.j
|
|
|
630
632
|
|
|
631
633
|
___
|
|
632
634
|
|
|
633
|
-
### EXTERNAL
|
|
634
|
-
|
|
635
|
-
• **EXTERNAL**: [`ElementaryFeature`](ElementaryFeature.md)
|
|
636
|
-
|
|
637
|
-
Existence of the global object sidebar having the string representation "\[object External\]".
|
|
638
|
-
|
|
639
|
-
**`remarks`**
|
|
640
|
-
|
|
641
|
-
Available in Firefox. This feature is not available inside web workers.
|
|
642
|
-
|
|
643
|
-
#### Inherited from
|
|
644
|
-
|
|
645
|
-
[FeatureAll](FeatureAll.md).[EXTERNAL](FeatureAll.md#external)
|
|
646
|
-
|
|
647
|
-
___
|
|
648
|
-
|
|
649
635
|
### FF
|
|
650
636
|
|
|
651
637
|
• **FF**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
@@ -688,7 +674,7 @@ Features available in Firefox 83 to 89.
|
|
|
688
674
|
|
|
689
675
|
**`remarks`**
|
|
690
676
|
|
|
691
|
-
This feature may be replaced or removed in the near future when current browser versions become obsolete.
|
|
677
|
+
This feature may be replaced or removed in the near future when current browser versions become obsolete.
|
|
692
678
|
|
|
693
679
|
**`see`**
|
|
694
680
|
|
|
@@ -708,7 +694,7 @@ Features available in Firefox 90 or later.
|
|
|
708
694
|
|
|
709
695
|
**`remarks`**
|
|
710
696
|
|
|
711
|
-
This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `FF` instead of `FF_90` for long term support.
|
|
697
|
+
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_90` for long term support.
|
|
712
698
|
|
|
713
699
|
**`see`**
|
|
714
700
|
|
|
@@ -740,7 +726,7 @@ ___
|
|
|
740
726
|
|
|
741
727
|
Features available in the previous to current version of Firefox.
|
|
742
728
|
|
|
743
|
-
An alias for `
|
|
729
|
+
An alias for `FF_90`.
|
|
744
730
|
|
|
745
731
|
#### Inherited from
|
|
746
732
|
|
|
@@ -1224,15 +1210,27 @@ Features available in Node.js 15.
|
|
|
1224
1210
|
|
|
1225
1211
|
___
|
|
1226
1212
|
|
|
1227
|
-
### NODE\_16
|
|
1213
|
+
### NODE\_16\_0
|
|
1228
1214
|
|
|
1229
|
-
• **NODE\_16**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
1215
|
+
• **NODE\_16\_0**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
1230
1216
|
|
|
1231
|
-
Features available in Node.js 16
|
|
1217
|
+
Features available in Node.js 16.0 to 16.5.
|
|
1232
1218
|
|
|
1233
1219
|
#### Inherited from
|
|
1234
1220
|
|
|
1235
|
-
[FeatureAll](FeatureAll.md).[
|
|
1221
|
+
[FeatureAll](FeatureAll.md).[NODE_16_0](FeatureAll.md#node_16_0)
|
|
1222
|
+
|
|
1223
|
+
___
|
|
1224
|
+
|
|
1225
|
+
### NODE\_16\_6
|
|
1226
|
+
|
|
1227
|
+
• **NODE\_16\_6**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
1228
|
+
|
|
1229
|
+
Features available in Node.js 16.6 or later.
|
|
1230
|
+
|
|
1231
|
+
#### Inherited from
|
|
1232
|
+
|
|
1233
|
+
[FeatureAll](FeatureAll.md).[NODE_16_6](FeatureAll.md#node_16_6)
|
|
1236
1234
|
|
|
1237
1235
|
___
|
|
1238
1236
|
|
|
@@ -1328,6 +1326,22 @@ Available in Firefox, Internet Explorer, and Safari.
|
|
|
1328
1326
|
|
|
1329
1327
|
___
|
|
1330
1328
|
|
|
1329
|
+
### OBJECT\_L\_LOCATION\_CTOR
|
|
1330
|
+
|
|
1331
|
+
• **OBJECT\_L\_LOCATION\_CTOR**: [`ElementaryFeature`](ElementaryFeature.md)
|
|
1332
|
+
|
|
1333
|
+
Existence of the global function location.constructor whose string representation starts with "\[object L"
|
|
1334
|
+
|
|
1335
|
+
**`remarks`**
|
|
1336
|
+
|
|
1337
|
+
Available in Internet Explorer and Safari before 10. This feature is not available inside web workers.
|
|
1338
|
+
|
|
1339
|
+
#### Inherited from
|
|
1340
|
+
|
|
1341
|
+
[FeatureAll](FeatureAll.md).[OBJECT_L_LOCATION_CTOR](FeatureAll.md#object_l_location_ctor)
|
|
1342
|
+
|
|
1343
|
+
___
|
|
1344
|
+
|
|
1331
1345
|
### OBJECT\_UNDEFINED
|
|
1332
1346
|
|
|
1333
1347
|
• **OBJECT\_UNDEFINED**: [`ElementaryFeature`](ElementaryFeature.md)
|
|
@@ -1344,6 +1358,38 @@ Available in Chrome, Edge, Firefox, Internet Explorer 10+, Safari, Opera, Androi
|
|
|
1344
1358
|
|
|
1345
1359
|
___
|
|
1346
1360
|
|
|
1361
|
+
### OBJECT\_W\_CTOR
|
|
1362
|
+
|
|
1363
|
+
• **OBJECT\_W\_CTOR**: [`ElementaryFeature`](ElementaryFeature.md)
|
|
1364
|
+
|
|
1365
|
+
The property that the string representation of the global object constructor starts with "\[object W"
|
|
1366
|
+
|
|
1367
|
+
**`remarks`**
|
|
1368
|
+
|
|
1369
|
+
Available in Internet Explorer and Safari before 10. This feature is not available inside web workers in Safari before 10.
|
|
1370
|
+
|
|
1371
|
+
#### Inherited from
|
|
1372
|
+
|
|
1373
|
+
[FeatureAll](FeatureAll.md).[OBJECT_W_CTOR](FeatureAll.md#object_w_ctor)
|
|
1374
|
+
|
|
1375
|
+
___
|
|
1376
|
+
|
|
1377
|
+
### OLD\_SAFARI\_LOCATION\_CTOR
|
|
1378
|
+
|
|
1379
|
+
• **OLD\_SAFARI\_LOCATION\_CTOR**: [`ElementaryFeature`](ElementaryFeature.md)
|
|
1380
|
+
|
|
1381
|
+
Existence of the global object location.constructor whose string representation starts with "\[object " and ends with "LocationConstructor\]"
|
|
1382
|
+
|
|
1383
|
+
**`remarks`**
|
|
1384
|
+
|
|
1385
|
+
Available in Safari before 10.
|
|
1386
|
+
|
|
1387
|
+
#### Inherited from
|
|
1388
|
+
|
|
1389
|
+
[FeatureAll](FeatureAll.md).[OLD_SAFARI_LOCATION_CTOR](FeatureAll.md#old_safari_location_ctor)
|
|
1390
|
+
|
|
1391
|
+
___
|
|
1392
|
+
|
|
1347
1393
|
### PLAIN\_INTL
|
|
1348
1394
|
|
|
1349
1395
|
• **PLAIN\_INTL**: [`ElementaryFeature`](ElementaryFeature.md)
|
|
@@ -1474,18 +1520,6 @@ Features available in Safari 7.1 and Safari 8.
|
|
|
1474
1520
|
|
|
1475
1521
|
___
|
|
1476
1522
|
|
|
1477
|
-
### SAFARI\_8
|
|
1478
|
-
|
|
1479
|
-
• **SAFARI\_8**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
1480
|
-
|
|
1481
|
-
An alias for `SAFARI_7_1`.
|
|
1482
|
-
|
|
1483
|
-
#### Inherited from
|
|
1484
|
-
|
|
1485
|
-
[FeatureAll](FeatureAll.md).[SAFARI_8](FeatureAll.md#safari_8)
|
|
1486
|
-
|
|
1487
|
-
___
|
|
1488
|
-
|
|
1489
1523
|
### SAFARI\_9
|
|
1490
1524
|
|
|
1491
1525
|
• **SAFARI\_9**: [`PredefinedFeature`](PredefinedFeature.md)
|
|
@@ -1668,7 +1702,7 @@ JScrewIt.Feature.areEqual("DEFAULT", [])
|
|
|
1668
1702
|
|
|
1669
1703
|
| Name | Type |
|
|
1670
1704
|
| :------ | :------ |
|
|
1671
|
-
| `...features` |
|
|
1705
|
+
| `...features` | [`FeatureElementOrCompatibleArray`](../README.md#featureelementorcompatiblearray)[] |
|
|
1672
1706
|
|
|
1673
1707
|
#### Returns
|
|
1674
1708
|
|
|
@@ -1705,7 +1739,7 @@ const newFeature = JScrewIt.Feature.commonOf("HTMLDOCUMENT", "DOCUMENT");
|
|
|
1705
1739
|
|
|
1706
1740
|
| Name | Type |
|
|
1707
1741
|
| :------ | :------ |
|
|
1708
|
-
| `...features` |
|
|
1742
|
+
| `...features` | [`FeatureElementOrCompatibleArray`](../README.md#featureelementorcompatiblearray)[] |
|
|
1709
1743
|
|
|
1710
1744
|
#### Returns
|
|
1711
1745
|
|
|
@@ -81,7 +81,7 @@ Determines whether this feature object includes all of the specified features.
|
|
|
81
81
|
|
|
82
82
|
| Name | Type |
|
|
83
83
|
| :------ | :------ |
|
|
84
|
-
| `...features` |
|
|
84
|
+
| `...features` | [`FeatureElementOrCompatibleArray`](../README.md#featureelementorcompatiblearray)[] |
|
|
85
85
|
|
|
86
86
|
#### Returns
|
|
87
87
|
|
|
@@ -103,8 +103,8 @@ ___
|
|
|
103
103
|
Creates a new feature object from this feature by removing elementary features that are not
|
|
104
104
|
available inside a particular environment.
|
|
105
105
|
|
|
106
|
-
This method is useful to selectively exclude features that are not available
|
|
107
|
-
|
|
106
|
+
This method is useful to selectively exclude features that are not available in environments
|
|
107
|
+
that require strict mode code, or inside web workers.
|
|
108
108
|
|
|
109
109
|
#### Parameters
|
|
110
110
|
|
package/lib/encode.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FeatureElementOrCompatibleArray } from './feature';
|
|
2
2
|
|
|
3
3
|
export interface EncodeOptions
|
|
4
4
|
{
|
|
@@ -9,7 +9,7 @@ export interface EncodeOptions
|
|
|
9
9
|
* ensures maximum compatibility but also generates the largest code.
|
|
10
10
|
* To generate shorter code, specify all features available in all target engines explicitly.
|
|
11
11
|
*/
|
|
12
|
-
features?:
|
|
12
|
+
features?: FeatureElementOrCompatibleArray;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* This option controls the type of code generated from the given input.
|
package/lib/feature-all.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export interface FeatureAll
|
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
54
|
*
|
|
55
|
-
* Available in Firefox 90+.
|
|
55
|
+
* Available in Chrome, Edge, Firefox 90+, Opera, and Node.js 16.6+.
|
|
56
56
|
*/
|
|
57
57
|
AT: ElementaryFeature;
|
|
58
58
|
|
|
@@ -61,11 +61,11 @@ export interface FeatureAll
|
|
|
61
61
|
*
|
|
62
62
|
* @remarks
|
|
63
63
|
*
|
|
64
|
-
* Available in Chrome, Edge, Firefox, Internet Explorer 10+, Safari, Opera, Android Browser, and Node.js 16+. This feature is not available inside web workers in Safari before 10.
|
|
64
|
+
* Available in Chrome, Edge, Firefox, Internet Explorer 10+, Safari, Opera, Android Browser, and Node.js 16.0+. This feature is not available inside web workers in Safari before 10.
|
|
65
65
|
*/
|
|
66
66
|
ATOB: ElementaryFeature;
|
|
67
67
|
|
|
68
|
-
/**
|
|
68
|
+
/** Features available in the current environment. */
|
|
69
69
|
AUTO: PredefinedFeature;
|
|
70
70
|
|
|
71
71
|
/**
|
|
@@ -96,27 +96,27 @@ export interface FeatureAll
|
|
|
96
96
|
/**
|
|
97
97
|
* Features available in the current stable versions of Chrome, Edge and Opera.
|
|
98
98
|
*
|
|
99
|
-
* An alias for `
|
|
99
|
+
* An alias for `CHROME_92`.
|
|
100
100
|
*/
|
|
101
101
|
CHROME: PredefinedFeature;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
* Features available in Chrome
|
|
104
|
+
* Features available in Chrome 92, Edge 92 and Opera 78 or later.
|
|
105
105
|
*
|
|
106
106
|
* @remarks
|
|
107
107
|
*
|
|
108
|
-
* This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `CHROME` or `CHROME_PREV` instead of `
|
|
108
|
+
* This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `CHROME` or `CHROME_PREV` instead of `CHROME_92` for long term support.
|
|
109
109
|
*
|
|
110
110
|
* @see
|
|
111
111
|
*
|
|
112
112
|
* [Engine Support Policy](https://github.com/fasttime/JScrewIt#engine-support-policy)
|
|
113
113
|
*/
|
|
114
|
-
|
|
114
|
+
CHROME_92: PredefinedFeature;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Features available in the previous to current versions of Chrome and Edge.
|
|
118
118
|
*
|
|
119
|
-
* An alias for `
|
|
119
|
+
* An alias for `CHROME_92`.
|
|
120
120
|
*/
|
|
121
121
|
CHROME_PREV: PredefinedFeature;
|
|
122
122
|
|
|
@@ -204,15 +204,6 @@ export interface FeatureAll
|
|
|
204
204
|
*/
|
|
205
205
|
ESC_REGEXP_SLASH: ElementaryFeature;
|
|
206
206
|
|
|
207
|
-
/**
|
|
208
|
-
* Existence of the global object sidebar having the string representation "\[object External\]".
|
|
209
|
-
*
|
|
210
|
-
* @remarks
|
|
211
|
-
*
|
|
212
|
-
* Available in Firefox. This feature is not available inside web workers.
|
|
213
|
-
*/
|
|
214
|
-
EXTERNAL: ElementaryFeature;
|
|
215
|
-
|
|
216
207
|
/**
|
|
217
208
|
* Features available in the current stable version of Firefox.
|
|
218
209
|
*
|
|
@@ -238,7 +229,7 @@ export interface FeatureAll
|
|
|
238
229
|
*
|
|
239
230
|
* @remarks
|
|
240
231
|
*
|
|
241
|
-
* This feature may be replaced or removed in the near future when current browser versions become obsolete.
|
|
232
|
+
* This feature may be replaced or removed in the near future when current browser versions become obsolete.
|
|
242
233
|
*
|
|
243
234
|
* @see
|
|
244
235
|
*
|
|
@@ -251,7 +242,7 @@ export interface FeatureAll
|
|
|
251
242
|
*
|
|
252
243
|
* @remarks
|
|
253
244
|
*
|
|
254
|
-
* This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `FF` instead of `FF_90` for long term support.
|
|
245
|
+
* 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_90` for long term support.
|
|
255
246
|
*
|
|
256
247
|
* @see
|
|
257
248
|
*
|
|
@@ -269,7 +260,7 @@ export interface FeatureAll
|
|
|
269
260
|
/**
|
|
270
261
|
* Features available in the previous to current version of Firefox.
|
|
271
262
|
*
|
|
272
|
-
* An alias for `
|
|
263
|
+
* An alias for `FF_90`.
|
|
273
264
|
*/
|
|
274
265
|
FF_PREV: PredefinedFeature;
|
|
275
266
|
|
|
@@ -503,8 +494,11 @@ export interface FeatureAll
|
|
|
503
494
|
/** Features available in Node.js 15. */
|
|
504
495
|
NODE_15: PredefinedFeature;
|
|
505
496
|
|
|
506
|
-
/** Features available in Node.js 16
|
|
507
|
-
|
|
497
|
+
/** Features available in Node.js 16.0 to 16.5. */
|
|
498
|
+
NODE_16_0: PredefinedFeature;
|
|
499
|
+
|
|
500
|
+
/** Features available in Node.js 16.6 or later. */
|
|
501
|
+
NODE_16_6: PredefinedFeature;
|
|
508
502
|
|
|
509
503
|
/** Features available in Node.js 4. */
|
|
510
504
|
NODE_4: PredefinedFeature;
|
|
@@ -552,6 +546,15 @@ export interface FeatureAll
|
|
|
552
546
|
*/
|
|
553
547
|
NO_V8_SRC: ElementaryFeature;
|
|
554
548
|
|
|
549
|
+
/**
|
|
550
|
+
* Existence of the global function location.constructor whose string representation starts with "\[object L"
|
|
551
|
+
*
|
|
552
|
+
* @remarks
|
|
553
|
+
*
|
|
554
|
+
* Available in Internet Explorer and Safari before 10. This feature is not available inside web workers.
|
|
555
|
+
*/
|
|
556
|
+
OBJECT_L_LOCATION_CTOR: ElementaryFeature;
|
|
557
|
+
|
|
555
558
|
/**
|
|
556
559
|
* Having the function Object.prototype.toString return the string "\[object Undefined\]" when invoked without a binding.
|
|
557
560
|
*
|
|
@@ -561,6 +564,24 @@ export interface FeatureAll
|
|
|
561
564
|
*/
|
|
562
565
|
OBJECT_UNDEFINED: ElementaryFeature;
|
|
563
566
|
|
|
567
|
+
/**
|
|
568
|
+
* The property that the string representation of the global object constructor starts with "\[object W"
|
|
569
|
+
*
|
|
570
|
+
* @remarks
|
|
571
|
+
*
|
|
572
|
+
* Available in Internet Explorer and Safari before 10. This feature is not available inside web workers in Safari before 10.
|
|
573
|
+
*/
|
|
574
|
+
OBJECT_W_CTOR: ElementaryFeature;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Existence of the global object location.constructor whose string representation starts with "\[object " and ends with "LocationConstructor\]"
|
|
578
|
+
*
|
|
579
|
+
* @remarks
|
|
580
|
+
*
|
|
581
|
+
* Available in Safari before 10.
|
|
582
|
+
*/
|
|
583
|
+
OLD_SAFARI_LOCATION_CTOR: ElementaryFeature;
|
|
584
|
+
|
|
564
585
|
/**
|
|
565
586
|
* Existence of the global object Intl having the string representation "\[object Object\]"
|
|
566
587
|
*
|
|
@@ -607,9 +628,6 @@ export interface FeatureAll
|
|
|
607
628
|
/** Features available in Safari 7.1 and Safari 8. */
|
|
608
629
|
SAFARI_7_1: PredefinedFeature;
|
|
609
630
|
|
|
610
|
-
/** An alias for `SAFARI_7_1`. */
|
|
611
|
-
SAFARI_8: PredefinedFeature;
|
|
612
|
-
|
|
613
631
|
/** Features available in Safari 9. */
|
|
614
632
|
SAFARI_9: PredefinedFeature;
|
|
615
633
|
|
|
@@ -693,7 +711,6 @@ type ElementaryFeatureName =
|
|
|
693
711
|
| 'ESC_HTML_QUOT_ONLY'
|
|
694
712
|
| 'ESC_REGEXP_LF'
|
|
695
713
|
| 'ESC_REGEXP_SLASH'
|
|
696
|
-
| 'EXTERNAL'
|
|
697
714
|
| 'FF_SRC'
|
|
698
715
|
| 'FILL'
|
|
699
716
|
| 'FLAT'
|
|
@@ -719,7 +736,10 @@ type ElementaryFeatureName =
|
|
|
719
736
|
| 'NO_IE_SRC'
|
|
720
737
|
| 'NO_OLD_SAFARI_ARRAY_ITERATOR'
|
|
721
738
|
| 'NO_V8_SRC'
|
|
739
|
+
| 'OBJECT_L_LOCATION_CTOR'
|
|
722
740
|
| 'OBJECT_UNDEFINED'
|
|
741
|
+
| 'OBJECT_W_CTOR'
|
|
742
|
+
| 'OLD_SAFARI_LOCATION_CTOR'
|
|
723
743
|
| 'PLAIN_INTL'
|
|
724
744
|
| 'REGEXP_STRING_ITERATOR'
|
|
725
745
|
| 'SELF_OBJ'
|
|
@@ -738,7 +758,7 @@ ElementaryFeatureName
|
|
|
738
758
|
| 'ANDRO_4_4'
|
|
739
759
|
| 'AUTO'
|
|
740
760
|
| 'BROWSER'
|
|
741
|
-
| '
|
|
761
|
+
| 'CHROME_92'
|
|
742
762
|
| 'COMPACT'
|
|
743
763
|
| 'DEFAULT'
|
|
744
764
|
| 'FF_78'
|
|
@@ -755,7 +775,8 @@ ElementaryFeatureName
|
|
|
755
775
|
| 'NODE_12'
|
|
756
776
|
| 'NODE_13'
|
|
757
777
|
| 'NODE_15'
|
|
758
|
-
| '
|
|
778
|
+
| 'NODE_16_0'
|
|
779
|
+
| 'NODE_16_6'
|
|
759
780
|
| 'NODE_4'
|
|
760
781
|
| 'NODE_5'
|
|
761
782
|
| 'SAFARI_10'
|