Skip to content

Commit c5e56b6

Browse files
committed
3.22.0
1 parent 01b057c commit c5e56b6

File tree

13 files changed

+971
-857
lines changed

13 files changed

+971
-857
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.22.0 - 2022.04.15
36
- [Change `Array` by copy proposal](https://github.com/tc39/proposal-change-array-by-copy):
47
- Moved to Stage 3, [March TC39 meeting](https://github.com/babel/proposals/issues/81#issuecomment-1083449843)
58
- Disabled forced replacement and added `/actual/` entry points for methods from this proposal

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.21.1
179+
npm install --save core-js@3.22.0
180180
// version without global namespace pollution
181-
npm install --save core-js-pure@3.21.1
181+
npm install --save core-js-pure@3.22.0
182182
// bundled global version
183-
npm install --save core-js-bundle@3.21.1
183+
npm install --save core-js-bundle@3.22.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.21'`.
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.22'`.
281281

282-
> **Warning!** Recommended to specify used minor `core-js` version, like `corejs: '3.21'`, 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.22'`, 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.21', 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.22', proposals: true }`.
338338

339339
#### `@babel/runtime`[](#index)
340340

@@ -368,7 +368,7 @@ Fast JavaScript transpiler `swc` [contains integration with `core-js`](https://s
368368
"env": {
369369
"targets": "> 0.25%, not dead",
370370
"mode": "entry",
371-
"coreJs": "3.21"
371+
"coreJs": "3.22"
372372
}
373373
}
374374
```

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.21.1/index.js'; // <- at the top of your entry point
27+
import 'https://deno.land/x/corejs@v3.22.0/index.js'; // <- at the top of your entry point
2828

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

0 commit comments

Comments
 (0)