@cosyte/hl7 0.0.4 → 0.0.5
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 +45 -0
- package/README.md +4 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -32,6 +32,28 @@ per the cosyte version ladder (`0.0.x` until first alpha).
|
|
|
32
32
|
because it is what a screen reader on the npm page reads out, so "banner", "logo", or the file
|
|
33
33
|
name would all be a wasted line.
|
|
34
34
|
|
|
35
|
+
**SUPERSEDED on 2026-07-31 by `1aee04b`, which replaced this banner with the shared Cosyte lockup
|
|
36
|
+
in a `<picture>` block.** The two paragraphs above are left exactly as they shipped rather than
|
|
37
|
+
corrected, because they were true of the tree and right on the evidence available when they were
|
|
38
|
+
written, and they record a real state the package passed through. This note says what changed
|
|
39
|
+
under them. It shipped verbatim inside the `@cosyte/hl7@0.0.4` tarball, so it is text a consumer
|
|
40
|
+
already has on disk.
|
|
41
|
+
|
|
42
|
+
**The claim the new evidence overturns is the second one: "whether npm's markdown sanitizer
|
|
43
|
+
preserves a `<picture>` element is unverified".** That is measured now. The first claim, that the
|
|
44
|
+
banner is a markdown image and "not `<img>` and not `<picture>`", was a consequence of the second
|
|
45
|
+
rather than an independent choice, so it went when its premise did; it is no longer true of the
|
|
46
|
+
tree either way, since `README.md` now opens with a `<picture>`. What was measured: **GitHub
|
|
47
|
+
honours the `prefers-color-scheme` switch**, verified on `@cosyte/astm` in dark mode, where the
|
|
48
|
+
rendered image's `currentSrc` resolves to the on-dark tile and its parent element is `PICTURE`.
|
|
49
|
+
**On the npm package page the `<img>` is hoisted out of its `<picture>` by the anchor wrapper**,
|
|
50
|
+
so the inner fallback renders rather than the element being stripped or broken; and **npmjs.com
|
|
51
|
+
has no dark mode** (founder-confirmed), so the light cut is the correct image there regardless.
|
|
52
|
+
The GitHub and npm measurements above were taken on `astm` and reported into this repo rather
|
|
53
|
+
than re-taken here; what was re-checked directly for `hl7` was that both tile URLs return
|
|
54
|
+
`200 image/png`. **PNG only** and **alt text is content, not decoration** are both unchanged and
|
|
55
|
+
still hold; only the element choice and its stated premise moved.
|
|
56
|
+
|
|
35
57
|
- **The published JSDoc is swept, and `src/` doc comments are gated
|
|
36
58
|
(`pnpm check:no-internal-refs` third pass; `PUBLIC-SURFACE-HYGIENE`).** Doc comments compile
|
|
37
59
|
into `dist/index.d.ts` and `dist/index.d.cts`, `dist` is the first entry in `files`, and every
|
|
@@ -414,6 +436,29 @@ kind, value)`** sets one at a field or `field[rep]` dot-path. Component values a
|
|
|
414
436
|
|
|
415
437
|
### Changed
|
|
416
438
|
|
|
439
|
+
- **`README.md` now opens with the shared Cosyte lockup in a `<picture>` block, replacing the
|
|
440
|
+
per-package banner (`1aee04b`).** The dark-ground org tile sits behind a
|
|
441
|
+
`prefers-color-scheme: dark` media query with the light-ground tile as the inner `<img>`, so on a
|
|
442
|
+
renderer that honours the switch the mark sits on a ground matching the page it is read on. One
|
|
443
|
+
markdown image line out, four lines in: the `# @cosyte/hl7` H1, the blockquote tagline, the badge
|
|
444
|
+
row and everything below are untouched.
|
|
445
|
+
|
|
446
|
+
**Why the per-package banner goes.** It baked the package name and the one-line tagline into
|
|
447
|
+
pixels, and the two lines directly beneath it repeated both. The shared lockup reads "Cosyte"
|
|
448
|
+
while the H1 reads `@cosyte/hl7`, so the strings differ, the duplication goes away, and the
|
|
449
|
+
heading stays.
|
|
450
|
+
|
|
451
|
+
**The failure mode is safe**: a renderer that strips `<source>` renders the inner `<img>`, so the
|
|
452
|
+
worst case is a light-ground mark on a dark page, never a missing or broken image. The block was
|
|
453
|
+
copied out of `astm/README.md` rather than retyped and the two URLs then diffed byte for byte
|
|
454
|
+
against that file, because a transcription error in one of them is a broken image on a public
|
|
455
|
+
package page. Both were re-verified `200 image/png` (10513 and 10455 bytes) immediately before
|
|
456
|
+
the push: the `live` flag in the `assets` manifest is a declaration made on evidence from another
|
|
457
|
+
repo, not a fact checked here. The alt text describes the mark rather than the package, since it
|
|
458
|
+
is what a screen reader on the npm page reads out and what a reader gets when the image fails.
|
|
459
|
+
This supersedes the `ASSETS-P8` banner entry under **Added** above, which is annotated in place
|
|
460
|
+
rather than rewritten. Documentation only: no runtime, API or packaging change.
|
|
461
|
+
|
|
417
462
|
- **Corrected stale "not yet published to npm / unpublished" language in the docs site
|
|
418
463
|
(README-ORG-SWEEP).** `@cosyte/hl7` is now published on npm at `0.0.1` and public, so the
|
|
419
464
|
`docs-content/installation.md` Status blockquote ("not yet published… the shape it will take at
|
package/README.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
<picture>
|
|
2
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://cosyte.com/tile/cosyte-lockup-tile-on-dark-1200x300.png">
|
|
3
|
+
<img alt="Cosyte: a plus mark set in two overlapping rounded squares, one solid and one outlined, beside the Cosyte wordmark" src="https://cosyte.com/tile/cosyte-lockup-tile-on-light-1200x300.png">
|
|
4
|
+
</picture>
|
|
2
5
|
|
|
3
6
|
# @cosyte/hl7
|
|
4
7
|
|
package/dist/index.cjs
CHANGED