Releases: projectwallace/css-parser
Releases · projectwallace/css-parser
v0.16.0
breaking
- breaking: rename
parse_selectortoparse__selector_listand expose new singleparse_selectorby @bartveneman in #232
What's Changed
- Optimize lexer performance: eliminate recursion and inline hot paths by @bartveneman in #244
- Refactor lexer state management to use save/restore pattern by @bartveneman in #245
- adjust the benchmarks by @bartveneman in #248
- perf: make walking ~10% faster by @bartveneman in #247
Chores
- chore: convert to pnpm; pin gh actions by @bartveneman in #238
- chore: group all npm updates except wallace packages by @bartveneman in #242
- chore(deps-dev): bump the npm-all group with 9 updates by @dependabot[bot] in #243
- chore(deps): bump pnpm/action-setup from 4.3.0 to 6.0.8 by @dependabot[bot] in #239
Performance Benchmarks
Changes since 0.15.0
Throughput (ops/sec, higher is better)
| File | Size | Tokenize before | Tokenize after | Parse before | Parse after | Walk before | Walk after | Parse+Walk before | Parse+Walk after |
|---|---|---|---|---|---|---|---|---|---|
| Large | 3 KB | 20,497 | 23,450 (+14%) | 15,188 | 18,032 (+19%) | 89,442 | 98,520 (+10%) | 12,875 | 15,143 (+18%) |
| Bootstrap | 274 KB | 261 | 303 (+16%) | 189 | 228 (+21%) | 1,297 | 1,466 (+13%) | 164 | 197 (+20%) |
| Tailwind | 3,557 KB | 21 | 24 (+14%) | 14 | 17 (+21%) | 91 | 100 (+10%) | 12 | 15 (+25%) |
Memory usage (Parse+Walk, lower is better)
| File | Size | Before | After |
|---|---|---|---|
| Large | 3 KB | 0.2 MB | 0.2 MB |
| Bootstrap | 274 KB | 13.2 MB | 13.2 MB |
| Tailwind | 3,557 KB | 93.9 MB | 94.6 MB |
Full Changelog: v0.15.1...v0.15.2
v0.15.1
What's Changed
- feat: allow type-narrowing of nodes based on
type_nameby @bartveneman in #230 - chore: update use of deprecated
toMatchTypeOfby @bartveneman in #231
Full Changelog: v0.15.0...v0.15.1
v0.15.0
What's Changed
- breaking/feat: parse
@supportsprelude into declarations by @bartveneman in #223 - feat: add vendor-prefix support in mediafeature by @bartveneman in #225
- fix: add
namespacegetter for type selectors by @bartveneman in #228
other
- chore(deps-dev): bump the vite group across 1 directory with 2 updates by @dependabot[bot] in #215
- chore(deps-dev): bump the oxc group with 2 updates by @dependabot[bot] in #216
- chore(deps-dev): bump tsdown from 0.21.5 to 0.21.10 by @dependabot[bot] in #217
- chore(deps-dev): bump postcss from 8.5.8 to 8.5.13 by @dependabot[bot] in #219
- chore(deps-dev): bump @types/node from 24.12.0 to 24.12.2 by @dependabot[bot] in #218
- chore: bump dependencies by @bartveneman in #224
Full Changelog: v0.14.10...v0.15.0
v0.14.10
What's Changed
- fix: narrow next_sibling type on children to match parent's child union by @bartveneman in #214
- fix: only return name/property/etc for relevant node types by @bartveneman in #221
Full Changelog: v0.14.9...v0.14.10
v0.14.9
v0.14.8
What's Changed
- fix: set correct child types for pseudo selectors by @bartveneman in #212
Full Changelog: v0.14.7...v0.14.8
v0.14.7
Full Changelog: v0.14.6...v0.14.7
No changes.
v0.14.6
Full Changelog: v0.14.5...v0.14.6
No changes.
v0.14.5
What's Changed
- fix: skip
npm i -g npmduring release by @bartveneman in #211
Full Changelog: v0.14.4...v0.14.5
v0.14.4
What's Changed
- fix: continue release process when
npm i -g npmfails by @bartveneman in #210
Full Changelog: v0.14.3...v0.14.4