Repository navigation
Version Packages - #969
Merged
Merged
Version Packages#969
Conversation
9 of 10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
#967
b213995Thanks @leonidaz! - Read the strings that start a
@{ … }function body as its directive prologue, as in a{ … }body. Theparser now marks them as directives, so Prettier no longer wraps them in
parentheses:
function App() @{ - ('use client'); + 'use client'; <div>Hello</div> }'use strict'there with a parameter list that isn't simple is now TS1347, asit is in a
{ … }body. A@{ … }value and a directive body aren't functionbodies, so a string at their start still gets parentheses, as in a block.
Updated dependencies
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
#967
b213995Thanks @leonidaz! - Read the strings that start a
@{ … }function body as its directive prologue, as in a{ … }body. Theparser now marks them as directives, so Prettier no longer wraps them in
parentheses:
function App() @{ - ('use client'); + 'use client'; <div>Hello</div> }'use strict'there with a parameter list that isn't simple is now TS1347, asit is in a
{ … }body. A@{ … }value and a directive body aren't functionbodies, so a string at their start still gets parentheses, as in a block.
@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
[
b213995]:@tsrx/[email protected]
Patch Changes
Note
Low Risk
Patch release driven by changelog and version metadata; the underlying parser/formatter change is localized but may affect formatting and one new TS1347 case for
'use strict'in@{ }function bodies.Overview
Changesets release that bumps the monorepo to publish @tsrx/[email protected] and cascades patch versions across tooling, compiler targets, and bundler plugins. The consumed changeset (
.changeset/core-code-block-directives.md) is removed from the repo as part of this release.The user-facing fix in this release (from #967) is directive prologue handling for
@{ … }function bodies: leading string statements are parsed like a normal{ … }body prologue, so'use client'and similar directives are no longer wrapped in parentheses by @tsrx/prettier-plugin.'use strict'at the start of such a body with a non-simple parameter list now reports TS1347, matching block bodies; leading strings in@{ … }value or directive bodies (not function bodies) still format with parentheses like ordinary blocks.No application source changes appear in this PR—only
package.jsonversion bumps,CHANGELOG.mdentries, and @tsrx/zed-plugin pinning @tsrx/[email protected].Reviewed by Cursor Bugbot for commit 8ee8239. Bugbot is set up for automated code reviews on this repo. Configure here.