Skip to content

Commit 7c8590e

Browse files
renovate[bot]ClaudeBrooooooklyn
authored
chore(deps): update oxc to ^0.129.0 (#261)
* chore(deps): update oxc to ^0.129.0 * fix: Handle oxc 0.129.0 parameter property field declarations in JIT mode In oxc 0.129.0, the TypeScript transform now generates field declarations for constructor parameter properties (e.g., `constructor(private foo: Bar)` generates `foo;` field declaration). This breaks JIT mode because we need decorated fields preserved but parameter property fields removed. Solution: 1. Before oxc transform: collect parameter property names from constructor parameters that have accessibility modifiers, readonly, or override 2. After oxc transform: remove ONLY the field declarations that match parameter property names AND have no decorators AND have no initializers This approach correctly distinguishes between: - Parameter property fields (remove): `foo;` from `constructor(private foo)` - Decorated fields (keep): `@Input() myField;` - Initialized fields (keep): `myField = value;` The key insight is that JIT classes can be class expressions assigned to variables (e.g., `let Component = class Component {...}`), not just class declarations, so we must handle both Statement::ClassDeclaration and Statement::VariableDeclaration with ClassExpression. All 319 integration tests now pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com> * chore: Format code with cargo fmt Agent-Logs-Url: https://github.com/voidzero-dev/oxc-angular-compiler/sessions/8b548384-6766-4e5b-b356-b185029cf373 Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com> Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>
1 parent 34a4669 commit 7c8590e

6 files changed

Lines changed: 365 additions & 227 deletions

File tree

Cargo.lock

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,18 @@ multiple_crate_versions = "allow"
8787

8888
[workspace.dependencies]
8989
# External oxc crates from crates.io
90-
oxc_allocator = "0.128"
91-
oxc_ast = "0.128"
92-
oxc_ast_visit = "0.128"
93-
oxc_diagnostics = "0.128"
94-
oxc_napi = "0.128"
95-
oxc_parser = "0.128"
96-
oxc_semantic = "0.128"
97-
oxc_span = "0.128"
90+
oxc_allocator = "0.129"
91+
oxc_ast = "0.129"
92+
oxc_ast_visit = "0.129"
93+
oxc_diagnostics = "0.129"
94+
oxc_napi = "0.129"
95+
oxc_parser = "0.129"
96+
oxc_semantic = "0.129"
97+
oxc_span = "0.129"
9898
oxc_sourcemap = "6.0.1"
99-
oxc_str = "0.128"
100-
oxc_transformer = "0.128"
101-
oxc_codegen = "0.128"
99+
oxc_str = "0.129"
100+
oxc_transformer = "0.129"
101+
oxc_codegen = "0.129"
102102

103103
# Internal
104104
oxc_angular_compiler = { path = "crates/oxc_angular_compiler" }

0 commit comments

Comments
 (0)