Skip to content

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