oxc/crates
overlookmotel 8001b2f796
refactor: make CompactStr immutable (#2620)
First step towards #2516.

This replaces `compact_str::CompactString` with an immutable interface `CompactStr`.

Currently just implemented as a wrapper around `CompactString` which hides all its mutation methods. A more optimized implementation to follow, which shrinks size of `CompactStr` to 16 bytes by removing the `capacity` field.

The rationale for the change of name is: `CompactString` is like `String` in that it's mutable. `CompactStr` is more like `str` - immutable - so its name mirrors `str`.
2024-03-06 12:29:32 +08:00
..
oxc Release crates v0.9.0 2024-03-05 15:57:31 +08:00
oxc_allocator Release crates v0.9.0 2024-03-05 15:57:31 +08:00
oxc_ast Release crates v0.9.0 2024-03-05 15:57:31 +08:00
oxc_cli feat(cli,linter): provide tsconfig path from the cli (#2526) 2024-02-27 20:00:11 +08:00
oxc_codegen Release crates v0.9.0 2024-03-05 15:57:31 +08:00
oxc_diagnostics Release crates v0.9.0 2024-03-05 15:57:31 +08:00
oxc_index Release crates v0.9.0 2024-03-05 15:57:31 +08:00
oxc_js_regex refactor: rename CompactString to CompactStr (#2619) 2024-03-06 12:24:23 +08:00
oxc_language_server chore(deps): update rust crates (#2589) 2024-03-04 11:23:06 +08:00
oxc_linter refactor: make CompactStr immutable (#2620) 2024-03-06 12:29:32 +08:00
oxc_macros feat(linter): remove the --timings feature (#2049) 2024-01-16 14:21:04 +08:00
oxc_minifier refactor: make CompactStr immutable (#2620) 2024-03-06 12:29:32 +08:00
oxc_parser refactor: rename CompactString to CompactStr (#2619) 2024-03-06 12:24:23 +08:00
oxc_prettier feat(ast): add AssignmentTargetRest (#2601) 2024-03-04 14:31:22 +08:00
oxc_semantic refactor: make CompactStr immutable (#2620) 2024-03-06 12:29:32 +08:00
oxc_span refactor: make CompactStr immutable (#2620) 2024-03-06 12:29:32 +08:00
oxc_syntax refactor: rename CompactString to CompactStr (#2619) 2024-03-06 12:24:23 +08:00
oxc_transformer refactor: rename CompactString to CompactStr (#2619) 2024-03-06 12:24:23 +08:00
oxc_wasm refactor(codegen): clean up API around building sourcemaps (#2602) 2024-03-04 16:03:33 +08:00