Skip to content

Commit 32afce3

Browse files
committed
chore: update oxc and setup renovate
1 parent 86f21bf commit 32afce3

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

Cargo.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ description = "manipulate string like wizards"
1010
[dependencies]
1111
index_vec = { version = "0.1.3" }
1212
rustc-hash = { version = "1.1.0" }
13-
# regex = "1.10.2"
1413
once_cell = "1.18.0"
15-
oxc = { version = "0.12.5", features = ["sourcemap"] }
14+
oxc_sourcemap = { version = "~0.13" }
1615

1716
[features]
1817
# Enable source map functionality
19-
source_map = ["oxc/sourcemap"]
18+
source_map = []
2019

2120
[dev-dependencies]
2221
glob = "0.3.1"

renovate.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:best-practices",
5+
":automergeMinor",
6+
":automergeRequireAllStatusChecks",
7+
":automergePr"
8+
]
9+
}

src/magic_string/source_map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl Default for SourceMapOptions {
2020
}
2121

2222
impl<'s> MagicString<'s> {
23-
pub fn source_map(&self, opts: SourceMapOptions) -> oxc::sourcemap::SourceMap {
23+
pub fn source_map(&self, opts: SourceMapOptions) -> oxc_sourcemap::SourceMap {
2424
let mut source_builder = SourcemapBuilder::new(opts.hires);
2525

2626
source_builder.set_source_and_content(&opts.source, &self.source);

src/sourcemap_builder.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub struct SourcemapBuilder {
66
/// `generated_code_column` is calculated based on utf-16.
77
generated_code_column: TextSize,
88
source_id: u32,
9-
source_map_builder: oxc::sourcemap::SourceMapBuilder,
9+
source_map_builder: oxc_sourcemap::SourceMapBuilder,
1010
}
1111

1212
impl SourcemapBuilder {
@@ -16,11 +16,11 @@ impl SourcemapBuilder {
1616
generated_code_line: 0,
1717
generated_code_column: 0,
1818
source_id: 0,
19-
source_map_builder: oxc::sourcemap::SourceMapBuilder::default(),
19+
source_map_builder: oxc_sourcemap::SourceMapBuilder::default(),
2020
}
2121
}
2222

23-
pub fn into_source_map(self) -> oxc::sourcemap::SourceMap {
23+
pub fn into_source_map(self) -> oxc_sourcemap::SourceMap {
2424
self.source_map_builder.into_sourcemap()
2525
}
2626

0 commit comments

Comments
 (0)