edfcore 0.4.395 → 0.4.396
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/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/docs/CHANGELOG.md +17 -0
- package/package.json +1 -1
- package/src/constants.ts +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -109,5 +109,5 @@ export declare const SIGNAL_FIELD_BLOCK_OFFSETS: {
|
|
|
109
109
|
readonly reserved: 224;
|
|
110
110
|
};
|
|
111
111
|
/** Published package version. Kept in sync with package.json by a test. */
|
|
112
|
-
export declare const VERSION = "0.4.
|
|
112
|
+
export declare const VERSION = "0.4.396";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,23 @@ alone does not tell you whether you were affected.
|
|
|
6
6
|
edfcore is pre-1.0. Patch releases have carried behaviour changes where the old behaviour was a
|
|
7
7
|
defect; those are called out below.
|
|
8
8
|
|
|
9
|
+
## 0.4.396
|
|
10
|
+
|
|
11
|
+
- **Added** a check that the share card is the image the page says it is. `og.png` is 537 KB of
|
|
12
|
+
pixels nothing in this repository opens, and it is the only thing many people ever see of the
|
|
13
|
+
project — every link posted in a channel or pasted into a chat renders it.
|
|
14
|
+
- `Base.astro` declares `og:image:width` and `og:image:height` to scrapers that lay the preview out
|
|
15
|
+
before the bytes arrive, so wrong numbers letterbox or crop the card at the far end, where nobody
|
|
16
|
+
who could fix it is looking. Those are now read out of the PNG's own IHDR chunk rather than taken
|
|
17
|
+
on trust.
|
|
18
|
+
- The export is `qlmanage` then `sips -c 630 1200`, which keeps the middle of a square thumbnail.
|
|
19
|
+
That works only because `og.svg` is a 1200x1200 canvas with the card in a band offset by half the
|
|
20
|
+
leftover; changing the canvas takes the wrong rows, quietly, because a wrongly cropped card is
|
|
21
|
+
still a card. The offset is now derived from the two numbers instead of being a literal.
|
|
22
|
+
- `og:image:alt` is what a screen reader says and what shows when the image fails. It quotes the
|
|
23
|
+
line the card prints, names the annotation the card draws and calls the trace green, and all
|
|
24
|
+
three are now checked against the SVG.
|
|
25
|
+
|
|
9
26
|
## 0.4.395
|
|
10
27
|
|
|
11
28
|
- **Added** a check that `vercel.json` describes the site this repository builds. It is the one
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED