Releases: babel/babel
Releases ยท babel/babel
v7.26.2
v7.26.2 (2024-10-30)
๐ Bug Fix
babel-parser
- #16903 fix: Parse placeholder for TS namespace (@liuxingbaoyu)
- #16937 fix: Account for offsets when creating new Position instances (@DylanPiercey)
babel-generator
- #16948 Fix mapping of tokens with generated nodes in between (@nicolo-ribaudo)
Committers: 6
- Babel Bot (@babel-bot)
- Dylan Piercey (@DylanPiercey)
- Huรกng Jรนnliร ng (@JLHwung)
- Nicolรฒ Ribaudo (@nicolo-ribaudo)
- @liuxingbaoyu
- fisker Cheung (@fisker)
v8.0.0-alpha.13
v8.0.0-alpha.13 (2024-10-25)
In addition to the changelog below, this release includes changes from v7.25.1 to v7.26.0
๐ฅ Breaking Change
babel-generator
,babel-parser
,babel-plugin-transform-typescript
,babel-traverse
,babel-types
- #16731 Add
TSClassImplements|TSInterfaceHeritage
and renameTsExpressionWithTypeArguments
in Babel 8 (@liuxingbaoyu)
- #16731 Add
babel-generator
,babel-parser
,babel-plugin-proposal-pipeline-operator
,babel-plugin-syntax-pipeline-operator
,babel-standalone
- #16801 [Babel 8] Remove
minimal,smart
option of Pipeline Operator (@liuxingbaoyu)
- #16801 [Babel 8] Remove
babel-parser
- #16813 [Flow] Drop support for annotations inside array patterns (@nicolo-ribaudo)
babel-plugin-transform-class-static-block
,babel-plugin-transform-destructuring
,babel-plugin-transform-spread
,babel-traverse
- #16705 [Babel 8] Remove some
Scope
methods (@liuxingbaoyu)
- #16705 [Babel 8] Remove some
babel-generator
,babel-parser
,babel-plugin-proposal-import-wasm-source
,babel-template
,babel-types
- #16770 Remove
importAssertions
parser plugin (@nicolo-ribaudo)
- #16770 Remove
babel-generator
,babel-parser
,babel-standalone
- #16808 Remove
importReflection
parser plugin (@nicolo-ribaudo)
- #16808 Remove
babel-generator
,babel-traverse
,babel-types
- #16807 [Babel 8] Remove
DecimalLiteral
AST (@liuxingbaoyu)
- #16807 [Babel 8] Remove
babel-generator
,babel-parser
,babel-plugin-proposal-destructuring-private
,babel-plugin-syntax-decimal
,babel-standalone
- #16741 [Babel 8] Remove
decimal
from parser (@liuxingbaoyu)
- #16741 [Babel 8] Remove
babel-generator
,babel-parser
,babel-types
- #16733 [Babel 8] Split
typeParameter
ofTSMappedType
(@liuxingbaoyu)
- #16733 [Babel 8] Split
babel-plugin-proposal-async-do-expressions
,babel-traverse
- #16655 Remove some
NodePath
methods (@liuxingbaoyu)
- #16655 Remove some
๐ New Feature
babel-parser
,babel-plugin-syntax-flow
,babel-preset-typescript
- #16792 [Babel 8] Remove
enums
option of flow plugin (@liuxingbaoyu)
- #16792 [Babel 8] Remove
๐ Bug Fix
babel-core
- #16925 Only parse # as comment in .babelignore at line start (@nicolo-ribaudo)
babel-template
,babel-types
- #16830 fix: ObjectPattern used as id inside for-of (@coderaiser)
babel-plugin-transform-async-generator-functions
,babel-plugin-transform-block-scoped-functions
,babel-plugin-transform-block-scoping
- #16398 Refactor
transform-block-scoped-function
(@liuxingbaoyu)
- #16398 Refactor
babel-helper-transform-fixture-test-runner
,babel-node
- #16706 [babel 8] Align
@babel/node
args parsing to Node.js (@nicolo-ribaudo)
- #16706 [babel 8] Align
babel-parser
- #16668 [Babel 8] Fix spelling of error code (@liuxingbaoyu)
๐ Polish
babel-core
- #16836 [Babel 8] fix: Throwing exceptions synchronously (@liuxingbaoyu)
๐ Internal
babel-generator
,babel-helper-create-class-features-plugin
,babel-helper-module-transforms
,babel-plugin-proposal-destructuring-private
,babel-plugin-transform-destructuring
,babel-plugin-transform-modules-commonjs
,babel-plugin-transform-object-rest-spread
,babel-plugin-transform-parameters
,babel-traverse
,babel-types
- #16817 Remove
BABEL_TYPES_8_BREAKING
flag and enable it by default (@liuxingbaoyu)
- #16817 Remove
- Every package
- #16800 [babel 8] Require Node.js
^18.20.0 || ^20.17.0 || >=22.8.0
(@nicolo-ribaudo)
- #16800 [babel 8] Require Node.js
babel-generator
,babel-parser
,babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining
,babel-plugin-syntax-typescript
,babel-plugin-transform-class-properties
,babel-plugin-transform-modules-commonjs
,babel-plugin-transform-private-methods
,babel-plugin-transform-unicode-sets-regex
,babel-traverse
- #16572 Clean all always enabled parser plugins (@liuxingbaoyu)
Committers: 13
- Adrian (@nerodesu017)
- Babel Bot (@babel-bot)
- Dylan Piercey (@DylanPiercey)
- Huรกng Jรนnliร ng (@JLHwung)
- Nicolรฒ Ribaudo (@nicolo-ribaudo)
- Timofei Iatsenko (@timofei-iatsenko)
- Viktar Vaลญฤkieviฤ (@victorenator)
- @j4k0xb
- @keiseiTi
- @liuxingbaoyu
- coderaiser (@coderaiser)
- fisker Cheung (@fisker)
- hwook (@YuHyeonWook)
v7.26.1
v7.26.1 (2024-10-25)
๐ Bug Fix
babel-parser
- #16936 fix(parser): offset internal index locations by startIndex (@DylanPiercey)
Committers: 3
- Dylan Piercey (@DylanPiercey)
- Huรกng Jรนnliร ng (@JLHwung)
- Nicolรฒ Ribaudo (@nicolo-ribaudo)
- @liuxingbaoyu
v7.26.0
v7.26.0 (2024-10-25)
Thanks @timofei-iatsenko for your first PR!
You can find the release blog post with some highlights at https://babeljs.io/blog/2024/10/25/7.26.0.
๐ New Feature
babel-core
,babel-generator
,babel-parser
,babel-plugin-syntax-import-assertions
,babel-plugin-syntax-import-attributes
,babel-preset-env
,babel-standalone
,babel-types
- #16850 Enable import attributes parsing by default (@nicolo-ribaudo)
babel-core
- #16862 feat: support async plugin's pre/post (@timofei-iatsenko)
babel-compat-data
,babel-plugin-proposal-regexp-modifiers
,babel-plugin-transform-regexp-modifiers
,babel-preset-env
,babel-standalone
babel-parser
- #16849 feat: add
startIndex
parser option (@DylanPiercey)
- #16849 feat: add
babel-generator
,babel-parser
,babel-plugin-syntax-flow
- #16841 Always enable parsing of Flow enums (@nicolo-ribaudo)
babel-helpers
,babel-preset-typescript
,babel-runtime-corejs3
- #16794 Support
import()
inrewriteImportExtensions
(@liuxingbaoyu)
- #16794 Support
babel-generator
,babel-parser
- #16708 Add experimental format-preserving mode to
@babel/generator
(@nicolo-ribaudo)
- #16708 Add experimental format-preserving mode to
๐ Bug Fix
babel-core
- #16928 Workaround Node.js bug for parallel loading of TLA modules (@nicolo-ribaudo)
- #16926 Fix loading of modules with TLA in Node.js 23 (@nicolo-ribaudo)
๐ Polish
babel-plugin-proposal-json-modules
,babel-plugin-transform-json-modules
,babel-standalone
- #16924 Rename
proposal-json-modules
totransform-json-modules
(@nicolo-ribaudo)
- #16924 Rename
๐ Internal
babel-code-frame
,babel-highlight
- #16896 Inline
@babel/highlight
in@babel/code-frame
(@nicolo-ribaudo)
- #16896 Inline
babel-generator
,babel-parser
,babel-types
- #16732 Add
kind
toTSModuleDeclaration
(@liuxingbaoyu)
- #16732 Add
๐โโ๏ธ Performance
babel-helper-module-transforms
,babel-plugin-transform-modules-commonjs
- #16882 perf: Improve module transforms (@liuxingbaoyu)
Committers: 5
- Dylan Piercey (@DylanPiercey)
- Huรกng Jรนnliร ng (@JLHwung)
- Nicolรฒ Ribaudo (@nicolo-ribaudo)
- Timofei Iatsenko (@timofei-iatsenko)
- @liuxingbaoyu
v7.25.9
v7.25.9 (2024-10-22)
Thanks @victorenator for your first PR!
๐ Bug Fix
babel-parser
,babel-template
,babel-types
- #16905 fix: Keep type annotations in
syntacticPlaceholders
mode (@liuxingbaoyu)
- #16905 fix: Keep type annotations in
babel-helper-compilation-targets
,babel-preset-env
- Other
- #16884 Analyze
ClassAccessorProperty
to prevent theno-undef
rule (@victorenator)
- #16884 Analyze
๐ Internal
babel-helper-transform-fixture-test-runner
- Every package
- #16917 fix: Accidentally published
tsconfig
files (@liuxingbaoyu)
- #16917 fix: Accidentally published
๐โโ๏ธ Performance
babel-parser
,babel-types
- #16918 perf: Make
VISITOR_KEYS
etc. faster to access (@liuxingbaoyu)
- #16918 perf: Make
Committers: 4
- Babel Bot (@babel-bot)
- Huรกng Jรนnliร ng (@JLHwung)
- Viktar Vaลญฤkieviฤ (@victorenator)
- @liuxingbaoyu
v7.25.8
v7.25.8 (2024-10-10)
๐ Bug Fix
babel-core
- #16888 Restore public API of
resolvePlugin
/resolvePreset
(@nicolo-ribaudo)
- #16888 Restore public API of
๐ Internal
babel-parser
,babel-plugin-proposal-async-do-expressions
,babel-plugin-proposal-destructuring-private
,babel-plugin-proposal-do-expressions
,babel-plugin-proposal-explicit-resource-management
,babel-plugin-proposal-export-default-from
,babel-plugin-proposal-function-bind
,babel-plugin-proposal-function-sent
,babel-plugin-proposal-import-defer
,babel-plugin-proposal-partial-application
,babel-plugin-proposal-throw-expressions
,babel-plugin-transform-async-generator-functions
,babel-plugin-transform-class-static-block
,babel-plugin-transform-dynamic-import
,babel-plugin-transform-export-namespace-from
,babel-plugin-transform-json-strings
,babel-plugin-transform-logical-assignment-operators
,babel-plugin-transform-nullish-coalescing-operator
,babel-plugin-transform-numeric-separator
,babel-plugin-transform-object-rest-spread
,babel-plugin-transform-optional-catch-binding
,babel-plugin-transform-optional-chaining
,babel-plugin-transform-private-property-in-object
,babel-preset-env
- #16824 Inline one-line syntax plugins (@nicolo-ribaudo)
Committers: 3
- Babel Bot (@babel-bot)
- Nicolรฒ Ribaudo (@nicolo-ribaudo)
- @liuxingbaoyu
v7.25.7
v7.25.7 (2024-10-02)
Thanks @DylanPiercey and @YuHyeonWook for your first PRs!
๐ Bug Fix
babel-helper-validator-identifier
babel-traverse
- #16814 fix: issue with node path keys updated on unrelated paths (@DylanPiercey)
babel-plugin-transform-classes
- #16797 Use an inclusion rather than exclusion list for
super()
check (@nicolo-ribaudo)
- #16797 Use an inclusion rather than exclusion list for
babel-generator
- #16788 Fix printing of TS
infer
in compact mode (@nicolo-ribaudo) - #16785 Print TS type annotations for destructuring in assignment pattern (@nicolo-ribaudo)
- #16778 Respect
[no LineTerminator here]
after nodes (@nicolo-ribaudo)
- #16788 Fix printing of TS
๐ Polish
babel-types
- #16852 Add deprecated JSDOC for fields (@liuxingbaoyu)
๐ Internal
babel-core
- #16820 Allow sync loading of ESM when
--experimental-require-module
(@nicolo-ribaudo)
- #16820 Allow sync loading of ESM when
babel-helper-compilation-targets
,babel-helper-plugin-utils
,babel-preset-env
babel-plugin-proposal-destructuring-private
,babel-plugin-syntax-decimal
,babel-plugin-syntax-import-reflection
,babel-standalone
- #16809 Archive syntax-import-reflection and syntax-decimal (@nicolo-ribaudo)
babel-generator
- #16779 Simplify logic for
[no LineTerminator here]
before nodes (@nicolo-ribaudo)
- #16779 Simplify logic for
๐โโ๏ธ Performance
babel-plugin-transform-typescript
- #16875 perf: Avoid extra cloning of namespaces (@liuxingbaoyu)
babel-types
- #16842 perf: Improve @babel/types builders (@liuxingbaoyu)
- #16828 Only access
BABEL_TYPES_8_BREAKING
at startup (@nicolo-ribaudo)
Committers: 8
- Babel Bot (@babel-bot)
- Dylan Piercey (@DylanPiercey)
- Huรกng Jรนnliร ng (@JLHwung)
- Nicolรฒ Ribaudo (@nicolo-ribaudo)
- @liuxingbaoyu
- coderaiser (@coderaiser)
- fisker Cheung (@fisker)
- hwook (@YuHyeonWook)
v7.25.6
v7.25.6 (2024-08-29)
Thanks @j4k0xb for your first PR!
๐ Bug Fix
babel-generator
- #16783 Properly print inner comments in TS array types (@nicolo-ribaudo)
- #16775 fix: jsx whitespace is not properly preserved when retainLines (@liuxingbaoyu)
babel-traverse
- #16727 fix:
path.getAssignmentIdentifiers
may beundefined
(@liuxingbaoyu)
- #16727 fix:
babel-parser
babel-helpers
,babel-plugin-transform-optional-chaining
,babel-runtime-corejs3
- #16769 Only wrap functions in
superPropertyGet
helper (@nicolo-ribaudo)
- #16769 Only wrap functions in
๐ Polish
babel-generator
,babel-plugin-transform-async-to-generator
,babel-plugin-transform-block-scoping
,babel-plugin-transform-class-properties
,babel-plugin-transform-classes
,babel-plugin-transform-duplicate-named-capturing-groups-regex
,babel-plugin-transform-named-capturing-groups-regex
,babel-plugin-transform-react-jsx-development
,babel-plugin-transform-react-jsx
,babel-plugin-transform-react-pure-annotations
,babel-plugin-transform-regenerator
,babel-plugin-transform-runtime
,babel-preset-env
- #16780 Do not enforce printing space between
(
and comments (@nicolo-ribaudo)
- #16780 Do not enforce printing space between
babel-plugin-syntax-import-assertions
,babel-plugin-syntax-import-attributes
- #16781 Don't throw when enabling both syntax-import-{assertions,attributes} (@nicolo-ribaudo)
babel-generator
- #16782 TS union/intersection nested in union does not need parens (@nicolo-ribaudo)
๐ Internal
babel-generator
- #16777 Remove unused
parent
params in the generator (@nicolo-ribaudo)
- #16777 Remove unused
Committers: 5
- Babel Bot (@babel-bot)
- Huรกng Jรนnliร ng (@JLHwung)
- Nicolรฒ Ribaudo (@nicolo-ribaudo)
- @j4k0xb
- @liuxingbaoyu
v7.25.5
v7.25.5 (2024-08-23)
๐ Bug Fix
babel-generator
,babel-traverse
- #16764 fix: Generate sequence expression parentheses correctly (@liuxingbaoyu)
๐ Polish
babel-generator
- #16738 Only force-parenthesize
satisfies
's LHS if it has newlines (@nicolo-ribaudo)
- #16738 Only force-parenthesize
Committers: 2
- Nicolรฒ Ribaudo (@nicolo-ribaudo)
- @liuxingbaoyu
v7.25.4
v7.25.4 (2024-08-22)
๐ Bug Fix
babel-traverse
- #16756 fix: Skip computed key when renaming (@liuxingbaoyu)
babel-helper-create-class-features-plugin
,babel-plugin-proposal-decorators
- #16755 fix: Decorator 2018-09 may throw an exception (@liuxingbaoyu)
babel-types
- #16710 Visit AST fields nodes according to their syntactical order (@nicolo-ribaudo)
babel-generator
- #16709 Print semicolon after TS
export namespace as A
(@nicolo-ribaudo)
- #16709 Print semicolon after TS
๐ Polish
babel-generator
,babel-plugin-proposal-decorators
,babel-plugin-proposal-destructuring-private
,babel-plugin-proposal-pipeline-operator
,babel-plugin-transform-class-properties
,babel-plugin-transform-destructuring
,babel-plugin-transform-optional-chaining
,babel-plugin-transform-private-methods
,babel-plugin-transform-private-property-in-object
,babel-plugin-transform-typescript
,babel-runtime-corejs2
,babel-runtime
,babel-traverse
- #16722 Avoid unnecessary parens around sequence expressions (@nicolo-ribaudo)
babel-generator
,babel-plugin-transform-class-properties
- #16714 Avoid unnecessary parens around exported arrow functions (@nicolo-ribaudo)
babel-generator
,babel-plugin-proposal-decorators
,babel-plugin-proposal-destructuring-private
,babel-plugin-transform-object-rest-spread
- #16712 Avoid printing unnecessary parens around object destructuring (@nicolo-ribaudo)
๐ฌ Output optimization
babel-generator
- #16740 Avoid extra spaces between comments/regexps in compact mode (@nicolo-ribaudo)
Committers: 4
- Babel Bot (@babel-bot)
- Huรกng Jรนnliร ng (@JLHwung)
- Nicolรฒ Ribaudo (@nicolo-ribaudo)
- @liuxingbaoyu