oxc/crates
Boshen be6b8b7ce6
[BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497)
Part of #2295

This PR splits the `Atom` type into `Atom<'a>` and `CompactString`.

All the AST node strings now use `Atom<'a>` instead of `Atom` to signify
it belongs to the arena.

It is now up to the user to select which form of the string to use.

This PR essentially removes the really unsafe code 


93742f89e9/crates/oxc_span/src/atom.rs (L98-L107)

which can lead to 

![image](https://github.com/oxc-project/oxc/assets/1430279/8c513c4f-19b0-4b63-b61c-e07c187c95b5)
2024-02-26 19:34:40 +08:00
..
oxc Publish crates v0.8.0 2024-02-26 19:01:51 +08:00
oxc_allocator Publish crates v0.8.0 2024-02-26 19:01:51 +08:00
oxc_ast [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
oxc_cli feat(diagnostics): implement json reporter (#2452) 2024-02-20 15:33:28 +08:00
oxc_codegen [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
oxc_diagnostics Publish crates v0.8.0 2024-02-26 19:01:51 +08:00
oxc_index Publish crates v0.8.0 2024-02-26 19:01:51 +08:00
oxc_js_regex [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
oxc_language_server fix(vscode): incorrect diagnostic position (#2461) 2024-02-21 12:11:16 +08:00
oxc_linter [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
oxc_macros feat(linter): remove the --timings feature (#2049) 2024-01-16 14:21:04 +08:00
oxc_minifier [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
oxc_parser [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
oxc_prettier [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
oxc_semantic [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
oxc_span [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
oxc_syntax [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
oxc_transformer [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
oxc_wasm feat(codegen): configurable typescript codegen (#2443) 2024-02-20 12:09:28 +08:00