Skip to content

JS: Move Directive subclasses into module and support "use client/server" #13303

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

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented May 26, 2023

Fixes #13296

The subclasses of KnownDirective were all declared at the top-level of Stmt.qll. This means we couldn't add new subclasses without introducing a top-level name exported by javascript.qll. So this PR first moves all those subclasses into a Directives module. Thanks to the new shadowing rules we can actually leave deprecated aliases for these in the top-level.

Lastly this adds two more directives to handle "use client" and "use server".

@asgerf asgerf added the no-change-note-required This PR does not need a change note label May 26, 2023
@github-actions github-actions bot added the JS label May 26, 2023
@asgerf asgerf force-pushed the js/use-server-and-client branch from 9b1f133 to a0e60e6 Compare June 26, 2023 09:20
@asgerf asgerf force-pushed the js/use-server-and-client branch from a0e60e6 to 7a79608 Compare August 23, 2023 07:04
@asgerf asgerf force-pushed the js/use-server-and-client branch from 7a79608 to f8641dd Compare March 26, 2024 08:45
@asgerf asgerf marked this pull request as ready for review April 2, 2024 08:54
@asgerf asgerf requested a review from a team as a code owner April 2, 2024 08:54
Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

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

Perfect 👍

@asgerf asgerf merged commit 2feb00b into github:main Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support new React directives
2 participants