Skip to content

Commit 6e49392

Browse files
committed
v3.40.0
1 parent 34e4086 commit 6e49392

File tree

18 files changed

+1407
-1218
lines changed

18 files changed

+1407
-1218
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Changelog
22
##### Unreleased
3+
- Nothing
4+
5+
##### [3.40.0 - 2025.01.08](https://github.com/zloirock/core-js/releases/tag/v3.40.0)
6+
- Changes [v3.39.0...v3.40.0](https://github.com/zloirock/core-js/compare/v3.39.0...v3.40.0) (130 commits)
37
- Added [`Error.isError` stage 3 proposal](https://github.com/tc39/proposal-is-error):
48
- Added built-ins:
59
- `Error.isError`

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
215215
### Installation:[](#index)
216216
```sh
217217
// global version
218-
npm install --save core-js@3.39.0
218+
npm install --save core-js@3.40.0
219219
// version without global namespace pollution
220-
npm install --save core-js-pure@3.39.0
220+
npm install --save core-js-pure@3.40.0
221221
// bundled global version
222-
npm install --save core-js-bundle@3.39.0
222+
npm install --save core-js-bundle@3.40.0
223223
```
224224

225225
Or you can use `core-js` [from CDN](https://www.jsdelivr.com/package/npm/core-js-bundle).
@@ -317,10 +317,10 @@ import 'regenerator-runtime/runtime';
317317

318318
#### `@babel/preset-env`[](#index)
319319

320-
[`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) has `useBuiltIns` option, which optimizes the use of the global version of `core-js`. With `useBuiltIns` option, you should also set `corejs` option to the used version of `core-js`, like `corejs: '3.39'`.
320+
[`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) has `useBuiltIns` option, which optimizes the use of the global version of `core-js`. With `useBuiltIns` option, you should also set `corejs` option to the used version of `core-js`, like `corejs: '3.40'`.
321321

322322
> [!IMPORTANT]
323-
> It is recommended to specify the used minor `core-js` version, like `corejs: '3.39'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases.
323+
> It is recommended to specify the used minor `core-js` version, like `corejs: '3.40'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases.
324324
325325
---
326326

@@ -381,7 +381,7 @@ import 'core-js/modules/es.array.of';
381381
var array = Array.of(1, 2, 3);
382382
```
383383

384-
By default, `@babel/preset-env` with `useBuiltIns: 'usage'` option only polyfills stable features, but you can enable polyfilling of proposals by the `proposals` option, as `corejs: { version: '3.39', proposals: true }`.
384+
By default, `@babel/preset-env` with `useBuiltIns: 'usage'` option only polyfills stable features, but you can enable polyfilling of proposals by the `proposals` option, as `corejs: { version: '3.40', proposals: true }`.
385385

386386
> [!IMPORTANT]
387387
> In the case of `useBuiltIns: 'usage'`, you should not add `core-js` imports by yourself, they will be added automatically.
@@ -419,7 +419,7 @@ Fast JavaScript transpiler `swc` [contains integration with `core-js`](https://s
419419
"env": {
420420
"targets": "> 0.25%, not dead",
421421
"mode": "entry",
422-
"coreJs": "3.39"
422+
"coreJs": "3.40"
423423
}
424424
}
425425
```

deno/corejs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
*Example*:
3131
```js
32-
import 'https://deno.land/x/corejs@v3.39.0/index.js'; // <- at the top of your entry point
32+
import 'https://deno.land/x/corejs@v3.40.0/index.js'; // <- at the top of your entry point
3333

3434
Object.hasOwn({ foo: 42 }, 'foo'); // => true
3535

0 commit comments

Comments
 (0)