Skip to content

Commit 500abcc

Browse files
authored
chore: release v2.1.0 (#249)
1 parent a06c10a commit 500abcc

File tree

4 files changed

+40
-17
lines changed

4 files changed

+40
-17
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.1.0](https://github.com/oxc-project/oxc-browserslist/compare/oxc-browserslist-v2.0.16...oxc-browserslist-v2.1.0) - 2025-09-18
11+
12+
### Added
13+
14+
- compress node_versions data to reduce binary size ([#295](https://github.com/oxc-project/oxc-browserslist/pull/295))
15+
- compress caniuse_browsers data to reduce binary size ([#291](https://github.com/oxc-project/oxc-browserslist/pull/291))
16+
17+
### Other
18+
19+
- optimize get_browser_stat function to reduce binary size
20+
- optimize config::parser::parse function to reduce binary size ([#298](https://github.com/oxc-project/oxc-browserslist/pull/298))
21+
- optimize config::load function to reduce binary size ([#297](https://github.com/oxc-project/oxc-browserslist/pull/297))
22+
- optimize _resolve function to reduce binary size ([#296](https://github.com/oxc-project/oxc-browserslist/pull/296))
23+
- Update browserslist ([#290](https://github.com/oxc-project/oxc-browserslist/pull/290))
24+
- *(deps)* lock file maintenance rust crates ([#289](https://github.com/oxc-project/oxc-browserslist/pull/289))
25+
- Update browserslist ([#285](https://github.com/oxc-project/oxc-browserslist/pull/285))
26+
- Update browserslist ([#284](https://github.com/oxc-project/oxc-browserslist/pull/284))
27+
- *(deps)* lock file maintenance rust crates ([#282](https://github.com/oxc-project/oxc-browserslist/pull/282))
28+
- Update browserslist ([#278](https://github.com/oxc-project/oxc-browserslist/pull/278))
29+
- Update browserslist ([#277](https://github.com/oxc-project/oxc-browserslist/pull/277))
30+
- *(deps)* lock file maintenance ([#269](https://github.com/oxc-project/oxc-browserslist/pull/269))
31+
- Update browserslist ([#266](https://github.com/oxc-project/oxc-browserslist/pull/266))
32+
- Update browserslist ([#265](https://github.com/oxc-project/oxc-browserslist/pull/265))
33+
- Update browserslist ([#263](https://github.com/oxc-project/oxc-browserslist/pull/263))
34+
- *(deps)* lock file maintenance rust crates ([#262](https://github.com/oxc-project/oxc-browserslist/pull/262))
35+
- Update browserslist ([#259](https://github.com/oxc-project/oxc-browserslist/pull/259))
36+
- Update browserslist ([#258](https://github.com/oxc-project/oxc-browserslist/pull/258))
37+
- *(deps)* lock file maintenance rust crates ([#253](https://github.com/oxc-project/oxc-browserslist/pull/253))
38+
- Update browserslist ([#248](https://github.com/oxc-project/oxc-browserslist/pull/248))
39+
1040
## [2.0.16](https://github.com/oxc-project/oxc-browserslist/compare/oxc-browserslist-v2.0.15...oxc-browserslist-v2.0.16) - 2025-08-16
1141

1242
### Other

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxc-browserslist"
3-
version = "2.0.16"
3+
version = "2.1.0"
44
authors = ["Boshen <[email protected]>", "Pig Fang <[email protected]>"]
55
categories = ["config", "web-programming"]
66
edition = "2024"

src/data/caniuse.rs

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -121,24 +121,17 @@ fn android_to_desktop() -> &'static BrowserStat {
121121

122122
// Add legacy android versions (2.x, 3.x, 4.x)
123123
version_list.extend(
124-
android.version_list
124+
android
125+
.version_list
125126
.iter()
126127
.filter(|version| is_legacy_android_version(version.version()))
127-
.cloned()
128+
.cloned(),
128129
);
129130

130131
// Add chrome versions from evergreen point onwards
131-
version_list.extend(
132-
chrome.version_list
133-
.iter()
134-
.skip(chrome_skip_index)
135-
.cloned()
136-
);
132+
version_list.extend(chrome.version_list.iter().skip(chrome_skip_index).cloned());
137133

138-
BrowserStat {
139-
name: android.name,
140-
version_list,
141-
}
134+
BrowserStat { name: android.name, version_list }
142135
})
143136
}
144137

@@ -158,7 +151,8 @@ fn find_chrome_evergreen_start(chrome: &BrowserStat) -> usize {
158151
.version_list
159152
.iter()
160153
.position(|version| {
161-
version.version()
154+
version
155+
.version()
162156
.parse::<usize>()
163157
.map(|v| v == ANDROID_EVERGREEN_FIRST as usize)
164158
.unwrap_or(false)
@@ -194,7 +188,7 @@ fn get_browser_stat_mobile_to_desktop(name: &str) -> Option<(&'static str, &'sta
194188
"and_ff" => caniuse_browsers().get("firefox").map(|stat| ("and_ff", stat)),
195189
"ie_mob" => caniuse_browsers().get("ie").map(|stat| ("ie_mob", stat)),
196190
// All other browsers (including op_mob) return their own data
197-
_ => caniuse_browsers().get(name).map(|stat| (stat.name, stat))
191+
_ => caniuse_browsers().get(name).map(|stat| (stat.name, stat)),
198192
}
199193
}
200194

@@ -254,7 +248,6 @@ pub fn to_desktop_name(name: &str) -> Option<&'static str> {
254248
}
255249
}
256250

257-
258251
pub fn normalize_version<'a>(stat: &'static BrowserStat, version: &'a str) -> Option<&'a str> {
259252
if stat.version_list.iter().any(|v| v.version() == version) {
260253
Some(version)

0 commit comments

Comments
 (0)