@sarimarcus/content-sites-core 0.23.0 → 0.24.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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All packages in the platform release in lockstep; entries are per release version.
|
|
4
4
|
|
|
5
|
+
## 0.24.0 (2026-10-05)
|
|
6
|
+
|
|
7
|
+
### Breaking
|
|
8
|
+
|
|
9
|
+
- The image-variants push gate refuses any `widths=` call site once a site pins core 0.24.0. Run `scripts/platform/migrations/responsive-image.mjs --site-root=<site>` in the pin-bump commit; it moves every `<Picture>`/`<Image widths={IMAGE_LADDER}>` onto ui `ResponsivePicture`/`ResponsiveImage` (SLA-2960).
|
|
10
|
+
|
|
5
11
|
## 0.23.0 (2026-10-04)
|
|
6
12
|
|
|
7
13
|
- `./images`: `IMAGE_LADDER` gains 160 and 240 (now 160, 240, 320, 480, 640, 960, 1280). Thumbnails shown at 64-160 CSS px used to download the 320 file; they now get a 160 or 240 one, which cuts their bytes by about two thirds on desktop at 1x and about a third on phones at 2x. Every srcset gains the two entries, and an off-ladder width at or under 240 (an avatar's `width={64}`) now snaps to the 160 or 240 file instead of 320 (SLA-2958).
|
package/README.md
CHANGED
|
@@ -28,6 +28,6 @@ load `dist/`; `scripts/lib/core-dist.mjs` rebuilds it when it is missing or olde
|
|
|
28
28
|
service `defineSiteConfig` installs. The service never encodes: it serves committed variants from the site's
|
|
29
29
|
`image-variants/` (keyed by the source's content hash, listed in `manifest.json`) and the source bytes for the native
|
|
30
30
|
width, and caps each srcset at the source width. A call site asks for a responsive image with
|
|
31
|
-
`widths={IMAGE_LADDER}` plus `sizes
|
|
31
|
+
`widths={IMAGE_LADDER}` plus `sizes`, which ui's `ResponsiveImage` / `ResponsivePicture` pass for it; images without variants (galleries) get a single `src` and no srcset.
|
|
32
32
|
`content-sites-image-variants` (bin, `npm run images:variants` in a site) writes missing variants with sharp, an
|
|
33
33
|
optional peer, and prunes unused ones; `--check` is the local form of the push gate `scripts/validate-image-variants.mjs`.
|
package/package.json
CHANGED