Skip to content

Commit 1df6302

Browse files
committed
docs: add v0.2.0 release notes
Notes for the GitHub Release that triggers publish.yml (OIDC). Covers the breaking changes (u() removed, UnoCSS preset removed, per-family entries, utilities/used retired), the purge Vite plugin, reactive BootswatchProvider, and faithful per-theme utilities. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WhNp7wH1dgomCT18AgRuxZ
1 parent c7b7669 commit 1df6302

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

‎RELEASE-0.2.0.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# @arijs/bootswatch-ve v0.2.0
2+
3+
Utilities are now a faithful, per-theme family — no UnoCSS preset, no `u()` API — trimmed per-consumer by a purge Vite plugin. Each class is imported from its own family entry, and the theme provider is reactive.
4+
5+
## Breaking changes
6+
7+
- **`u()` removed.** Utilities are no longer applied through a runtime prefix helper. Import each class from its family and compose with `cx(...)`:
8+
```ts
9+
import { dFlex, mb3, textBgSecondary } from '@arijs/bootswatch-ve/utilities'
10+
cx(dFlex, mb3, textBgSecondary)
11+
```
12+
- **UnoCSS preset removed.** The `./preset` entry and the `unocss`/preset wiring are gone. Consumers no longer configure a preset.
13+
- **Per-family entry points.** Classes are imported from their family (`@arijs/bootswatch-ve/buttons`, `/alerts`, `/utilities`, …) and vars from `<family>/vars`. There is no `.` barrel.
14+
- **`utilities/used` retired.** The demo-only tree-shake split is gone; there is one authoritative `utilities` family. Consumers who imported from a `used` path should import from `/utilities`.
15+
16+
## New
17+
18+
- **Purge Vite plugin** (`@arijs/bootswatch-ve/vite`). Add `bootswatchPurge()` to your Vite `plugins`; it reads the static family imports that survive tree-shaking and drops every unused CSS rule per theme chunk (≈ −84% in the ddsoft app). Theme scope and vars are always kept.
19+
- **Reactive `BootswatchProvider`.** `scope` now accepts an accessor and updates reactively on theme change: `<BootswatchProvider scope={scope}>`. `useBootswatch()` returns `{ scope, cx }`.
20+
- **Faithful per-theme utilities.** Every utility class is baked with the active theme's real values instead of a shared computed shim. Themes that diverge from Bootstrap render correctly — e.g. Lux `text-bg-secondary` bakes `color: #000` (legible) where Bootstrap bakes `#fff`.
21+
22+
## Notes
23+
24+
- 27 themes, 30 contract entries; 0 residual literal `--bs-*` across all themes.
25+
- Published via GitHub Actions trusted publishing (OIDC) with provenance.

0 commit comments

Comments
 (0)