GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add `duplicate-named-capturing-groups-regex` to `preset-env` by JLHwung · Pull Request #16445 · babel/babel

Conversation

@JLHwung

@JLHwung JLHwung commented Apr 24, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
Q                       A
Fixed Issues? Add duplicate-named-capturing-groups-regex to preset-env as the language will be included in ES2025
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature? Yes
Tests Added + Pass? Yes
Documentation PR Link babel/website#2893
Any Dependency Changes?
License MIT
  • Renmae plugin to transform-*
  • Add it to preset-env

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@JLHwung JLHwung added PR: New Feature 🚀 A type of pull request used for our changelog categories pkg: preset-env labels Apr 24, 2024
@JLHwung JLHwung added this to the v7.25.0 milestone Apr 24, 2024
@JLHwung
JLHwung force-pushed the add-duplicate-named-capturing-groups-regex branch from ee6b37a to fb04bfe Compare April 24, 2024 16:53
@babel-bot

babel-bot commented Apr 24, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JLHwung
JLHwung force-pushed the add-duplicate-named-capturing-groups-regex branch from fb04bfe to 8290a7e Compare April 24, 2024 16:58
@JLHwung
JLHwung force-pushed the add-duplicate-named-capturing-groups-regex branch from 8290a7e to 4daa034 Compare May 29, 2024 03:25
@JLHwung
JLHwung marked this pull request as ready for review May 29, 2024 06:11
@JLHwung JLHwung added the PR: Needs Docs label May 29, 2024
@JLHwung

JLHwung commented May 29, 2024

Copy link
Copy Markdown
Contributor Author

The CI error is related. As duplicate-named-capturing-groups-regex requires babel-core 7.19, preset-env will also indirectly require babel-core 7.19+. This case is similar to the class-static-block transform which requires babel-core 7.12 and was added to preset-env in 7.16.

I tend to revise the regression test so that it works for Babel <7.13.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nicolo-ribaudo

nicolo-ribaudo commented May 29, 2024

Copy link
Copy Markdown
Member

Isn't adding it to minVersions enough (

babel/packages/babel-preset-env/src/available-plugins.ts

Lines 145 to 152 in 8911810

Object.assign(minVersions, {
"bugfix/transform-safari-id-destructuring-collision-in-function-expression":
"7.16.0",
"bugfix/transform-v8-static-class-fields-redefine-readonly": "7.12.0",
"syntax-import-attributes": "7.22.0",
"transform-class-static-block": "7.12.0",
"transform-private-property-in-object": "7.10.0",
});
)?

JLHwung reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liuxingbaoyu
liuxingbaoyu approved these changes May 30, 2024
View reviewed changes
@JLHwung
JLHwung force-pushed the add-duplicate-named-capturing-groups-regex branch from d260d48 to c38ba38 Compare June 1, 2024 04:34
@JLHwung JLHwung mentioned this pull request Jun 2, 2024
Add duplicate-named-capturing-groups to ES2025 babel/website#2893
Merged
@JLHwung JLHwung removed the PR: Needs Docs label Jun 2, 2024
@JLHwung
JLHwung force-pushed the add-duplicate-named-capturing-groups-regex branch from c38ba38 to b9b92ec Compare July 5, 2024 15:59
nicolo-ribaudo
nicolo-ribaudo approved these changes Jul 12, 2024
View reviewed changes

@nicolo-ribaudo nicolo-ribaudo left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you see if rebasing fixes the CI error?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
JLHwung added 10 commits July 12, 2024 21:12
@JLHwung
rename proposal-* to transform-*
8441d53
@JLHwung
add plugin to preset-env
84cd15f
@JLHwung
Add plugin compat data
e44a86c
@JLHwung
Update tests
1381db3
@JLHwung
test: preset-stage-1 in Babel 8 will not include stage 4 plugins
0eb1d83
@JLHwung
add min versions meta
543e3de
@JLHwung
update compat-data
5555362
@JLHwung
update test fixtures
6947da4
@JLHwung
update compat-data
7f2c442
@JLHwung
update test fixtures
51af3dd
@JLHwung
JLHwung force-pushed the add-duplicate-named-capturing-groups-regex branch from a3ca72b to 51af3dd Compare July 13, 2024 01:12
@JLHwung
update test fixtures
7a1767d
@nicolo-ribaudo

nicolo-ribaudo commented Jul 15, 2024

Copy link
Copy Markdown
Member

Could you change https://github.com/babel/babel/blob/3e4723fd07a0ef22039b508ec4da71ce73be1e6e/.github/workflows/reminders.yml to remind us to deprecate the old one?

