Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from babel:main #25

Merged
merged 42 commits into from
Feb 28, 2024
Merged

[pull] main from babel:main #25

merged 42 commits into from
Feb 28, 2024

Conversation

pull[bot]
Copy link

@pull pull bot commented Feb 21, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added the ⤵️ pull label Feb 21, 2024
babel-bot and others added 28 commits February 23, 2024 12:42
chore: update test262 to 0fd1675f7ed02723772d30e718f04e6af455d3c9
* [babel 7] Allow setting `ignoreExtensions` in Flow preset

* Discard changes to packages/babel-types/src/ast-types/generated/index.ts
* copy test cases from 2023-05

* update 2023-11 test options

* copy applyDecs2305 to applyDecs2311

* allow 2023-11 decorator version

* feat: support per-field intitializers

* update test fixtures

OVERWRITE=1 yarn jest decorators -t "2023 11"

* update generated helpers

* update other class tests

* expand field-initializers-after-methods case

* Add failing private flavour test

* update pipeline operator tests

* Don't run Babel 8 test with 2023-05 decorator

* add release todo item
* refactor: reuse staticFieldInitializerAssignments

* refactor: rename fieldInitializerAssignments to expressions

* test: expand replacement-static-installed-on-correct-class case

* chore: maybePrivateBrandName typo

* wrap version "2023-05" check within Babel 7 branch
* Do not define `ctx.access.set` for setter decorators

* chore

---------

Co-authored-by: Babel Bot <[email protected]>
* fix: handle symbol key class elements decoration

* update generated helpers

* Expand test cases
Co-authored-by: Nicolò Ribaudo <[email protected]>
* optimize: allocate temp variable for every decorated element

* update test fixtures

* refactor: sort decorator info once

* refactor: simplify maybeExtractDecorators interface

Also improve decoratorThis storage. It turns out we don't have to maintain the map from decorator to its this value.

* refactor: rename maybeExtractDecorators to handleDecoratorExpressions

* unify haveThis and hasThis
* Add failing test

* Fix evaluation order of decorators with cached receiver

* Use one temp var per decorated element

* Use one temp var per class
* improve

* fix new test

* fix test

* add test

* Apply suggestions from code review

Co-authored-by: Nicolò Ribaudo <[email protected]>

* lint

---------

Co-authored-by: Nicolò Ribaudo <[email protected]>
@pull pull bot merged commit 2680a18 into Boo-hub33:main Feb 28, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants