@aurora-ds/theme 1.5.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.dev.md +84 -2
- package/README.md +382 -90
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +262 -464
- package/dist/index.d.ts +262 -464
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.dev.md
CHANGED
|
@@ -2,6 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
This document contains development notes and guidelines for maintaining the Aurora Theme library.
|
|
4
4
|
|
|
5
|
+
## Current Version & Branch Status
|
|
6
|
+
|
|
7
|
+
- **Stable (v1.x):** `master` branch - v1.6.0
|
|
8
|
+
- **Next Major (v2.0):** `v2` branch - Breaking changes for simplification
|
|
9
|
+
|
|
10
|
+
### v2.0 Major Changes (Breaking)
|
|
11
|
+
|
|
12
|
+
The v2 branch introduces significant simplifications:
|
|
13
|
+
|
|
14
|
+
1. **Removed Pre-built Palettes** (~40% bundle reduction)
|
|
15
|
+
- Removed 10+ palette exports (`indigoPalette`, `bluePalette`, etc.)
|
|
16
|
+
- Removed `defaultDarkTheme`
|
|
17
|
+
- Users build their own themes for better tree-shaking
|
|
18
|
+
|
|
19
|
+
2. **Restricted Color Scale Imports** (better tree-shaking)
|
|
20
|
+
- Direct imports removed: `import { indigo } from '@aurora-ds/theme'`
|
|
21
|
+
- Only via colors object: `import { colors } from '@aurora-ds/theme'`
|
|
22
|
+
|
|
23
|
+
3. **Removed WCAG Contrast Utilities** (bundle size)
|
|
24
|
+
- Removed `getContrastRatio`, `meetsWCAG`, `checkContrast`, etc.
|
|
25
|
+
- Users should use dedicated accessibility tools
|
|
26
|
+
|
|
27
|
+
4. **Simplified Color Tokens** (60% reduction: 83 → 33 tokens)
|
|
28
|
+
- Removed accent, tertiary, and many state variations
|
|
29
|
+
- Focused on core tokens only
|
|
30
|
+
- Users can extend themes with custom tokens
|
|
31
|
+
|
|
32
|
+
See [CHANGELOG.md](./CHANGELOG.md#200---2026-01-04) for full migration guide.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
5
36
|
## Prerequisites
|
|
6
37
|
|
|
7
38
|
- **Node.js** >= 18.0.0
|
|
@@ -141,18 +172,69 @@ This command runs:
|
|
|
141
172
|
|
|
142
173
|
### Publishing to npm
|
|
143
174
|
|
|
175
|
+
#### For Patch/Minor Releases
|
|
176
|
+
|
|
144
177
|
```bash
|
|
145
178
|
# 1. Update version in package.json
|
|
146
|
-
# 2.
|
|
179
|
+
# 2. Move changes from [Unreleased] to new version in CHANGELOG.md
|
|
147
180
|
# 3. Commit and tag
|
|
148
181
|
|
|
149
|
-
npm version patch # or minor
|
|
182
|
+
npm version patch # or minor
|
|
150
183
|
git push --follow-tags
|
|
151
184
|
|
|
152
185
|
# 4. Publish
|
|
153
186
|
npm publish --access public
|
|
154
187
|
```
|
|
155
188
|
|
|
189
|
+
#### For Major Releases (Breaking Changes)
|
|
190
|
+
|
|
191
|
+
**Current Version:** v1.6.0 → **v2.0.0** (current branch: `v2`)
|
|
192
|
+
|
|
193
|
+
Major releases with breaking changes require extra care:
|
|
194
|
+
|
|
195
|
+
**1. Finalize Breaking Changes**
|
|
196
|
+
- Review all changes in `[Unreleased]` section of CHANGELOG.md
|
|
197
|
+
- Ensure migration guide is complete and accurate
|
|
198
|
+
- Update README.md with migration summary
|
|
199
|
+
|
|
200
|
+
**2. Update Version**
|
|
201
|
+
```bash
|
|
202
|
+
npm version major # 1.6.0 → 2.0.0
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
**3. Documentation Updates**
|
|
206
|
+
- Move `[Unreleased]` to `[2.0.0] - YYYY-MM-DD` in CHANGELOG.md
|
|
207
|
+
- Ensure migration guide is comprehensive
|
|
208
|
+
- Update any affected code examples
|
|
209
|
+
|
|
210
|
+
**4. Thorough Testing**
|
|
211
|
+
```bash
|
|
212
|
+
npm run ci # Full CI pipeline
|
|
213
|
+
npm run test:coverage # Ensure >80% coverage
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
**5. Create Release Branch/PR**
|
|
217
|
+
- Title: `Release v2.0.0`
|
|
218
|
+
- Include summary of breaking changes
|
|
219
|
+
- Link to migration guide
|
|
220
|
+
- Get review if working in a team
|
|
221
|
+
|
|
222
|
+
**6. Merge and Publish**
|
|
223
|
+
```bash
|
|
224
|
+
# After merge to main:
|
|
225
|
+
git checkout main
|
|
226
|
+
git pull
|
|
227
|
+
git tag -a v2.0.0 -m "Release v2.0.0 - Major simplification"
|
|
228
|
+
git push origin v2.0.0
|
|
229
|
+
npm publish --access public
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
**7. Post-Release Communication**
|
|
233
|
+
- Create GitHub Release with full changelog
|
|
234
|
+
- Announce breaking changes in GitHub Discussions
|
|
235
|
+
- Update any example repositories
|
|
236
|
+
- Consider writing a blog post explaining the changes
|
|
237
|
+
|
|
156
238
|
> Note: `prepublishOnly` automatically runs `npm run ci` before publishing.
|
|
157
239
|
|
|
158
240
|
---
|