diff --git a/CHANGELOG.md b/CHANGELOG.md index c7e031e14660..c19444fa6b5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## Changelog ##### Unreleased +- Nothing + +##### 3.15.0 - 2021.06.21 - Added `RegExp` named capture groups polyfill, [#521](https://github.com/zloirock/core-js/issues/521), [#944](https://github.com/zloirock/core-js/issues/944) - Added `RegExp` `dotAll` flag polyfill, [#792](https://github.com/zloirock/core-js/issues/792), [#944](https://github.com/zloirock/core-js/issues/944) - Added missed polyfills of [Annex B](https://tc39.es/ecma262/#sec-additional-built-in-properties) features (required mainly for some non-browser engines), [#336](https://github.com/zloirock/core-js/issues/336), [#945](https://github.com/zloirock/core-js/issues/945): diff --git a/README.md b/README.md index 2c5a79908412..3732fcd9131b 100644 --- a/README.md +++ b/README.md @@ -119,14 +119,14 @@ Promise.resolve(32).then(x => console.log(x)); // => 32 ### Installation:[⬆](#index) ``` // global version -npm install --save core-js@3.14.0 +npm install --save core-js@3.15.0 // version without global namespace pollution -npm install --save core-js-pure@3.14.0 +npm install --save core-js-pure@3.15.0 // bundled global version -npm install --save core-js-bundle@3.14.0 +npm install --save core-js-bundle@3.15.0 ``` -Already bundled version of `core-js` [on CDN](https://unpkg.com/core-js-bundle@3.14.0) ([minified version](https://unpkg.com/core-js-bundle@3.14.0/minified.js)). +Already bundled version of `core-js` [on CDN](https://unpkg.com/core-js-bundle@3.15.0) ([minified version](https://unpkg.com/core-js-bundle@3.15.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: @@ -216,9 +216,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.14'`. +[`@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.15'`. -> **Warning!** Recommended to specify used minor `core-js` version, like `corejs: '3.14'`, 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.15'`, 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 @@ -273,7 +273,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.14', 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.15', proposals: true }`. #### `@babel/runtime`[⬆](#index) diff --git a/lerna.json b/lerna.json index 44d0bdb2a284..8ff19e589fce 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "3.14.0", + "version": "3.15.0", "packages": [ "packages/*" ] diff --git a/package.json b/package.json index cb13ca8ed2cf..7a507f6de157 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "3.14.0", + "version": "3.15.0", "devDependencies": { "@babel/cli": "^7.14.5", "@babel/core": "^7.14.6", diff --git a/packages/core-js-builder/package.json b/packages/core-js-builder/package.json index da8bef992205..a688262ac33c 100644 --- a/packages/core-js-builder/package.json +++ b/packages/core-js-builder/package.json @@ -1,7 +1,7 @@ { "name": "core-js-builder", "description": "core-js builder", - "version": "3.14.0", + "version": "3.15.0", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git", @@ -9,8 +9,8 @@ }, "main": "index.js", "dependencies": { - "core-js": "3.14.0", - "core-js-compat": "3.14.0", + "core-js": "3.15.0", + "core-js-compat": "3.15.0", "mkdirp": ">=0.5.5 <1", "webpack": ">=4.46.0 <5" }, diff --git a/packages/core-js-bundle/package.json b/packages/core-js-bundle/package.json index f24d6b8193e4..259122b7aaa7 100644 --- a/packages/core-js-bundle/package.json +++ b/packages/core-js-bundle/package.json @@ -1,7 +1,7 @@ { "name": "core-js-bundle", "description": "Standard library", - "version": "3.14.0", + "version": "3.15.0", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git", diff --git a/packages/core-js-compat/README.md b/packages/core-js-compat/README.md index 470558fc3999..70564704a28e 100644 --- a/packages/core-js-compat/README.md +++ b/packages/core-js-compat/README.md @@ -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.14', // used `core-js` version, by default - the latest + version: '3.15', // used `core-js` version, by default - the latest }); console.log(targets); @@ -65,9 +65,9 @@ require('core-js-compat/modules'); // => Array require('core-js-compat').modules; // => Array // the subset of modules which available in the passed `core-js` version: -require('core-js-compat/get-modules-list-for-target-version')('3.14'); // => Array +require('core-js-compat/get-modules-list-for-target-version')('3.15'); // => Array // or -require('core-js-compat').getModulesListForTargetVersion('3.14'); // => Array +require('core-js-compat').getModulesListForTargetVersion('3.15'); // => Array ``` 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). diff --git a/packages/core-js-compat/package.json b/packages/core-js-compat/package.json index 07ae81120d4e..27f3a7562ae1 100644 --- a/packages/core-js-compat/package.json +++ b/packages/core-js-compat/package.json @@ -1,7 +1,7 @@ { "name": "core-js-compat", "description": "core-js compat", - "version": "3.14.0", + "version": "3.15.0", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git", diff --git a/packages/core-js-pure/package.json b/packages/core-js-pure/package.json index 4d22e7402ed5..8c47c9d50d2b 100644 --- a/packages/core-js-pure/package.json +++ b/packages/core-js-pure/package.json @@ -1,7 +1,7 @@ { "name": "core-js-pure", "description": "Standard library", - "version": "3.14.0", + "version": "3.15.0", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git", diff --git a/packages/core-js/internals/shared.js b/packages/core-js/internals/shared.js index 8a07506a2efd..687e25f5591b 100644 --- a/packages/core-js/internals/shared.js +++ b/packages/core-js/internals/shared.js @@ -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.14.0', + version: '3.15.0', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2021 Denis Pushkarev (zloirock.ru)' }); diff --git a/packages/core-js/package.json b/packages/core-js/package.json index ed6106b52da1..67753e6ea868 100644 --- a/packages/core-js/package.json +++ b/packages/core-js/package.json @@ -1,7 +1,7 @@ { "name": "core-js", "description": "Standard library", - "version": "3.14.0", + "version": "3.15.0", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git",