core-js-compat 3.38.1 → 3.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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2024 Denis Pushkarev
1
+ Copyright (c) 2014-2025 Denis Pushkarev
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -27,7 +27,7 @@ const {
27
27
  exclude: [ // optional list / filter of modules to exclude, the signature is similar to `modules` option
28
28
  'web.atob',
29
29
  ],
30
- version: '3.38', // used `core-js` version, by default - the latest
30
+ version: '3.40', // used `core-js` version, by default - the latest
31
31
  inverse: false, // inverse of the result - shows modules that are NOT required for the target environment
32
32
  });
33
33
 
@@ -72,9 +72,9 @@ console.log(targets);
72
72
  `targets` could be [a `browserslist` query](https://github.com/browserslist/browserslist) or a targets object that specifies minimum environment versions to support:
73
73
  ```js
74
74
  // browserslist query:
75
- 'defaults, not IE 11, maintained node versions'
75
+ 'defaults, not IE 11, maintained node versions';
76
76
  // object (sure, all those fields optional):
77
- {
77
+ ({
78
78
  android: '4.0', // Android WebView version
79
79
  bun: '0.1.2', // Bun version
80
80
  chrome: '38', // Chrome version
@@ -98,7 +98,7 @@ console.log(targets);
98
98
  samsung: '14.0', // Samsung Internet version
99
99
  esmodules: true, // That option set target to minimum supporting ES Modules versions of all browsers
100
100
  browsers: '> 0.25%', // Browserslist query or object with target browsers
101
- }
101
+ });
102
102
  ```
103
103
 
104
104
  ### Additional API:
@@ -125,9 +125,9 @@ require('core-js-compat/modules'); // => Array<ModuleName>
125
125
  require('core-js-compat').modules; // => Array<ModuleName>
126
126
 
127
127
  // the subset of modules which available in the passed `core-js` version:
128
- require('core-js-compat/get-modules-list-for-target-version')('3.38'); // => Array<ModuleName>
128
+ require('core-js-compat/get-modules-list-for-target-version')('3.40'); // => Array<ModuleName>
129
129
  // or
130
- require('core-js-compat').getModulesListForTargetVersion('3.38'); // => Array<ModuleName>
130
+ require('core-js-compat').getModulesListForTargetVersion('3.40'); // => Array<ModuleName>
131
131
  ```
132
132
 
133
133
  If you wanna help to improve this data, you could take a look at the related section of [`CONTRIBUTING.md`](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md#how-to-update-core-js-compat-data). The visualization of compatibility data and the browser tests runner is available [here](http://zloirock.github.io/core-js/compat/), the example: