Closed mend-for-github-com[bot] closed 7 months ago
This PR contains the following updates:
7.20.12
7.22.6
By merging this PR, the below vulnerabilities will be automatically resolved:
This PR contains the following updates:
7.20.12
->7.22.6
By merging this PR, the below vulnerabilities will be automatically resolved:
Release Notes
babel/babel (@babel/core)
### [`v7.22.6`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7226-2023-07-04) [Compare Source](https://togithub.com/babel/babel/compare/v7.22.5...v7.22.6) ##### :bug: Bug Fix - `babel-compat-data`, `babel-helper-compilation-targets`, `babel-preset-env` - [#15727](https://togithub.com/babel/babel/pull/15727) Add opera mobile compat data ([@JLHwung](https://togithub.com/JLHwung)) - `babel-plugin-transform-optional-chaining` - [#15739](https://togithub.com/babel/babel/pull/15739) Fix transform of `delete a?.b` in function params ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-helper-split-export-declaration`, `babel-plugin-transform-modules-commonjs` - [#15736](https://togithub.com/babel/babel/pull/15736) fix: Default export for duplicate names ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-compat-data`, `babel-preset-env` - [#15726](https://togithub.com/babel/babel/pull/15726) update compat-data sources ([@JLHwung](https://togithub.com/JLHwung)) - `babel-helpers`, `babel-plugin-proposal-explicit-resource-management`, `babel-runtime-corejs3`, `babel-runtime` - [#15705](https://togithub.com/babel/babel/pull/15705) Fix handling of sync error in `@@asyncDispose` ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-standalone` - [#15707](https://togithub.com/babel/babel/pull/15707) fix: Support transforming Explicit Resource Management in `stage-2` ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-core` - [#15626](https://togithub.com/babel/babel/pull/15626) fix: Works correctly with `--frozen-intrinsics` ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) ##### :house: Internal - `babel-helper-create-class-features-plugin`, `babel-plugin-transform-classes` - [#15700](https://togithub.com/babel/babel/pull/15700) Minor class transform cleanups ([@JLHwung](https://togithub.com/JLHwung)) ##### :microscope: Output optimization - `babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining`, `babel-plugin-transform-class-properties`, `babel-plugin-transform-optional-chaining`, `babel-plugin-transform-typescript` - [#15740](https://togithub.com/babel/babel/pull/15740) Compress output for optional chain with multiple `?.` ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-plugin-proposal-destructuring-private`, `babel-plugin-proposal-do-expressions`, `babel-plugin-proposal-pipeline-operator`, `babel-plugin-transform-class-properties`, `babel-plugin-transform-nullish-coalescing-operator`, `babel-plugin-transform-optional-chaining`, `babel-plugin-transform-private-property-in-object`, `babel-traverse` - [#15741](https://togithub.com/babel/babel/pull/15741) Inject tmp vars in the params list of IIFEs when possible ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ### [`v7.22.5`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7225-2023-06-08) [Compare Source](https://togithub.com/babel/babel/compare/v7.22.1...v7.22.5) ##### :bug: Bug Fix - `babel-preset-env`, `babel-standalone` - [#15675](https://togithub.com/babel/babel/pull/15675) Fix using `syntax-unicode-sets-regex` in standalone ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ##### :nail_care: Polish - `babel-core` - [#15683](https://togithub.com/babel/babel/pull/15683) Suggest `-transform-` when resolving missing plugins ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ### [`v7.22.1`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v72218-2023-09-14) [Compare Source](https://togithub.com/babel/babel/compare/v7.22.0...v7.22.1) ##### :bug: Bug Fix - `babel-helper-validator-identifier` - [#15957](https://togithub.com/babel/babel/pull/15957) Update identifier name definitions to Unicode 15.1 ([@JLHwung](https://togithub.com/JLHwung)) - `babel-helper-module-transforms`, `babel-plugin-transform-modules-amd`, `babel-plugin-transform-modules-commonjs`, `babel-plugin-transform-modules-umd` - [#15898](https://togithub.com/babel/babel/pull/15898) Fix transform of named import with shadowed namespace import ([@dhlolo](https://togithub.com/dhlolo)) ##### :leftwards_arrow_with_hook: Revert - [#15965](https://togithub.com/babel/babel/pull/15965) Revert Node.js 20.6.0 bug workaround ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ### [`v7.22.0`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7220-2023-05-26) [Compare Source](https://togithub.com/babel/babel/compare/v7.21.8...v7.22.0) ##### :rocket: New Feature - `babel-parser`, `babel-plugin-transform-typescript` - [#15497](https://togithub.com/babel/babel/pull/15497) \[ts] Support `import ... =` and `export =` in scripts ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-compat-data`, `babel-core`, `babel-plugin-proposal-unicode-sets-regex`, `babel-plugin-transform-unicode-sets-regex`, `babel-preset-env`, `babel-standalone` - [#15636](https://togithub.com/babel/babel/pull/15636) Add `unicode-sets-regex` transform to `preset-env` ([@JLHwung](https://togithub.com/JLHwung)) - `babel-helpers`, `babel-plugin-proposal-explicit-resource-management`, `babel-plugin-transform-runtime`, `babel-runtime-corejs2`, `babel-runtime-corejs3`, `babel-runtime`, `babel-standalone` - [#15633](https://togithub.com/babel/babel/pull/15633) Implement transform support for `using` declarations ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-plugin-proposal-import-attributes-to-assertions` - [#15620](https://togithub.com/babel/babel/pull/15620) Create `@babel/plugin-proposal-import-attributes-to-assertions` ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-core`, `babel-generator`, `babel-parser`, `babel-plugin-syntax-import-attributes`, `babel-preset-env`, `babel-standalone`, `babel-types` - [#15536](https://togithub.com/babel/babel/pull/15536) Add support for the updated import attributes proposal ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-generator`, `babel-parser`, `babel-traverse`, `babel-types` - [#15520](https://togithub.com/babel/babel/pull/15520) Parse `await using` declarations ([@JLHwung](https://togithub.com/JLHwung)) - `babel-core`, `babel-helper-create-regexp-features-plugin`, `babel-parser` - [#15638](https://togithub.com/babel/babel/pull/15638) Enable regexp unicode sets parsing by default ([@JLHwung](https://togithub.com/JLHwung)) - `babel-helpers`, `babel-plugin-proposal-decorators`, `babel-plugin-syntax-decorators`, `babel-runtime-corejs2`, `babel-runtime-corejs3`, `babel-runtime` - [#15570](https://togithub.com/babel/babel/pull/15570) Add decorators version `2023-05` ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ##### :nail_care: Polish - `babel-plugin-transform-react-constant-elements`, `babel-plugin-transform-react-jsx`, `babel-traverse`, `babel-types` - [#15549](https://togithub.com/babel/babel/pull/15549) Improve type definitions for validators ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) ##### :house: Internal - `babel-parser` - [#15630](https://togithub.com/babel/babel/pull/15630) Unify parsing of import/export modifiers (type/typeof/module) ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-compat-data`, `babel-helper-transform-fixture-test-runner`, `babel-node`, `babel-plugin-proposal-decorators`, `babel-plugin-proposal-duplicate-named-capturing-groups-regex`, `babel-plugin-transform-async-generator-functions`, `babel-plugin-transform-named-capturing-groups-regex`, `babel-plugin-transform-runtime`, `babel-preset-env`, `babel-runtime-corejs3` - [#15531](https://togithub.com/babel/babel/pull/15531) Allow polyfill providers to specify custom `@babel/runtime` pkg ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-core`, `babel-plugin-proposal-async-generator-functions`, `babel-plugin-proposal-class-properties`, `babel-plugin-proposal-class-static-block`, `babel-plugin-proposal-decorators`, `babel-plugin-proposal-dynamic-import`, `babel-plugin-proposal-export-namespace-from`, `babel-plugin-proposal-function-sent`, `babel-plugin-proposal-json-strings`, `babel-plugin-proposal-logical-assignment-operators`, `babel-plugin-proposal-nullish-coalescing-operator`, `babel-plugin-proposal-numeric-separator`, `babel-plugin-proposal-object-rest-spread`, `babel-plugin-proposal-optional-catch-binding`, `babel-plugin-proposal-optional-chaining`, `babel-plugin-proposal-pipeline-operator`, `babel-plugin-proposal-private-methods`, `babel-plugin-proposal-private-property-in-object`, `babel-plugin-proposal-unicode-property-regex`, `babel-preset-env`, `babel-standalone` - [#15614](https://togithub.com/babel/babel/pull/15614) Rename `-proposal-`s that became standard to `-transform-` ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ### [`v7.21.8`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7218-2023-05-02) [Compare Source](https://togithub.com/babel/babel/compare/v7.21.5...v7.21.8) ##### :eyeglasses: Spec Compliance - `babel-parser` - [#15602](https://togithub.com/babel/babel/pull/15602) Remove `using await` restriction in explicitResourceManagement ([@JLHwung](https://togithub.com/JLHwung)) ##### :bug: Bug Fix - `babel-helper-create-class-features-plugin`, `babel-helper-create-regexp-features-plugin` - [#15605](https://togithub.com/babel/babel/pull/15605) Fix backward compat for semver checks in class\®exp feat plugins ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ### [`v7.21.5`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7215-2023-04-28) [Compare Source](https://togithub.com/babel/babel/compare/v7.21.4...v7.21.5) ##### :eyeglasses: Spec Compliance - `babel-generator`, `babel-parser`, `babel-types` - [#15539](https://togithub.com/babel/babel/pull/15539) fix: Remove `mixins` and `implements` for `DeclareInterface` and `InterfaceDeclaration` ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) ##### :bug: Bug Fix - `babel-core`, `babel-generator`, `babel-plugin-transform-modules-commonjs`, `babel-plugin-transform-react-jsx` - [#15515](https://togithub.com/babel/babel/pull/15515) fix: `)` position with `createParenthesizedExpressions` ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-preset-env` - [#15580](https://togithub.com/babel/babel/pull/15580) Add syntax import meta to preset env ([@JLHwung](https://togithub.com/JLHwung)) ##### :nail_care: Polish - `babel-types` - [#15546](https://togithub.com/babel/babel/pull/15546) Improve the layout of generated validators ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-core` - [#15535](https://togithub.com/babel/babel/pull/15535) Use `lt` instead of `lte` to check TS version for .cts config ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ##### :house: Internal - `babel-core` - [#15575](https://togithub.com/babel/babel/pull/15575) Use synchronous `import.meta.resolve` ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-helper-fixtures`, `babel-preset-typescript` - [#15568](https://togithub.com/babel/babel/pull/15568) Handle `.overrides` and `.env` when resolving plugins/presets from fixture options ([@JLHwung](https://togithub.com/JLHwung)) - `babel-helper-create-class-features-plugin`, `babel-helper-create-regexp-features-plugin` - [#15548](https://togithub.com/babel/babel/pull/15548) Use `semver` package to compare versions ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ### [`v7.21.4`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7214-2023-03-31) [Compare Source](https://togithub.com/babel/babel/compare/v7.21.3...v7.21.4) ##### :bug: Bug Fix - `babel-core`, `babel-helper-module-imports`, `babel-preset-typescript` - [#15478](https://togithub.com/babel/babel/pull/15478) Fix support for `import/export` in `.cts` files ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-generator` - [#15496](https://togithub.com/babel/babel/pull/15496) Fix compact printing of non-null assertion operators ([@rtsao](https://togithub.com/rtsao)) ##### :nail_care: Polish - `babel-helper-create-class-features-plugin`, `babel-plugin-proposal-class-properties`, `babel-plugin-transform-typescript`, `babel-traverse` - [#15427](https://togithub.com/babel/babel/pull/15427) Fix moving comments of removed nodes ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ##### :house: Internal - Other - [#15519](https://togithub.com/babel/babel/pull/15519) Update Prettier integration test ([@fisker](https://togithub.com/fisker)) - `babel-parser` - [#15510](https://togithub.com/babel/babel/pull/15510) refactor: introduce `lookaheadInLineCharCode` ([@JLHwung](https://togithub.com/JLHwung)) - `babel-code-frame`, `babel-highlight` - [#15499](https://togithub.com/babel/babel/pull/15499) Polish babel-code-frame highlight test ([@JLHwung](https://togithub.com/JLHwung)) ### [`v7.21.3`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7213-2023-03-14) [Compare Source](https://togithub.com/babel/babel/compare/v7.21.0...v7.21.3) ##### :eyeglasses: Spec Compliance - `babel-parser` - [#15479](https://togithub.com/babel/babel/pull/15479) disallow mixins/implements in flow interface ([@JLHwung](https://togithub.com/JLHwung)) ##### :bug: Bug Fix - `babel-parser` - [#15423](https://togithub.com/babel/babel/pull/15423) \[ts] Allow keywords in tuple labels ([@Harpica](https://togithub.com/Harpica)) - `babel-plugin-transform-typescript` - [#15489](https://togithub.com/babel/babel/pull/15489) Register `var` decls generated by `import ... =` TS transform ([@amoeller](https://togithub.com/amoeller)) - [#15494](https://togithub.com/babel/babel/pull/15494) fix: Consider `export { type foo }` as type-only usage ([@magic-akari](https://togithub.com/magic-akari)) ##### :nail_care: Polish - `babel-traverse`, `babel-types` - [#15484](https://togithub.com/babel/babel/pull/15484) Skip node deprecation warnings when used by an old `@babel` package ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-generator` - [#15480](https://togithub.com/babel/babel/pull/15480) chore: Improve `jsonCompatibleStrings` deprecation ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) ##### :house: Internal - [#15465](https://togithub.com/babel/babel/pull/15465) Add ESLint-readable package name ([@nzakas](https://togithub.com/nzakas)) ##### :microscope: Output optimization - `babel-plugin-transform-typescript`, `babel-preset-typescript` - [#15467](https://togithub.com/babel/babel/pull/15467) Optimize TS enums output ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) ### [`v7.21.0`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7210-2023-02-20) [Compare Source](https://togithub.com/babel/babel/compare/v7.20.12...v7.21.0) ##### :rocket: New Feature - `babel-core`, `babel-helper-create-class-features-plugin`, `babel-plugin-proposal-class-properties`, `babel-plugin-proposal-private-methods`, `babel-plugin-proposal-private-property-in-object` - [#15435](https://togithub.com/babel/babel/pull/15435) feat: Implement `privateFieldsAsSymbols` assumption for classes ([@fwienber](https://togithub.com/fwienber)) - `babel-helper-create-regexp-features-plugin`, `babel-plugin-proposal-regexp-modifiers`, `babel-standalone` - [#15226](https://togithub.com/babel/babel/pull/15226) feat: Support regexp modifiers proposal ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-cli`, `babel-core`, `babel-generator`, `babel-plugin-transform-destructuring`, `babel-plugin-transform-modules-commonjs`, `babel-plugin-transform-react-jsx`, `babel-traverse` - [#15022](https://togithub.com/babel/babel/pull/15022) feat: Generate sourcemaps of friendly call frames ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-parser`, `babel-types` - [#15384](https://togithub.com/babel/babel/pull/15384) \[ts] Support `const` modifier in type parameters ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-generator`, `babel-helpers`, `babel-parser`, `babel-plugin-proposal-decorators`, `babel-plugin-syntax-decorators`, `babel-runtime-corejs2`, `babel-runtime-corejs3`, `babel-runtime` - [#15405](https://togithub.com/babel/babel/pull/15405) Implement decorators as presented at `2023-01` TC39 meeting ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-parser` - [#15114](https://togithub.com/babel/babel/pull/15114) Parser option to allow `new.target` outside functions ([@overlookmotel](https://togithub.com/overlookmotel)) - [#15320](https://togithub.com/babel/babel/pull/15320) Add `annexb: false` parser option to disable Annex B ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-core` - [#15283](https://togithub.com/babel/babel/pull/15283) feat: Support `.cts` as configuration file ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-generator`, `babel-parser`, `babel-plugin-transform-typescript` - [#15381](https://togithub.com/babel/babel/pull/15381) \[ts] Support `export type * from` ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ##### :bug: Bug Fix - `babel-plugin-transform-typescript` - [#15379](https://togithub.com/babel/babel/pull/15379) \[ts5.0] Better inlining of constants in enums ([@liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-core` - [#15366](https://togithub.com/babel/babel/pull/15366) handling circular/shared structures in deep-clone ([@azizghuloum](https://togithub.com/azizghuloum)) - `babel-helper-create-class-features-plugin`, `babel-plugin-proposal-class-properties`, `babel-plugin-proposal-class-static-block`, `babel-plugin-proposal-private-methods`, `babel-plugin-transform-classes`, `babel-plugin-transform-new-target` - [#15406](https://togithub.com/babel/babel/pull/15406) Preserve class elements comments in class transform ([@JLHwung](https://togithub.com/JLHwung)) - `babel-parser`, `babel-plugin-transform-flow-comments`, `babel-plugin-transform-flow-strip-types`, `babel-types` - [#15414](https://togithub.com/babel/babel/pull/15414) \[ts] Fix restrictions for optional parameters ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ##### :nail_care: Polish - `babel-parser` - [#15400](https://togithub.com/babel/babel/pull/15400) polish: improve "`await` as identifier" error in modules ([@JLHwung](https://togithub.com/JLHwung)) ##### :house: Internal - `babel-core` - [#15137](https://togithub.com/babel/babel/pull/15137) Improve CJS compat with ESM-based `@babel/core` ([@nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ##### :microscope: Output optimization - `babel-plugin-transform-typescript` - [#15418](https://togithub.com/babel/babel/pull/15418) \[ts] Handle exponentiation operator in constant folding ([@ehoogeveen-medweb](https://togithub.com/ehoogeveen-medweb))