jscrewit 2.39.0 → 2.41.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 +105 -33
- 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 +178 -74
- 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/lib/feature-all.d.ts
CHANGED
|
@@ -232,16 +232,16 @@ export interface FeatureAll
|
|
|
232
232
|
/**
|
|
233
233
|
* Features available in the current stable version of Firefox.
|
|
234
234
|
*
|
|
235
|
-
* An alias for `
|
|
235
|
+
* An alias for `FF_134`.
|
|
236
236
|
*/
|
|
237
237
|
FF: PredefinedFeature;
|
|
238
238
|
|
|
239
239
|
/**
|
|
240
|
-
* Features available in Firefox 131
|
|
240
|
+
* Features available in Firefox 131 to 133.
|
|
241
241
|
*
|
|
242
242
|
* @remarks
|
|
243
243
|
*
|
|
244
|
-
* This feature may be replaced or removed in the near future when current browser versions become obsolete.
|
|
244
|
+
* This feature may be replaced or removed in the near future when current browser versions become obsolete.
|
|
245
245
|
*
|
|
246
246
|
* @see
|
|
247
247
|
*
|
|
@@ -249,12 +249,25 @@ export interface FeatureAll
|
|
|
249
249
|
*/
|
|
250
250
|
FF_131: PredefinedFeature;
|
|
251
251
|
|
|
252
|
+
/**
|
|
253
|
+
* Features available in Firefox 134 or later.
|
|
254
|
+
*
|
|
255
|
+
* @remarks
|
|
256
|
+
*
|
|
257
|
+
* 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.
|
|
258
|
+
*
|
|
259
|
+
* @see
|
|
260
|
+
*
|
|
261
|
+
* [Engine Support Policy](https://github.com/fasttime/JScrewIt#engine-support-policy)
|
|
262
|
+
*/
|
|
263
|
+
FF_134: PredefinedFeature;
|
|
264
|
+
|
|
252
265
|
/**
|
|
253
266
|
* Features available in Firefox 90 to 130.
|
|
254
267
|
*
|
|
255
268
|
* @remarks
|
|
256
269
|
*
|
|
257
|
-
* This feature may be replaced or removed in the near future when current browser versions become obsolete. Use `FF_ESR`
|
|
270
|
+
* 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.
|
|
258
271
|
*
|
|
259
272
|
* @see
|
|
260
273
|
*
|
|
@@ -272,7 +285,7 @@ export interface FeatureAll
|
|
|
272
285
|
/**
|
|
273
286
|
* Features available in the previous to current version of Firefox.
|
|
274
287
|
*
|
|
275
|
-
* An alias for `
|
|
288
|
+
* An alias for `FF_134`.
|
|
276
289
|
*/
|
|
277
290
|
FF_PREV: PredefinedFeature;
|
|
278
291
|
|
|
@@ -432,7 +445,7 @@ export interface FeatureAll
|
|
|
432
445
|
*
|
|
433
446
|
* @remarks
|
|
434
447
|
*
|
|
435
|
-
* Available in Chrome, Edge, Firefox 131+, Opera, and Node.js 22+.
|
|
448
|
+
* Available in Chrome, Edge, Firefox 131+, Safari 18.4+, Opera, and Node.js 22.0+.
|
|
436
449
|
*/
|
|
437
450
|
ITERATOR_HELPER: ElementaryFeature;
|
|
438
451
|
|
|
@@ -463,14 +476,23 @@ export interface FeatureAll
|
|
|
463
476
|
*/
|
|
464
477
|
LOCALE_NUMERALS: ElementaryFeature;
|
|
465
478
|
|
|
479
|
+
/**
|
|
480
|
+
* Localized number formatting for Bengali.
|
|
481
|
+
*
|
|
482
|
+
* @remarks
|
|
483
|
+
*
|
|
484
|
+
* 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+.
|
|
485
|
+
*/
|
|
486
|
+
LOCALE_NUMERALS_BN: ElementaryFeature;
|
|
487
|
+
|
|
466
488
|
/**
|
|
467
489
|
* Extended localized number formatting.
|
|
468
490
|
*
|
|
469
|
-
* 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 \("رقم"\),
|
|
491
|
+
* 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 \("ناعدد"\).
|
|
470
492
|
*
|
|
471
493
|
* @remarks
|
|
472
494
|
*
|
|
473
|
-
* Available in Chrome, Edge, Firefox, Internet Explorer 11 on Windows 10, Safari 10.0+, Opera, Android Browser 4.4, and Node.js 13+.
|
|
495
|
+
* 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+.
|
|
474
496
|
*/
|
|
475
497
|
LOCALE_NUMERALS_EXT: ElementaryFeature;
|
|
476
498
|
|
|
@@ -537,9 +559,12 @@ export interface FeatureAll
|
|
|
537
559
|
/** Features available in Node.js 16.6 to 21. */
|
|
538
560
|
NODE_16_6: PredefinedFeature;
|
|
539
561
|
|
|
540
|
-
/** Features available in Node.js 22
|
|
562
|
+
/** Features available in Node.js 22.0 to 22.11 and Node.js 23.0 to 23.2. */
|
|
541
563
|
NODE_22: PredefinedFeature;
|
|
542
564
|
|
|
565
|
+
/** Features available in Node.js 22.12 to 22.14 and Node.js 23.3 or later. */
|
|
566
|
+
NODE_22_12: PredefinedFeature;
|
|
567
|
+
|
|
543
568
|
/** Features available in Node.js 4. */
|
|
544
569
|
NODE_4: PredefinedFeature;
|
|
545
570
|
|
|
@@ -601,7 +626,7 @@ export interface FeatureAll
|
|
|
601
626
|
*
|
|
602
627
|
* @remarks
|
|
603
628
|
*
|
|
604
|
-
* Available in Firefox before 131, Safari 9
|
|
629
|
+
* Available in Firefox before 131, Safari 9+ before 18.4, and Node.js 0.12+ before 22.0.
|
|
605
630
|
*/
|
|
606
631
|
OBJECT_ARRAY_ENTRIES_CTOR: ElementaryFeature;
|
|
607
632
|
|
|
@@ -662,7 +687,7 @@ export interface FeatureAll
|
|
|
662
687
|
/**
|
|
663
688
|
* Features available in the current stable version of Safari.
|
|
664
689
|
*
|
|
665
|
-
* An alias for `
|
|
690
|
+
* An alias for `SAFARI_18_4`.
|
|
666
691
|
*/
|
|
667
692
|
SAFARI: PredefinedFeature;
|
|
668
693
|
|
|
@@ -690,8 +715,11 @@ export interface FeatureAll
|
|
|
690
715
|
/** Features available in Safari 17.4 to 17.6. */
|
|
691
716
|
SAFARI_17_4: PredefinedFeature;
|
|
692
717
|
|
|
693
|
-
/** Features available in Safari 18
|
|
694
|
-
|
|
718
|
+
/** Features available in Safari 18.0 to 18.3. */
|
|
719
|
+
SAFARI_18_0: PredefinedFeature;
|
|
720
|
+
|
|
721
|
+
/** Features available in Safari 18.4 or later. */
|
|
722
|
+
SAFARI_18_4: PredefinedFeature;
|
|
695
723
|
|
|
696
724
|
/** Features available in Safari 7.0. */
|
|
697
725
|
SAFARI_7_0: PredefinedFeature;
|
|
@@ -719,7 +747,7 @@ export interface FeatureAll
|
|
|
719
747
|
*
|
|
720
748
|
* @remarks
|
|
721
749
|
*
|
|
722
|
-
* Available in Firefox, Internet Explorer 11, Safari 10.0+ before 18, Android Browser 4.4, and Node.js 13
|
|
750
|
+
* 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.
|
|
723
751
|
*/
|
|
724
752
|
SHORT_LOCALES: ElementaryFeature;
|
|
725
753
|
|
|
@@ -802,6 +830,7 @@ type ElementaryFeatureName =
|
|
|
802
830
|
| 'JAPANESE_INFINITY'
|
|
803
831
|
| 'LOCALE_INFINITY'
|
|
804
832
|
| 'LOCALE_NUMERALS'
|
|
833
|
+
| 'LOCALE_NUMERALS_BN'
|
|
805
834
|
| 'LOCALE_NUMERALS_EXT'
|
|
806
835
|
| 'LOCATION'
|
|
807
836
|
| 'MOZILLA'
|
|
@@ -838,6 +867,7 @@ ElementaryFeatureName
|
|
|
838
867
|
| 'COMPACT'
|
|
839
868
|
| 'DEFAULT'
|
|
840
869
|
| 'FF_131'
|
|
870
|
+
| 'FF_134'
|
|
841
871
|
| 'FF_90'
|
|
842
872
|
| 'IE_10'
|
|
843
873
|
| 'IE_11'
|
|
@@ -853,6 +883,7 @@ ElementaryFeatureName
|
|
|
853
883
|
| 'NODE_16_0'
|
|
854
884
|
| 'NODE_16_6'
|
|
855
885
|
| 'NODE_22'
|
|
886
|
+
| 'NODE_22_12'
|
|
856
887
|
| 'NODE_4'
|
|
857
888
|
| 'NODE_5'
|
|
858
889
|
| 'NODE_7_6'
|
|
@@ -864,7 +895,8 @@ ElementaryFeatureName
|
|
|
864
895
|
| 'SAFARI_14_1'
|
|
865
896
|
| 'SAFARI_15_4'
|
|
866
897
|
| 'SAFARI_17_4'
|
|
867
|
-
| '
|
|
898
|
+
| 'SAFARI_18_0'
|
|
899
|
+
| 'SAFARI_18_4'
|
|
868
900
|
| 'SAFARI_7_0'
|
|
869
901
|
| 'SAFARI_7_1'
|
|
870
902
|
| 'SAFARI_9'
|
package/lib/jscrewit.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import type { encode } from './encode';
|
|
4
4
|
import type { Feature } from './feature';
|
|
5
5
|
|
|
6
|
-
export *
|
|
7
|
-
export *
|
|
8
|
-
export *
|
|
6
|
+
export * from './encode';
|
|
7
|
+
export * from './feature';
|
|
8
|
+
export type * from './feature-all';
|
|
9
9
|
|
|
10
10
|
interface JScrewIt
|
|
11
11
|
{
|