@sdxc/kit 2026.10.26 → 2026.10.27

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.jsonl +18 -0
  2. package/package.json +2 -2
package/changelog.jsonl CHANGED
@@ -546,6 +546,7 @@
546
546
  {"release":"2026.10.2","package":"@sdxc/pagination","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
547
547
  {"release":"2026.10.2","package":"@sdxc/passkey","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
548
548
  {"release":"2026.10.2","package":"@sdxc/password-policy","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
549
+ {"release":"2026.10.2","package":"@sdxc/pdf","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
549
550
  {"release":"2026.10.2","package":"@sdxc/png","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
550
551
  {"release":"2026.10.2","package":"@sdxc/privacy-pass","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
551
552
  {"release":"2026.10.2","package":"@sdxc/problem","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
@@ -1463,3 +1464,20 @@
1463
1464
  {"release":"2026.10.26","package":"@sdxc/security-headers","type":"docs","breaking":false,"title":"Show passing the nonce to @sdxc/assets-middleware and when to read it","body":"The @sdxc/security-headers README now shows the usual wiring, where @sdxc/assets-middleware reads the nonce for the document's import map: assets(assetResolver, { stylesheets, script, nonce: (ctx) => ctx.securityHeaders.nonce }). It and the SecurityHeadersContext.nonce JSDoc state that the nonce must be read while the response is built, in the handler or a component that renders synchronously, because the headers are written when the middleware chain resolves and a later read leaves them without the nonce. No consumer effect."}
1464
1465
  {"release":"2026.10.26","package":"@sdxc/spec","type":"refactor","breaking":false,"title":"Drop ADR citations from comments","body":"Internal cleanup with no consumer effect: comments state their reasons instead of citing ADRs, and an internal metadata key is named META_KEY."}
1465
1466
  {"release":"2026.10.26","package":"@sdxc/ui","type":"refactor","breaking":false,"title":"Name the view-transition state map in UPPER_SNAKE_CASE","body":"Internal cleanup with no consumer effect: the per-frame transition state map is named FRAME_TRANSITIONS."}
1467
+ {"release":"2026.10.27","package":"@sdxc/font","type":"feat","breaking":false,"title":"Describe, permit and subset fonts for embedding","body":"A `Font` now reports what a document needs to embed it, and can write a\nsmaller font holding only the glyphs that document draws.\n\nNew read-only fields, in font units unless noted: `postscriptName`,\n`bbox` (`{ xMin, yMin, xMax, yMax }`), `italicAngle` (degrees),\n`capHeight` and `xHeight` (`null` before OS/2 version 2), `weightClass`,\n`isFixedPitch`, `isItalic`, `isBold`, `isSerif`, `underlinePosition` and\n`underlineThickness`. `embedding` reports the license in `OS/2.fsType`:\n\n font.embedding;\n // { allowed: \"installable\" | \"editable\" | \"preview-and-print\" | \"restricted\",\n // subsetting: boolean, bitmapOnly: boolean }\n\n`subset()` writes a valid `.ttf` with `.notdef` first, the requested\nglyphs in order, then the components of composite glyphs:\n\n let subset = font.subset(glyphIds); // Result<Font.Subset, FontError>\n if (isFailure(subset)) throw subset.error;\n subset.data.bytes; // Uint8Array\n subset.data.glyphId(glyphIds[0]); // its id inside the subset\n\nThe subset keeps outlines, metrics, names, `post` (format 3) and the\nhinting tables, and its `cmap` maps no characters, so glyphs are\naddressed by id. A font whose `fsType` forbids subsetting fails with a\n`FontError` whose `code` is the new `\"not-permitted\"`.\n\nNames stored with the Windows symbol encoding now decode as UTF-16BE."}
1468
+ {"release":"2026.10.27","package":"@sdxc/font","type":"feat","breaking":true,"title":"Add a cubic outline command and raw table access","body":"`Font.Command` gains a cubic Bézier step, which CFF outlines draw with,\nand `Font` can hand back any table's raw bytes.\n\nBreaking: code that switches on `command.type` must handle `\"cubic\"`.\nTrueType fonts still produce only `move`, `line`, `quad` and `close`, but\na renderer should fill the new step before CFF fonts reach it:\n\n // before\n if (command.type === \"quad\") path.quadTo(command.cx, command.cy, command.x, command.y);\n else path.close();\n\n // after\n if (command.type === \"quad\") path.quadTo(command.cx, command.cy, command.x, command.y);\n else if (command.type === \"cubic\") {\n path.cubicTo(command.c1x, command.c1y, command.c2x, command.c2y, command.x, command.y);\n } else path.close();\n\n`path()` scales cubic commands like the others.\n\n`font.table(tag)` returns a table's bytes as a `Uint8Array` view, or\n`null` when the font lacks it:\n\n font.table(\"DSIG\")?.byteLength;\n\nA font whose sfnt version is `OTTO` but whose outlines are in `glyf` now\nopens instead of being declined."}
1469
+ {"release":"2026.10.27","package":"@sdxc/font","type":"feat","breaking":false,"title":"Add @sdxc/font/color for COLR, CPAL and sbix glyphs","body":"The new `@sdxc/font/color` entry reads color glyphs from a parsed font.\nA font that only draws plain text pays nothing for it.\n\n`colorLayers(font, glyph, { palette })` returns a layered `COLR` glyph as\noutline glyphs, bottom to top, each with its `CPAL` color. A layer that\ntakes the text color has `color: \"foreground\"`. `palettes(font)` lists the\npalettes with their version 1 light/dark hints and label name IDs.\n`bitmap(font, glyph, ppem)` returns an `sbix` image from the smallest\nstrike at least `ppem` (else the largest), following `dupe` records; the\nbytes stay encoded (PNG, JPEG…) for `@sdxc/png` or a browser to decode.\n\n import { parseFont } from \"@sdxc/font\";\n import { bitmap, colorLayers } from \"@sdxc/font/color\";\n\n let font = unwrap(parseFont(bytes));\n let glyph = font.glyphIndex(0x1f61c);\n for (let layer of colorLayers(font, glyph) ?? []) {\n let color = layer.color === \"foreground\" ? textColor : layer.color;\n fill(font.path(layer.glyph, 48, x, y), color);\n }\n let image = bitmap(font, glyph, 48); // { type: \"png\", ppem, originX, originY, bytes }\n\n`colorLayers` answers `null` for a glyph without color, so draw its plain\noutline. A malformed color table answers `null` or `[]` and never throws.\nCOLR version 1 paint graphs are not interpreted; their version 0 fallback\nlayers are used."}
1470
+ {"release":"2026.10.27","package":"@sdxc/font","type":"feat","breaking":false,"title":"Read CFF and CFF2 outlines","body":"`parseFont` now opens OpenType fonts with PostScript outlines (`.otf`\nwith a `CFF ` or `CFF2` table), CID-keyed CJK fonts included, instead of\nrejecting them as unsupported. `outline()` and `path()` answer `cubic`\ncommands for these fonts, so any renderer that takes `move`, `line`,\n`cubic` and `close` draws them:\n\n import { parseFont } from \"@sdxc/font\";\n\n let font = unwrap(parseFont(otfBytes));\n let commands = font.path(font.glyphIndex(0x44), 32, 0, 32); // \"D\", cubic curves\n\nA CFF2 font draws its default instance. Hostile fonts are bounded: deep\nsubroutine nesting, stack overflows and runaway charstrings end the glyph\ninstead of hanging. `subset()` still answers `unsupported` for a CFF\nfont. TrueType fonts behave as before; no change is needed."}
1471
+ {"release":"2026.10.27","package":"@sdxc/font","type":"feat","breaking":false,"title":"Map every cmap format and read names, glyph data and vertical metrics","body":"`Font` now maps characters through every `cmap` format (0, 2, 4, 6, 8,\n10, 12, 13), Unicode variation sequences (format 14), Windows symbol\nfonts and single-byte Mac legacy encodings, and lists what it maps:\n\n font.characterSet; // sorted code points with a glyph\n font.hasGlyph(0x263a);\n font.glyphIndex(0x82a6, 0xe0101); // the variant glyph of a variation sequence\n font.stringsForGlyph(68); // [\"a\"]\n\nEvery `name` record is available by ID and language, falling back to\nEnglish, and `fullName`, `copyright` and `version` sit beside `family`:\n\n font.name(2, \"ar\"); // \"عادي\"\n font.names[1]; // { en: \"Amiri\", ar: \"Amiri\" }\n\nPer-glyph data: `glyphBBox(glyph)` (tight, from the curve extremes),\n`glyphCBox(glyph)` (control box), `glyphName(glyph)` from `post` or the\nCFF charset, and `svgPath(glyph)` for SVG path data in font units.\nVertical and device metrics come from `vhea`, `vmtx`, `VORG` and `hdmx`\nthrough `verticalMetrics`, `verticalAdvance(glyph)`,\n`topSideBearing(glyph)`, `verticalOrigin(glyph)` and\n`deviceAdvance(glyph, ppem)`.\n\nBehavior changes: a font whose only `cmap` is a Mac Roman (or other\nsingle-byte legacy) subtable now opens instead of failing with\n`unsupported`, and `layout()`/`measure()` fold a variation selector into\nthe character before it instead of laying it out as `.notdef`. Existing\ncallers need no change."}
1472
+ {"release":"2026.10.27","package":"@sdxc/font","type":"feat","breaking":false,"title":"Add variable font instances in @sdxc/font/variations","body":"The new `@sdxc/font/variations` entry lists a variable font's axes and\nnamed instances and fixes the font at a point of its design space. The\ninstance is an ordinary `Font` whose outlines, advances and line metrics\nare those of that point: TrueType `gvar` deltas with interpolation of\nuntouched points, `HVAR` or phantom-point advances, `MVAR` metrics,\n`avar` mapping and CFF2 blending.\n\n import { parseFont } from \"@sdxc/font\";\n import { axes, instance, namedInstances } from \"@sdxc/font/variations\";\n\n let font = unwrap(parseFont(bytes));\n axes(font); // [{ tag: \"wght\", name: \"Weight\", min: 200, default: 400, max: 900, hidden: false }]\n let bold = unwrap(instance(font, { wght: 700 }));\n let named = unwrap(instance(font, namedInstances(font)[0].name));\n bold.measure(\"Hello\", 32);\n\nAn instance is lazy: each glyph is varied the first time it is drawn or\nmeasured. Axis values are clamped to the axis range and axes left out\nstay at their default. A font without `fvar`, or a name that matches no\ninstance, fails with a `FontError` whose `code` is `\"unsupported\"`.\n\n`font.subset()` now answers `unsupported` for an instance instead of\nwriting the default glyphs. Existing code needs no change."}
1473
+ {"release":"2026.10.27","package":"@sdxc/font","type":"feat","breaking":false,"title":"Add OpenType shaping behind @sdxc/font/shaping","body":"The new `@sdxc/font/shaping` entry shapes a run of text with the font's\nGSUB, GPOS and GDEF tables: every GSUB (1–8) and GPOS (1–9) lookup type,\nlookup flags and mark filtering sets, script and language selection, user\nfeatures, feature variations, the legacy `kern` table for fonts without\nGPOS kerning, and canonical composition of base-plus-mark clusters.\nPositions are in font units; glyphs come back in visual order with\nUTF-16 clusters.\n\n import { featureParams, shape } from \"@sdxc/font/shaping\";\n\n let { glyphs } = shape(font, \"office\", { features: { liga: false, ss01: true } });\n for (let { glyph, xAdvance, xOffset, yOffset } of glyphs) {\n // draw font.path(glyph, …) at the pen, then advance it by xAdvance\n }\n featureParams(font, \"ss01\")?.nameId; // the stylistic set's name ID\n\n`script` takes an OpenType tag (`\"arab\"`, `\"dev2\"`) or an ISO 15924 code\nand is detected from the text when left out; `direction` follows the\nscript. `availableFeatures(font)` lists the features a script offers.\n\nThe entry carries generated Unicode 18.0 property tables (about 15 KB\ngzipped). `@sdxc/font` itself does not import them, so code that only\nmeasures text with `layout()` pays nothing. Script-specific shapers\n(Arabic, Indic and others) land separately; until then those scripts\nshape with the default shaper."}
1474
+ {"release":"2026.10.27","package":"@sdxc/font","type":"feat","breaking":false,"title":"Open WOFF, WOFF2, TrueType collections and dfont files","body":"`parseFont` now reads WOFF (`.woff`) fonts as well as `.ttf` and `.otf`,\ndecompressing them synchronously with no platform API. Font collections\nopen with the new `parseFontCollection`, which reads `.ttc` (versions 1\nand 2) and Mac `.dfont` files and finds a font by PostScript name:\n\n import { parseFontCollection } from \"@sdxc/font\";\n\n let collection = unwrap(parseFontCollection(bytes));\n collection.fonts.length;\n let italic = collection.get(\"NotoSans-Italic\");\n\nWOFF2 is decoded by the new `@sdxc/font/woff2` entry, which carries its\nown Brotli decoder so the main entry stays small. `parseWoff2` opens a\nfont directly; `decodeWoff2` answers plain sfnt bytes, to pass to\n`parseFontCollection` when the WOFF2 holds a collection. Variable fonts\ninside WOFF2 instance like the sfnt they were made from:\n\n import { parseWoff2 } from \"@sdxc/font/woff2\";\n\n let font = unwrap(parseWoff2(await response.arrayBuffer()));\n\n`toSVGPath(commands)` is now exported from `@sdxc/font`, to write SVG\npath data for any command list, such as a scaled `path()`.\n\n`parseFont` on a `.ttc` or `.dfont` fails with code `unsupported` and a\nmessage naming `parseFontCollection`; on a `.woff2` it names\n`@sdxc/font/woff2`. Existing callers need no change."}
1475
+ {"release":"2026.10.27","package":"@sdxc/font","type":"feat","breaking":false,"title":"Subset CFF, CFF2 and variable font instances","body":"`subset()` from the new `@sdxc/font/subset` entry writes a smaller font\nfor every outline format, with the same contract as `Font.subset()`:\n`.notdef` first, the requested glyphs in order, and `glyphId()` mapping\nan original id to its subset id.\n\n- CFF fonts keep their charstrings and only the subroutines the kept\n glyphs call; DICT entries equal to their defaults are dropped.\n- CID-keyed subsets use the Adobe-Identity-0 ordering, so a glyph's CID\n is the id `glyphId()` answers.\n- CFF2 fonts are written as CFF at their default location.\n- An `instance()` of a variable font is flattened, so the subset draws\n that instance with no variation tables.\n\n import { subset } from \"@sdxc/font/subset\";\n import { instance } from \"@sdxc/font/variations\";\n\n let bold = unwrap(instance(font, { wght: 700 }));\n let { bytes, glyphId } = unwrap(subset(bold, line.glyphs.map(({ glyph }) => glyph)));\n\n`Font.subset()` keeps writing TrueType subsets byte for byte as before;\nuse `subset()` for CFF fonts and instances."}
1476
+ {"release":"2026.10.27","package":"@sdxc/font","type":"feat","breaking":false,"title":"Shape AAT morx fonts, variable instances and marks without GPOS","body":"`shape()` from `@sdxc/font/shaping` now handles three kinds of font it\nused to shape only partly.\n\nFonts built for Apple platforms, whose substitutions live in the AAT\n`morx` table and have no GSUB, get their ligatures, contextual forms,\nrearrangement and insertions. `features` takes the same OpenType tags,\nmapped to the font's AAT settings, and `availableFeatures()` lists them:\n\n shape(font, \"ffi 1/2\", { features: { liga: false } });\n availableFeatures(font); // [\"tnum\", \"sups\", \"subs\", \"frac\", \"onum\", \"lnum\", \"liga\", \"kern\"]\n\nA variable font instance from `@sdxc/font/variations` shapes at its own\nlocation: FeatureVariations swap glyphs for that instance, and GPOS\nkerning and mark anchors include their variation deltas, rounded to font\nunits:\n\n shape(unwrap(instance(font, { wght: 900 })), \"$\");\n\nFonts without a GPOS table place combining marks over or under their\nbase by Unicode combining class, instead of leaving them after it.\n\nText in OpenType fonts with GSUB and GPOS shapes as before; no change is\nneeded."}
1477
+ {"release":"2026.10.27","package":"@sdxc/font","type":"feat","breaking":false,"title":"Shape Arabic, Hebrew, Thai, Lao and Hangul text","body":"`shape()` from `@sdxc/font/shaping` now runs script-specific shapers for\njoining scripts (Arabic, Syriac, Mongolian, N'Ko, Phags-pa, Mandaic,\nManichaean, Psalter Pahlavi), Hebrew, Thai and Lao, and Hangul. Before,\nthese scripts shaped with the default shaper, so Arabic letters kept\ntheir isolated forms, Thai SARA AM stayed whole and Hangul jamo were\nnever composed. Nothing changes in how you call it:\n\n import { shape } from \"@sdxc/font/shaping\";\n\n shape(font, \"سلام\"); // initial, medial and final forms\n shape(font, \"น้ำ\"); // SARA AM split, tone mark raised\n\nArabic-script text gets positional forms from a joining state machine,\nincluding the Syriac alaph and dalath/rish forms, and modifier marks\nsuch as hamza above sort before the vowels. Hebrew meteg settles next to\nits vowel, and fonts without GPOS mark positioning get precomposed\npresentation forms. Thai and Lao SARA AM split into NIKHAHIT and SARA AA,\nwith a private-use fallback for legacy Thai fonts. Hangul syllables are\ncomposed or decomposed to match the font's coverage, tone marks move\nbefore their syllable, and a stray tone mark gets a dotted circle."}
1478
+ {"release":"2026.10.27","package":"@sdxc/font","type":"feat","breaking":false,"title":"Shape Indic scripts and the Universal Shaping Engine","body":"`shape()` from `@sdxc/font/shaping` now reorders and forms conjuncts in\nDevanagari, Bengali, Gurmukhi, Gujarati, Oriya, Tamil, Telugu, Kannada,\nMalayalam, Sinhala and Khmer, and shapes Balinese, Javanese, Tibetan,\nTirhuta, Siddham and the other Universal Shaping Engine scripts:\npre-base matras move before their consonant, reph moves after its base,\nbelow-base and half forms apply, and a dotted circle stands in for a\nmissing base. Fonts built for the old (`deva`) or new (`dev2`) Indic\nspecification both work.\n\n import { shape } from \"@sdxc/font/shaping\";\n\n let { glyphs } = shape(font, \"क्षत्रिय\");\n // conjuncts formed, the i-matra drawn before its consonant;\n // each syllable's glyphs share one cluster\n\nText in these scripts used to shape with the default shaper and now\nshapes correctly with no change on your side. The script categories are\nderived from the existing Unicode tables, so the entry grows by no data."}
1479
+ {"release":"2026.10.27","package":"@sdxc/font","type":"docs","breaking":false,"title":"List the shaping, variations, color, WOFF2 and subset entry points","body":"The @sdxc/font README and package description now name every entry\npoint and what `parseFont` opens: `.ttf`, `.otf` with TrueType, CFF or\nCFF2 outlines, and `.woff`, with `parseFontCollection` for `.ttc` and\n`.dfont`. Documentation only; no change in behavior."}
1480
+ {"release":"2026.10.27","package":"@sdxc/pdf","type":"feat","breaking":false,"title":"Add @sdxc/pdf, a PDF writer with an imperative API","body":"@sdxc/pdf is a new package that writes PDF 1.7 documents from code. It needs\nno external binary and runs in Workers, Bun, Node and the browser. You create a\n`PDF`, register TrueType fonts and JPEG or PNG images, add pages, and draw text,\nwrapped paragraphs, lines, rectangles, images and links on them. Coordinates are\npoints, with the origin at the top-left corner and y growing downward.\n\n import { PDF } from \"@sdxc/pdf\";\n import { isFailure } from \"@sdxc/result\";\n\n let pdf = new PDF({ size: \"letter\", title: \"Report\", author: \"Ada\", lang: \"en\" });\n let regular = pdf.font(regularTtf);\n if (isFailure(regular)) return regular;\n\n let page = pdf.page();\n page.text(\"Report\", { x: 40, y: 40, font: regular.data, size: 24 });\n page.line({ from: [40, 72], to: [572, 72], width: 0.5, color: \"#999999\" });\n let summary = pdf.paragraph(\n [{ text: \"Read the \" }, { text: \"full report\", href: \"https://example.com\" }, { text: \".\" }],\n { width: 532, font: regular.data, size: 10, lineHeight: 1.4, align: \"justify\" },\n );\n page.paragraph(summary, { x: 40, y: 88 }); // returns the y below it\n\n return new Response(pdf.stream(), { headers: { \"content-type\": \"application/pdf\" } });\n\n- Fonts embed as Type0/CIDFontType2 with kerning, a W array and a ToUnicode\n map, so text copies and searches as written. Only the glyphs the document\n draws are embedded. A font whose license forbids embedding fails with\n `restricted-font`, and one whose license forbids subsetting embeds whole.\n- Paragraphs break lines at spaces and after hyphens, and take left, center,\n right or justified alignment. They expose `height` and `lines`, and\n `split(height)` cuts them in whole lines at a page break. The package never\n adds pages on its own.\n- JPEGs pass through unchanged. PNGs are decoded with @sdxc/png, and an image\n with transparency gets a soft mask.\n- The same calls with the same `createdAt` always write the same bytes."}
1481
+ {"release":"2026.10.27","package":"@sdxc/privacy-pass","type":"feat","breaking":false,"title":"Add a KV redemption store, router middleware and test helpers","body":"Three additions make an origin's Privacy Pass route a few lines.\n\n`@sdxc/privacy-pass/kv` keeps fresh challenges and spent nonces in Workers KV,\nso a challenge issued by one isolate can be answered at any other. Lifetimes\nunder KV's one-minute minimum are written as 60 seconds, and every key starts\nwith `\"privacy-pass:\"` unless you pass another prefix:\n\n import { KVRedemptionStore } from \"@sdxc/privacy-pass/kv\";\n\n new PrivacyPass({ issuer, store: new KVRedemptionStore(env.CACHE) });\n\n`@sdxc/privacy-pass/middleware` publishes an instance as `ctx.privacyPass`\nand adds `redeemOrChallenge(ctx, { onRedeem? })`. It answers `204` once a token\nredeems, with any headers `onRedeem` returns (such as a cookie), `401` with the\n`WWW-Authenticate` challenge otherwise, and `204` when the issuer cannot be\nreached. Every answer is `no-store`, and the outcome is recorded on the current\nlog as `privacyPass`:\n\n import { privacyPass, redeemOrChallenge } from \"@sdxc/privacy-pass/middleware\";\n\n router.get(routes.privacyPass, {\n middleware: [privacyPass(instance)],\n handler: (ctx) => redeemOrChallenge(ctx),\n });\n\n`@sdxc/privacy-pass/testing` adds `createTestPrivacyPass()`, an origin that\ntrusts a freshly generated issuer and keeps its keys and redemptions in memory,\nand `redeemThrough(fetch, issuer, url)`, which repeats a challenged request with\na token the way a client holding tokens does.\n\nThe package now depends on `@sdxc/logger`. Existing exports are unchanged."}
1482
+ {"release":"2026.10.27","package":"@sdxc/raster","type":"feat","breaking":false,"title":"Fill cubic outline commands from @sdxc/font","body":"`Path.from()` now draws the `cubic` command `@sdxc/font` emits for CFF\noutlines; before, a cubic step would have closed the contour. Consumers\nneed no change: glyphs from CFF fonts fill like TrueType ones."}
1483
+ {"release":"2026.10.27","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Leave room for the focus ring between a field's label and control","body":"`TextField`, `NumberField`, `SearchField`, `DateField`, `TimeField` and\n`ColorField` now put a `0.5rem` gap between the label, the control and the\ndescription or error under it. Before, the gap was `0.25rem`, so the focus ring\nof a focused control (2px off its edge and 3px wide) covered the bottom of its\nlabel. Their fields were also shorter than a `Select` or `TextArea` laid out\nwith the more common `0.5rem` gap, so the two didn't line up when placed side by\nside.\n\nNo change is needed to adopt it. A layout that relied on the tighter gap\nshows 4px more space per field."}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdxc/kit",
3
- "version": "2026.10.26",
3
+ "version": "2026.10.27",
4
4
  "description": "The sdxc command line: start a Remix v3 app, generate its files, copy UI components into it and upgrade it",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -29,7 +29,7 @@
29
29
  "peerDependencies": {
30
30
  "remix": "3.1.0"
31
31
  },
32
- "gitHead": "ff18988bd00de6200766dbc77367257277979566",
32
+ "gitHead": "33abc1099e147f3eb4af00cf5b25e50b8f1271a1",
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },