Skip to content

breaking(traverse): remove blacklist option#17671

Merged
nicolo-ribaudo merged 2 commits intobabel:mainfrom
JLHwung:traverse-cleanup
Dec 19, 2025
Merged

breaking(traverse): remove blacklist option#17671
nicolo-ribaudo merged 2 commits intobabel:mainfrom
JLHwung:traverse-cleanup

Conversation

@JLHwung
Copy link
Copy Markdown
Contributor

@JLHwung JLHwung commented Dec 17, 2025

Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change? Yes
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

In this PR we drop support for the deprecated blacklist traverse option, please use denylist instead.

This PR also cleans up other Babel 8 comments in Babel traverse.

@JLHwung JLHwung added PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release pkg: traverse PR: Needs Docs labels Dec 17, 2025
@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Dec 17, 2025

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/60488

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Dec 17, 2025

Open in StackBlitz

commit: d821599

@nicolo-ribaudo nicolo-ribaudo merged commit 5c0ae12 into babel:main Dec 19, 2025
53 of 54 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the traverse-cleanup branch December 19, 2025 11:10
@nicolo-ribaudo nicolo-ribaudo changed the title breaking(traverse): rename blacklist option breaking(traverse): remove blacklist option Dec 19, 2025
stuckvgn added a commit to stuckvgn/babel that referenced this pull request Feb 25, 2026
Follow-up to babel#11758 and babel#17671: replaces the remaining non-inclusive
terminology in source code for the Babel 8 release.

Changes:
- @babel/plugin-external-helpers: rename `whitelist` option to `allowlist`
- @babel/template: rename `placeholderWhitelist` option to `placeholderAllowlist`
- @babel/traverse: remove leftover `"blacklist"` from TypeScript type union
  in `shouldIgnoreKey` (runtime support was already removed in babel#17671)

Intentionally kept:
- `removed.ts` entries for `blacklist`/`whitelist` (detect legacy config)
- `--whitelist` CLI flag in build-external-helpers (throws helpful error)
- Integration test patches for external dependencies (jest, vue-cli)
- Historical changelogs
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Mar 21, 2026
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: traverse PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release PR: Needs Docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants