Repository navigation
v0.17.0
Highlights
@tsrx/oxc-core-compat follows @tsrx/core 0.5.0:
- Every error from
@tsrx/oxc/tsrx-core-compatcarries the TypeScript or TSRX code@tsrx/coregives it (#117).oxc-tsrx lintand the editor reportTSRX2014(dynamic tag expression) andTSRX1004(</scriptin a script body) as rule and code. - Comments in JSX text are comments now, not text (#110).
- An element's children have TSX's shape: comments become
{}children and sit in the empty expression'sinnerComments(#118). - Non-breaking-space text is kept (#112).
- Scope errors are reported like core reports them (#113).
- Script bodies are raw text and follow HTML end-tag rules (#114, #116).
- The dynamic tag rule and the
tsrx-dynamic-tag-expressiondiagnostic now appear in parse, lint and the editor (#115). - Type parameter names are
Identifier, enums have aTSEnumBody, and@casearms have block bodies (#125, #127, #128). - Lint handles nested TSRX inside dynamic tags (#123).
Native parser, formatter and linter:
- The native parser's
@switcharms are now aBlockStatement. </script >(with a space before>) closes a script in the formatter and linter.- The formatter formats comments between children the way TSX does.
Release notes
Generated with node scripts/release-notes.ts --from v0.16.0 --to ed5d097 (the commit before the release commit), as the workflow does:
🚀 Enhancements
- compat: Give an element's children TSX's shape, with comments as {} children (#118)
- compat: Hold each JSX text comment in its empty expression's innerComments (#118)
🩹 Fixes
- compat: Match @tsrx/core 0.5.0 text comments, NBSP text, script raw text and end tag, dynamic tag rule (#110, #112, #114, #115, #116) (#110, #112, #114, #115, #116)
- compat: Report scope errors like @tsrx/core (#113)
- lint: Report dynamic tag and script end-tag errors in lint and the editor (d55653d)
- syntax: Read JSX text comments in the scanner, and keep them on their own lines when formatting (#110)
- format: Keep the space next to a JSX text comment when a held run moves lines (d780ddf)
- format: Keep a JSX text comment and the space beside it in their authored order (2925738)
- compat: Split comments out of .tsx text with entities in it, as core does (2e87aa0)
- compat: Address the #126 review: unclosed elements, text after a block, separators, CR files, comment layout, .tsx comments (#126)
- compat: Never let the .tsx text-comment retry hide an error the TSX lane reported (4b78a02)
- compat: Give @case arms a BlockStatement and a mapped type its typeParameter, like @tsrx/core 0.5 (f7216d1)
- lint: Report a dynamic tag expression holding nested TSRX instead of failing the file (df4e17f)
- parser: Keep a dynamic tag expression that starts or ends at a nested dynamic tag, and trim its report like core (4a6faf4)
📖 Documentation
- Tell agents to resolve Cursor Bugbot findings on every push (5c36f05)
📋 Other changes
Commits changelogen could not classify, oldest first. They are here because a
release note that hides most of the history is not a release note.
- Merge pull request #108 from tsrx-org/release-v0.16.0 (5fe58fc)
- fix(compat): match @tsrx/core 0.5.0 text comments, NBSP text, script raw text and end tag, dynamic tag rule (#110, #112, #114, #115, #116) (df84763)
- fix(compat): report scope errors like @tsrx/core (#113) (556b5b3)
- fix(syntax): read JSX text comments in the scanner, and keep them on their own lines when formatting (#110) (3194ead)
- Merge pull request #119 from tsrx-org/fix/core-0-5-conformance (fea92a9)
- Merge pull request #122 from tsrx-org/docs/agents-bugbot (39481ac)
- feat(compat): give an element's children TSX's shape, with comments as {} children (#118) (5656d4f)
- feat(compat): hold each JSX text comment in its empty expression's innerComments (#118) (0c6ca27)
- fix(compat): address the #126 review: unclosed elements, text after a block, separators, CR files, comment layout, .tsx comments (c3ef080)
- Merge pull request #126 from tsrx-org/feat/tsx-shaped-children (84c8adb)
- site: pin wasm demo engine 84c8adb (a58c34c)
- Merge pull request #129 from tsrx-org/site/wasm-pin-84c8adb (f851b7f)
- Merge pull request #130 from tsrx-org/feat/core-0-5-ast-shapes (7d5f4da)
- Merge pull request #131 from tsrx-org/fix/lint-nested-dynamic-tags (731320f)
- Merge pull request #133 from tsrx-org/fix/parser-nested-dynamic-tags (ed5d097)
❤️ Contributors
- Jack Shelton me@jackshelton.com