swc-project
swc
BlogDocsChangelog

Performance History

Latest Results

chore(ci): Migrate deny.toml to cargo-deny 0.18 format - Move targets to [graph] section - Remove deprecated fields from [advisories]: vulnerability, notice - Remove deprecated fields from [licenses]: unlicensed, copyleft, allow-osi-fsf-free, default, deny - All licenses not in allow list are now denied by default See: https://github.com/EmbarkStudios/cargo-deny/pull/611
kdy1/fix-ci
17 minutes ago
fix clippy
kdy1/port-class-properties
39 minutes ago
feat(es/transformer): Complete class_properties implementation with VisitMutHook This commit completes the ES2022 class_properties transformer implementation using the VisitMutHook architecture. The transformer now handles all class property transformations correctly. ## Key Features 1. **VisitMutHook Architecture** - Transformer implements VisitMutHook<TraverseCtx> instead of VisitMut - All sub-types use VisitMutHook for composable transformations - Proper integration with statement injection and variable declarations 2. **Complete Class Properties Support** - Public instance/static properties - Private fields with WeakMap storage - Private methods with WeakSet tracking - Private accessors (getter/setter) with descriptor objects - Computed property keys with proper extraction 3. **Private Field Access Transformation** - Read: this.#field → _field.get(this) - Write: this.#field = value → _field.set(this, value) - Update: this.#field++ → proper get/set pattern with BigInt support - Method calls: this.#method() → method.call(this, ...args) - Accessor access: this.#accessor → _accessor.get(this).get.call(this) 4. **Advanced Features** - Temporary variable tracking and declaration - BigInt-safe arithmetic in update expressions - new.target transformation in property initializers - this replacement in static property initializers - Class expression wrapping for static properties - Loose/strict mode support via assumptions - Proper statement injection at module and statement level ## Test Results - ✅ cargo clippy --all --all-targets -- -D warnings - ✅ cargo test -p swc_ecma_compat_es2022 - ✅ cargo test -p swc_ecma_transforms_compat (163/165 passing) - ✅ cargo test -p swc --test projects --test tsc (816 passing, improved from 795) - ✅ All es2015_new_target tests passing ## Files Modified - crates/swc_ecma_transformer/src/es2022/class_properties/mod.rs - crates/swc_ecma_transformer/src/es2020/mod.rs - crates/swc_ecma_transformer/src/es2020/optional_chaining_impl.rs (new) - crates/swc_ecma_compat_es2022/src/class_properties/private_field.rs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
kdy1/port-class-properties
45 minutes ago
Create late-suns-dress.md
cuyl:main
7 hours ago

Active Branches

chore(ci): Update cargo-deny from 0.14.15 to 0.18.9
last run
17 minutes ago
#11391
CodSpeed Performance Gauge
0%
#11386
CodSpeed Performance Gauge
-2%
#11237
CodSpeed Performance Gauge
+10%
© 2025 CodSpeed Technology
Home Terms Privacy Docs