@getvitops/vite 6.0.0 → 7.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # @getvitops/vite
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - **Added — `utils`.** `itemListGraph()`, a pure schema.org `ItemList` JSON-LD builder — a sibling
8
+ of `breadcrumbGraph()`/`localBusinessGraph()`. Extracted from `@getvitops/astro`'s `<Carousel />`
9
+ so any consumer can build a valid `ItemList` (Google's "all-in-one page" carousel format:
10
+ `ListItem.item` carrying `@type`/`name`/`url`) for content that isn't one of the six Google
11
+ carousel rich-result types (`Article`/`Recipe`/`Movie`/`Course`/`Restaurant`/`Product`) — the
12
+ entity type is no longer constrained to that set.
13
+
14
+ **Changed — `astro`.** `<Carousel />`'s `CarouselItem['type']` now accepts any string, not just
15
+ the six carousel rich-result types — non-breaking, the union only widens. It's a thin wrapper
16
+ over `itemListGraph()` now; behaviour for existing callers is unchanged.
17
+
18
+ No consumer-facing change in this release outside `utils` and `astro` — `generator`, `cli` and
19
+ `vite` still ship in this release only because the six share one version.
20
+
21
+ **Fixed — `core` (`css`/`bricks`/`tailwind` build output, all formats).** The CSS and HTML
22
+ authored inside Lit's `css`/`html` tagged templates in `<wc-*>` component sources previously
23
+ survived JS minification verbatim — a JS minifier treats a template literal's cooked text as
24
+ opaque, so `elements.js` shipped ~690 lines of indented, unminified CSS (and the equivalent in
25
+ HTML) inside an otherwise-minified 886-line file. Two source-level build transforms now collapse
26
+ both before bundling: `postcss` + `postcss-lit` + `cssnano` for `css` templates, `minify-html-literals`
27
+ (`conservativeCollapse: true`, so whitespace between inline elements in light-DOM components never
28
+ collapses to zero) for `html` templates. `elements.js` drops from 886 lines / ~101 KB to 49 lines /
29
+ ~96 KB. A second build step deduplicates the 17 `@license` comment blocks (only 6 are textually
30
+ distinct) down to one verbatim copy of each — required by BSD-3/MIT/Apache-2.0's notice-retention
31
+ terms either way, just no longer repeated once per source file that carries it. No API change;
32
+ build-time only, and none of the added tooling (`postcss`, `postcss-lit`, `cssnano`,
33
+ `minify-html-literals`) is a runtime or published dependency.
34
+
35
+ - Updated dependencies [c0c092b]
36
+ - Updated dependencies
37
+ - Updated dependencies [aad43b7]
38
+ - Updated dependencies [2b50f9e]
39
+ - Updated dependencies [a6a8b39]
40
+ - Updated dependencies [7b391b3]
41
+ - Updated dependencies [eb9ac79]
42
+ - @getvitops/utils@7.0.0
43
+ - @getvitops/generator@7.0.0
44
+
3
45
  ## 6.0.0
4
46
 
5
47
  **No consumer-facing change in this package.** The major is the toolchain's shared version, bumped
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getvitops/vite",
3
- "version": "6.0.0",
3
+ "version": "7.0.0",
4
4
  "description": "Vite plugin that generates Vitops design-system outputs from a design-system.json during a Vite/Astro build.",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -18,8 +18,8 @@
18
18
  "access": "public"
19
19
  },
20
20
  "dependencies": {
21
- "@getvitops/generator": "6.0.0",
22
- "@getvitops/utils": "6.0.0"
21
+ "@getvitops/generator": "7.0.0",
22
+ "@getvitops/utils": "7.0.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "vite": "^6.0.0",