Skip to content

Latest commit

 

History

History
302 lines (162 loc) · 12.1 KB

CHANGELOG.md

File metadata and controls

302 lines (162 loc) · 12.1 KB

Unreleased

8.11.0 (2024-10-30)

8.10.0 (2024-10-16)

Enhancements

  • The bundled @babel/core dependency has been updated from requiring ^7.16.0 to requiring 7.25.7 (#36244).
  • The bundled @babel/plugin-transform-react-jsx dependency has been updated from requiring ^7.16.0 to requiring 7.25.7 (#36244).
  • The bundled @babel/plugin-transform-runtime dependency has been updated from requiring ^7.16.0 to requiring 7.25.7 (#36244).
  • The bundled @babel/preset-env dependency has been updated from requiring ^7.16.0 to requiring 7.25.7 (#36244).
  • The bundled @babel/preset-typescript dependency has been updated from requiring ^7.16.0 to requiring 7.25.7 (#36244).
  • The bundled @babel/runtime dependency has been updated from requiring ^7.16.0 to requiring 7.25.7 (#36244).

8.9.0 (2024-10-03)

Bug Fixes

  • Fix a bug in 8.8.1 due to missing files in the published package (#65481).

8.8.0 (2024-09-19)

Internal

  • Added addPolyfillComments option. When used, it will automatically add magic comments to mark files that need wp-polyfill (#65292).

8.7.0 (2024-09-05)

8.6.0 (2024-08-21)

8.5.0 (2024-08-07)

8.4.0 (2024-07-24)

8.3.0 (2024-07-10)

8.2.0 (2024-06-26)

8.1.0 (2024-06-15)

8.0.0 (2024-05-31)

Breaking Changes

Note If you're using @wordpress/scripts for building JS scripts to target WordPress 6.5 or earlier, you should not upgrade to this version and continue using @wordpress/babel-preset-default@7.

  • Use React's automatic runtime to transform JSX (#61692).
  • Increase the minimum required Node.js version to v18.12.0 matching long-term support releases (#31270). Learn more about Node.js releases.

7.42.0 (2024-05-16)

7.41.0 (2024-05-02)

7.40.0 (2024-04-19)

7.39.0 (2024-04-03)

7.38.0 (2024-03-21)

7.37.0 (2024-03-06)

7.36.0 (2024-02-21)

7.35.0 (2024-02-09)

7.34.0 (2024-01-24)

7.33.0 (2024-01-10)

7.32.0 (2023-12-13)

7.31.0 (2023-11-29)

7.30.0 (2023-11-16)

7.29.0 (2023-11-02)

7.28.0 (2023-10-18)

7.27.0 (2023-10-05)

Internal

  • The bundled browserslist dependency has been updated from requiring ^4.21.9 to requiring ^4.21.10 (#54657).

Enhancements

  • Use react as the default scope variable for JSX pragma instead of @wordpress/element.

7.26.0 (2023-09-20)

7.25.0 (2023-08-31)

7.24.0 (2023-08-16)

7.23.0 (2023-08-10)

7.22.0 (2023-07-20)

7.21.0 (2023-07-05)

7.20.0 (2023-06-23)

7.19.0 (2023-06-07)

Enhancements

  • Enable the bugfixes option in @babel/preset-env to remove unneeded transpilation (#50994).

7.18.0 (2023-05-24)

7.17.0 (2023-05-10)

7.16.0 (2023-04-26)

7.15.0 (2023-04-12)

7.14.0 (2023-03-29)

Enhancements

  • Exclude IE-only setImmediate/clearImmediate from list of polyfills.

7.13.0 (2023-03-15)

7.12.0 (2023-03-01)

7.11.0 (2023-02-15)

7.10.0 (2023-02-01)

7.9.0 (2023-01-11)

7.8.0 (2023-01-02)

7.7.0 (2022-12-14)

7.6.0 (2022-11-16)

7.5.0 (2022-11-02)

7.4.0 (2022-10-19)

7.3.0 (2022-10-05)

7.2.0 (2022-09-21)

7.0.0 (2022-08-24)

Breaking Changes

  • Increase the minimum Node.js version to 14 (#43141).

6.4.0 (2021-11-15)

Enhancements

  • The bundled @babel/core dependency has been updated from requiring ^7.13.19 to requiring ^7.16.0 (#36244).
  • The bundled @babel/plugin-transform-react-jsx dependency has been updated from requiring ^7.12.7 to requiring ^7.16.0 (#36244).
  • The bundled @babel/plugin-transform-runtime dependency has been updated from requiring ^7.13.10 to requiring ^7.16.0 (#36244).
  • The bundled @babel/preset-env dependency has been updated from requiring ^7.13.10 to requiring ^7.16.0 (#36244).
  • The bundled @babel/preset-typescript dependency has been updated from requiring ^7.13.10 to requiring ^7.16.0 (#36244).
  • The bundled @babel/runtime dependency has been updated from requiring ^7.13.10 to requiring ^7.16.0 (#36244).
  • The bundled browserslist dependency has been updated from requiring ^4.16.6 to requiring ^4.17.6 (#36244).
  • The bundled core-js dependency has been updated from requiring ^3.12.1 to requiring ^3.19.1 (#36244).

6.2.0 (2021-05-31)

New Features

  • New build/polyfill.js (minified version – build/polyfill.min.js) file is available that polyfills ECMAScript features missing in the browsers supported by the WordPress project. It's a drop-in replacement for the deprecated @babel/polyfill package (#31279).

6.1.0 (2021-05-20)

Bug Fixes

  • Configure @babel/preset-env preset to respect a local Browserslist configuration.

6.0.0 (2021-05-14)

Breaking Changes

5.2.0 (2021-04-06)

Enhancements

  • The bundled @babel/core dependency has been updated from requiring ^7.12.9 to requiring ^7.13.10 (#30018).
  • The bundled @babel/plugin-transform-runtime dependency has been updated from requiring ^7.12.1 to requiring ^7.13.10 (#30018).
  • The bundled @babel/preset-env dependency has been updated from requiring ^7.12.7 to requiring ^7.13.10 (#30018).
  • The bundled @babel/preset-typescript dependency has been updated from requiring ^7.12.7 to requiring ^7.13.10 (#30018).
  • The bundled @babel/runtime dependency has been updated from requiring ^7.12.5 to requiring ^7.13.10 (#30018).

5.1.0 (2021-03-17)

New Features

  • Added @babel/preset-typescript so that the preset can by default transpile TypeScript files, too.

5.0.0 (2021-01-21)

Breaking Changes

  • Increase the minimum Node.js version to 12 (#27934).

4.20.0 (2020-12-17)

New Features

  • The bundled @babel/core dependency has been updated from requiring ^7.11.6 to requiring ^7.12.9. All other Babel plugins were updated to the latest version (see Highlights).

4.14.0 (2020-05-27)

Breaking Changes

  • Revert enabling the shippedProposals flag. That flag enables the use of stage-3 proposals, but the goal of this preset is to only support stage-4 features. #22083

New Features

  • The bundled @babel/core dependency has been updated from requiring ^7.9.0 to requiring ^7.11.6. All other Babel plugins were updated to the latest version (see Highlights: 7.11 and 7.10).

4.12.0 (2020-04-15)

New Features

  • The bundled @babel/core dependency has been updated from requiring ^7.8.3 to requiring ^7.9.0. All other Babel plugins were updated to the latest version (see Highlights).

4.10.0 (2020-02-04)

New Features

  • The bundled @babel/core dependency has been updated from requiring ^7.4.4 to requiring ^7.8.3. All other Babel plugins were updated to the latest version. @babel/preset-env has now ESMAScript 2020 support enabled by default (see Highlights).

4.5.0 (2019-08-29)

Bug Fixes

  • Added missing @wordpress/element dependency which is used internally.

4.4.0 (2019-08-05)

Bug Fixes

  • Configure Babel to target your current version of Node as described in Jest docs.
  • Added missing core-js dependency (#16259).

4.2.0 (2019-05-21)

New Features

  • Handle <></> JSX Fragments with @wordpress/element Fragment (#15120).
  • The bundled @babel/core dependency has been updated from requiring ^7.2.2 to requiring ^7.4.4. Babel preset is now using core-js@3 instead of core-js@2 (see Migration Guide).

4.0.0 (2019-03-06)

Breaking Changes

  • Removed babel-core dependency acting as Babel 7 bridge (#13922. Ensure all references to babel-core are replaced with @babel/core .
  • Preset updated to include @wordpress/babel-plugin-import-jsx-pragma plugin integration (#13540). It should no longer be explicitly included in your Babel config.

Bug Fixes

  • The runtime transform no longer disables the regenerator option. This should resolve issues where a file generated using the preset would assume the presence of a regeneratorRuntime object in the global scope. While this is not considered a breaking change, you may be mindful to consider that with transformed output now explicitly importing the runtime regenerator, bundle sizes may increase if you do not otherwise mitigate the additional import by either (a) overriding the option in your own Babel configuration extensions or (b) redefining the resolved value of @babel/runtime/regenerator using a feature like Webpack's externals option.

3.0.0 (2018-09-30)

Breaking Changes

  • The configured @babel/preset-env preset will no longer pass useBuiltIns: 'usage' as an option. It is therefore expected that a polyfill serve in its place, if necessary.

2.1.0 (2018-09-05)

New Features

  • Plugin updated to work with the stable version of Babel 7 (#9171).

2.0.0 (2018-07-12)

Breaking Changes

  • Updated code to work with Babel 7 (#7832)

Internal

  • Moved @WordPress/packages repository to @WordPress/gutenberg (#7805)

1.3.0 (2018-05-22)

New Features

  • Added support for async generator functions (#126)

1.2.1 (2018-05-18)

Internal

  • Fix: Standardized package.json format (#119)