Skip to content

Commit

Permalink
3.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed May 25, 2021
1 parent c412ee2 commit f4307bc
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 20 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog
##### Unreleased
- Nothing

##### 3.13.0 - 2021.05.26
- Accessible `Object#hasOwnProperty` (`Object.hasOwn`) proposal moved to the stage 3, [May 2021 TC39 meeting](https://github.com/babel/proposals/issues/74#issuecomment-848121673)

##### 3.12.1 - 2021.05.09
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ Promise.resolve(32).then(x => console.log(x)); // => 32
### Installation:[](#index)
```
// global version
npm install --save core-js@3.12.1
npm install --save core-js@3.13.0
// version without global namespace pollution
npm install --save core-js-pure@3.12.1
npm install --save core-js-pure@3.13.0
// bundled global version
npm install --save core-js-bundle@3.12.1
npm install --save core-js-bundle@3.13.0
```

Already bundled version of `core-js` [on CDN](https://unpkg.com/core-js-bundle@3.12.1) ([minified version](https://unpkg.com/core-js-bundle@3.12.1/minified.js)).
Already bundled version of `core-js` [on CDN](https://unpkg.com/core-js-bundle@3.13.0) ([minified version](https://unpkg.com/core-js-bundle@3.13.0/minified.js)).

### `postinstall` message[](#index)
The `core-js` project needs your help, so the package shows a message about it after installation. If it causes problems for you, you can disable it:
Expand Down Expand Up @@ -213,9 +213,9 @@ import 'regenerator-runtime/runtime';

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

[`@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.12'`.
[`@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.13'`.

> **Warning!** Recommended to specify used minor `core-js` version, like `corejs: '3.12'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases.
> **Warning!** Recommended to specify used minor `core-js` version, like `corejs: '3.13'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases.
- `useBuiltIns: 'entry'` replaces imports of `core-js` to import only required for a target environment modules. So, for example,
```js
Expand Down Expand Up @@ -270,7 +270,7 @@ import 'core-js/modules/es.array.of';
var array = Array.of(1, 2, 3);
```

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.12', proposals: true }`.
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.13', proposals: true }`.

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

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.12.1",
"version": "3.13.0",
"packages": [
"packages/*"
]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.12.1",
"version": "3.13.0",
"devDependencies": {
"@babel/cli": "^7.14.3",
"@babel/core": "^7.14.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/core-js-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "core-js-builder",
"description": "core-js builder",
"version": "3.12.1",
"version": "3.13.0",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git",
"directory": "packages/core-js-builder"
},
"main": "index.js",
"dependencies": {
"core-js": "3.12.1",
"core-js-compat": "3.12.1",
"core-js": "3.13.0",
"core-js-compat": "3.13.0",
"mkdirp": ">=0.5.5 <1",
"webpack": ">=4.46.0 <5"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js-bundle/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "core-js-bundle",
"description": "Standard library",
"version": "3.12.1",
"version": "3.13.0",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git",
Expand Down
6 changes: 3 additions & 3 deletions packages/core-js-compat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const {
} = require('core-js-compat')({
targets: '> 2.5%', // browserslist query or object of minimum environment versions to support
filter: /^(es|web)\./, // optional filter - string-prefix, regexp or list of modules
version: '3.12', // used `core-js` version, by default - the latest
version: '3.13', // used `core-js` version, by default - the latest
});

console.log(targets);
Expand Down Expand Up @@ -65,9 +65,9 @@ require('core-js-compat/modules'); // => Array<ModuleName>
require('core-js-compat').modules; // => Array<ModuleName>

// the subset of modules which available in the passed `core-js` version:
require('core-js-compat/get-modules-list-for-target-version')('3.12'); // => Array<ModuleName>
require('core-js-compat/get-modules-list-for-target-version')('3.13'); // => Array<ModuleName>
// or
require('core-js-compat').getModulesListForTargetVersion('3.12'); // => Array<ModuleName>
require('core-js-compat').getModulesListForTargetVersion('3.13'); // => Array<ModuleName>
```

If you want to add new / update data about modules required for target engines, [follow this instruction](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md#updating-core-js-compat-data).
2 changes: 1 addition & 1 deletion packages/core-js-compat/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "core-js-compat",
"description": "core-js compat",
"version": "3.12.1",
"version": "3.13.0",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js-pure/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "core-js-pure",
"description": "Standard library",
"version": "3.12.1",
"version": "3.13.0",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/internals/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var store = require('../internals/shared-store');
(module.exports = function (key, value) {
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: '3.12.1',
version: '3.13.0',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
});
2 changes: 1 addition & 1 deletion packages/core-js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "core-js",
"description": "Standard library",
"version": "3.12.1",
"version": "3.13.0",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git",
Expand Down

0 comments on commit f4307bc

Please sign in to comment.