Skip to content

Commit b61f3c3

Browse files
committed
3.25.0
1 parent 7750751 commit b61f3c3

File tree

14 files changed

+1730
-1577
lines changed

14 files changed

+1730
-1577
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Changelog
22
##### Unreleased
3+
- Nothing
4+
5+
##### [3.25.0 - 2022.08.25](https://github.com/zloirock/core-js/releases/tag/v3.25.0)
36
- Added [`Object.prototype.__proto__`](https://tc39.es/ecma262/#sec-object.prototype.__proto__) polyfill
47
- It's optional, legacy, and in some cases (mainly because of developers' mistakes) can cause problems, but [some libraries depend on it](https://github.com/denoland/deno/issues/13321), and most code can't work without the proper libraries' ecosystem
58
- Only for modern engines where this feature is missed (like Deno), it's not installed in IE10- since here we have no proper way setting of the prototype

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ queueMicrotask(() => console.log('called as microtask'));
176176
### Installation:[](#index)
177177
```
178178
// global version
179-
npm install --save core-js@3.24.1
179+
npm install --save core-js@3.25.0
180180
// version without global namespace pollution
181-
npm install --save core-js-pure@3.24.1
181+
npm install --save core-js-pure@3.25.0
182182
// bundled global version
183-
npm install --save core-js-bundle@3.24.1
183+
npm install --save core-js-bundle@3.25.0
184184
```
185185

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

278278
#### `@babel/preset-env`[](#index)
279279

280-
[`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) has `useBuiltIns` option, which optimizes working with global version of `core-js`. With `useBuiltIns` option, you should also set `corejs` option to used version of `core-js`, like `corejs: '3.24'`.
280+
[`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) has `useBuiltIns` option, which optimizes working with global version of `core-js`. With `useBuiltIns` option, you should also set `corejs` option to used version of `core-js`, like `corejs: '3.25'`.
281281

282-
> **Warning!** Recommended to specify used minor `core-js` version, like `corejs: '3.24'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases.
282+
> **Warning!** Recommended to specify used minor `core-js` version, like `corejs: '3.25'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases.
283283
284284
- `useBuiltIns: 'entry'` replaces imports of `core-js` to import only required for a target environment modules. So, for example,
285285
```js
@@ -334,7 +334,7 @@ import 'core-js/modules/es.array.of';
334334
var array = Array.of(1, 2, 3);
335335
```
336336

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

339339
> **Warning!** In the case of `useBuiltIns: 'usage'`, you should not add `core-js` imports by yourself, they will be added automatically.
340340
@@ -370,7 +370,7 @@ Fast JavaScript transpiler `swc` [contains integration with `core-js`](https://s
370370
"env": {
371371
"targets": "> 0.25%, not dead",
372372
"mode": "entry",
373-
"coreJs": "3.24"
373+
"coreJs": "3.25"
374374
}
375375
}
376376
```

deno/corejs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
*Example*:
2626
```js
27-
import 'https://deno.land/x/corejs@v3.24.1/index.js'; // <- at the top of your entry point
27+
import 'https://deno.land/x/corejs@v3.25.0/index.js'; // <- at the top of your entry point
2828

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

0 commit comments

Comments
 (0)