@toski-labs/ds 0.3.2 → 0.3.3
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/CHANGELOG.md +15 -1
- package/README.en.md +6 -5
- package/README.md +14 -7
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
Todas as mudanças relevantes do Toski DS. O projeto segue o [Versionamento Semântico](https://semver.org/lang/pt-BR/).
|
|
4
|
-
|
|
4
|
+
Escreva as mudanças em "Próxima versão" enquanto trabalha; `npm run release` transforma essa seção na versão nova.
|
|
5
|
+
|
|
6
|
+
## Próxima versão
|
|
7
|
+
|
|
8
|
+
## 0.3.3 — 2026-10-06
|
|
9
|
+
|
|
10
|
+
### Adicionado
|
|
11
|
+
|
|
12
|
+
- `npm run release -- patch | minor | major`: confere o git e o CHANGELOG, roda a verificação, sobe a versão,
|
|
13
|
+
faz o commit e a tag e envia ao GitHub (que publica no npm).
|
|
14
|
+
- Seção "Lançar uma versão" na página "Como usar" do Storybook.
|
|
15
|
+
|
|
16
|
+
### Removido
|
|
17
|
+
|
|
18
|
+
- Changesets (substituído pelo `npm run release`).
|
|
5
19
|
|
|
6
20
|
## 0.3.2 — 2026-10-06
|
|
7
21
|
|
package/README.en.md
CHANGED
|
@@ -67,8 +67,8 @@ npm run sync:app # copy tokens and icons into the PetHealthTracker app
|
|
|
67
67
|
npm run verify # everything CI runs
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
To change a token: edit `tokens/tokens.json`, run `npm run tokens:build` and `npm run contrast`,
|
|
71
|
-
|
|
70
|
+
To change a token: edit `tokens/tokens.json`, run `npm run tokens:build` and `npm run contrast`, note it in
|
|
71
|
+
`CHANGELOG.md` under "## Próxima versão" and commit `tokens/`, `build/` and `src/generated/` together. CI fails if
|
|
72
72
|
`build/` is stale or if any text pair drops below 4.5:1 (3:1 for large text and icons).
|
|
73
73
|
|
|
74
74
|
## Accessibility
|
|
@@ -79,12 +79,13 @@ animations and transitions off with `prefers-reduced-motion` · icons and mascot
|
|
|
79
79
|
|
|
80
80
|
## Releasing
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
Write your changes under "## Próxima versão" in `CHANGELOG.md`, then on `main` run
|
|
83
|
+
`npm run release -- patch | minor | major` (`--dry-run` to simulate). It checks git and the changelog, runs
|
|
84
|
+
`npm run verify`, bumps the version, commits, tags and pushes; the **Publicar no npm** workflow publishes to npm.
|
|
84
85
|
|
|
85
86
|
## Versioning
|
|
86
87
|
|
|
87
|
-
[Semantic Versioning](https://semver.org/)
|
|
88
|
+
[Semantic Versioning](https://semver.org/).
|
|
88
89
|
See the [CHANGELOG](CHANGELOG.md).
|
|
89
90
|
|
|
90
91
|
## License
|
package/README.md
CHANGED
|
@@ -73,7 +73,7 @@ npm run verify # tudo o que o CI roda
|
|
|
73
73
|
|
|
74
74
|
1. Edite `tokens/tokens.json`.
|
|
75
75
|
2. Rode `npm run tokens:build` e `npm run contrast`.
|
|
76
|
-
3.
|
|
76
|
+
3. Anote a mudança no `CHANGELOG.md`, em "## Próxima versão".
|
|
77
77
|
4. Faça o commit de `tokens/`, `build/` e `src/generated/` juntos.
|
|
78
78
|
|
|
79
79
|
O CI falha se `build/` estiver desatualizado ou se algum par de texto ficar abaixo de 4,5:1
|
|
@@ -89,15 +89,22 @@ O CI falha se `build/` estiver desatualizado ou se algum par de texto ficar abai
|
|
|
89
89
|
|
|
90
90
|
## Lançar uma versão
|
|
91
91
|
|
|
92
|
-
1.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
1. Enquanto trabalha, anote as mudanças no `CHANGELOG.md`, na seção **"## Próxima versão"**.
|
|
93
|
+
2. Na `main`, com tudo commitado:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npm run release -- patch # correções (0.3.2 → 0.3.3)
|
|
97
|
+
npm run release -- minor # novidades (0.3.2 → 0.4.0)
|
|
98
|
+
npm run release -- major # quebra a API (0.3.2 → 1.0.0)
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
O script confere o git e o CHANGELOG, roda `npm run verify`, sobe a versão, faz o commit `release: vX.Y.Z`
|
|
102
|
+
e a tag, e pergunta antes de enviar ao GitHub. Use `--dry-run` para simular.
|
|
103
|
+
3. O workflow **Publicar no npm** (`.github/workflows/release.yml`) publica `@toski-labs/ds` com provenance.
|
|
97
104
|
|
|
98
105
|
## Versões
|
|
99
106
|
|
|
100
|
-
[Versionamento Semântico](https://semver.org/lang/pt-BR/)
|
|
107
|
+
[Versionamento Semântico](https://semver.org/lang/pt-BR/).
|
|
101
108
|
Veja o [CHANGELOG](CHANGELOG.md).
|
|
102
109
|
|
|
103
110
|
## Licença
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toski-labs/ds",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Toski DS — design system da Toski Labs: tokens (web, Tailwind CSS 4, SwiftUI) e componentes React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-system",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"dev": "storybook dev -p 6006",
|
|
66
66
|
"build-storybook": "storybook build -o storybook-static",
|
|
67
67
|
"verify": "npm run tokens:check && npm run contrast && npm run typecheck && npm run test && npm run build",
|
|
68
|
-
"changeset": "changeset",
|
|
69
68
|
"prepare": "npm run build",
|
|
70
|
-
"prepublishOnly": "npm run verify"
|
|
69
|
+
"prepublishOnly": "npm run verify",
|
|
70
|
+
"release": "tsx scripts/release.ts"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": ">=18",
|
|
@@ -75,7 +75,6 @@
|
|
|
75
75
|
"tailwindcss": ">=4.0.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@changesets/cli": "^3.0.0",
|
|
79
78
|
"@fontsource-variable/outfit": "^5.3.0",
|
|
80
79
|
"@storybook/addon-a11y": "^10.0.0",
|
|
81
80
|
"@storybook/addon-docs": "^10.0.0",
|