@getvitops/create 0.3.1 → 0.3.2

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 CHANGED
@@ -1,5 +1,46 @@
1
1
  # @getvitops/create
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - a334049: Make the semantic icon mapping reachable, and fail the build on unresolvable names.
8
+
9
+ `generateIconInclude()` — declare the semantic icon names a site needs plus which sets to draw
10
+ them from, get back the `include` map that keeps the bundle to just those glyphs — already existed
11
+ but was unreachable: it lived in `@getvitops/core/src/utils/`, which the package doesn't export.
12
+ It has moved to `@getvitops/utils` (a build-time concern, in the build-time utilities package),
13
+ which `@getvitops/astro` re-exports wholesale. So from `astro.config.mjs`:
14
+
15
+ ```js
16
+ import { generateIconInclude } from '@getvitops/astro';
17
+ import icon from 'astro-icon';
18
+
19
+ integrations: [
20
+ icon({
21
+ include: generateIconInclude({
22
+ ui: 'fa7-solid',
23
+ brand: 'simple-icons',
24
+ semantic: ['menu', 'close', 'search', 'github'],
25
+ }),
26
+ }),
27
+ ];
28
+ // → { "fa7-solid": ["bars","xmark","magnifying-glass"], "simple-icons": ["github"] }
29
+ ```
30
+
31
+ Swapping `ui` to `'lucide'` yields `{ lucide: ["menu","x","search"] }` from the same declaration —
32
+ which is the point: the semantic names are what your markup commits to, and the set is a config
33
+ choice. The output shape is the `include` both `astro-icon` and `astro-iconset` accept, so the
34
+ mapping doesn't tie you to either.
35
+
36
+ **Unresolvable names are now a build error.** Previously they were skipped silently, so swapping
37
+ sets appeared to succeed and the gaps surfaced as missing glyphs in production. The error names
38
+ every offender; an unknown set name throws too, listing the known sets.
39
+
40
+ Also fixes `@getvitops/create`'s emdash template, which pinned `@getvitops/astro: ^0.4.0` — a range
41
+ that stopped resolving when astro joined the fixed group at 0.7.0, so scaffolded projects were
42
+ stuck on the old line.
43
+
3
44
  ## 0.3.1
4
45
 
5
46
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getvitops/create",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Project templates for the Vitops design system — scaffold wired-up sites with `vp create @getvitops`.",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -19,8 +19,8 @@
19
19
  "@astrojs/cloudflare": "^14.0.0",
20
20
  "@astrojs/react": "^6.0.0",
21
21
  "@emdash-cms/cloudflare": "^0.31.0",
22
- "@getvitops/astro": "^0.4.0",
23
- "@getvitops/emdash": "^0.2.0",
22
+ "@getvitops/astro": "^0.7.0",
23
+ "@getvitops/emdash": "^0.2.1",
24
24
  "astro": "^7.1.2",
25
25
  "emdash": "^0.31.0",
26
26
  "react": "^19.2.4",