JLHwung reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Oct 5, 2024
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.4 tiff-es/fewpjs-class-extensions-super-lab-online-web-sp-000#243
Open
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.4 tiff-es/js-data-structures-objects-lab-dc-web-091619#238
Open
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.4 tiff-es/fewpjs-adding-behavior-with-methods-dc-web-091619#246
Open
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.4 tiff-es/fewpjs-acting-on-events-dc-web-091619#241
Open
[Snyk] Upgrade @babel/preset-env from 7.10.4 to 7.25.4 tiff-es/tiffany-portfolio-responsive#534
Open
@rawdaymohamed rawdaymohamed mentioned this pull request Oct 5, 2024
[Snyk] Upgrade @babel/preset-env from 7.18.10 to 7.25.4 rawdaymohamed/Hot-Todo#402
Closed
This was referenced Oct 5, 2024
[Snyk] Upgrade @babel/parser from 7.1.3 to 7.25.6 NOUIY/node#488
Open
[Snyk] Upgrade @babel/traverse from 7.1.4 to 7.25.6 NOUIY/node#489
Open
[Snyk] Upgrade @babel/generator from 7.1.3 to 7.25.6 NOUIY/node#490
Open
[Snyk] Upgrade @babel/types from 7.1.3 to 7.25.6 NOUIY/node#491
Open
[Snyk] Upgrade @babel/template from 7.1.2 to 7.25.0 NOUIY/node#492
Open
@richyhoopd richyhoopd mentioned this pull request Oct 6, 2024
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.4 richyhoopd/RichyFlix#937
Open
This was referenced Oct 6, 2024
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.4 tiff-es/fewpjs-getter-and-setter-methods-dc-web-091619#262
Open
[Snyk] Upgrade @babel/preset-env from 7.10.4 to 7.25.4 tiff-es/tiffany-portfolio-responsive#536
Open
@mdfkbtc mdfkbtc mentioned this pull request Oct 6, 2024
[Snyk] Upgrade @babel/preset-env from 7.5.0 to 7.25.4 mdfkbtc/veles-mobile-wallet-mdfkbtc#1868
Open
@nejidevelops nejidevelops mentioned this pull request Oct 8, 2024
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.4 nejidevelops/phase-1-domcontentloaded#98
Open
This was referenced Oct 8, 2024
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.4 tiff-es/fewpjs-class-extensions-super-lab-online-web-sp-000#245
Open
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.4 tiff-es/fewpjs-fns-as-first-class-data-array-o-functions-dc-web-091619#247
Open
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.4 tiff-es/fewpjs-document-onload-dc-web-091619#249
Open
@paulineribeyre paulineribeyre mentioned this pull request Oct 17, 2024
[Snyk] Upgrade @babel/preset-env from 7.20.2 to 7.25.4 uc-cdis/Atlas#65
Closed
This was referenced Oct 24, 2024
[Snyk] Upgrade @babel/parser from 7.1.3 to 7.25.7 nerdy-tech-com-gitub/node#10
Open
[Snyk] Upgrade @babel/traverse from 7.1.4 to 7.25.7 nerdy-tech-com-gitub/node#11
Open
This was referenced Oct 24, 2024
[Snyk] Upgrade @babel/parser from 7.1.3 to 7.25.7 ashly1111111/node#142
Open
[Snyk] Upgrade @babel/traverse from 7.1.4 to 7.25.7 ashly1111111/node#143
Open
[Snyk] Upgrade @babel/generator from 7.1.3 to 7.25.7 ashly1111111/node#144
Open
[Snyk] Upgrade @babel/types from 7.1.3 to 7.25.7 ashly1111111/node#145
Open
[Snyk] Upgrade @babel/template from 7.1.2 to 7.25.7 ashly1111111/node#146
Open
@nerdy-tech-com-gitub nerdy-tech-com-gitub mentioned this pull request Oct 24, 2024
[Snyk] Upgrade @babel/preset-env from 7.23.7 to 7.25.7 nerdy-tech-com-gitub/joplin#7
Open
@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 Oct 25, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@nicolo-ribaudo nicolo-ribaudo nicolo-ribaudo approved these changes
@liuxingbaoyu liuxingbaoyu liuxingbaoyu approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: preset-env PR: New Feature 🚀 A type of pull request used for our changelog categories PR: Ready to be Merged A pull request with already two approvals, but waiting for the next minor release

Projects

None yet

Milestone

v7.25.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@JLHwung @babel-bot @nicolo-ribaudo @liuxingbaoyu
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.