Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/api-client
Republished because @sdxc/trace-context changed.
@sdxc/assets-middleware
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/attribution
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/auth
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/authz
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/backoff
Republished because @sdxc/random changed.
@sdxc/bench
Add weigh, HTTP latency CLI and gzipped budgets
Introduces @sdxc/bench so packages can assert entry-point gzipped size
after bun build --minify and sample latency against a running URL.
typescript
import{ weigh }from"@sdxc/bench";import{ unwrap }from"@sdxc/result";let weight =unwrap(awaitweigh("./src/index.ts"));// weight.gzipped held in CI
Markdown weight tests now import the package and assert gzipped budgets.
No doctor check and no first-class sdxc bench yet — use sdxc pkg bench.
First npm publish still needs bun run release:bootstrap @sdxc/bench.
Weigh entries with esbuild instead of Bun
weigh builds a minified browser bundle through esbuild in-process, so
the package no longer shells out to bun build and stays usable wherever
Node runs the test suite. Gzipped budgets and the CLI --max-gzipped
path are unchanged.
Prefer expect(gzipped) and drop the Vitest section
Rewrites the README in affirmative terms: consumers weigh with esbuild
via weigh, assert size with expect(weight.gzipped).toBeLessThan(…),
and invoke the CLI as bunx @sdxc/bench. Removes the Vitest performance
guide; keeps assertWeight documented only for the CLI Result path.
Markdown weight tests use toBeLessThan to match that style.
Show HTTP latency budgets inside a Vitest test
The Sample HTTP latency section now mirrors the weigh example: sampleHttp
runs in a test and expect() asserts ok / p95 / p99 on the report. Longer
how-to lives in the sdxc-site guides; this README stays a short install
and usage sketch. No consumer code change.
Prefer sdxc pkg bench for CLI examples
README command-line examples invoke the package through sdxc pkg bench
instead of bunx @sdxc/bench, matching how other package guides teach the
terminal. No consumer code change.
Rename HttpReport.errors to failures
HttpReport.failures is the count of requests that errored or timed out
(requests - ok), so a latency test asserts expect(report.failures).toBe(0)
instead of comparing ok to requests. The README example and field JSDoc
use that wording; the CLI summary prints failures the same way. Before the
first dated release, rename any report.errors reads to report.failures.
Link duration strings to @sdxc/duration
The CLI flag note links “duration string” to the @sdxc/duration npm page,
matching the DurationInput links already in the README. No consumer code
change.
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/billing
Verify Polar deliveries signed with a whsec_ secret's decoded key
PolarBilling verified every webhook delivery with the configured secret's UTF-8 bytes as
the key, which is how Polar signs for its dashboard secrets. An endpoint whose secret has the
Standard Webhooks form whsec_<base64> is signed with the decoded base64 instead, so each of
its deliveries failed verification, the endpoint answered 401, and Polar disabled it.
A delivery now verifies under either reading of the secret. Both come from the same secret,
so nothing new is accepted. No configuration changes; upgrade, redeploy, and re-enable any
endpoint Polar disabled.
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/blueprint
Generate files from .stub templates, in code or with sdxc-blueprint
New package @sdxc/blueprint. A stub is the text of a file with {{placeholders}}, an optional YAML front matter block, and two blocks: {{#if}} and {{#each}}. Placeholders pipe through filters (camel, pascal, kebab, snake, plural, singular, humanize, title, slug, upper, lower, upperFirst, lowerFirst, base). Rendering is strict: a missing value or unknown filter is an error naming the stub and line.
variables lists the values a set of stubs reads, each as text, a flag or a list, for building prompts or help. plan marks each file create, replace or conflict without writing, and write refuses a plan with conflicts.
The sdxc-blueprint command line (also sdxc pkg blueprint) runs the blueprints in .config/blueprint/: a folder of stubs or a single <name>.stub, each naming its output in front matter to:. Values are flags named after placeholders; <blueprint> --help, or a run missing a value, prints what the blueprint needs. --dry-run reports the plan, --force replaces existing files, --json prints data, and --list names every blueprint.
Terminal
bunx @sdxc/blueprint flag --name checkout-v2 --beta--variants control --dry-run
Mark the sdxc-blueprint entry executable
The sdxc-blueprint entry in the repository is now executable, like the other package command lines, so it runs directly from a checkout. Installs from npm are unaffected, and no consumer action is needed.
@sdxc/bracket-params
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/cache
Republished because @sdxc/logger changed.
@sdxc/captcha
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/catch-response-middleware
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/cbor
Republished because @sdxc/crypto changed.
@sdxc/ci
Add worktree, since, memory and watch to local runs
--worktree runs the script in a detached worktree of HEAD with a
frozen install inside it, so a dirty shared checkout can still sign
off while the step cache and run logs stay in the common git dir.
--since <ref> scopes to workspaces changed since that ref (plus
uncommitted files) the same way --scope does, and never signs off;
a change outside every workspace falls back to every entry.
Steps take an optional memory reservation from a --memory budget
(default three quarters of RAM), beside weight, and ci.memory
exposes total and free bytes. --watch re-runs on file changes with
debounce and abort; uncached steps re-run every cycle, cached ones
replay; --push with --watch is a usage error.
This repository's CI script narrows typegen and doctor with ci.scope,
scopes Check through vp check <paths>, and reserves 2GB for browser
test suites instead of capping matrix concurrency to cores/3.
Describe --concurrency as slots that weighted steps share
sdxc-ci run --help described --concurrency as the most steps running at once. It is the
number of concurrency slots, and a step holds as many as its weight (1 by default), so a
script that weights heavy steps runs fewer of them side by side. The help text now says so. No
behavior change.
Worker per core. A cold full run on a 10-core Mac went from 627–668 s with 5–7 failed entries to 604 s with none. CI hosts run one entry per machine and keep Vitest's default. The root Vitest project now collects tests anywhere under .config/sdxc/. No consumer effect.
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
Trim a step log's trailing newlines in linear time
Before, the terminal and GitHub Actions reporters stripped a step's trailing newlines with
the regular expression /\n+$/, which backtracks quadratically on a log holding many runs of
blank lines: a log of 200,000 newlines took seconds to print. Now the reporters scan back
from the end of the log, so printing takes time proportional to its length. The printed
output is unchanged, and consumers need not act.
@sdxc/cli
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
Let a program with no commands read its whole command line
A program built with @sdxc/cli that has no subcommands can now declare argument.rest() on its root group and map a handler to the program itself. The handler receives every token unparsed, --help included, so a program whose flags are only known at run time (for example, read from files the user names) can parse and document them itself.
typescript
import{ argument, commands, createCLI, success }from"@sdxc/cli";let program =commands({description:"Run a template",arguments:{args: argument.rest()},});let cli =createCLI({name:"gen",commands: program });cli.map(program,(ctx)=>{ ctx.stdout(`${JSON.stringify(ctx.arguments.args)}\n`);// gen flag --name x → ["flag","--name","x"]returnsuccess();});
A root argument.rest() beside subcommands, flags or another argument still throws when the CLI is created. Programs with subcommands behave as before.
@sdxc/cloudflare-mocks
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/cron
Republished because @sdxc/cli changed.
@sdxc/crypto
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/data-model
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/data-table-d1
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/data-table-sqlstorage
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/database-middleware
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/diagram
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/digest-fields
Republished because @sdxc/crypto changed.
@sdxc/distill
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/doh
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/email-address
Republished because @sdxc/cli changed.
@sdxc/email-auth
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/epub
Build EPUB books from Markdown, in code or with sdxc-epub
@sdxc/epub/markdown turns a Markdown file, or a folder of chapter files,
into the input EPUB.build takes. Every file is read through your own
read, so a book can live on a disk, in a bucket or in memory:
import { EPUB } from "@sdxc/epub"; import { fromMarkdown } from "@sdxc/epub/markdown"; let book = await fromMarkdown({ source: { files: ["index.md", "ch1.md", "ch2.md", "img/map.png"] }, read: async (path) => ({ bytes: await bucket.bytes(`book/${path}`) }), }); if (isFailure(book)) throw book.error; let built = EPUB.build(book.data.input);
The # heading is the title, shown alone on a centered title page. Each
## heading starts a chapter, and deeper headings fill the contents
down to tocDepth (default 3). Text between the title and the first
chapter gets a page of its own.
A folder reads index.md, then ch<N>.md files sorted by number (so
ch10.md follows ch9.md), then styles.css.
Images, the cover and stylesheet url()s are read once each and keep
the folder's layout. Links to headings or .md files in other chapters
point at the right page. Footnotes stay with the chapter that cites them.
metadata overrides the frontmatter. Without an identifier, one is
derived from the title and authors, so every rebuild is the same book.
fonts embeds font files and writes their @font-face rules from the
fonts themselves. A font whose license forbids embedding fails with the
new invalid-font code (EpubFontError).
remote: true reads http(s) images through read too.
onProgress reports each read against a known total.
Progress goes to stderr, one counted line per step, with downloads on a
line of their own.
--allow-remote downloads web images at your own risk, with a 30-second
deadline and a 20 MB cap per file.
With SOURCE_DATE_EPOCH set, two builds of one source are byte for byte
equal.
check exits 1 with the file to fix.
EPUB.build now writes ibooks:specified-fonts whenever a book holds a
font, because Apple Books ignores embedded fonts without it. Books that hold
no font are written exactly as before, so no action is needed.
Mark the sdxc-epub entry executable
The sdxc-epub entry in the repository is now executable, like the other package command lines, so it runs directly from a checkout. Installs from npm are unaffected, and no consumer action is needed.
@sdxc/expression
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/feed
Republished because @sdxc/outbound changed.
@sdxc/file-storage-r2
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/flags
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/flags-engine
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/font
Republished because @sdxc/cli changed.
@sdxc/get-client-ip
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/health
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/highlight
Republished because @sdxc/markdown changed.
@sdxc/honeypot
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/hostname
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/html
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/http
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/http-signatures
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/i18n
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/icalendar
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/icons
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/idempotency
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/ip
Republished because @sdxc/cli changed.
@sdxc/jmap
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/jobs
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/jscalendar
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/jscontact
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/jsdoc
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/json-canonical
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/json-patch
Republished because @sdxc/cli changed.
@sdxc/json-schema
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/jsonc
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/jsonpath
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/jwt
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/kit
Register sdxc-bench in the pkg catalog
Lists bench among packages with a command line so sdxc pkg bench
runs @sdxc/bench's weigh and HTTP latency CLI through the installed
binary.
Wire worktree, since, memory and watch into sdxc ci
sdxc ci forwards the new @sdxc/ci flags. With --worktree it skips
the main checkout's frozen install so the temporary worktree installs
and links workspace packages against HEAD itself.
Describe sdxc ci --concurrency as slots that weighted steps share
The command reference now says --concurrency sets the concurrency slots running steps share,
each holding its weight (1 by default), rather than a count of steps. No behavior change.
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
Wire generated apps to Remix csp() plus securityHeaders
The app template splits Content-Security-Policy into
CONTENT_SECURITY_POLICY for Remix's csp() and keeps HSTS,
Referrer-Policy and the rest on SECURITY_POLICY for
securityHeaders(). Page middleware installs csp() before
securityHeaders() and hands getCspNonce to assets().
Apps already generated are unchanged; only new sdxc create output
picks this up.
Shorten app template JSDoc to three lines
sdxc doctor's jsdoc check rejected the Remix CSP migration comments on
config/security-policy.ts and the page middleware export, so a freshly
created app failed the create template suite. Consumers get the same wording
compressed to the three-line limit; no runtime change.
Run @sdxc/epub's command line with sdxc pkg epub
sdxc pkg epub now runs the sdxc-epub command line from @sdxc/epub,
which writes EPUB books from a Markdown file or a folder of chapter files:
sdxc pkg --help lists it among the packages with a command line. Nothing
changes for other commands.
Run @sdxc/blueprint's command line with sdxc pkg blueprint
sdxc pkg blueprint now runs sdxc-blueprint from @sdxc/blueprint, which generates files from the .stub blueprints a project keeps in .config/blueprint/, and sdxc pkg --help lists it.
Terminal
sdxc pkg blueprint --listsdxc pkg blueprint flag --name checkout-v2 --dry-run
sdxc make is unchanged and keeps using the kit's built-in stubs and their overrides in make.stubs.
Render make and scaffold stubs with @sdxc/blueprint
sdxc make and sdxc scaffold now render their stubs with @sdxc/blueprint, so a stub you override in make.stubs can use its filters and blocks as well as plain placeholders:
A placeholder a kind does not define is still an error naming the stub and the placeholders it accepts.
Plurals now come from @sdxc/strings instead of three suffix rules. Before, sdxc make model person named its table persons, and sdxc scaffold child wrote childs. Now they are people and children, and quiz becomes quizzes. Regular nouns (post, category, box) are unchanged. Files you already generated keep their names; pass --plural to sdxc scaffold to keep the old spelling for a new resource.
sdxc scaffold now refuses a name that reads the same in the plural, such as news or series, since its singular and plural names would collide; name the plural with --plural news-items.
@sdxc/lazy-frame
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/lazy-route
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/logger
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/mail
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/markdown
Add a Vitest bench for Markdown.parse
Registers a suite benchmark on a short GFM article so parser throughput
is measured with vp test bench --project packages. Comparisons with
toBeFasterThan wait on Vitest 5's bench fixture; until then this file
is the pattern for input→output benches.
Parse long paragraphs, reference runs and deep lists in linear time
Three inputs made Markdown.parse slow down faster than the document grew:
A paragraph of many lines: locating each text node and line break in the source scanned
every line before it. 60,000 short lines took about 2.4 seconds; they now take a few
milliseconds.
A run of reference definitions: each definition re-joined the rest of the paragraph before
reading the next one. 10,000 definitions took about 400 ms; they now take about 5 ms.
Deeply nested lists: every list item re-measured the leading spaces of the line. A list
1,000 levels deep took about 630 ms; it now takes about 30 ms.
The parsed tree, positions included, is unchanged. No action is needed; upgrading makes large
documents parse faster.
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/math
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/mcp
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/merge-patch
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/messaging
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/microformats
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/micropub
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/newsletter
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/no-www-middleware
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/openapi
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/openpgp
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/outbound
Republished because @sdxc/doh changed.
@sdxc/pagination
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/passkey
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/password-policy
Republished because @sdxc/crypto changed.
@sdxc/pdf
Republished because @sdxc/font changed.
@sdxc/privacy-pass
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/problem
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/qr
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/random
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/raster
Republished because @sdxc/font changed.
@sdxc/rate-limit
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/rdap
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/robots
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/saml
Republished because @sdxc/crypto changed.
@sdxc/sample
Republished because @sdxc/crypto changed.
@sdxc/scim
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/scitt
Republished because @sdxc/backoff changed.
@sdxc/search
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/security-headers
Hand CSP and nonces to Remix's csp()
SecurityHeaders.Policy no longer carries Content-Security-Policy
fields, and securityHeaders() no longer publishes a nonce. CSP parse,
stringify, merge, reports, audit and Permissions-Policy stay here.
New exports:
@sdxc/security-headers/remix — remixCsp(directives, nonce) turns
this package's unquoted directives into the quoted object Remix's
csp({ policy }) factory expects.
ADR-191 records the split; ADR-089 points at it. Peer dependency is
remix 3.2.0. No other consumer migration is in this commit.
Skip cspPatch rebuild when Remix wrote no CSP
importMapHash (and similar) can queue a CSP patch on every request.
When Remix's default HTML-only csp() left a JSON response untouched,
cspPatch still rebuilt it and under MSW that Headers copy dropped
Content-Type on /health and /stats.json.
Before: any queued patch rebuilt the response and could invent CSP on
non-HTML answers.
After: patches apply only to headers Remix already wrote; otherwise the
response passes through. No consumer action.
@sdxc/semver
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/seo
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/session-storage-kv
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/sitemap
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/spam
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/spec
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/structured-fields
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/trace-context
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/trailing-slash-middleware
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/typeid
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/u
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/ui
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/user-agent
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/uuid
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/validate
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/web-push
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/webhooks
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/webmention
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/websub
Republished because @sdxc/crypto changed.
@sdxc/well-known
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/workers-cache
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/x402
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
No consumer code changes in this commit.
@sdxc/zone-file
Bump remix to 3.2.0
Every workspace that depended on remix 3.1.0 now pins 3.2.0, including
the kit app template and the lockfile. Remix 3.2.0 ships
remix/middleware/csp for Content-Security-Policy and per-request
nonces; vendor docs under docs/vendor/@remix-run are refreshed to match,
including the new csp-middleware package notes.
Add retries, weights, run logs, --rerun-failed and clean
Steps take two new options. retry: n runs a failed step again up to
n times; a pass on a retry is reported as flaky, with its attempt count,
in the summary and in --json. weight: n makes a heavy step hold n
concurrency slots while it runs.
Matrix entries now start slowest first, using how long each took in the
previous run. Every run keeps its report and one log file per step
under .git/sdxc-ci/runs/ (the newest 20), and prints that folder as its
last line, or as logs in --json. run --rerun-failed runs only the
steps the last run failed.
On a terminal, a status line names the steps still running. On GitHub
Actions each step's log folds into a group, failed steps are annotated,
and a summary table is written to the job summary. Cached passes unused
for 30 days are pruned, and npx @sdxc/ci clean removes the cache and
the run history, keeping signoff records. ci.files, the new reporters
and lastRun/recordRun are exported for scripts and wrappers.
@sdxc/kit
Add sdxc ci clean and sdxc ci --rerun-failed
sdxc ci takes the new flags of npx @sdxc/ci run, including
--rerun-failed, which runs only the steps the last run failed, and
shows a live status line of running steps on a terminal.
sdxc ci clean removes the CI cache and run history, keeping signoff
records.
@sdxc/mail
Republished because @sdxc/ui changed.
@sdxc/ui
Render DocsNav's title filter on the server and make it work without script
Before, DocsNav's filter field was rendered hidden and only appeared once the
browser entry loaded @sdxc/ui/docs/docs-nav-tools, so the sidebar shifted down
when the script ran, and a reader without script never got a filter.
Now the field is part of the server HTML, inside a GET form on the current
address. Without script, pressing Enter reloads the page with ?filter=<query>.
Pass that parameter back as filter.query and the tree renders filtered: pages
that miss the query are hidden, groups holding a match open, and the
"no results" line shows when nothing matches. With script, the field filters as
the reader types and the form never submits.
filter.name changes the query parameter (default "filter"). Matching now
reads only a page's title, so a badge such as "New" no longer matches a query.
Existing callers keep working without changes; pass query to support readers
without script.
Add @sdxc/ci, CI as a script that signs green commits off
@sdxc/ci runs CI as a TypeScript script, the same way on a laptop and
on a CI host, and marks a green commit with an sdxc/ci GitHub commit
status so the hosted run can skip it.
Run it with npx @sdxc/ci run ci.ts, and add --push to push exactly
the tested commit before signing it off. A signoff is posted only for
a run that ran every step and tested a clean tree with an unchanged
HEAD. npx @sdxc/ci verify <sha> exits 0 when someone with write
access signed a commit off, for a CI workflow's gate job. list prints
the steps or one matrix's entry keys, and signoff posts the status a
green run recorded for a commit pushed afterwards.
Add ci.files, ci.root, ci.cores and workspace cache inputs
A CI script can now find files and size its groups without importing
Node modules. ci.files(glob) lists the tracked files matching a glob,
relative to the project root; ci.root is that root as an absolute
path; ci.cores is the machine's available parallelism. Each workspace
from ci.workspaces() also carries inputs, the cache globs a matrix
entry over it uses by default (its files, every workspace it depends
on, and the root files), so a step can extend them.
Stop every process a step started when the step is aborted
Before, a step stopped by its timeout, by a failFast sibling or by
Ctrl-C only killed the shell running it. On Linux the shell runs a
command line's programs as its own children, so those kept running,
held the output open, and the step waited for them to finish: a
timeout: 100 on sleep 5 took five seconds. Each command now runs in
a process group of its own, and stopping a step stops the whole group,
so a timed-out or aborted step ends at once on every platform. No
action needed.
@sdxc/cli
Export closest() for did-you-mean suggestions
closest(input, candidates) from @sdxc/cli answers the candidate a mistyped name most likely meant, the same way the generated "did you mean" hints for commands and flags pick it: the nearest by edit distance, with a swap of two neighbouring characters counted as one edit, within a third of the input's length. It answers undefined when nothing is close enough.
import { closest } from "@sdxc/cli";
Print piped examples with the program after the pipe
Before, help put the program's name in front of every example, so an example fed by another command printed as prog cat a.json | hash, and one that already named the program printed it twice (prog curl … | prog extract). Now the program goes before the command after the last pipe (cat a.json | prog hash), and an example that already names it there prints as written. --help --json lists examples the same way. No action is needed; write piped examples as cat a.json | hash and they print correctly.
@sdxc/cloudflare-mocks
Republished because @sdxc/uuid changed.
@sdxc/cron
Add the sdxc-cron command line
@sdxc/cron now ships an sdxc-cron bin with three commands. Quote the
expression so the shell leaves * alone, or pass - (or nothing) to read it
from stdin. Every command takes --json for scripts and agents.
List upcoming runs on a zone's wall clock, strictly after --from (default
now; --tz defaults to the machine's zone, -n to 5):
Print what a schedule means and its normalized expression:
bunx @sdxc/cron describe "0 9 * * 1-5" # Every Monday, Tuesday, Wednesday, Thursday and Friday at 09:00 # Expression: 0 9 * * 1-5
Check an expression; it exits 1 naming the reason, field and position:
bunx @sdxc/cron validate "0 25 * * *" # Invalid cron expression: out-of-range in the hour field # 0 25 * * * # ^
Exit codes: 0 done, 1 validate found the expression invalid, 2 usage errors
or an unreadable or invalid expression for next and describe. Library
consumers need no change.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg cron … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/crypto
Add the sdxc-crypto command line
@sdxc/crypto now ships a command line, sdxc-crypto, that runs the
package's operations from a terminal, a script or CI with no code:
bunx @sdxc/crypto --help
Input is a file path, or stdin when the path is - or absent. Keys, TOTP
secrets and passwords are read from a file, stdin or a named environment
variable, never from the command line. --json prints a machine-readable
result. Exit codes: 0 done, 1 a verification found a mismatch, 2 bad usage
or unreadable input.
token prints a random base64url secret (--bytes, --prefix), ready
to pipe into a secret store:
totp prints the current one-time code for a base32 secret from
--secret-file or --secret-env (--digits, --step, --algorithm,
--at):
bunx @sdxc/crypto totp --secret-file totp.txt
scrypt hash and scrypt verify hash a password piped on stdin (or typed
at a masked prompt) and check one against a stored hash, exiting 1 on a
mismatch:
Library consumers need no action; the package now also installs @sdxc/cli
and remix, which only the command line loads.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg crypto … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/data-model
Republished because @sdxc/cli changed.
@sdxc/database-middleware
Republished because @sdxc/cli changed.
@sdxc/diagram
Add the sdxc-diagram command line
@sdxc/diagram now ships an sdxc-diagram command that draws Mermaid
diagrams as SVG and checks them without drawing, with no code to write.
Render a file, or stdin when the file is - or absent, to stdout or a file:
--alt <text> sets the drawing's accessible name. A diagram outside the
supported syntax exits 2 and prints file:line:column reason on stderr.
Check a diagram without drawing it; unsupported syntax exits 1, and --json
prints { "valid": false, "reason": "...", "line": 3, "column": 3 }:
bunx @sdxc/diagram check flow.mmd --json
An unreadable file exits 2. bunx @sdxc/diagram --help lists every flag.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg diagram … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/digest-fields
Republished because @sdxc/crypto changed.
@sdxc/distill
Add the sdxc-distill command line
@sdxc/distill now ships an sdxc-distill command line with one command,
extract, which prints the article a page carries: its title, byline and
sanitized body.
Read a saved page or stdin instead, resolving its relative links against the
address it was served from, and print readable text headed by the title and
byline:
--format html|text|json picks the output (--json is short for
--format json, with every field the library returns), and --user-agent
names the requester for a URL. It exits 0 with an article, 1 when the page has
no article or the site refused or ran out of time (the reason goes to stderr),
and 2 for usage errors or an unreadable file. The library API is unchanged.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg distill … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/doh
Add the sdxc-doh command line
@sdxc/doh now ships a command line, so you can look up a name's records over DNS over HTTPS from a terminal, CI or an agent without writing a script:
bunx @sdxc/doh lookup example.com --type MX
lookup <name> prints a dig-style answer section, with any CNAMEs followed listed first:
;; ANSWER SECTION: www.example.com. 60 IN CNAME example.com. example.com. 300 IN MX 10 mail.example.com.
--type (-t) takes any record type as a mnemonic or TYPEnnn and defaults to A.
--resolver (-r) takes cloudflare (the default), google, or any https:// DoH endpoint.
--wire speaks RFC 8484 wire format, which also reports RFC 8914 extended errors.
--dnssec sets the DO bit.
--json prints the typed answer that resolve() returns, or { name, type, error } when the lookup fails:
The command exits 0 when it finds records. It exits 1 on NXDOMAIN, an empty answer (NODATA), SERVFAIL or any other error code. It exits 2 on a usage error or when the resolver returns no DNS answer. bunx @sdxc/doh --help lists every flag. Nothing changes for code that imports the library.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg doh … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/email-address
Add the sdxc-email-address command line
@sdxc/email-address now ships a sdxc-email-address command that checks addresses
from a terminal, a script or CI, using the same parsing, disposable-domain list and
mail-server lookup as the library.
check normalizes an address, reports a disposable domain, and looks up whether the
domain accepts mail (its MX hosts, a null MX, or an A/AAAA fallback over DNS over HTTPS):
bunx @sdxc/email-address check Jane@Example.COM ✓ Jane@example.com mail via mail.example.com
With - or no address it reads one address per line from stdin and looks each domain
up once; --skip-mx leaves the DNS lookup out and --json prints the report for a
script:
It exits 0 when every address passes, 1 when any is invalid, disposable or cannot
receive mail, and 2 on a usage error or empty input. The library API is unchanged.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg email-address … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/email-auth
Add the sdxc-email-auth command line
@sdxc/email-auth now ships a command line, sdxc-email-auth, and a
checkEmailAuth() function that grades every email-authentication
policy a domain publishes.
check grades DMARC, SPF (lookup count and permerror causes), MTA-STS
(the TXT record, the policy file and whether every MX host is listed),
TLS-RPT, BIMI (including whether DMARC qualifies the logo) and the DKIM
key at each --selector. Each policy reads pass, warn, fail or
error, with the reasons listed beneath. The command exits 0 when every
policy holds (warnings included), 1 when any is missing, invalid or
could not be read, and 2 on a usage error. --json prints the report as
{ domain, ok, results: [{ policy, verdict, name, summary, problems, selector? }] }.
The same audit is available in code:
import { checkEmailAuth } from "@sdxc/email-auth"; let report = await checkEmailAuth("example.com", { dkimSelectors: ["google"] }); if (!report.ok) console.error(report.results.filter((r) => r.verdict === "fail"));
It takes dkimSelectors, bimiSelector, skip, policyTimeout and the
usual resolver, signal and timeoutMs lookup options.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg email-auth … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
Parse hostile MTA-STS policies and SPF records in linear time
Before: parseMtaStsPolicy and parseSpfRecord used regular expressions that
backtracked quadratically, or worse, on crafted input. A policy line such as
mode: followed by 20 000 tabs and a stray carriage return took seconds to
reject. So did an SPF record with a very long mechanism name or top label.
Both inputs come from the domain being checked, so anyone could serve them.
After: the policy value is trimmed, the mechanism name is matched and the
top label is checked with linear scans. Valid input parses exactly as
before, and invalid input is rejected with the same errors. No action is
needed from consumers.
@sdxc/feed
Republished because @sdxc/outbound changed.
@sdxc/flags
Republished because @sdxc/jobs changed.
@sdxc/flags-engine
Republished because @sdxc/flags changed.
@sdxc/font
Add the sdxc-font command line
@sdxc/font now ships an sdxc-font command line with two commands. Both read
.ttf, .otf, .woff, .woff2, .ttc and .dfont files from a path, or
from stdin when the path is - or left out. They exit 0 when done, 1 when the
font's license forbids the subset, and 2 for usage errors or unreadable input.
inspect prints each font's names, metrics, glyph and character counts,
embedding permission, variable axes, named instances and color tables. Add
--json to get { file, fonts } as data:
subset writes a font that holds only the glyphs a text draws, taking the
text from --text or --text-file. Glyphs are addressed by id, the way a PDF
embeds them, so the subset maps no characters. --instance fixes a variable
font first, either at axis values (wght=700) or at a named instance
(Bold). --name picks one font out of a collection. --output sets the
file, and without it the subset goes to stdout. With --json it prints the
subset glyph id of each character, plus the characters the font has no glyph
for:
Library consumers are not affected: the command line loads only when the bin
runs.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg font … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/get-client-ip
Republished because @sdxc/ip changed.
@sdxc/health
Republished because @sdxc/logger changed.
@sdxc/highlight
Pick the token palette from color-scheme instead of the system setting
Before, @sdxc/highlight/styles.css switched every --highlight-* default to
the dark palette under @media (prefers-color-scheme: dark). A page shown in
light mode on a computer set to dark mode painted light-blue strings and
near-white text on a light code block, which made the code unreadable.
Now each default is a light-dark() pair, resolved in the color-scheme of
the element the code sits in, so the palette always matches the page around it.
Pages that support dark mode must declare it; one that declares no
color-scheme reads the light palette:
<html style="color-scheme: light dark">
The theme classes from @sdxc/u/theme.css (dark, system) set it for you.
Palettes that declare their own --highlight-* properties are unaffected.
The README now opens its usage with how to load the stylesheet.
@sdxc/honeypot
Republished because @sdxc/crypto changed.
@sdxc/hostname
Republished because @sdxc/api-client changed.
@sdxc/html
Add the sdxc-html command line
@sdxc/html now ships an sdxc-html command line for reading a page as the server sent it, from
a URL, an HTML file or stdin.
query lists the elements with a role, optionally narrowed to one accessible name. It exits 1
when nothing matches and names what the page does carry under that role, so it works as a smoke
check in CI:
--json prints a stable shape for scripts and agents, an unreadable page or a response that is
not text/html exits 2, and bunx @sdxc/html --help lists every flag. The library API is
unchanged.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg html … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/http
Republished because @sdxc/crypto changed.
@sdxc/http-signatures
Add the sdxc-http-signatures command line
@sdxc/http-signatures now ships a command line, sdxc-http-signatures,
for debugging RFC 9421 and draft-cavage-12 signatures against a verifier
with no code:
bunx @sdxc/http-signatures --help
Keys are PEM or JWK, read from --key-file (- for stdin) or
--key-env <name>, never from the command line; --alg picks the
algorithm for an RSA key, which otherwise reads as rsa-v1_5-sha256.
Exit codes: 0 done, 1 a signature that does not verify, 2 bad usage or
unreadable input.
sign <method> <url> signs a request built from -H name:value
headers and an optional --body-file, and prints the headers signing
wrote (Signature-Input, Signature, the body digest and Date).
--scheme draft-cavage signs under draft-cavage-12, --components
chooses what is covered ('@method @authority @query-param;name="q"'),
--curl prints a curl command that sends the signed request and
--json a report:
verify [request.http] reads a raw HTTP/1.1 request from a file or
stdin and verifies it against --key-file, --key-env or the key set
at --jwks <url> (a JWKS or a Web Bot Auth key directory, picking the
key whose kid is the keyid). A failure exits 1 naming the check
(invalid-signature, digest-mismatch, stale-signature, …) and the
components the signature covers. --max-age, --now and --label
match the library's options:
The library gains importSignatureKey(key, { usage, algorithm? }), which
imports a PEM or JWK key for sign or verify and picks the algorithm
from the key's type:
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg http-signatures … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/i18n
Republished because @sdxc/cli changed.
@sdxc/icalendar
Add the sdxc-icalendar command line
@sdxc/icalendar now ships an sdxc-icalendar command line for checking
calendar files and expanding recurrences without writing a script. Run it
with bunx @sdxc/icalendar or npx @sdxc/icalendar; --help lists every
flag.
Check a calendar. Structural errors, reader warnings (a missing UID or
DTSTAMP, an unreadable value) and events whose TZID or rule cannot expand
are each printed with their line, and any of them exits 1:
List the occurrences overlapping a window, from RRULE, RDATE and EXDATE,
with a RECURRENCE-ID override replacing the instance it names. TZIDs
resolve through the calendar's VTIMEZONEs, and occurrences print on the
--time-zone wall clock (UTC by default):
Every command reads stdin when the file is absent or -, and --json
prints a stable report. Exit codes: 0 done, 1 problems found, 2 usage or
unreadable input.
The library gains calendarOccurrences(calendar, { from, to, limit, timeZone }) from @sdxc/icalendar/rrule, which expands every event in a
calendar at once, earliest first, applying RECURRENCE-ID overrides:
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg icalendar … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/icons
Breaking: Upgrade the icons to Lucide 1.61.0
@sdxc/icons now ships Lucide 1.61.0: 1,903 icons, up from 1,746. 177 icons are
new, 98 keep their names with updated drawings, and 20 are gone.
Four removed icons have the same drawing under a new name. Rename them:
import { Trash2Icon } from "@sdxc/icons";<Trash2Icon size={16} /><Icon name="history" />
After:
import { TrashIcon } from "@sdxc/icons";<TrashIcon size={16} /><Icon name="rotate-ccw-clock" />
TrashIcon now draws the bin with two lines, the drawing Trash2Icon had. The
plain bin has no equivalent in Lucide 1.61.0.
These icons have no icon with the same drawing in 1.61.0. Pick a replacement
from https://lucide.dev/icons/ (the faces now live under face-*, for example
FaceAngryIcon): AlbumIcon, AngryIcon, AnnoyedIcon, BookMarkedIcon,
FlipHorizontal2Icon, FlipVertical2Icon, FrownIcon, LaughIcon, MehIcon,
MusicIcon, Music2Icon, Music3Icon, Music4Icon, PodcastIcon, SmileIcon and
SmilePlusIcon.
Export the Lucide version and every icon's search tags
@sdxc/icons now exports LUCIDE_VERSION, the Lucide release its icons were
generated from. Use it to key a cache of anything drawn from the icons:
import { LUCIDE_VERSION } from "@sdxc/icons";let spriteUrl = `/icons.svg?v=${LUCIDE_VERSION}`;
A new @sdxc/icons/tags entry point exports iconTags, the search words Lucide's
catalogue matches each icon by:
The tags live in their own entry point, so code importing only components
never loads them. Nothing changes for existing imports.
@sdxc/idempotency
Republished because @sdxc/crypto changed.
@sdxc/ip
Add the sdxc-ip command line
@sdxc/ip now ships an sdxc-ip command line for checking addresses
against the IANA special-purpose registries without writing a script.
Classify an address: its version, canonical form, classification
(private, loopback, documentation, link-local, …), whether it is
public, and the IPv4 an IPv4-mapped, NAT64 or 6to4 address carries:
contains exits 0 when the address is inside and 1 when it is outside;
an address of the other version is always outside. --json prints
{ range, address, contains } in canonical text. Both commands exit 2
for text that is not an address, a malformed range, or a range with bits
set past its prefix. Library consumers need not act; the package now
depends on @sdxc/cli.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg ip … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/jmap
Republished because @sdxc/api-client changed.
@sdxc/jobs
Republished because @sdxc/cli changed.
@sdxc/jscalendar
Add the sdxc-jscalendar command line
@sdxc/jscalendar now ships an sdxc-jscalendar command line for converting, expanding and
validating calendars at a terminal, in CI or from an agent. Each command reads a file path, or
stdin when the path is - or left out. Exit codes: 0 done, 1 problems found, 2 usage or
unreadable input. --help lists every flag.
Convert a JSCalendar Event, Task or Group to iCalendar, or an iCalendar file to a JSCalendar
Group. The input format is detected from the text, or set with --from:
List the occurrences of every event and task inside a window, one tab-separated line each
(start, end, uid, title), or as JSON with --json. Dates without an offset are read in
--time-zone (UTC by default), and --limit caps the list (1000 by default). Both JSCalendar
and iCalendar input are accepted:
Check a JSCalendar document against RFC 8984 and list every problem at its property path,
exiting 1 when there is any; --json prints { valid, type, uid, issues }:
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg jscalendar … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
Trim fractional-second zeros without a regex
formatLocalDateTime removes trailing zeros from the milliseconds with a
loop instead of a regular expression. Its output is the same, and consumers
see no change.
@sdxc/jscontact
Add the sdxc-jscontact command line
@sdxc/jscontact now ships a command line, sdxc-jscontact, for converting contacts between
JSContact, vCard and jCard and validating JSContact Cards without writing a script. Run it with
bunx @sdxc/jscontact (or npx @sdxc/jscontact); --help lists every flag.
convert reads a file, or stdin when the file is - or left out, detects its format (or takes
--from jscontact|vcard|jcard) and writes the --to format to stdout. One contact in gives
one out; several give a JSON array, or one vCard after another:
validate checks one Card, or a JSON array of them, against RFC 9553 and RFC 9982. It prints
valid, or one path: message line per problem and exits 1; --json prints
{ "valid": …, "issues": [{ "path": [...], "message": "…" }] }:
Both exit 2 on a usage error or input that cannot be read as its format.
The library also exports detectFormat(text) from @sdxc/jscontact/vcard, which answers
"jscontact", "vcard" or "jcard" from a document's text alone, or null:
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg jscontact … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/jsdoc
Add the sdxc-jsdoc command line
@sdxc/jsdoc now ships an sdxc-jsdoc command that reads JSDoc from
JavaScript and TypeScript sources into the package's JSON documentation
model, with no code to write.
extract takes files and directories (walked for .ts, .tsx, .mts, .cts,
.js, .jsx, .mjs and .cjs files outside node_modules and dot-directories)
and writes one DocProject to stdout or --output, named after the
package.json in the current directory:
bunx @sdxc/jsdoc extract src --output docs.json
--name and --project-version override the package's name and version,
--include-internal keeps symbols tagged @internal, and stdin is read when
the path is - or absent, documented under --stdin-path (default
module.ts):
A file that does not parse is listed on stderr as path:line:column message
and exits 1 without output; --keep-going lists it, leaves it out and exits
0 with the rest. An unreadable path exits 2. bunx @sdxc/jsdoc --help lists
every flag. typescript stays a peer dependency the command needs installed.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg jsdoc … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/json-canonical
Add the sdxc-json-canonical command line
@sdxc/json-canonical now ships an sdxc-json-canonical command line that
canonicalizes JSON per RFC 8785 and hashes the result, reading a file or stdin
(pass - or no file).
Print the canonical bytes, with no trailing newline unless --newline:
Text that is not JSON exits 2; JSON outside I-JSON (a lone surrogate, a number
past double range) exits 1 naming its JSON Pointer. --help lists every flag.
The library API is unchanged.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg json-canonical … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/json-patch
Add the sdxc-json-patch command line
@sdxc/json-patch now ships an sdxc-json-patch command line for applying, computing and
checking RFC 6902 JSON Patch documents from a terminal, a script or CI. Run it with
bunx @sdxc/json-patch <command> (or npx); --help lists every argument and flag.
Apply a patch and print the patched document. The document comes from a file or from stdin
when it is - or left out; --compact prints it on one line:
When an operation's path has nothing to act on or a test operation does not hold, it exits 1
and prints Operation <index>: <reason> on stderr, leaving stdout empty.
Print the patch that turns one document into another ([] when they are equal):
bunx @sdxc/json-patch diff before.json after.json
Check that a file is a JSON Patch document, exiting 1 and naming the invalid operation when it
is not; --json prints { "valid": true, "operations": 3 } or
{ "valid": false, "index": 0, "message": "…" }:
bunx @sdxc/json-patch validate patch.json --json
Every command exits 2 for a usage error or input it cannot read: a missing file, a document or
patch that is not JSON, or both inputs asked to come from stdin. The library API is unchanged.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg json-patch … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/jsonc
Add the sdxc-jsonc command line
@sdxc/jsonc now ships an sdxc-jsonc bin (also reachable as sdxc pkg jsonc) that reads a
file, or stdin when the path is - or left out.
check parses a JSONC document such as tsconfig.json or wrangler.jsonc and prints each
parse error as file:line:column: reason, exiting 1 when there is any, so a CI step can gate
on it; --json prints { valid, errors } with each error's line, column, offset and reason.
strip prints the document as plain JSON with every line and column where it was, or
reformatted with --indent <n> (0 prints it on one line). Text that is not JSONC exits 2 with
its position.
Exit codes: 0 done, 1 parse errors found by check, 2 usage or unreadable input. The package
now depends on @sdxc/cli and remix; library consumers need no change.
@sdxc/jsonl
Trim JSON text sequence records in linear time
Before: parseSequence, readSequence and records trimmed each record
with a regular expression that backtracked quadratically on a long run of
whitespace inside it. A single record such as [ followed by 100 000 tabs
and ] took tens of seconds to read.
After: records are trimmed with a linear scan from each end. The same
records come out as before. No action is needed from consumers.
@sdxc/jsonpath
Add the sdxc-jsonpath command line
@sdxc/jsonpath now ships an sdxc-jsonpath command that runs an RFC 9535 query
over a JSON document from a file or stdin and prints the matches as JSON.
--paths prints normalized paths instead of values, --first prints the first
match alone (nothing when there is none), and --fail-empty exits 1 when the
query selects nothing. An invalid expression exits 2 with the parser's message
and a caret under the failing offset; an unreadable or non-JSON input also exits
2. bunx @sdxc/jsonpath --help lists every flag. Library consumers need not act.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg jsonpath … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/jwt
Add the sdxc-jwt command line
@sdxc/jwt now ships an sdxc-jwt command line for working with tokens and
keys outside an app. Run it with bunx @sdxc/jwt <command> (or npx);
--help lists every flag.
Generate a key pair, as the JSON sign, jwks and verify read, or as
PEM for other tools:
Sign a JSON object of claims from a file or stdin; exp, iat and nbf
may be durations such as "15m". The key comes from --key-file or
--key-env, never from the command line:
Decode a token's header and claims without verifying it:
bunx @sdxc/jwt decode "$TOKEN" --json
Verify a token against a JWKS URL or a key file (a JWKS, one public JWK or
a key pair), optionally requiring an issuer, audience and algorithm:
bunx @sdxc/jwt verify "$TOKEN" --jwks https://auth.example.com/.well-known/jwks.json --iss https://auth.example.com --aud api
Tokens are read from an argument or from stdin. decode and verify take
--json. Exit codes: 0 done, 1 the token is invalid, 2 usage or input
that cannot be read. The package now depends on @sdxc/cli and remix; the
library's exports are unchanged.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg jwt … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/kit
Check app translations in sdxc doctor
sdxc doctor now runs a translations check over the language bundles in
an app's resources/locales/ folder, one file per language tag (en.ts,
es.json, …). It reads each bundle without running it, following bundles a
module imports from another file, and reports:
a message that does not parse as MessageFormat 2 (fails the run, with the
parser's error type and offset),
a key the default language (en, or the first bundle when there is no
en) has and another language lacks (warns),
a key a language has and the default language lacks (warns).
Run it on its own while you work on translations:
sdxc doctor --only translations
An app without locale bundles reports the check as skipped. No action is
needed to upgrade; an app with incomplete translations now sees a warning.
Run a package's command line with sdxc pkg
sdxc pkg <name> runs an @sdxc package's command line, passing every token after the name through as typed, so one global sdxc reaches all of them without installing each package:
sdxc pkg # list every package with a command line sdxc pkg uuid v7 -n 3 sdxc pkg jwt decode < token.txt sdxc pkg email-auth check example.com --json
It runs the copy your project installs (or, inside a workspace, the workspace's own package) under Bun when Bun is on your PATH and Node otherwise, and downloads the published package with bunx, or npx without Bun, when nothing local has it. The package's exit code is sdxc pkg's.
A mistyped name runs nothing and exits 2 with the closest match, keeping your arguments (Did you mean `sdxc pkg uuid v4 -n 3`?). A package without a command line yet exits 2 with a link to request one in the project's discussions; the link carries only the package name. No action is needed to upgrade.
Show sdxc pkg's help for sdxc pkg --help
Before, sdxc pkg --help (and -h or help) read the flag as a package name and failed with No @sdxc package command line is named "--help". Now it prints the usage, what sdxc pkg does and every package with a command line, as a bare sdxc pkg does. After a package name, --help still goes to that package: sdxc pkg qr --help shows @sdxc/qr's commands. No action is needed.
List sdxc-jsonc in sdxc pkg
sdxc pkg now lists and runs @sdxc/jsonc's command line (sdxc pkg jsonc check tsconfig.json) instead of offering a request link for it; no consumer action is needed.
Run the project's release in sdxc pkg, and find Bun on Windows
When sdxc pkg <name> downloads a package in a project that pins its @sdxc packages, it now runs the package's newest version at the project's release (@sdxc/qr@<=2026.10.25) in place of the newest version overall, so the command line matches the code the project runs. Outside a project, or in one that pins nothing, it still runs the newest version.
On Windows, sdxc pkg now finds Bun installed as bun.exe or bun.cmd and runs through bunx; before, it always fell back to npx there. No action is needed.
Cache a new app's fingerprinted assets for a year
An app created with sdxc create now ships public/_headers, which serves every file under /assets/ with Cache-Control: public, max-age=31536000, immutable. Vite names those files after their content, so a browser can keep each one for a year and stops sending a conditional request per file on every page view. HTML pages and other files in public/ keep Cloudflare's revalidating default, so keep hand-placed files out of public/assets/.
To add this to an existing app, create public/_headers with:
Add sdxc ci, and a CI script and workflow in new apps
sdxc ci runs the project's CI script, .config/sdxc/ci.ts (or the
path the new ci.script key in .config/sdxc.jsonc names), with
every flag of npx @sdxc/ci run. A local run first installs
dependencies with the package manager's frozen-lockfile command;
--no-install skips that, and a remote run skips it on its own.
sdxc ci # install, run every step, sign the commit off sdxc ci --push # also push exactly the tested commit first sdxc ci list --runner remote --matrix Workspaces --json sdxc ci verify "$GITHUB_SHA" --wait 60s
Started inside a workspace, sdxc ci scopes the run to it and to every
workspace that depends on it. sdxc pkg ci reaches the package's own
command line.
sdxc create now writes .config/sdxc/ci.ts (doctor, check, build and
test, then a signoff) and .github/workflows/ci.yml, whose gate job
skips the hosted run for a commit a contributor signed off. A project
created inside a monorepo leaves both out, since the repository root
owns CI. Existing apps can add the same two files by hand to adopt it.
Add a ci check to sdxc doctor
sdxc doctor now checks the project's CI script, .config/sdxc/ci.ts
or the path ci.script names. It fails when the script does not load
as a default-exported CI script, throws while its steps are listed, or
gives two steps the same name in one scope, since --only, --skip
and a CI host's job matrix address steps by name. It skips a project
without a script. Nothing runs: the steps are listed the way
sdxc ci list lists them.
@sdxc/logger
Republished because @sdxc/cli changed.
@sdxc/mail
Republished because @sdxc/cli changed.
@sdxc/markdown
Pad table cells toward their column's alignment
Markdown.stringify now pads each table cell the way oxfmt and Prettier format an aligned table: a right-aligned column (--:) pads before the text, and a centered column (:-:) splits the padding around it. Left-aligned and unaligned columns still pad after the text.
Before, every cell was padded after its text whatever the delimiter row said, so a document with an aligned table changed the next time the formatter ran:
Plan
Price
Free
0
now writes as
Plan
Price
Free
0
The parsed document and the rendered HTML are unchanged. No action is needed; only the whitespace inside aligned table rows differs.
@sdxc/math
Republished because @sdxc/markdown changed.
@sdxc/mcp
Republished because @sdxc/logger changed.
@sdxc/merge-patch
Add the sdxc-merge-patch command line
@sdxc/merge-patch now ships a command line, so you can apply or compute an
RFC 7396 JSON merge patch without writing a script:
apply <patch> [document] prints the merged document; the document comes
from stdin when it is - or left out (... apply patch.json < article.json),
and the patch reads stdin when it is - and the document is a file.
diff <before> <after> prints the smallest merge patch that turns the first
document into the second; either side can be - for stdin. It exits 1 when
the second document sets an object member to null, which a merge patch
reads as removal, and names that member.
Both commands print indented JSON, or one line with --compact, and exit 2
on a file that cannot be read or is not JSON. --help lists every argument
and flag. Library consumers need no change.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg merge-patch … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/messaging
Republished because @sdxc/api-client changed.
@sdxc/microformats
Republished because @sdxc/html changed.
@sdxc/micropub
Republished because @sdxc/microformats changed.
@sdxc/newsletter
Republished because @sdxc/api-client changed.
@sdxc/openapi
Add the sdxc-openapi command line
@sdxc/openapi now ships an sdxc-openapi command line with one command, check. It reads a
JSON or YAML OpenAPI 3.1 document from a file, an http(s) URL or stdin, prints each finding at
its JSON Pointer, and exits 0 for a valid document, 1 on any finding and 2 when the input
cannot be read (a missing file, a network error or a non-2xx answer).
A finding prints as /info/title: info must be an object with a string title and version
((root) for text that is not JSON or YAML). --json prints
{ valid, openapi, title, version, findings: [{ pointer, message }] }. URLs are fetched
asking for application/openapi+json first, then the YAML and plain types.
OpenAPIParseError, what parse fails with, now carries a pointer: a JSON Pointer to the
member at fault (/openapi, /info/title, /paths…), or "" for text that is not JSON or
YAML. Code that only reads message needs no change; code that constructs
OpenAPIParseError itself now passes the pointer as the second argument:
new OpenAPIParseError(message, "/info").
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg openapi … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/openpgp
Add the sdxc-openpgp command line
@sdxc/openpgp now ships an sdxc-openpgp command line for signing,
verifying and inspecting with OpenPGP keys outside an app. Run it with
bunx @sdxc/openpgp <command> (or npx); --help lists every flag.
Generate an Ed25519 signing key, printed as an armored private key, with
its certificate written beside it (--key-version 4 for GnuPG 2.2, and
--passphrase-env or --passphrase-file to lock it):
Sign a file as a cleartext signed message, or with --detach print an
armored detached signature (--text for a text signature, --hash to
pick SHA-256, SHA-384 or SHA-512). The private key comes from
--key-file or --key-env, never from the command line:
Verify a cleartext signed message, or a file against a detached
signature. A bad, missing or unknown signature exits 1 and names the
issuer's Key ID and fingerprint, so you know which key it needed:
Print a key's fingerprint, Key ID, algorithm, expiry, status, User IDs
and subkeys, with every self-signature checked:
bunx @sdxc/openpgp inspect public.asc --json
Files and keys are read from a path or stdin. verify and inspect take
--json. Exit codes: 0 done, 1 the signature does not hold, 2 usage or
input that cannot be read.
The library gains the two reports the command line prints:
inspectKey(key) answers a key's details (algorithm, creation, expiry,
revocation, signing capability, User IDs, subkeys, secret and locked
state), and readSignatures(input) reads each signature's issuer,
algorithm, hash and creation time without verifying it:
let report = await inspectKey(certificate); report.primary.algorithm; // "Ed25519"
The package now depends on @sdxc/cli and remix; existing exports are
unchanged.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg openpgp … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
Strip trailing whitespace from cleartext lines in linear time
Before: readCleartext, verifyCleartext and signCleartext removed
trailing spaces and tabs with a regular expression that backtracked
quadratically. A line with a long run of tabs before its last character
took tens of seconds to process.
After: the trailing whitespace is removed with a linear scan. Signatures and
the text read back are unchanged. No action is needed from consumers.
@sdxc/outbound
Republished because @sdxc/doh changed.
@sdxc/pagination
Republished because @sdxc/crypto changed.
@sdxc/passkey
Republished because @sdxc/cbor changed.
@sdxc/password-policy
Republished because @sdxc/crypto changed.
@sdxc/pdf
Republished because @sdxc/font changed.
@sdxc/privacy-pass
Republished because @sdxc/crypto changed.
@sdxc/qr
Add the sdxc-qr command line
@sdxc/qr now ships a command line. encode turns text into the smallest QR code that holds it, as an SVG on stdout:
With no text, or -, it reads stdin and drops one trailing newline, so echo output encodes as written. --output <file> (-o) writes to a file and prints the symbol's version, level and mask on stderr. --png writes a PNG through @sdxc/png and needs --output:
--level, --min-version, --max-version, --mask, --no-boost-level and --margin are the encoder's options; --scale sets pixels per module (default 8). It exits 0 when the image is written, 1 when the text does not fit --max-version or the file cannot be written, and 2 on an invalid flag. bunx @sdxc/qr encode --help lists every flag.
The library gains qr.toImage({ margin, scale }), which returns the symbol as RGBA pixels in the ImageData layout, ready for @sdxc/png or a canvas:
let png = await encode(qr.toImage({ scale: 10 }));
remix is now a regular dependency rather than an optional peer, because the command line uses it; nothing changes for code that imports @sdxc/qr or @sdxc/qr/ui.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg qr … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/raster
Republished because @sdxc/font changed.
@sdxc/rate-limit
Republished because @sdxc/logger changed.
@sdxc/rdap
Add the sdxc-rdap command line
@sdxc/rdap now ships an sdxc-rdap command line that reads a domain's registration from its registry over RDAP, with no code to write.
Print a domain's expiry, status, registrar, contacts and nameservers. --related also asks the registrar's own server for the fields a thin registry such as .com leaves out, and --json prints the domain model, with dates in epoch milliseconds:
Check a domain's expiry in a cron job or a CI step. expires exits 1 when the domain expires inside the window, has already expired, or its registry publishes no expiration date, and exits 0 otherwise. --json prints { domain, expiresAt, windowEndsAt, expiring }:
Both commands exit 2 for a name that is not a domain, and 1 when the lookup fails, printing the RDAPError code (not-found, rate-limited, unsupported-tld…) and whether it is retryable; under --json the failure is printed as { error: { code, message, retryable } }. --user-agent and --timeout set what every request sends and how long it waits. Run bunx @sdxc/rdap --help for the full reference.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg rdap … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/robots
Add the sdxc-robots command line
@sdxc/robots now ships an sdxc-robots command line, run with
bunx @sdxc/robots or npx @sdxc/robots.
check fetches the robots.txt of the URL's origin and says whether an
agent may fetch the URL, naming the rule that decides it. It exits 1
when the URL is disallowed, so it can gate a script or CI step. Pass
--robots <file> (or - for stdin) to check a local file, which also
accepts a /-rooted path:
The library gains matchingRule(robots, userAgent, url), the rule that
decides isAllowed as the file wrote it, or null when no rule matches:
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg robots … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/saml
Republished because @sdxc/crypto changed.
@sdxc/sample
Republished because @sdxc/crypto changed.
@sdxc/scim
Republished because @sdxc/jwt changed.
@sdxc/scitt
Republished because @sdxc/cbor changed.
@sdxc/search
Republished because @sdxc/pagination changed.
@sdxc/security-headers
Add the sdxc-security-headers command line
@sdxc/security-headers now ships an sdxc-security-headers command line,
and a new @sdxc/security-headers/audit entry point grades the headers a
response sent.
Audit a page: it fetches the URL (following redirects) and grades
Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options,
X-Frame-Options, Referrer-Policy, Permissions-Policy and
Cross-Origin-Opener-Policy as ok, missing or weak, with the reason for each
weakness. It exits 1 when any header is missing or weak, 2 when the page
cannot be reached.
import { audit } from "@sdxc/security-headers/audit"; let findings = audit(response.headers, new URL(response.url)); let problems = findings.filter((finding) => finding.status !== "ok");
Existing exports are unchanged; consumers need not act.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg security-headers … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/semver
Add the sdxc-semver command line
@sdxc/semver now ships a command line, sdxc-semver, that validates,
compares and sorts SemVer 2.0.0 versions from a terminal, a script or CI
with no code:
bunx @sdxc/semver --help
--json prints a machine-readable result. Exit codes: 0 done, 1 valid
found an invalid version, 2 bad usage or input that is not a version.
valid <version> prints the version without its leading v or build
metadata, and exits 1 when it is not a version. --json prints the
parsed parts (major, minor, patch, prerelease):
compare <a> <b> prints -1 when a precedes b, 0 when they rank
equally and 1 when a follows b, and exits 0 either way:
bunx @sdxc/semver compare 1.0.0-rc.1 1.0.0 # -1
sort [versions...] prints versions oldest first by precedence, reading
one per line from stdin when none are given; --reverse prints the
newest first, and versions that rank equally keep their input order:
git tag | bunx @sdxc/semver sort --reverse
Library consumers need no action; the package now also installs
@sdxc/cli and remix, which only the command line loads.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg semver … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/seo
Republished because @sdxc/attribution changed.
@sdxc/sitemap
Add the sdxc-sitemap command line
@sdxc/sitemap now ships an sdxc-sitemap command line that lists and checks sitemaps
from a URL, a file, or stdin (- or no argument).
list prints every page URL, fetching each child of a sitemap index; --json prints
[{ loc, lastmod }], with lastmod an ISO timestamp or null:
bunx @sdxc/sitemap list https://example.com/sitemap.xml bunx @sdxc/sitemap list sitemap.xml --json
validate checks a sitemap against the protocol and exits 1 with one line per problem:
over 50 MiB or 50,000 rows, a <loc> that is not an absolute http(s) URL or is longer
than 2,048 characters, URLs on more than one host (or on another host than the one a
fetched sitemap is served from), or a malformed <lastmod>, <changefreq> or
<priority>. --json prints { valid, problems: [{ rule, message, row? }] }:
let problems = Sitemap.validate(source, { location: new URL(sitemapURL) }); let pages = await sitemap.expand(); // Result<Sitemap, SitemapFetchError>, a urlset
Sitemap.validate returns every Sitemap.Problem, empty when the document conforms.
sitemap.expand() fetches each child of an index, nested indexes included, and answers
one urlset of their entries; the first child that fails fails the walk.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg sitemap … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/spam
Republished because @sdxc/doh changed.
@sdxc/spec
Republished because @sdxc/cli changed.
@sdxc/trace-context
Republished because @sdxc/cli changed.
@sdxc/typeid
Add the sdxc-typeid command line
@sdxc/typeid now ships an sdxc-typeid command line for minting, reading and
encoding TypeIDs without writing a script.
Generate ids backed by UUIDv7, so they sort by creation time; -n prints
several, one per line:
bunx @sdxc/typeid new user bunx @sdxc/typeid new session -n 5
Read a TypeID back into its prefix, suffix, UUID and, for a UUIDv7 suffix, its
creation time. --json prints { "valid": true, "prefix", "suffix", "uuid", "timestamp" } (timestamp is null for other UUID versions); an invalid TypeID
exits 1 with the reason, or { "valid": false, "error" } under --json:
bunx @sdxc/typeid encode user 01890a5d-ac96-774b-bcce-b302099a8057
A prefix or UUID that breaks the rules exits 2. The library also gains
typeId.toDate(), which answers the creation time of a UUIDv7-backed id and
null for any other UUID version:
Library consumers need not act; the package now depends on @sdxc/cli and remix.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg typeid … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/u
Set color-scheme from the theme's dark and system classes
theme.css now sets color-scheme: dark under the dark class and
color-scheme: light dark under the system class. light-dark() colors,
scrollbars and form controls under those classes now resolve in the same
scheme as the --ui-* tokens.
<html class="system"> <!-- now also color-scheme: light dark -->
No action is needed. A page that already declared color-scheme on the same
element through a utility class now gets the theme's value for dark and
system; a page with no theme class is unchanged.
@sdxc/ui
Shortened to fit the release page; each change links to its full note.
Breaking: Move settings, save and toggle behavior into mixins (389099f)
Breaking: Give FilterBar one calm row with a View menu and a status slot (7fe44bf)
Draw DocsNav's footer flush with the nav's edge (f7d1374)
Let DocsFeedback reload a named frame and keep the reader's scroll (79f81d5)
Keep prose link and list rules off NextSteps, DocsHub and DocsPager cards (2d02b31)
Declare the docs islands under their @sdxc/ui/docs specifiers (5300baf)
Space a heading-scoped component the way Typeset spaces prose (e4cd0d8)
Keep the DocsNav filter applied across page reloads (74c6a83)
Add a type-to-confirm Confirm and open plain confirms on Cancel (4206810)
Add PropertyList for a record's label and value rows (3086dc4)
Add StatusDot for naming a record's state with a coloured dot (6d2d127)
Let FilterBar, PageHeader and PropertyList fill a flex row (284d9b8)
Export RelativeTime's formatting helper and viewer-time mixin from their barrels (0f72968)
Keep a Table's header at the top of its scroll container inside an app shell (654aaf6)
Add Table.Keys for keyboard row navigation on a server-rendered table (3aa1e4f)
Give FilterBar's search input an id a list's / key can focus (7ea6cbc)
Show a flash toast that arrives with a page the client runtime fetched (ab41cc7)
Keep StatusStrip tooltips from widening a phone-width page (cf383c9)
Size RangePicker to its segments inside a flex row (4a7241c)
Count a local RelativeTime from the now it is given (0d73d6a)
Report when the server confirms an optimistic toggle (ec6dc1a)
Wrap FilterBar's count tabs instead of widening the page (3f5d96d)
Let SettingsLayout render without its own section nav (770fa82)
Title the keyboard help sheet at a heading level it is given (7655452)
Break Chart.Line and Chart.Area at points with no data (fb83ac2)
Say why an optimistic toggle was refused, by response status (7c5d34f)
List each shortcut's keys once in the keyboard help sheet (3a946b3)
Let FilterBar's search input take its id from search.id (b35e7c9)
Add a hatched no-data variant to Chart.Band (38b712b)
Draw SettingsSection's Save as the primary button (d308958)
Keep Table.IdCell's tail whole when it is wider than the cell's cap (baa6d37)
Name an optimistic toggle differently while it is on (30a0e00)
Place the AutoRefresh time through a {time} template (240803b)
Save explicit settings sections and editors with ⌘S (1984754)
Let AppShell turn its sidebar into a sheet below 64rem (c485026)
Say where CodeBlock takes its token colors from (308b114)
Keep table and selection bar checkboxes true to the rows after a re-render (1965bc3)
Return SplitView's j/k highlight to the open item when its page fails to load (7cb26eb)
Add list-only settings sections and a header actions slot to SettingsSection (d908b5a)
Make StatusStrip one Tab stop that the arrow keys move through (207e5e6)
Make StatusStrip one Tab stop that the arrow keys move through (c3e962d)
Draw a compact Empty state flush inside its card (dc6b61f)
Draw SelectionBar's pagination as a quiet footer row (309971f)
Keep DropZone's file input out of sight and show the zone as clickable (633f1db)
Centre a SettingsSection row's lone label on its control (3660326)
Line up a toast's icon, message, action and close on one centre line (8dbf803)
Add an action row layout to SettingsSection.Row (fc1ef2f)
Keep row actions on one line and fold them into a menu in a narrow table (b4d8e46)
Draw AppShell.Identity as a menu button only when it opens a menu (b75749a)
Draw RangePicker's selected range as a raised, edged segment (92b05bd)
Draw ViewOptions' chosen layout and density as a raised, edged segment (9105a56)
Join a prefix or suffix to a text field as one control (bf7865f)
Put a DangerZone action's button under its consequences (5364250)
Draw Chart.Band as a marked time range instead of a solid block (27229bc)
Square the corners two Group controls share (e5302fa)
Let ViewOptions draw its fields inline inside another menu (0dcdba2)
Let AutoRefresh draw its intervals or its time on their own (b44b101)
Keep PageHeader's description with its title on a narrow pane (6365140)
Keep a late Chart.Band's label tag inside the plot (cedde70)
Draw PageHeader's overflow menu after the primary action (e9f0eeb)
Keep Table.DateCell on one line in a comfortable table (fe7073f)
Set StatCard.Group as two compact columns on a phone (9e26d0c)
Show hover-revealed Table.Actions over the row instead of reserving their width (ae14b78)
Add a detail slot after the word in Table.StatusCell (3123cea)
Draw an AppShell.Identity avatar whole at 24px whatever its size (5f7d743)
Paint the editor bar, save bar and settings cards on the page surface (c54c6c3)
Fade Table.Actions in over the last cell and give their hover a visible step (6b7890d)
Run EditorLayout's sidebar border the full height of the editor (b93a0b7)
Show a ghost or outline LinkButton's hover and active fills (04805eb)
Edge the AppShell content card with one line (ffd52ae)
Reach Table.Actions on touch and phones through one menu button (16faea7)
Close the AppShell sheet in one slide at its full width (76b557b)
Draw each StatusStrip bar in about 90 bytes of HTML (732c712)
Let FilterBar prefetch its tab, sort, chip and clear links (48db0e6)
Let DocsPager prefetch the previous and next pages (ca22db5)
Keep StatCard.Skeleton as tall as its card at every width (11b2bf9)
Place Skeleton.Stat's delta where a real delta sits (07aa838)
Let StatCard.Skeleton reserve a fixed number of footer lines (fb44e5f)
Let StatCard.Skeleton wrap its label like the real card (7897213)
Let StatCard.Skeleton wrap its footer like the real card (a512511)
Keep DocsHub's card grids out of DocsLayout's prose measure (43c2934)
Move the table's touch tests to their own page and fit the pinned fonts (1d90904)
Publish onTitleLine's declaration with a portable type (f617c57)
@sdxc/uri-template
Spell out the literal character class
The parser's pattern for RFC 6570 literal characters now lists its digits and
letters as separate ranges instead of spanning them with punctuation ranges.
It accepts exactly the same characters, and consumers see no change.
List literal punctuation characters one by one
The parser's pattern for RFC 6570 literal characters now lists each punctuation
character on its own instead of as a range. It accepts exactly the same
characters, and consumers see no change.
@sdxc/user-agent
Add the sdxc-user-agent command line
@sdxc/user-agent now ships a command line, sdxc-user-agent, that reads User-Agent strings
with the same rules as parse().
parse prints the browser, engine, operating system and device as tab-separated columns, with
- for a part the string does not reveal:
bunx @sdxc/user-agent parse "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Mobile/15E148 Safari/604.1" # Safari 17.4 WebKit 605.1.15 iOS 17.4 mobile Apple iPhone
With no argument (or -) it reads one string per line of stdin and prints one line per string
in the same order, skipping blank lines, so a log's User-Agent column pipes straight through.
--json prints each result as one JSON object per line, in the shape parse() returns:
It exits 0 once every string is printed, and 2 when no string is given and stdin is a terminal.
bunx @sdxc/user-agent --help lists every flag. The library API is unchanged.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg user-agent … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/uuid
Add the sdxc-uuid command line
@sdxc/uuid now ships a command line, sdxc-uuid, that generates and
checks UUIDs from a terminal, a script or CI with no code:
bunx @sdxc/uuid --help
v4 prints random version 4 UUIDs, one per line (-n for more):
bunx @sdxc/uuid v4 -n 5
v7 prints time-ordered version 7 UUIDs, each sorting after the line
above it:
bunx @sdxc/uuid v7 -n 1000 > ids.txt
validate checks a UUID from its argument, or stdin when it is - or
absent, and prints its version and, for v7, its creation time. It exits 1
with the reason when the value is invalid, and --json prints
{ valid, uuid, version, timestamp } or { valid, uuid, error }:
Exit codes: 0 done, 1 invalid UUID, 2 bad usage or unreadable input.
Two functions back it and are exported for library use: getVersion(id)
from @sdxc/uuid reads the version a UUID declares, and
getTimestamp(id) from @sdxc/uuid/v7 reads the Unix millisecond a v7
value was generated at:
import { getVersion } from "@sdxc/uuid"; import { generateUUID, getTimestamp } from "@sdxc/uuid/v7"; let id = generateUUID(); getVersion(id); // 7 new Date(getTimestamp(id)); // now
Library consumers need no action; the package now also installs
@sdxc/cli, @sdxc/result and remix, which only the command line loads.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg uuid … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/web-push
Add the sdxc-web-push command line
@sdxc/web-push now ships an sdxc-web-push command line for generating a
VAPID identity and checking a subscription end to end, with no script to write.
Generate a key pair, printed as the two environment lines a deployment stores,
or as JSON:
Send a test notification to a subscription (the browser's
PushSubscription.toJSON() output) from a path or stdin. Keys come from
--keys-file or the VAPID_PUBLIC_KEY and VAPID_PRIVATE_KEY environment
variables (renamed with --public-key-env / --private-key-env), never argv:
--payload, --ttl, --urgency and --topic set the message. send exits 0
when the push service accepts it, 1 when the service refuses it or cannot be
reached, and 2 for unreadable or invalid input. --json prints
{"sent":true,"status":201}, or the error's code, retryable flag, host, status
and retryAfter. Library consumers need not act; the package now depends on
@sdxc/cli.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg web-push … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/webhooks
Republished because @sdxc/crypto changed.
@sdxc/webmention
Add the sdxc-webmention command line
@sdxc/webmention now ships an sdxc-webmention command line for checking and
sending Webmentions by hand, with no script to write.
Every command fetches under the library's bounds (public hosts only, five
redirects, one megabyte, five seconds) and takes --user-agent and --json.
Each exits 0 when done, 1 when the target advertises no endpoint, the endpoint
refuses, the source does not link (or answers 410) or a fetch fails, and 2 for a
URL it cannot parse. Library consumers need not act; the package now depends on
@sdxc/cli.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Declare remix as a dependency of the command line
The sdxc-webmention command line validates its arguments with remix/data-schema, but
@sdxc/webmention did not list remix among its dependencies, so a fresh install could
not resolve it and the command line failed to start. The package now depends on
remix@3.1.0.
No action needed; reinstall @sdxc/webmention to pick up the dependency.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg webmention … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/websub
Republished because @sdxc/crypto changed.
@sdxc/well-known
Add the sdxc-well-known command line
@sdxc/well-known now ships an sdxc-well-known command line that checks
and reads /.well-known/ documents with the same readers the library uses.
Check a security.txt from a site, a file or stdin. It reports every
problem with its line, and exits 1 when a required field is missing, a
line is malformed, the server answers an error or Expires has passed:
Fetch, validate and print one document. OAuth and OpenID Connect
metadata must name the URL you pass as their issuer, protected resource
metadata must name it as its resource, and NodeInfo follows its links
document to the newest schema it names:
fetch reads webfinger, nodeinfo, oauth-authorization-server,
openid-configuration, oauth-protected-resource, jwks.json,
passkey-endpoints, api-catalog and http-message-signatures-directory.
It prints the validated body, or with --json a report of
{ document, url, valid, issues, data } holding the parsed document.
Exit codes: 0 valid, 1 problems found, 2 usage, an unreadable file or an
unreachable origin. The package now depends on @sdxc/cli; nothing in the
library's import graph loads it.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg well-known … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
@sdxc/workers-cache
Republished because @sdxc/http changed.
@sdxc/x402
Republished because @sdxc/logger changed.
@sdxc/zone-file
Add the sdxc-zone-file command line
@sdxc/zone-file now ships a command line for checking, reading and
normalizing DNS zone files without writing a script. Each command reads a
path, or stdin when it is - or absent; $INCLUDE paths resolve beside the
zone file. --origin (default the root) and --ttl (seconds) set the
defaults for a file without $ORIGIN or $TTL. Exit codes: 0 done, 1 the
zone has entries that could not be read, 2 usage or unreadable input.
Check a zone, printing every problem with its line:
bunx @sdxc/zone-file validate example.com.zone --origin example.com # example.com.zone:12: Invalid A record data: "999.1.1.1" (invalid-data)
Print its records, one name ttl class type data line each, or as JSON:
Write a normalized zone file from JSON records (a bare array, a
{ origin, ttl, records } object, or parse --json output) or from a zone
file; records that do not fit their type are reported and nothing is
written:
bunx @sdxc/zone-file format records.json --relative > example.com.zone
--json on validate prints { valid, records, rejected }. The library
API is unchanged; consumers need not act.
Lock the command-line dependencies and mark each bin executable
Records @sdxc/cli and the other dependencies the new package command lines added in the lockfile, and marks each sdxc-<package> entry executable, like the existing sdxc, spec and mcp-bridge bins. No consumer action is needed.
Point to sdxc pkg in the README
The README's command-line section now notes that sdxc pkg zone-file … runs the same command line once @sdxc/kit is installed. No consumer action is needed.
Read the client IP from any platform's header
getClientIP and its middleware now run anywhere the Fetch API does. Pass the
header your platform sets; CF-Connecting-IP stays the default, so existing
Cloudflare code needs no change.
Only the named header is read, so a client cannot pick its own address by
sending a different one. X-Forwarded-For and RFC 7239 Forwarded are read
from the right: proxies (default 1) is how many trusted proxies append an
entry, entries a client wrote on the left are ignored, a port on the entry is
dropped, and a list shorter than proxies reads null. Any other header must
carry exactly one address. CLIENT_IP_HEADERS lists the names known platforms
use (Cloudflare, Fly.io, Fastly, Akamai, Azure Front Door, DigitalOcean,
Shopify Oxygen, nginx and generic proxies), and the function also accepts a
bare Headers.
Discover the client IP header on any platform
getClientIP(request) and the getClientIP() middleware now find the client's
address on any platform with nothing to configure, and also accept a bare
Headers:
import { getClientIP } from "@sdxc/get-client-ip"; let ip = getClientIP(request); // IP | null let same = getClientIP(request.headers);
Discovery lets a forged header cost a client its own address, never choose one:
On Cloudflare Workers, whose runtime marks the request with cf, only
CF-Connecting-IP is read, as before.
Elsewhere, every single-address header the request carries must name the same
address: CF-Connecting-IP, Fly-Client-IP, Fastly-Client-IP,
True-Client-IP, X-Azure-ClientIP, DO-Connecting-IP, Oxygen-Buyer-IP,
X-Nf-Client-Connection-IP, X-AppEngine-User-IP,
CloudFront-Viewer-Address (its port dropped), X-Envoy-External-Address,
X-Real-IP, X-Client-IP and X-Cluster-Client-IP. Disagreeing or
malformed values read null.
Without any of those, the last entry of Forwarded, X-Forwarded-For or
X-Vercel-Forwarded-For answers, which is the entry your proxy appended; the
entries a client wrote on the left are ignored.
CLIENT_IP_HEADERS and FORWARDED_HEADERS export both lists. Code running on
Cloudflare Workers needs no change. A test that builds a plain Request without
cf and sets X-Forwarded-For now reads an address from it.
Read the client IP outside Cloudflare Workers
Groundwork for automatic client IP discovery on every platform, described in
the next @sdxc/get-client-ip note. No consumer action needed.
@sdxc/highlight
Raise the light theme's keyword, orange and green tokens to 4.5:1
The default light palette in @sdxc/highlight/styles.css painted three token roles below
WCAG AA on a typical light code-block fill (#f6f8fa):
--highlight-keyword (and operator, which reads it): #d73a49 → #cf222e
Every colour the stylesheet declares now reads at 4.5:1 or more on light and dark code
blocks. The dark palette is unchanged. Consumers that override these properties are not
affected; consumers on the defaults get the darker colours with no action needed.
@sdxc/kit
Map a new controller on a router built with typed createRouter
sdxc make controller looked for the router initializer by matching a bare createRouter( call,
so a router written as createRouter<AppContext>({ … }) went unnoticed. The kit then fell back to
the first initializer that merely imports the route contract (for example an auth initializer
that reads routes.callback), failed to place the mapping there, and printed the declaration and
mapping for you to add by hand in the wrong file.
Before: in an app whose router initializer calls createRouter<AppContext>(…), make controller
printed "Declare and map it by hand" and pointed at an unrelated initializer.
After: the kit recognizes createRouter with or without type arguments, prefers an initializer
that already calls router.map(routes.…) over one that only imports the contract, and declares
and maps the route itself in the router initializer.
A route whose pattern ends in a file name, such as --path /robots.txt or /feed.xml, now gets
false as its sitemap decision instead of true, since crawlers read it by name rather than as a
page. No action is needed; rerun sdxc make controller for routes you mapped by hand before.
Import Table from @sdxc/ui/app in the scaffold's index page
sdxc make scaffold wrote an index page importing Table from @sdxc/ui/table, which no
longer exists now that Table ships from the @sdxc/ui/app namespace. The generated page now
imports it from @sdxc/ui/app/table, so a new scaffold type checks against the current
@sdxc/ui. A page generated earlier needs the same one-line change:
@sdxc/mail
Import Empty from @sdxc/ui/app in the email previews
The email preview index imports Empty from the @sdxc/ui/app namespace it now ships from.
No change for users of @sdxc/mail.
@sdxc/spam
Republished because @sdxc/get-client-ip changed.
@sdxc/u
Lift dark tints, separate body from muted text and quiet dark borders
In dark mode the neutral tokens now give three distinct levels instead of collapsing onto the page:
--ui-neutral-fg moves from neutral-400 to neutral-300, so body copy reads brighter than --ui-neutral-fg-muted (still neutral-400), where both were identical before.
--ui-neutral-bg-tint moves from neutral-950 (the page colour) to a 50/50 mix of neutral-950 and neutral-900, so a tinted surface (code block, card, panel) sits one step above the page.
--ui-neutral-border moves from the opaque neutral-700 to color-mix(in oklch, white 10%, transparent), a hairline that takes the tone of whatever sits behind it instead of a bright grey line.
--ui-bg is now pinned to neutral-950 in both dark blocks, so the page background does not move with the tint.
Light mode is unchanged. No action is needed: an app that defines the standard --ui-color-neutral-* palette picks this up as is. An app that compared --ui-neutral-bg-tint against text as "the page colour" in dark should read --ui-bg instead.
Raise muted text to 4.5:1 on white and tinted surfaces
--ui-neutral-fg-muted pointed at the 500 step, which reads at about 3.5:1 on white
and lower on a tinted band, so eyebrows, notes, captions and meta lines failed WCAG AA.
In light it is now color-mix(in oklch, var(--ui-color-neutral-600) 85%, var(--ui-color-neutral-500)): about 5:1 on white and 4.7:1 on the 100 step, still a
shade lighter than --ui-neutral-fg. Dark mode keeps the 400 step.
No action needed; an app that re-declares --ui-neutral-fg-muted keeps its own value.
Add mergeMix so a caller's mix overrides a component's own utilities
mergeMix(base, mix) applies a caller's mix on top of a component's own
mixins. Classes from separate utilities on one element resolve by the order
the page first uses each class, so a caller's text("xs") could lose to a
component's text("sm") depending on what else the page rendered. mergeMix
renders the utilities of both as one class, with the caller's in a later
cascade sublayer, so the caller's value wins on any property both set,
whatever selector the component nests its own rule under. Other mixins
(css(), attrs(), event and behavior mixins) apply unchanged, and when
mix carries no utility, base renders exactly as it would alone.
Use it in a component that forwards its caller's mix:
import { mergeMix } from "@sdxc/u/general";import { fg } from "@sdxc/u/color";import { text } from "@sdxc/u/typography";function Caption(handle: Handle<TagProps<"span">>) { return () => { let { mix, ...rest } = handle.props; return <span {...rest} mix={mergeMix([fg("neutral"), text("sm")], mix)} />; };}<Caption mix={text("xs")}>…</Caption> // renders extra-small text
combine remains exported from @sdxc/u and @sdxc/u/general.
@sdxc/ui
Breaking: Raise marketing bands to production landing quality
Landing bands now follow the type, spacing, surface and CTA conventions of production landing templates. Several defaults and props change.
New:
Fluid tokens: headline clamp(2.625rem, …, var(--ui-marketing-display-max, 4.5rem)) with leading tied to size, chapter clamp(1.75rem, …, 3rem) (always 2/3 of the headline), section spacing normal 5→7.5rem, compact 3→4.5rem, hero 3.5→8rem, and a new cta step 5→7rem, all fluid in the band's width (cqi).
Surfaces: --ui-surface-raised, --ui-shadow-surface, --ui-shadow-stage, --ui-shadow-control, --ui-marketing-radius-surface, --ui-marketing-hairline, and marketingSurface() / marketingEmphasis() from @sdxc/ui/styles. A <strong> inside a lead or description draws in the heading ink.
Button / LinkButtonvariant="surface"; CtaGroup size (md, 40px, handed to buttons without a size) and stack="phone".
MarketingSection tones brand and gradient (--ui-marketing-band-gradient), inset, spacing="cta".
A CTA's --ui-marketing-cta-radius lost to the button's own radius depending on stylesheet order; Button and LinkButton now read --ui-button-radius, which marketingCtaChrome() sets.
StatStrip left an odd last figure alone on a row; it now spans the row on phones and sets every figure on one row from the lg container.
marketingLead() used the muted ink (about 3.5:1); it now uses --ui-neutral-fg (about 5.3:1) on a 2rem line.
On a dark page an inverse band painted a near-white slab; it now renders as a raised surface with hairlines.
Breaking — migrate as follows:
MarketingHeader eyebrowVariant="chip" is removed; the looks are mono (default, was pill), quiet, soft, pill, numbered. Before: <MarketingHeader eyebrow="Beta" eyebrowVariant="chip">. After: <MarketingHeader eyebrow="Beta" eyebrowVariant="pill">. Pass eyebrowVariant="pill" to keep the old default.
LandingHero defaults to mediaPlacement="below" (was "end") and eyebrowVariant="quiet" (was "pill"). Before: <LandingHero media={shot} /> rendered beside the copy. After: pass mediaPlacement="end" to keep it there.
AnnouncementChip variant="rim" is removed; variants are the eyebrow looks plus special, default quiet. Before: <AnnouncementChip>. After: <AnnouncementChip variant="pill"> for the old brand look.
Bento and Feature.Grid default to separate cards; pass variant="mosaic" for the hairline grid. IconWell and Feature.Icon default to a quiet tile; pass tone="brand" for the brand well.
LogoCloud marks are 1.75rem (2.25rem from lg) at full ink with no opacity; set --ui-marketing-logo-height to keep them smaller.
ProductFrame lights dots are neutral; pass lights="color" for red, amber and green.
Split goes two-column at the lg container (48rem, was xl).
Neutral outline and ghost buttons draw their label in --ui-neutral-fg-emphasis.
Token renames: --ui-marketing-display-leading no longer has a theme value (leading is computed from size); --ui-marketing-chapter-size, --ui-marketing-section-space* and --ui-marketing-logo-height have new defaults. An app overriding them keeps its values.
Breaking: Give composed landing pages one h1, h2 bands and h3 cards
Composing LandingHero, the band patterns and hand-built MarketingSection bands now
yields a sequential outline with no HeadingScope placed by hand: the hero renders the
page's <h1>, every band titles at <h2>, and cards inside a band (Feature.Grid,
Bento, StepList, PricingBand plans) at <h3>.
Before, the outline depended on how many scopes a page wrapped around its bands: none
gave every band an <h1>, two demoted the hero to <h2>, and Bento cells ranked equal
to their band title.
MarketingSection takes level and otherwise titles one below the enclosing band, else
one below the ambient HeadingScope, else 2.
LandingHero takes level and otherwise titles at the ambient scope's level, else 1.
Feature.Grid, Bento and StepList render their cell titles one level below their
surroundings.
Migration: remove any HeadingScope you placed directly inside a MarketingSection, and
the inner one of two nested page-level scopes.
A landing nested under an existing heading wraps itself in one HeadingScope at that
heading's level (<HeadingScope level={3}>), and every heading shifts with it. Sizes are
unchanged.
Breaking: Ship general components at the root and the landing, docs, chat, color and app kits as namespaces
@sdxc/ui now keeps only general components, usable on any page, at its root. Each domain kit
is a namespace you import as a barrel or per module:
Import
Holds
@sdxc/ui, @sdxc/ui/<name>
General components (forms, overlays, navigation, typography, Sidebar, CtaGroup, …)
@sdxc/ui/landing, @sdxc/ui/landing/<name>
Landing bands, composition craft and animated visuals
A namespace also exports the mixins, behaviors and styles only its components use. The landing
kit's "marketing" names are now "landing" names.
Migration:
Replace @sdxc/ui/patterns with @sdxc/ui/landing, except DocsLayout, DocsHub,
DocsNotFound and searchQueryFromPath, which come from @sdxc/ui/docs:
// beforeimport { LandingHero, DocsLayout } from "@sdxc/ui/patterns";// afterimport { LandingHero } from "@sdxc/ui/landing";import { DocsLayout } from "@sdxc/ui/docs";
Import these from @sdxc/ui/landing instead of @sdxc/ui: Feature, LogoCloud, Split,
StatStrip, and MarketingHeader / MarketingSection, renamed LandingHeader /
LandingSection:
// beforeimport { MarketingSection, Feature } from "@sdxc/ui";// afterimport { Feature, LandingSection } from "@sdxc/ui/landing";
Import the docs components from @sdxc/ui/docs instead of @sdxc/ui: AnchorHeading,
Callout, CodeBlock, CodeTabs, CodeTabsSync, CopyButton, DocsFeedback, DocsFooter,
DocsNav, DocsNavTools, DocsPageHeader, DocsPager, FileTree, InstallCommand,
NextSteps, PageActions, PlanNotice, PropsTable, Steps, TableOfContents, UiLabel,
UiPath. DocsTree, flattenDocsTree and findNeighbours move from @sdxc/ui/utils to
@sdxc/ui/docs, and tocSpy, docsNavTools, codeTabsSync, copyFeedback and
copyFromUrl from @sdxc/ui/mixins to @sdxc/ui/docs.
Import the chat components (and messageFollow, attachmentTrigger, ScrollFollowModel)
from @sdxc/ui/chat; the colour components (and colorAreaDrag, colorChannelSync,
colorPreview, colorWheelDrag, rtlAwareGradientDirection, HUE_GRADIENT_STOPS) from
@sdxc/ui/color; and the app components listed above (and chartTooltip, contextMenu,
dragReorder, dropZone, gridListKeys, menubarKeys, resizeHandle, treeKeys,
SelectionModel, DragSession, ResizeSession, Toaster, chartPalette, legendToggle,
graphicHostStyle, the chart scales and paths) from @sdxc/ui/app:
// beforeimport { Chart, Toast, Button } from "@sdxc/ui";import { Toaster } from "@sdxc/ui/behaviors";// afterimport { Button } from "@sdxc/ui";import { Chart, Toast, Toaster } from "@sdxc/ui/app";
Rename the landing style helpers in @sdxc/ui/styles: marketingContainer →
landingContainer, marketingCtaChrome → landingCtaChrome, marketingSectionSpace →
landingSectionSpace, marketingBandTone → landingBandTone, marketingLead →
landingLead, marketingEmphasis → landingEmphasis, marketingHairline →
landingHairline, marketingSurface → landingSurface, marketingSlowSpin →
landingSlowSpin, and the Marketing* types to Landing*.
Rename every --ui-marketing-* custom property you set to --ui-landing-*:
/* before */ --ui-marketing-measure: 76rem;/* after */ --ui-landing-measure: 76rem;
Point island specifiers in your browser entry at their namespace:
@sdxc/ui/table-of-contents → @sdxc/ui/docs/table-of-contents, and likewise
docs-nav-tools, copy-button, code-tabs-sync and page-actions under @sdxc/ui/docs/.
semanticColorPanelStyle is removed from @sdxc/ui/utils; use semanticColorPanel() from
@sdxc/ui/styles. sdxc ui add copies the general components; a namespace's components install
with the package.
Keep marketing bands legible and laid out inside centered bands
Four layout fixes for the marketing primitives and landing patterns.
No consumer action is needed; existing markup renders correctly.
StatStrip inside ProofStrip collapsed to zero width, so every
figure and label drew on top of each other. The strip now fills its
parent's inline size, and ProofStrip's column fills the band, so
the cells get real tracks.
The eyebrow on MarketingHeader and LandingHero stretched across
the whole column when start-aligned. It now keeps its own width.
marketingBandTone("inverse") (the default for ClosingCta) painted
a dark fill but left headings and lead copy on the dark neutral text
tokens, so the title was invisible. The inverse band now re-points
--ui-neutral-fg-emphasis, --ui-neutral-fg, --ui-neutral-fg-muted,
--ui-neutral-border and --ui-neutral-bg-tint at the on-solid
foreground, so anything placed in it stays readable.
A two-column FaqBand stacked on a narrow band left a 2rem gap
between the columns; stacked columns now read as one list, and the
column gap still applies side by side.
Make data-not-typeset opt a subtree out of every Typeset style
Before, an element marked data-not-typeset inside Typeset still got
most of the prose styles: links stayed brand-colored and underlined,
lists kept their prose indent, headings their prose sizes. The opt-out
reset only the rules it shared a cascade layer with, and each Typeset
rule renders in a layer of its own.
Every Typeset rule now skips elements inside a data-not-typeset
subtree, so an embedded widget, demo or frame draws exactly as it does
outside the article:
No consumer action is needed; markup that already uses the attribute
now gets the behavior it was documented to have.
Add PricingBand and TestimonialBand landing patterns
Two new bands in @sdxc/ui/patterns for the pricing and social-proof sections most landings carry.
PricingBand lays PricingBand.Plan cards one, two, then columns (2 or 3) across. A plan takes name, price, period, description, features (CheckRow items), action, badge and featured; the featured plan inverts, carries a lift, and moves first on phones. Actions line up at the foot of every card.
<PricingBand title="Priced by monitor, not seat"> <PricingBand.Plan name="Team" price="$29" period="/month" featured features={<><CheckRow>50 monitors</CheckRow><CheckRow>30-second checks</CheckRow></>} action={<LinkButton href="/signup?plan=team" color="brand">Start trial</LinkButton>} /></PricingBand>
TestimonialBand sets TestimonialBand.Quote cards (name, jobTitle, avatar, quote as children) in masonry columns: one, two, then columns (default 3).
Highlight CodeStage code, add file tabs and keep tab indentation with line numbers
CodeStage takes a language prop and highlights string content with
@sdxc/highlight, which @sdxc/ui now depends on. Tokens render as
<span class="token keyword">…, the same class contract the
@sdxc/highlight/styles.css stylesheet colors, and each one also carries
var(--highlight-<type>) with a light/dark fallback, so code reads in color
on a page that never loaded that stylesheet. The terminal and slab panels
re-point the token properties at the palette that reads on them.
A tabs prop shows several files behind header tabs, switched by a radio
group with no JavaScript. The first file is selected, panels share one grid
cell so the stage keeps the tallest file's height, and name sets the radio
group name (an id unique to the stage by default).
children is optional now, since a tabbed stage has none.
Fixes, with no action needed from consumers:
A tab-led line with lineNumbers indented about 4px; it now indents a
full tab width (tab-size: 4) from the code column.
Gutter numbers drew at 40% ink; they now draw at 60% (4.5:1 or better on
every variant, light and dark), right-aligned behind a hairline, with one
width for every line once the stage reaches 10 lines.
The header is 40px in every variant with the title (now 12px) centred and
starting on the code's column, gutter included. Code is set at 13px/1.6;
the slab keeps 13px on 24px.
A long line scrolls inside the stage at any width instead of widening a
grid column or the page.
The stage takes its content's height, so beside taller copy in a split
row it sits at the top instead of stretching to fill the row.
Add a SiteHeader pattern with mega panels and a phone sheet
SiteHeader from @sdxc/ui/patterns is the sticky top bar of a marketing site.
It is transparent at the top of the page and fills with a blurred page color and
a hairline once the page scrolls under it. variant="floating" holds it off the
edges as a rounded bar that gains a shadow instead.
Links are data, so the header draws each one twice. A plain link sits in the bar
on wide screens. A group with columns opens a full-width mega panel through the
Popover API, anchored under the bar, with titled columns of links, optional icons
and descriptions, and a closing link. Below collapseAt ("xl" by default, or
"lg") everything moves into a full-screen <dialog> behind a menu button. Groups
become disclosures, every row is at least 44px tall, and actions and cta repeat
as full-width buttons at its foot. The primary cta stays in the bar at every
width. Panels and the sheet open and close with invoker commands and no script.
On a one-page site whose links are in-page anchors, pass a client island through
sheet that closes the dialog when a link is followed.
Add a SiteFooter pattern with columns, newsletter, social and legal rows
SiteFooter from @sdxc/ui/patterns closes a marketing page. It has a brand block
with a short tagline, titled link columns, an optional newsletter slot, a bottom row
with legal text and social icons, and an optional full-width brand wordmark that sits
on the page edge.
The footer picks its columns per row from the number of columns at each container
step, so 2 to 6 columns never leave a short last row. Links have no underline at
rest. Tap targets are 44px on phones, and column titles nest one level under a
visually hidden "Footer" heading.
newsletterPlacement="band" moves the newsletter into a band above the columns.
Add Marquee, RotatingText, MotionLoop and the entrance() animation
Four motion pieces for landing pages. Each runs only when the visitor allows
motion, and every loop carries a pause toggle that works without script.
Marquee (@sdxc/ui/patterns) scrolls its children endlessly under edge-fade
masks. It stops on hover, focus or its pause toggle. Under reduced motion it
becomes a still, centered row that wraps. Image and SVG children take the
marketing logo height.
RotatingText cycles a word inside a headline. Its box is as wide as the widest
word, so the line never reflows. It settles on the first word after
iterations passes (2 by default), and screen readers hear every alternative.
MotionLoop wraps any loop longer than five seconds and adds a corner toggle
that pauses every animation inside it, pseudo-elements included.
entrance({ order, kind }) (@sdxc/ui/animations) is a one-time load
animation for hero parts. Copy rises 8px in 70ms steps; media settles from 98%
scale 200ms later.
Add SponsorWall, AuthorBand and Curriculum patterns
Three proof-and-people bands for @sdxc/ui/patterns.
SponsorWall stacks SponsorWall.Tiers (size"xl" to "sm"), each a mono
label over a ruled grid whose cells and logos shrink per tier. Columns follow the
mark count, so the last row always reaches both edges. SponsorWall.Individuals
adds a cloud of SponsorWall.Person avatars, grayscale until hover or focus, and
actions closes the wall.
AuthorBand sets a 3:4 portrait beside the author's statement. It can add
credentials, 44px social links, a signature, and an intro-video card with the
runtime in its caption.
Curriculum lists Curriculum.Parts of Curriculum.Lessons. Each lesson is a
<details> row with a mono number, a title, meta at the inline end, and an
optional badge such as "Free". A summary slot above the parts holds totals.
layout="stack" puts long courses in one column.
<AuthorBand portrait={<img src={portrait} alt="Odile Varga" />} title="Written by a type designer" name="Odile Varga" jobTitle="Type designer" />
Add ChangelogStrip, Rails, Crosshair and SegmentedStage patterns
Four signature modules for @sdxc/ui/patterns. This release also exports every new
landing pattern from @sdxc/ui/patterns: SiteHeader, SiteFooter, Marquee,
RotatingText, MotionLoop, SponsorWall, AuthorBand and Curriculum.
ChangelogStrip lists recent releases on one ruled line. Each
ChangelogStrip.Entry has a dot on the rule, a mono date, a title and a
two-line body, and can be a link. The entry count picks the columns; on
phones the strip scrolls and snaps inside itself.
Rails frames the content column with hairline rails from the md container
up. Its copy stays aligned with neighbouring MarketingSection bands, and
marks="corners" places Crosshair "+" marks where the rule meets the rails.
Crosshair draws one 11px or 21px "+" centered on a logical corner, so it
mirrors on right-to-left pages.
SegmentedStage puts a pill switcher over a stage of panels, switched by native
radios with no script. It holds the tallest panel's height, so the page never
jumps. Use it as LandingHero media to show several product views.
<ChangelogStrip title="Changelog" action={<a href="/changelog">View all →</a>}>
<ChangelogStrip.Entry dateTime="2026-10-28" date="Oct 28, 2026" title="Custom domains" href="/changelog/domains">
Point status.yourcompany.com at your status page.
</ChangelogStrip.Entry>
</ChangelogStrip>
Keep a TabbedStage at one height on every tab
Before, a TabbedStage laid out only the selected panel, so switching tabs
changed the stage's height and moved everything below it (up to 170px on a
phone). Now every panel shares one stage cell and unselected panels are
hidden with visibility: hidden, so the stage always takes the tallest
panel's height. Hidden panels stay out of focus order and the accessibility
tree.
Horizontal stages keep their wrapping pill row; the panels share one line
under it.
Vertical stages keep the rail beside a sticky stage from the lg
container up. Below it, the stage now sits under the whole rail instead of
under the selected item, so selecting an item only toggles its
description.
No action needed. A shorter panel now shows empty space under it, at the
bottom of the stage; give panels similar heights if that gap matters.
Crop or scale a ProductFrame's desktop UI on phones
A ProductFrame can now keep a desktop composition on a narrow screen instead
of reflowing and truncating it. Pass designWidth with the narrowest width
the framed UI lays out at; a narrower body crops the UI at its end edge
under a 2rem fade, or with fit="scale" zooms it down to fit.
The chrome bar truncated the URL even with room to spare, because the
title group and the URL shrank together. The title group now takes the
remaining space and the URL keeps its full width up to half the bar.
Below the md container, a staged frame now fills the stage width
(instead of 86%) on a 0.75rem pad, so a phone spends its width on the
product.
Keep LandingHero's stacked copy and media inside the band
Before, wide media under the hero's copy could push both the copy and the
media wider than the band on a phone: the columns took the media's
min-content width, so the lead and the CTAs were cut off at both edges and
the band scrolled sideways. The stacked copy and media columns now fill the
band and shrink with it, so wide media stays inside the gutter and clips or
crops inside its own frame.
The note under the actions also wraps with text-wrap: pretty, so it no
longer ends on a single word.
No action needed.
Keep band copy legible in dark and align inset bands to the content frame
Brand and inverse bands, eyebrows and inset panels now hold contrast and edges at every
width and in both schemes.
Brand bands paint the 700 step (override with --ui-marketing-brand-band) and set
their lead and labels at 92% and 78% of the on-solid ink, so both clear 4.5:1. Before,
white at 80% and 66% on the 600 step measured 3.8–4.4:1 in light.
In dark, a brand band's tokens apply to its whole subtree. Before, the dark theme's
per-element tokens replaced them and the lead fell to about 2.8:1.
Brand and inverse bands re-point --ui-marketing-eyebrow-color at their own muted ink,
so a page's brand eyebrow colour no longer lands on a dark fill (3.2:1 before).
New themeScope() mixin: put it on the element that re-declares a
--ui-color-neutral-* scale so raised surfaces and hairlines take that palette's hue
in dark: <div style={palette} mix={[themeScope()]}>…</div>.
Inset bands cap at the content measure plus 4rem a side and centre, and their copy
starts on the same edge as the bands around them at every width (8px off before).
Band block padding rounds to whole pixels, so hairlines stay crisp.
Pill eyebrows and AnnouncementChip round at 1rem, so a label that wraps on a phone
reads as a soft card rather than a lozenge; the numbered eyebrow draws its index at
full ink.
marketingCtaChrome() transitions only background-color, box-shadow, color.
No action needed. Pages that set --ui-marketing-eyebrow-color keep it outside solid
bands.
Set the hero lead at 17px on phones and 20px wide
LandingHero's lead read at 20/32px on a phone and 24/32px wide, a step larger than
reference landings (16–18px), so a three-sentence lead ran five lines on a 375px screen
and pushed the actions below the fold. --ui-marketing-hero-lead-size is now
clamp(1.0625rem, 0.98rem + 0.4cqi, 1.25rem), and the hero lead takes a proportional
--ui-marketing-hero-lead-leading (1.55): about 17/26px on a phone and 20/31px wide.
Band leads are unchanged.
No action needed; set either token to keep the previous size.
Keep StatStrip labels on the same edge as their figures
Inside a centred band (ProofStrip, or a MarketingSection with
align="center"), a StatStrip label that wrapped used to centre its
lines under a left-aligned figure. Each cell now sets its own text
alignment, so the figure and every line of its label share one edge,
whatever alignment the band sets.
The new align prop picks that edge: "start" (the default) or
"center", which centres the figure and label together.
<ProofStrip> <StatStrip align="center"> <StatStrip.Item label="Readers since the first edition">18,400</StatStrip.Item> </StatStrip> </ProofStrip>
Figures now always use tabular digits. A new size="display" draws
them as a fluid headline numeral, from 2.5rem to 4.5rem with the
strip's width, for a strip that leads its band:
<StatStrip size="display">…</StatStrip>
No action is needed: existing strips keep their start edge, and their
wrapped labels now line up under the figure.
Put a split FeatureBand's header beside its media and centre the columns
A FeatureBand layout="split" with media drew its header across the full band and the
split under it, so a short copy column sat top-aligned beside tall media with a large
gap under it, and the header, copy and media edges matched nothing. The header now
opens the copy column, so heading, lead, copy and media share one two-column grid on
the content frame. Split centres its columns on each other from the lg container,
so a short column sits level with a tall one. On phones the order stays header, copy,
then media. Heading levels are unchanged.
No action needed. A band that wants a full-width header over two columns composes
MarketingSection, MarketingHeader and Split itself.
Let a page restyle CTAs, eyebrows, tints, frames and accents with tokens
A landing can now change every look a designer varies by setting custom properties once
on its root, with no component props:
--ui-marketing-cta-height: minimum height of every marketingCtaChrome() control.
--ui-marketing-eyebrow-font, -weight, -transform and -tracking: face, weight,
case and tracking of the mono eyebrow, alongside the existing -color.
--ui-marketing-band-tint, -tint-dark and --ui-marketing-band-glow: a tinted band's
fill in each scheme and its corner glow (none drops it).
--ui-marketing-radius-frame: corner radius of ProductFrame windows, CodeStage panels
and TabbedStage pill panels.
--ui-marketing-accent-color: ink of AccentText.
Defaults match the previous look, so no action is needed.
Keep marketing CTAs at their button size when no CTA height is set
marketingCtaChrome() set min-block-size: 0 when --ui-marketing-cta-height was unset,
which removed the button's own minimum and drew a 40px CTA at 38px. The token now
drives block-size with an auto fallback, so an unset token keeps each size's height
and a set one raises every CTA to it. No action needed.
Leave no orphaned card, stray line or ragged row in landing grids
Every card grid now fills its rows or centres a short last row, and cards in a row line
up:
TestimonialBand lays quotes in a grid instead of CSS columns. Before, a card's edge
fragment showed as a hairline under columns one and two, columns ended at different
heights, and the grid stopped short of the content width. Rows now share one height,
captions sit at each card's foot, and the grid spans the header's width.
New balancedGrid() in @sdxc/ui/styles picks the column count per container range
so rows stay even (6 items in up to 4 columns run 3 + 3) and centres any short last
row. LogoCloud, PricingBand and TestimonialBand use it: 3 plans no longer leave
one alone in a 2-column row, and 5 or 6 logos no longer hang under the first columns.
Bento cells are subgrids, so titles and bodies line up across a row; Bento.Title
defaults one step larger (1.25rem rising to 1.5rem, weight 500).
Feature, Bento, StepList and plan titles balance their lines.
PricingBand plan actions take the marketing CTA radius, weight and edge at the 40px
default size; pass size="md" or nothing instead of size="lg".
IconWell defaults to 40px, matching Feature.Icon.
No action needed beyond dropping size="lg" from plan actions if you want them to match
your other CTAs.
Keep two-letter initials readable in an overlapping avatar stack
Avatar.Group overlapped each avatar by half its width, so the second letter of
initials like "TS" sat under the next avatar, and the separating ring used a tint that
showed as a halo on a dark page. The overlap is now a quarter of the avatar, and the
ring draws in --ui-avatar-group-ring, falling back to the page background. No action
needed.
Leave no orphaned card, stray line or ragged row in landing grids
Every card grid now fills its rows or centres a short last row, and cards in a row line
up:
TestimonialBand lays quotes in a grid instead of CSS columns. Before, a card's edge
fragment showed as a hairline under columns one and two, columns ended at different
heights, and the grid stopped short of the content width. Rows now share one height,
captions sit at each card's foot, and the grid spans the header's width.
LogoCloud, PricingBand and TestimonialBand pick their column count per container
width so rows stay even (6 items in up to 4 columns run 3 + 3) and centre any short last
row: 3 plans no longer leave one alone in a 2-column row, and 5 or 6 logos no longer
hang under the first columns.
Bento cells are subgrids, so titles and bodies line up across a row; Bento.Title
defaults one step larger (1.25rem rising to 1.5rem, weight 500).
Feature, Bento, StepList and plan titles balance their lines.
PricingBand plan actions take the marketing CTA radius, weight and edge at the 40px
default size; pass size="md" or nothing instead of size="lg".
IconWell defaults to 40px, matching Feature.Icon.
No action needed beyond dropping size="lg" from plan actions if you want them to match
your other CTAs.
Keep two-letter initials readable in an overlapping avatar stack
Avatar.Group overlapped each avatar by 0.75rem (over a third of a small avatar), so
the second letter of initials like "TS" sat under the next avatar, and the separating
ring used a tint that showed as a halo on a dark page. The overlap is now about a fifth
of the avatar (0.375rem small, 0.5rem medium, 0.625rem large), and the ring draws in
--ui-avatar-group-ring, falling back to the page background. No action needed.
Add tiles, ruled and marquee logo walls and a LogoSentence pattern
LogoCloud gains three layouts:
layout="tiles" sets each mark on its own tinted 3:2 tile, in even rows with no
short last row. Restyle the fill with --ui-marketing-logo-tile and the corners
with --ui-marketing-tile-radius.
layout="ruled" is the ruled grid closed by an outer hairline frame.
layout="marquee" scrolls the marks endlessly through Marquee, with its pause
toggle and reduced-motion fallback.
Every layout reads a --logo-scale style on a mark (default 1), so a square glyph
can stand taller than a wordmark.
The new LogoSentence (@sdxc/ui/patterns) sets marks inline in a large, muted
line of prose, sized to 0.8em of the text.
<LogoCloud layout="tiles" label="Trusted by on-call teams at">{marks}</LogoCloud> <LogoCloud layout="marquee" muted>{marks}</LogoCloud> <LogoSentence> Trusted by <img src={acme} alt="Acme" /> and 2,000 teams. </LogoSentence>
Existing row, spread and grid walls render as before.
Add sheen, pill and chip display treatments to AccentText
AccentText gains three treatments for one word or phrase in a display headline:
variant="sheen" paints the glyphs with a gradient that fades the inherited ink
to half strength toward the end. Under forced colors it falls back to solid ink.
variant="pill" sets the word uppercase at half the heading size, in a capsule
outlined in the text color.
variant="chip" sets the word in the accent color on a brand tint, led by a
small dot.
The existing color, swash and highlight treatments are unchanged.
Add a release pin and an opt-in load entrance to LandingHero
LandingHero takes two new props:
release pins a version line under the actions in mono type on a brand-tinted
chip. Pass a link to make the whole pin clickable.
entrance plays the load animation from entrance() in @sdxc/ui/animations.
The eyebrow, title, lead, actions, release, note and proof rise in turn, 70ms
apart, and the media settles last. Visitors who ask for reduced motion see the
hero at rest.
<LandingHero
entrance
title="Build the whole app in one framework"
actions={actions}
release={<a href="/changelog/8-1">v8.1 — released Oct 28, 2026 →</a>}
/>
Heroes without these props render as before.
Add split, statement, subtitle and action chapter headers
MarketingHeader gains four options for opening a band:
layout="split" puts the lead beside the title from the band's lg width,
aligned to the title's last line, with the eyebrow over the title. Narrower
bands keep the stack.
tone="statement" sets the title in the muted ink and its <strong> phrase in
the heading ink, so one heading reads as a claim and its support.
subtitle adds a second line at the title's size in the muted ink, inside the
heading.
action places a control such as "See all" at the end of the header row, on
the title's last line. It wraps under the title when the row runs out of room.
<MarketingHeader layout="split" eyebrow="Observability" description={lead}>
Know what every function did, and why
</MarketingHeader>
<MarketingHeader tone="statement" subtitle="Every page in under a second.">
<strong>Status pages that load first.</strong> Even when your app is down.
</MarketingHeader>
<MarketingHeader action={<LinkButton href="/courses" variant="ghost">See all</LinkButton>}>
Flagship training
</MarketingHeader>
A split or an action aligns the header to the start. Existing headers render as
before.
Add an un-carded icon list and mixed spans to feature grids
Feature.Grid variant="list" lays claims out without card chrome. Each cell sets
its icon beside the title and copy, on wide gaps, and drops Feature.Media.
FeatureBand layout="grid" takes the same choice through gridVariant.
Feature span={2 | 3} widens a cell across that many tracks at the grid's widest
step, and across the whole row where the grid has fewer tracks. A grid whose
cells set spans keeps the layout the page gave it. Name its rounded outer corners
with data-corner on the cells that hold them.
<Feature.Grid variant="list" columns={3}> <Feature> <Feature.Icon><GaugeIcon aria-hidden="true" /></Feature.Icon> <Feature.Title>Probes from 12 regions</Feature.Title> <Feature.Description>A failure pages only once two regions agree.</Feature.Description> </Feature> </Feature.Grid> <Feature.Grid columns={3}> <Feature span={2}>…</Feature> <Feature>…</Feature> </Feature.Grid>
Card and mosaic grids without spans render as before.
Add a featured quote, story links and a carousel to TestimonialBand
TestimonialBand and TestimonialBand.Quote gain four options:
featured on the band sets one quote full width above the rest.
variant="featured" on a quote inverts the card and sets the quote large, at
weight 500. Its optional logo leads the card.
href on a quote closes the card with a "Read the story →" link. Change the
text with linkLabel.
layout="carousel" on the band sets the quotes in one row that scrolls and snaps
sideways inside the band. Each card is min(22rem, 85%) wide, so a phone shows
the next card's edge. The row is a focusable region named by carouselLabel.
<TestimonialBand
title="Teams that sleep through the night"
layout="carousel"
featured={
<TestimonialBand.Quote variant="featured" logo={<img src={acme} alt="Acme" />} name="Ana Ruiz" href="/customers/acme">
Alert noise fell <strong>by 83%</strong> in the first month.
</TestimonialBand.Quote>
}
{quotes}
</TestimonialBand>
Bands without these props render as before.
Give every closed Accordion row the same height
The first Accordion.Item used to draw the list's top rule as its own block-start border,
so it was 1px taller than every other closed row (57px against 58px in a FaqBand), and the
rows stepped unevenly down the column.
Accordion now draws the top rule on its root, and every item draws only the divider below
it. Closed rows of the same content are now the same height, the first included, and the list
looks the same. No action is needed unless a page styled the first item's block-start border
through mix; move that styling to the Accordion root.
Let a page round the corners neighbouring cards share
Card grids (Bento, Feature grids and every pattern built on them) now read the radius of the corners two cards share from --ui-marketing-card-radius-inner. It defaults to 0.5rem, so nothing changes until a page sets it. Set it to the same value as --ui-marketing-card-radius-outer for cards that are rounded alike on every corner:
Let a page square and flatten PricingBand plans with tokens
PricingBand plans now read their corner radius and the featured plan's lift from two
custom properties, so a page that draws square, flat cards can bring its pricing along
without restyling the band.
--ui-marketing-plan-radius sets every plan's corner radius (default 1.5rem).
--ui-marketing-plan-lift sets the featured plan's shadow (default: the current lift).
Set it to 0 0 #0000 for a plan that sits flat; in dark mode the featured plan keeps
its brand ring either way.
Pages that set neither token look exactly as before; no action is needed.
Let a SegmentedStage put its control on the start edge
SegmentedStage takes an align prop. The default, "center", keeps the control centred over the stage as before. "start" puts it flush with the stage's start edge, so it lines up with the copy of a start-aligned hero.
Existing stages render unchanged; no action is needed.
Round SiteHeader's menu button like the page's buttons
Before, SiteHeader's menu and close buttons always had 10px corners, so on a page with pill buttons the menu button sat as a rounded square beside a pill call to action. They now read --ui-button-radius, the same token Button, LinkButton and marketingCtaChrome() use, and fall back to 10px when a page does not set it. No action is needed; a page that already sets --ui-button-radius gets matching menu buttons.
Keep SiteHeader's menu button hidden on a wide bar
Before: on a page where another element first used the same container-query rule, or whose styles loaded in a different order, SiteHeader showed its phone menu button next to the inline navigation on a wide bar, because the button's base display and its hide rule lived in two classes and the later one won.
Start a gap StatStrip's figures on the band's copy edge
Before: every cell of a StatStrip variant="gap" carried 1.25rem (2rem from the lg container) of inline padding, so the first figure sat inset from the heading and lead above it, with no rule to pad away from.
Draw Rails only when the page is wider than the column
Before: Rails drew its hairlines from the md container up. Between about 576px and 1184px the column is full-bleed, so the rails sat on the viewport edges and the marks="corners" crosshairs hung half past them, scrolling the page sideways by 10px.
Leave no plan alone on a PricingBand row at tablet widths
Before: between the 36rem and 48rem containers (a 768px window) a PricingBand with three plans paired the first two and centred the third alone on its own row.
After: in that range an even number of plans still pairs up, and an odd number stacks one plan a row at the full width until the lg container sets them side by side, so no row is ever short. A phone still stacks with the featured plan first; at the stacked tablet step plans keep their source order. No action is needed.
balancedGrid steps also take an optional columnsFor(count) that overrides the even split for a run of exactly that many items:
Pin feature actions to the cell foot and add a quiet Feature.Link
Before, Feature.Action followed the description directly, so in a
Feature.Grid row where one cell's copy wrapped to more lines its action sat
lower than its neighbour's. Now the action slot is pushed to the foot of the
cell, so the actions of cells sharing a row line up whatever the copy length.
The minimum space above an action is unchanged. No action is needed.
New: Feature.Link, a quiet brand-coloured text link with a trailing arrow
for the action slot. The whole cell becomes its hit target, links inside the
description stay clickable above it, and the arrow nudges forward on hover
unless the visitor prefers reduced motion.
<Feature href="/docs/versioning"> <Feature.Title>Versioning</Feature.Title> <Feature.Description>How the number is assigned.</Feature.Description> <Feature.Action> <Feature.Link href="/docs/versioning">How versioning works</Feature.Link> </Feature.Action> </Feature>
Every Feature cell is now position: relative so the link can cover it.
Let SiteHeader and SiteFooter prefetch their links
SiteHeader and SiteFooter take a prefetch prop with the same modes every
other @sdxc/ui link accepts. With prefetch="intent", a destination starts
loading as soon as the visitor hovers or focuses its link, so the page behind a
header or footer link opens without a wait.
On the header the mode reaches every link it draws: bar links, mega-panel links
and their footer link, phone-sheet rows, the actions and the call to action. On
the footer it reaches the column links; the legal and social slots are your own
markup and keep whatever attributes you give them.
The default stays "none", so existing headers and footers render exactly as
before and need no change.
Render the same SiteHeader markup on every request when it has an id
Before, SiteHeader named its phone sheet, its mega panels and the bar's
anchor from an id generated per render, so the same page produced different
HTML on every request. A link prefetch and the navigation after it never
matched byte for byte, and a cached page differed from a fresh one.
Now, when you give the header an id, those inner ids derive from it:
renders site-header-sheet, site-header-panel-0 and --site-header-bar on
every request. A header without an id behaves as before; pass one if your
pages need deterministic markup.
Add FlowDiagram and DialogDismiss for landing pages
Two landing pieces join the library, and every existing import keeps working.
FlowDiagram (from @sdxc/ui/patterns) animates one automated run: a trigger fires, each
step passes in turn along a rail, and the outcome appears before the loop restarts. It sits
in a MotionLoop with a pause toggle, and without motion it shows the finished run.
import { FlowDiagram } from "@sdxc/ui/patterns"; <FlowDiagram aria-label="A deploy, step by step" pauseLabel="Pause the animation" trigger={{ icon: <GitBranchIcon size={14} />, title: "A push starts a deploy" }} steps={[ { title: "Check", code: "bun check" }, { title: "Ship", detail: "To production" }, ]} outcome="Deployed" footnote="A failed step pages the on-call" />
DialogDismiss (from @sdxc/ui) is a client island that closes the modal <dialog> it
sits in when the visitor presses the backdrop or follows a link inside it. A same-page link
such as /#pricing leaves a navigation sheet open otherwise. Pass it through SiteHeader's
sheet slot, or drop it into any dialog, and map its subpath in your browser entry, since
the renderer names the island by its bare specifier:
The behavior is also available as the dialogDismiss() mixin from @sdxc/ui/mixins, for an
island of your own.
Let a @sdxc/u utility in mix override the component's own styles
Before, a @sdxc/u utility passed in a component's mix was added beside
the component's own utilities as a separate class, and which one applied
depended on the order the page first used each class: <Text mix={text("xs")}>
rendered small text, not extra-small, on any page that had already used
text("xs") elsewhere. Every component now applies its caller's mix with
mergeMix from @sdxc/u/general, so a utility in mix wins over the
component's own utility for the same property on every page, including a
property the component sets under a state or data-* selector:
No action is needed. A page whose mix utility was losing to a component's
own style by accident now gets the value it asked for, so review any mix
that sets a property the component also sets. Other mixins in mix (css(),
attrs(), event and behavior mixins) apply as before.
Add five animated diagrams for landing claims that are not a linear run
@sdxc/ui/patterns gains five animated visuals, so a landing can match each claim's shape instead of playing FlowDiagram everywhere. Every one is CSS-only (no hydration), loops inside MotionLoop with a pause toggle, shows its finished state under prefers-reduced-motion, takes every string as a prop, requires an aria-label, and fits a 280px column.
SequenceDiagram: two to four actors on lifelines, with messages drawn between them in order. Arrows mirror on right-to-left pages.
FanOutDiagram: one source reaching every target in turn, or many feeding one with direction="in".
EventTicker: rows arriving newest first, each with a status chip; flipTo changes a row's status partway through.
TypedTerminal: input lines typing themselves out in terminal chrome, then their output lines.
DrawnChart: a metric counting up to its real value over horizontal bars or a line that draws in.
tsx
import{DrawnChart,EventTicker,FanOutDiagram,SequenceDiagram,TypedTerminal}from"@sdxc/ui/patterns";<SequenceDiagramaria-label="A PKCE sign-in"actors={[{name:"Browser"},{name:"Your app"},{name:"Authorization Server"}]}messages={[{from:0,to:1,label:"Open the sign-in page",code:"GET /login"},{from:1,to:2,label:"Trade code and verifier",code:"POST /token"},]}outcome="Signed in"/><FanOutDiagramaria-label="One fetch reaches every reader"source={{title:"Feed fetched once",detail:"GET /feed.xml"}}targets={[{title:"Ana",detail:"+3 posts"},{title:"Ben",detail:"+3 posts"}]}/><EventTickeraria-label="Recent checks"statusLabels={{ok:"Passed",warn:"Slow",fail:"Failed",pending:"Running"}}rows={[{time:"09:35",label:"Checkout failed at Pay",status:"fail",code:"POST /api/pay → 502"}]}/><TypedTerminalaria-label="A sign-in spec and its run"title="specs/sign-in.spec"lines={[{kind:"input",text:'visit "/login"'},{kind:"output",text:"✓ 4 steps · 2.1s",status:"ok"}]}/><DrawnChartaria-label="Checks by posting rate"metric={{value:96,label:"fetches a day"}}series={[{label:"10+ posts a day",value:96,display:"15 min"},{label:"Daily",value:1,display:"1 day"}]}highlight={0}/>
No existing component changed, so consumers need do nothing.
Publish the style helpers and Eyebrow that components import
Several components imported helpers that no published entry point exported, so sdxc ui add
could not copy Button, LinkButton, Feature, LogoCloud or MarketingHeader: their sources pointed at
files that only exist inside the package.
@sdxc/ui/styles now exports surfaceControl and the card-grid helpers (cardGrid,
balancedGrid, balancedColumns, byChildCount, cardPadding, cardMedia, iconTile,
ICON_TILE_SIDE), and @sdxc/ui/utils exports Eyebrow:
import { surfaceControl, cardGrid } from "@sdxc/ui/styles";import { Eyebrow } from "@sdxc/ui/utils";
Nothing existing changed; consumers need no action.
Keep SequenceDiagram arrows whole as they reset, and seat TypedTerminal's pause in its title bar
Two visual fixes to animated patterns in @sdxc/ui/patterns:
SequenceDiagram: before, at the end of each loop every shaft shrank back toward its sender while its arrowhead stayed in place, so for a moment every arrow looked broken off short of its head. Now each arrow fades out whole, shaft and head together, and the next loop draws it from the sender again.
TypedTerminal: before, the pause toggle was pinned to the panel's corner and hung over the title bar's bottom border. Now it sits inside the title bar, centred against the title.
Consumers need not change anything.
Size TypedTerminal's pause toggle as title-bar chrome
Before, TypedTerminal's pause toggle in the title bar was the standard 2rem disc on the page colour: it filled most of the 2.5rem bar, sat against the bar's end edge, and read as a white button stuck onto a dark panel. Now it is a 1.5rem control ringed and inked in the panel's own colour, inset from the end as far as the title is from the start. Consumers need not change anything.
Keep Highlight's match tint inside its own letters
Before, a Highlight match pulled its tint 0.1em outside the matched text with a negative
margin, so the tint painted over the letter before it, and the palette's lightest tint step
was hard to see on a white or near-black page. Now the tint stays inside the match, with a
little inline padding, and is the color role's ink mixed at 20%, which reads in light and
dark themes alike. Search results and filtered lists that render Highlight pick this up
with no change.
Add DocsTree with findNeighbours for docs sidebars and pagers
@sdxc/ui/utils now exports DocsTree, the shape of a docs sidebar (sections of pages and
titled groups of pages), with two helpers that walk it in reading order:
flattenDocsTree(tree) and findNeighbours(tree, path, { boundary }). DocsNav draws a
tree and DocsPager steps through the same one, so the sidebar and the pager always agree.
import { findNeighbours } from "@sdxc/ui/utils"; let tree = { label: "Docs", sections: [{ title: "Start", items: [{ title: "Install", href: "/docs/install" }, { title: "Configure", href: "/docs/configure" }] }] }; let { previous, next } = findNeighbours(tree, "/docs/install", { boundary: "section" });
boundary: "section" keeps the pager inside the section being read.
Add Callout for notes, tips, warnings and dangers in docs
Callout is a static aside for docs pages, in four kinds: note, tip, warning and
danger. Each one is tinted lightly in its color and named by the translated label you
pass, so screen readers announce it as an aside, never as an alert or a live region.
import { Callout } from "@sdxc/ui"; <Callout kind="warning" label="Warning" title="Rotate the key first"> Deploy the new key before you revoke the old one. </Callout>
GitHub-style alerts map as note → note, tip → tip, warning → warning, caution → danger, and
important → note with your own "Important" label.
Add Steps for numbered procedures in docs
Steps numbers a procedure with a counter circle and a thin rail running to the next step,
in plain CSS. Each step's title is a real heading, one level under the surrounding
HeadingScope (h2 on a page without one), and takes an optional id so a table of contents
can link it.
import { Steps } from "@sdxc/ui";
Add FileTree to show a project's layout in docs
FileTree draws a project layout. Directories are native <details> that fold without
JavaScript, files get an icon for their type, the file a page is about can be highlighted,
a muted comment can sit beside any entry, and "…" stands for files left out.
import { FileTree } from "@sdxc/ui";
Add UiLabel and UiPath to name a product's controls in help docs
Help docs name the buttons a reader presses. UiLabel sets one control's name as a small
sans chip that never breaks across lines, and UiPath joins a click path into chips with
arrows, wrapping only between steps.
import { UiLabel, UiPath } from "@sdxc/ui"; Press <UiLabel>Add monitor</UiLabel>, or open <UiPath items={["Settings", "Notifications", "Add channel"]} />.
separator replaces the default →.
Add PlanNotice for plan and role requirements in help docs
PlanNotice is the quiet one-sentence box under a help page's title that says who can use
the feature, with links allowed inside.
import { PlanNotice } from "@sdxc/ui";
Add CodeBlock, a titled code card with marked lines and copy
CodeBlock renders highlighted code in a card titled with its file (an icon by extension)
or "Terminal". highlight, add and remove mark lines across the full scroll width
without moving the text, and lineNumbers adds a gutter. Its copy button is the only part
that hydrates: it copies without shell prompts, command output or removed lines, swaps its
icon to a check, and announces the copied label.
Add "@sdxc/ui/copy-button": () => import("@sdxc/ui/copy-button") to the package modules
your browser entry resolves islands from. Also new: the copyFeedback(copiedLabel) mixin,
and copyToClipboard() now leaves out elements marked data-copy-exclude; targets without
that attribute copy exactly as before.
Add CodeTabs and InstallCommand with tabs synced and remembered
CodeTabs switches between versions of the same code (package manager, framework,
language) with radios and CSS, so it works without JavaScript. Give several sets the same
syncKey and they switch together; persist remembers the choice in localStorage
("local", the default) or a cookie ("cookie"), which the server reads with
readCodeTabsCookie(cookieHeader, syncKey) to render the reader's choice from the start.
InstallCommand spells packages (and dev) for npm, pnpm, yarn and bun, synced on
package-manager. Add "@sdxc/ui/code-tabs-sync" to your browser entry's package modules.
Add PropsTable for options and API fields in docs
PropsTable is a reference table with Name, Type, Default, Required and Description
columns, every header a label you pass. A row with children expands its nested fields in
place behind a native <details>, and in a narrow column the rows stack into cards.
import { PropsTable } from "@sdxc/ui";
Add TableOfContents, an "On this page" list that follows the reader
TableOfContents lists a page's headings as plain anchors, as a rail beside the prose or a
sticky disclosure bar on a phone. Once it loads, a marker slides over every section on
screen, the last section is marked when the page reaches its end, the current item stays in
view inside a long rail, and the bar names the section being read beside a progress ring.
Pages with fewer than minItems headings (2 by default) render nothing.
Add "@sdxc/ui/table-of-contents" to your browser entry's package modules. The behavior is
also the tocSpy() mixin in @sdxc/ui/mixins.
Add DocsNav, a docs sidebar that opens at the current page
DocsNav draws a DocsTree as a sidebar: sections under plain labels, pages and folding
groups of pages, badges, and the current page marked aria-current="page". Once its island
loads, the sidebar scrolls to the current page (again each time a drawer holding it opens),
and an optional filter field narrows it by title, keeping each match's group open and
saying when nothing matches. footer holds links such as "Contact support".
Add "@sdxc/ui/docs-nav-tools" to your browser entry's package modules.
Add DocsPager, previous and next pages as whole-card links
DocsPager closes a docs page with its neighbours. Each side is one link card (rel="prev"
or "next") showing the destination's title, and its section when the reader would cross
into another; the arrow nudges on hover, the cards stack in a narrow column, and a missing
side is left out.
import { DocsPager } from "@sdxc/ui"; import { findNeighbours } from "@sdxc/ui/utils";
Add NextSteps for a hand-written "where to go next" in docs
NextSteps ends a guide with two to four destinations, each a whole-card or whole-row link
with a line saying why to go there. Its title is a real heading with an optional id, so a
table of contents can link it.
import { NextSteps } from "@sdxc/ui"; <NextSteps title="Next steps" id="next-steps" items={[{ title: "Choose who gets alerted", href: "/docs/alerts", description: "Route failures to a person or a rotation." }]} />
variant="list" draws rows instead of cards.
Add DocsPageHeader so every docs page opens the same way
DocsPageHeader sets a docs page's opening: a breadcrumb, the <h1>, a lead, an optional
plan notice, and a meta row with the last-updated date (a <time>) and page actions.
import { DocsPageHeader } from "@sdxc/ui";
Add PageActions, a "Copy page" button with a menu of page links
PageActions is a split button for docs pages. The main button fetches the page's Markdown
twin and copies it, swapping its label to "Copied" and announcing it; the chevron opens a
native popover menu of links such as View as Markdown, Open in Claude or Edit on GitHub,
which works without JavaScript.
Add "@sdxc/ui/page-actions" to your browser entry's package modules. Also new: the
copyFromUrl(href, failedLabel?) mixin, which copies a fetched document.
Add DocsFeedback, a "Was this helpful?" form that works without JavaScript
DocsFeedback asks a quiet question at the end of a docs page. Choosing yes or no reveals an
optional note and a send button through CSS, and the form posts helpful, page and note
to your action; render it with state="sent" to show the thank-you instead.
import { DocsFeedback } from "@sdxc/ui"; <DocsFeedback action="/docs/feedback" page="/docs/install" labels={{ question: "Was this page helpful?", yes: "Yes", no: "No", note: "What could be better?", send: "Send", thanks: "Thanks for the feedback" }} />
The field names are exported as DOCS_FEEDBACK_VOTE_FIELD, DOCS_FEEDBACK_NOTE_FIELD and
DOCS_FEEDBACK_PAGE_FIELD for the handler that reads them.
Add AnchorHeading, a heading with a link to itself
AnchorHeading renders a heading with an id and a # link that shows on hover and on
focus (always on touch screens). A jump to it stops below sticky chrome at
--ui-docs-scroll-margin, and the heading flashes briefly as the target when motion is
allowed. It takes its size and weight from the surrounding prose.
import { AnchorHeading } from "@sdxc/ui";
Add DocsLayout, the shell a docs page composes into
DocsLayout in @sdxc/ui/patterns lays out a docs page: the sidebar docked on the left,
the article in a reading measure, and the page's headings in a rail from 75rem. Below the
dock width the sidebar opens in a drawer with a visible close button, and the headings fold
into a sticky bar under the site header. Headings jumped to stop clear of that chrome, and
wide code or tables scroll inside their own box, so nothing scrolls sideways at 320px.
import { DocsNav } from "@sdxc/ui"; import { DocsLayout } from "@sdxc/ui/patterns"; <DocsLayout sidebar={<DocsNav tree={tree} activePath={path} />} toc={anchors} tocLabel="On this page" menuLabel="Menu" drawerLabel="Documentation" closeLabel="Close menu" stickyTop="4rem"> {article} </DocsLayout>
dock docks at 48rem ("md") or 64rem ("lg", the default), header draws a sticky site
header, and main={false} leaves the <main> landmark to your own layout.
Add DocsHub, a docs home that routes readers by task
DocsHub in @sdxc/ui/patterns opens a docs site: a title and lead, an optional search
slot and topic chips, a "Start here" row of larger cards, the sections as cards with page
counts, and popular articles. Every card is one link, and the grids fill a wide column and
stack on a phone.
import { DocsHub } from "@sdxc/ui/patterns";
Add DocsNotFound, a docs 404 that searches for the missing page
DocsNotFound in @sdxc/ui/patterns is the body of a docs 404 inside your docs shell: the
missing path, your search field, and a short list of places to start.
searchQueryFromPath(path) turns the missing path into the query to pre-fill, so
/docs/guides/web-hooks searches for "web hooks".
import { DocsNotFound, searchQueryFromPath } from "@sdxc/ui/patterns";
Draw no empty last line in a CodeBlock whose painted tokens end in a newline
Before, a CodeBlock given pre-painted tokens whose last run ended in a newline (what
most highlighters return for a fenced block) drew an extra blank line at the bottom of the
card. Now the card draws exactly the lines of code, with or without a trailing newline.
Consumers need not change anything.
Leave out PropsTable's Default column when no row has a default
Before, PropsTable always drew a Default column, so a table built from data without
defaults showed a column of dashes on every row. Now each level of the table draws the
Default column only when at least one of its rows sets default; a nested level decides
for itself. Consumers need not change anything; pass default on a row to bring the
column back.
Fill the parent's width with DocsLayout inside a centred flex parent
Before, a DocsLayout placed directly in a flex column that centres its children (a
<body> laid out as display: flex; flex-direction: column; align-items: center, common
for a sticky footer) shrank to its content, so the article stopped well short of its
measure (about 560px at any desktop width). Now the layout always takes its parent's
full width, up to maxWidth, and the article reaches its measure. Consumers need not
change anything.
Keep Typeset's prose styles off CodeBlock and FileTree
Before, a CodeBlock or FileTree rendered inside a Typeset could pick up the prose
styles meant for plain markdown: an extra border, padding and a larger font on the code,
or list padding on the tree, depending on the order the page's stylesheets loaded. Now
both opt out of Typeset (data-not-typeset on the code's <pre> and the tree's list),
so they look the same inside and outside prose, while keeping the space Typeset puts
between blocks. Consumers need not change anything.
Cap DocsLayout's running text at a prose measure while wide blocks fill the column
A docs article now reads at a comfortable line length without squeezing code. DocsLayout
stops paragraphs, lists, headings, quotes, callouts and the page header at a new
proseMeasure (default 66ch, inside the 60–75ch readable range), while code blocks,
images, tables, charts and disclosures keep growing to the column's measure.
measure's default widens from 48rem to 64rem, so wide blocks use more of the column
on large screens; text still stops at proseMeasure. Pass measure="48rem" to keep the
old column width. Elements a component draws (data-slot) keep their own width unless
they are running text, so a file tree or props table inside a list still fills the column.
Keep TableOfContents following the page after a client-side navigation
Before, TableOfContents (and the tocSpy() mixin behind it) read the page's headings once,
when it first loaded. After a client-side navigation to another docs page the list was reused
in place, so it kept measuring the previous page's detached headings: the marker stayed hidden,
no section was marked, and the phone bar's progress ring and section name stayed on the old
page. A first page with no headings never started following at all.
Now it reads the list's links and their headings on every recount, and recounts when the
list's links change and when a navigation succeeds, so the new page is followed from its first
scroll. Apps pick this up through the @sdxc/ui/table-of-contents island; no change needed.
Draw PageActions' copy button and chevron as one filled split button
Before, PageActions drew its two buttons as outlines with no fill, the copy button kept
all four corners rounded and the chevron had none, so the pair did not read as one control.
Now both halves share the filled surface look, the copy button is rounded only on its
outer (start) corners and the chevron only on its outer (end) corners, mirrored in
right-to-left text, with the seam drawn once. The menu now renders beside the button group
rather than inside it, so it no longer counts as part of the group. A PageActions with no
links keeps a fully rounded copy button. Consumers need not change anything.
Leave room between DocsFeedback's question and its votes when they wrap
Before, on a narrow screen where "Was this page helpful?" wrapped above the Yes and No
buttons, the two sat 8px apart, as close as the buttons sit to each other. Now a wrapped
question has 1rem below it, so it reads as the heading of its answers; on one line the
spacing is unchanged. Consumers need not change anything.
Keep DocsFeedback's question on the same line as its votes in Safari
Before, the question was a floated legend inside a flex fieldset. Chromium laid it out as
an item of the row, but WebKit drew it above the row, so in Safari "Was this page helpful?"
sat on its own line and out of line with the Yes and No pills. Now the question is an
ordinary flex item, centred on the votes' line in every engine, and the votes are a
role="radiogroup" named by it, so screen readers still announce the question with each
choice. The markup changes from fieldset > legend to [role=radiogroup] > [data-slot="docs-feedback-question"]; consumers need to change nothing unless they styled
the old legend or fieldset directly.
Pin the docs sidebar full height and close docs pages with a compact DocsFooter
From the dock width, DocsLayout now pins the sidebar from under stickyTop to the bottom
of the viewport, at a fixed height that scrolls on its own, so it never ends partway down
the page. A new footer slot draws the page's footer across the article and the "On this
page" rail only, never under the sidebar; below the dock width it follows the article.
DocsFooter is the piece to pass there: the page's closing pieces (a byline, feedback, an
edit link) over one row with a legal line and site links, every string a prop.
A docs page using footer should drop any full-width site footer drawn after the layout,
since the sidebar now runs to the viewport's bottom beside the page's own footer. Pass the
real height of your sticky header as stickyTop, border included, so the sidebar ends
exactly at the bottom of the viewport. Pages without footer keep working as before.
Let a lone DocsPager card sit alone instead of beside an empty column
Before, on a page with only a previous or only a next neighbour, the pager kept its
two-column grid, so the one card sat in half the row beside an empty column that read as a
blank card. Now the grid has two columns only when both neighbours exist, and a lone card
fills the row. Consumers need to change nothing.
Line up PropsTable's stacked cards and keep Typeset's table rules off it
Before, a PropsTable stacked into cards in a narrow column kept the wide table's width cap on
its Type cell, so that cell was narrower than the others and its label column did not line up
with the rows around it; and inside Typeset the prose table rules (cell padding, borders)
also styled its own table. Now stacked cells drop the wide layout's width limits, so every
label and value lines up, and the table opts out of Typeset, so it looks the same inside and
outside prose. Apps that worked around either can remove those overrides.
Republished with this release's changelog and component registry.
@sdxc/mail
Republished because @sdxc/ui changed.
@sdxc/ui
Let Feature.Grid respond to its own container width
The column tracks lived on the same host that declared the named
container, so the @container query could never match and the grid
stayed one column at every width. Move the tracks onto an inner wrapper
so the query styles a descendant of the sizing container.
Let marketing grids respond to their own container width
StatStrip, Split, Bento, StepList and FaqBand declared a named container
on the same host that carried the @container column tracks, so the
query never matched and every layout stayed stacked. Move the tracks
onto an inner wrapper (or a sizing wrapper around StepList's <ol>) so
the query styles a descendant of the sizing container.
Above lg the strip opens to five columns again; Split, Bento and the
rest regain their wide tracks the same way.
Restore marketing layout breakpoints to the landing thresholds
When the site adapters moved onto @sdxc/ui container queries, Split and
StatStrip opened their wide tracks at lg (48rem) and Feature.Grid at
md (36rem). The landing originally used 64rem and 48rem viewport media
queries, so mid-width viewports got cramped five-up stats and side-by-side
splits too early. Map those tracks to xl / lg so the columns match the
pre-migration thresholds.
tsx
// StatStrip / Split open wide tracks above xl (64rem)// Feature.Grid / frame rails open above lg (48rem)
No consumer action needed; published marketing layouts regain the wider
stacking range the landing was designed around.
Keep framed MarketingSection rails the full band height
Before, framed bands put block padding on the <section> while the
dashed rails lived on the shorter measured column, so the side lines
stopped above and below the content. Padding now shares the rail
column (with flush for strips that want zero gap), matching the
pre-migration framed band.
Import MCP server from @sdxc/mcp/server
Before this change, imports used @sdxc/mcp. After, they use @sdxc/mcp/server
to match the package's entry reshape (ADR-179). No runtime behavior change for
operators or end users.
@sdxc/codemod
Point MCP fixtures at @sdxc/mcp/server
Before this change, imports used @sdxc/mcp. After, they use @sdxc/mcp/server
to match the package's entry reshape (ADR-179). No runtime behavior change for
operators or end users.
@sdxc/kit
Import MCP server from @sdxc/mcp/server
Before this change, imports used @sdxc/mcp. After, they use @sdxc/mcp/server
to match the package's entry reshape (ADR-179). No runtime behavior change for
operators or end users.
Derive json-schema beside @sdxc/mcp/server
`sdxc make mcp` turned the declarations' MCP import into a schema
specifier with `replace(/mcp$/, "json-schema")`. After ADR-179 that
import is `@sdxc/mcp/server`, so the replace left the MCP server entry
and typecheck treated `s.object` as missing on `@sdxc/mcp`.
Before: schema import resolved to `@sdxc/mcp/server`.
After: `@sdxc/mcp/server` and `@sdxc/mcp/client` map to
`@sdxc/json-schema` (bare `@sdxc/mcp` still does). Template AGENTS.md
names `@sdxc/mcp/server`. No consumer action beyond upgrading.
@sdxc/mail
Republished because @sdxc/ui changed.
@sdxc/mcp
Breaking: Split server and client entries; add Streamable HTTP client
Breaking: there is no root @sdxc/mcp export. Import the server from
@sdxc/mcp/server (today's API) and the client from @sdxc/mcp/client.
Reserves bin.mcp-bridge → packages/mcp/src/bridge/index.ts as a stub
(throws until ADR-180). Bridge body is a follow-up PR.
Breaking: Put call result schema on the input bag
call's optional result schema is no longer a positional third argument.
Pass schema on the same object as the tool fields; the client strips it
before sending arguments upstream. Validation and Result failures are
unchanged.
call(name) and call(name, { …tool fields }) without schema keep working.
Drop ADR citation from the mcp-bridge stub comment
Doctor's monorepo-comments check forbids ADR numbers in comments. The
stub still explains why the bin exists and that the bridge is unfinished;
consumers need not act.
Optional typed catalogs and result-schema validation on call
connect() stays untyped. Pass connect<Tools>(…) to type tool names and
arguments from a first-party catalog. Pass an @sdxc/json-schema schema as
call's third argument to validate structuredContent (or JSON text content)
at runtime; a miss is InvalidToolResultError in a Result failure.
typescript
using mcp =connect<UptimeTools>({ url, client });await mcp.call("list_monitors",{limit:20},MonitorList);
Add mcp-bridge stdio protocol bridge
Ship the ADR-180 agent-facing stdio face: local initialize /
notifications/initialized shim at 2025-11-25, tools and resources
translated through an UpstreamClient (wired to ./client at runtime),
and modern-only _meta / resultType / list-cache fields stripped before
stdout. The mcp-bridge bin takes a remote URL plus --header / --token /
--allow-http.
Cursor mcp.json can spawn it via npx @sdxc/mcp@latest the same way
mcp-remote was configured. OAuth is deferred. A temporary ./client stub
throws until this branch rebases onto the ADR-179 client PR; tests inject
handlerUpstream against createHandler in-process.
Wire mcp-bridge to the real @sdxc/mcp/client
After rebasing onto the ADR-179 client branch, import connect statically,
reuse McpClientError as the bridge upstream failure, and mark the README
entry table as shipping the stdio bridge body. No consumer action for
apps already on /client — only the bridge bin path is affected.
Drop ADR citations from bridge comments
Rewrite the mcp-bridge module JSDoc and README bridge blurb to state
the handshake-vs-modern protocol reason in place, so monorepo-comments
passes. No runtime or consumer API change.
@sdxc/ui
Add marketing landing primitives
Landing pages can assemble bands from shared markup + style components
instead of re-deriving spacing and type per app. Copy stays on the page —
every string is a prop or child.
Primitives: MarketingSection, MarketingHeader, CtaGroup, Split /
Split.Copy / Split.Media, StatStrip / StatStrip.Item, LogoCloud,
Feature / Feature.Grid. Heading gains size="display" | "chapter";
marketingCtaChrome() applies --ui-marketing-cta-radius plus a soft
shadow. Pair nav CTAs at size="sm" (~32px) with hero rows at size="lg"
(~48px). No app migration in this change.
Align marketing docs examples with live frames
Drop the extra Accordion / LinkButton / NavLink @example tags that outgrew
their preview coverage, and keep the FAQ pairing and CTA density notes in
prose instead. Heading keeps a chapter-size example as its third documented
case for the matching sdxc-site frame.
No consumer API change.
Add landing patterns and composition craft
Landing pages can assemble Hero → Proof → FeatureBand → Faq → ClosingCta
from @sdxc/ui/patterns instead of re-deriving band layout per app. Copy
stays on the page — every string is a prop or child.
tsx
import{Button,LinkButton,HeadingScope}from"@sdxc/ui";import{LandingHero,ProofStrip,FeatureBand,ClosingCta,FaqBand,ProductFrame,}from"@sdxc/ui/patterns";<HeadingScope><LandingHerotone="grid"title={t("hero.title")}description={t("hero.lead")}actions={<Buttonsize="lg">{t("hero.cta")}</Button>}media={<ProductFramelights>{shot}</ProductFrame>}/><ProofStrip>{/* LogoCloud or StatStrip */}</ProofStrip><FeatureBandlayout="split"title={t("f1.title")}media={...}>{claims}</FeatureBand><FaqBandtitle={t("faq.title")}columns={2}><Accordion>{left}</Accordion><Accordion>{right}</Accordion></FaqBand><ClosingCtatitle={t("close.title")}actions={...}/></HeadingScope>
Building blocks: LandingHero, ProofStrip, FeatureBand (split |
grid | steps), FaqBand, ClosingCta. Composition craft:
ProductFrame, CodeStage/TerminalPanel, InstallTabs, TabbedStage,
CheckList/CheckRow, IconWell, Bento, StepList, AnnouncementChip,
AccentText. Install and tabbed stages switch with radios + CSS (no JS).
No app migration in this change.
@sdxc/x402
Add Remix seller middleware for the x402 payment protocol
Install with npm add @sdxc/x402. Mount x402({ facilitator, payTo, network, asset }) on a Remix router, then guard a route with
requirePayment({ amount, description }). Unpaid requests answer HTTP
402 with PAYMENT-REQUIRED; a settled PAYMENT-SIGNATURE continues
and attaches PAYMENT-RESPONSE. Use MemoryFacilitator and
@sdxc/x402/testing in Vitest; point HTTPFacilitator at a real
facilitator URL in production.
Document API exports and Patterns in the package README
Expand the npm landing page to the package-documentation structure:
Usage examples, every public export under API, and Patterns for catalog
pricing, lazy-route guards, MCP header charging, facilitator config,
Vitest payment assertions, and PaymentReceiptKey. No runtime change.
Stamp Bazaar discovery and forward facilitator auth headers
Sellers can attach extensions.bazaar on a 402 so facilitators that index
Bazaar catalog the resource after settle. HTTPFacilitator accepts optional
headers (for example a CDP Authorization bearer) on every /verify and
/settle call.
typescript
import{ bazaarHttpPost,HTTPFacilitator}from"@sdxc/x402";import{ requirePayment }from"@sdxc/x402/middleware";newHTTPFacilitator({url:"https://api.cdp.coinbase.com/platform/v2/x402",headers:{Authorization:`Bearer ${token}`},});requirePayment({amount:"1000",description:"Encode a QR",extensions:{bazaar:bazaarHttpPost({text:"https://sdxc.dev"},{type:"json",example:{svgPath:"M…"}},),},});
Republished with this release's changelog and component registry.
@sdxc/mail
Republished because @sdxc/ui changed.
@sdxc/ui
Add marketing layout tokens and style factories
Landing bands can now share one measure, gutter, section-spacing, and
display type vocabulary through --ui-marketing-* tokens and the
@sdxc/ui/styles factories that read them.
tsx
import{ viewReveal }from"@sdxc/ui/animations";import{ marketingBandTone, marketingContainer, marketingSectionSpace, displayHeading, marketingLead,}from"@sdxc/ui/styles";<sectionmix={[marketingBandTone("grid"),marketingSectionSpace("hero"),viewReveal()]}><divmix={[marketingContainer()]}><h1mix={[displayHeading()]}>Claim</h1><pmix={[marketingLead()]}>Support copy stays narrower than the headline.</p></div></section>
Factories: marketingContainer(), marketingSectionSpace(),
marketingBandTone(), displayHeading(), marketingLead(),
marketingHairline(), logoCloudMark(). Default measure is 72rem
(uptime's 1152px column); override --ui-marketing-measure for a wider
frame. Apply existing viewReveal() on band hosts — no new animation
system. No app migration in this change.
Breaking: Add a cubic outline command and raw table access
Font.Command gains a cubic Bézier step, which CFF outlines draw with,
and Font can hand back any table's raw bytes.
Breaking: code that switches on command.type must handle "cubic".
TrueType fonts still produce only move, line, quad and close, but
a renderer should fill the new step before CFF fonts reach it:
// before if (command.type === "quad") path.quadTo(command.cx, command.cy, command.x, command.y); else path.close(); // after if (command.type === "quad") path.quadTo(command.cx, command.cy, command.x, command.y); else if (command.type === "cubic") { path.cubicTo(command.c1x, command.c1y, command.c2x, command.c2y, command.x, command.y); } else path.close();
path() scales cubic commands like the others.
font.table(tag) returns a table's bytes as a Uint8Array view, or
null when the font lacks it:
font.table("DSIG")?.byteLength;
A font whose sfnt version is OTTO but whose outlines are in glyf now
opens instead of being declined.
Describe, permit and subset fonts for embedding
A Font now reports what a document needs to embed it, and can write a
smaller font holding only the glyphs that document draws.
New read-only fields, in font units unless noted: postscriptName,
bbox ({ xMin, yMin, xMax, yMax }), italicAngle (degrees),
capHeight and xHeight (null before OS/2 version 2), weightClass,
isFixedPitch, isItalic, isBold, isSerif, underlinePosition and
underlineThickness. embedding reports the license in OS/2.fsType:
subset() writes a valid .ttf with .notdef first, the requested
glyphs in order, then the components of composite glyphs:
let subset = font.subset(glyphIds); // Result<Font.Subset, FontError> if (isFailure(subset)) throw subset.error; subset.data.bytes; // Uint8Array subset.data.glyphId(glyphIds[0]); // its id inside the subset
The subset keeps outlines, metrics, names, post (format 3) and the
hinting tables, and its cmap maps no characters, so glyphs are
addressed by id. A font whose fsType forbids subsetting fails with a
FontError whose code is the new "not-permitted".
Names stored with the Windows symbol encoding now decode as UTF-16BE.
Add @sdxc/font/color for COLR, CPAL and sbix glyphs
The new @sdxc/font/color entry reads color glyphs from a parsed font.
A font that only draws plain text pays nothing for it.
colorLayers(font, glyph, { palette }) returns a layered COLR glyph as
outline glyphs, bottom to top, each with its CPAL color. A layer that
takes the text color has color: "foreground". palettes(font) lists the
palettes with their version 1 light/dark hints and label name IDs.
bitmap(font, glyph, ppem) returns an sbix image from the smallest
strike at least ppem (else the largest), following dupe records; the
bytes stay encoded (PNG, JPEG…) for @sdxc/png or a browser to decode.
import { parseFont } from "@sdxc/font"; import { bitmap, colorLayers } from "@sdxc/font/color"; let font = unwrap(parseFont(bytes)); let glyph = font.glyphIndex(0x1f61c); for (let layer of colorLayers(font, glyph) ?? []) { let color = layer.color === "foreground" ? textColor : layer.color; fill(font.path(layer.glyph, 48, x, y), color); } let image = bitmap(font, glyph, 48); // { type: "png", ppem, originX, originY, bytes }
colorLayers answers null for a glyph without color, so draw its plain
outline. A malformed color table answers null or [] and never throws.
COLR version 1 paint graphs are not interpreted; their version 0 fallback
layers are used.
Read CFF and CFF2 outlines
parseFont now opens OpenType fonts with PostScript outlines (.otf
with a CFF or CFF2 table), CID-keyed CJK fonts included, instead of
rejecting them as unsupported. outline() and path() answer cubic
commands for these fonts, so any renderer that takes move, line,
cubic and close draws them:
import { parseFont } from "@sdxc/font"; let font = unwrap(parseFont(otfBytes)); let commands = font.path(font.glyphIndex(0x44), 32, 0, 32); // "D", cubic curves
A CFF2 font draws its default instance. Hostile fonts are bounded: deep
subroutine nesting, stack overflows and runaway charstrings end the glyph
instead of hanging. subset() still answers unsupported for a CFF
font. TrueType fonts behave as before; no change is needed.
Map every cmap format and read names, glyph data and vertical metrics
Font now maps characters through every cmap format (0, 2, 4, 6, 8,
10, 12, 13), Unicode variation sequences (format 14), Windows symbol
fonts and single-byte Mac legacy encodings, and lists what it maps:
font.characterSet; // sorted code points with a glyph font.hasGlyph(0x263a); font.glyphIndex(0x82a6, 0xe0101); // the variant glyph of a variation sequence font.stringsForGlyph(68); // ["a"]
Every name record is available by ID and language, falling back to
English, and fullName, copyright and version sit beside family:
Per-glyph data: glyphBBox(glyph) (tight, from the curve extremes),
glyphCBox(glyph) (control box), glyphName(glyph) from post or the
CFF charset, and svgPath(glyph) for SVG path data in font units.
Vertical and device metrics come from vhea, vmtx, VORG and hdmx
through verticalMetrics, verticalAdvance(glyph),
topSideBearing(glyph), verticalOrigin(glyph) and
deviceAdvance(glyph, ppem).
Behavior changes: a font whose only cmap is a Mac Roman (or other
single-byte legacy) subtable now opens instead of failing with
unsupported, and layout()/measure() fold a variation selector into
the character before it instead of laying it out as .notdef. Existing
callers need no change.
Add variable font instances in @sdxc/font/variations
The new @sdxc/font/variations entry lists a variable font's axes and
named instances and fixes the font at a point of its design space. The
instance is an ordinary Font whose outlines, advances and line metrics
are those of that point: TrueType gvar deltas with interpolation of
untouched points, HVAR or phantom-point advances, MVAR metrics,
avar mapping and CFF2 blending.
import { parseFont } from "@sdxc/font"; import { axes, instance, namedInstances } from "@sdxc/font/variations"; let font = unwrap(parseFont(bytes)); axes(font); // [{ tag: "wght", name: "Weight", min: 200, default: 400, max: 900, hidden: false }] let bold = unwrap(instance(font, { wght: 700 })); let named = unwrap(instance(font, namedInstances(font)[0].name)); bold.measure("Hello", 32);
An instance is lazy: each glyph is varied the first time it is drawn or
measured. Axis values are clamped to the axis range and axes left out
stay at their default. A font without fvar, or a name that matches no
instance, fails with a FontError whose code is "unsupported".
font.subset() now answers unsupported for an instance instead of
writing the default glyphs. Existing code needs no change.
Add OpenType shaping behind @sdxc/font/shaping
The new @sdxc/font/shaping entry shapes a run of text with the font's
GSUB, GPOS and GDEF tables: every GSUB (1–8) and GPOS (1–9) lookup type,
lookup flags and mark filtering sets, script and language selection, user
features, feature variations, the legacy kern table for fonts without
GPOS kerning, and canonical composition of base-plus-mark clusters.
Positions are in font units; glyphs come back in visual order with
UTF-16 clusters.
import { featureParams, shape } from "@sdxc/font/shaping"; let { glyphs } = shape(font, "office", { features: { liga: false, ss01: true } }); for (let { glyph, xAdvance, xOffset, yOffset } of glyphs) { // draw font.path(glyph, …) at the pen, then advance it by xAdvance } featureParams(font, "ss01")?.nameId; // the stylistic set's name ID
script takes an OpenType tag ("arab", "dev2") or an ISO 15924 code
and is detected from the text when left out; direction follows the
script. availableFeatures(font) lists the features a script offers.
The entry carries generated Unicode 18.0 property tables (about 15 KB
gzipped). @sdxc/font itself does not import them, so code that only
measures text with layout() pays nothing. Script-specific shapers
(Arabic, Indic and others) land separately; until then those scripts
shape with the default shaper.
Open WOFF, WOFF2, TrueType collections and dfont files
parseFont now reads WOFF (.woff) fonts as well as .ttf and .otf,
decompressing them synchronously with no platform API. Font collections
open with the new parseFontCollection, which reads .ttc (versions 1
and 2) and Mac .dfont files and finds a font by PostScript name:
import { parseFontCollection } from "@sdxc/font"; let collection = unwrap(parseFontCollection(bytes)); collection.fonts.length; let italic = collection.get("NotoSans-Italic");
WOFF2 is decoded by the new @sdxc/font/woff2 entry, which carries its
own Brotli decoder so the main entry stays small. parseWoff2 opens a
font directly; decodeWoff2 answers plain sfnt bytes, to pass to
parseFontCollection when the WOFF2 holds a collection. Variable fonts
inside WOFF2 instance like the sfnt they were made from:
import { parseWoff2 } from "@sdxc/font/woff2"; let font = unwrap(parseWoff2(await response.arrayBuffer()));
toSVGPath(commands) is now exported from @sdxc/font, to write SVG
path data for any command list, such as a scaled path().
parseFont on a .ttc or .dfont fails with code unsupported and a
message naming parseFontCollection; on a .woff2 it names
@sdxc/font/woff2. Existing callers need no change.
Subset CFF, CFF2 and variable font instances
subset() from the new @sdxc/font/subset entry writes a smaller font
for every outline format, with the same contract as Font.subset():
.notdef first, the requested glyphs in order, and glyphId() mapping
an original id to its subset id.
CFF fonts keep their charstrings and only the subroutines the kept
glyphs call; DICT entries equal to their defaults are dropped.
CID-keyed subsets use the Adobe-Identity-0 ordering, so a glyph's CID
is the id glyphId() answers.
CFF2 fonts are written as CFF at their default location.
An instance() of a variable font is flattened, so the subset draws
that instance with no variation tables.
import { subset } from "@sdxc/font/subset";
import { instance } from "@sdxc/font/variations";
let bold = unwrap(instance(font, { wght: 700 }));
let { bytes, glyphId } = unwrap(subset(bold, line.glyphs.map(({ glyph }) => glyph)));
Font.subset() keeps writing TrueType subsets byte for byte as before;
use subset() for CFF fonts and instances.
Shape AAT morx fonts, variable instances and marks without GPOS
shape() from @sdxc/font/shaping now handles three kinds of font it
used to shape only partly.
Fonts built for Apple platforms, whose substitutions live in the AAT
morx table and have no GSUB, get their ligatures, contextual forms,
rearrangement and insertions. features takes the same OpenType tags,
mapped to the font's AAT settings, and availableFeatures() lists them:
A variable font instance from @sdxc/font/variations shapes at its own
location: FeatureVariations swap glyphs for that instance, and GPOS
kerning and mark anchors include their variation deltas, rounded to font
units:
Fonts without a GPOS table place combining marks over or under their
base by Unicode combining class, instead of leaving them after it.
Text in OpenType fonts with GSUB and GPOS shapes as before; no change is
needed.
Shape Arabic, Hebrew, Thai, Lao and Hangul text
shape() from @sdxc/font/shaping now runs script-specific shapers for
joining scripts (Arabic, Syriac, Mongolian, N'Ko, Phags-pa, Mandaic,
Manichaean, Psalter Pahlavi), Hebrew, Thai and Lao, and Hangul. Before,
these scripts shaped with the default shaper, so Arabic letters kept
their isolated forms, Thai SARA AM stayed whole and Hangul jamo were
never composed. Nothing changes in how you call it:
import { shape } from "@sdxc/font/shaping"; shape(font, "سلام"); // initial, medial and final forms shape(font, "น้ำ"); // SARA AM split, tone mark raised
Arabic-script text gets positional forms from a joining state machine,
including the Syriac alaph and dalath/rish forms, and modifier marks
such as hamza above sort before the vowels. Hebrew meteg settles next to
its vowel, and fonts without GPOS mark positioning get precomposed
presentation forms. Thai and Lao SARA AM split into NIKHAHIT and SARA AA,
with a private-use fallback for legacy Thai fonts. Hangul syllables are
composed or decomposed to match the font's coverage, tone marks move
before their syllable, and a stray tone mark gets a dotted circle.
Shape Indic scripts and the Universal Shaping Engine
shape() from @sdxc/font/shaping now reorders and forms conjuncts in
Devanagari, Bengali, Gurmukhi, Gujarati, Oriya, Tamil, Telugu, Kannada,
Malayalam, Sinhala and Khmer, and shapes Balinese, Javanese, Tibetan,
Tirhuta, Siddham and the other Universal Shaping Engine scripts:
pre-base matras move before their consonant, reph moves after its base,
below-base and half forms apply, and a dotted circle stands in for a
missing base. Fonts built for the old (deva) or new (dev2) Indic
specification both work.
import { shape } from "@sdxc/font/shaping"; let { glyphs } = shape(font, "क्षत्रिय"); // conjuncts formed, the i-matra drawn before its consonant; // each syllable's glyphs share one cluster
Text in these scripts used to shape with the default shaper and now
shapes correctly with no change on your side. The script categories are
derived from the existing Unicode tables, so the entry grows by no data.
List the shaping, variations, color, WOFF2 and subset entry points
The @sdxc/font README and package description now name every entry
point and what parseFont opens: .ttf, .otf with TrueType, CFF or
CFF2 outlines, and .woff, with parseFontCollection for .ttc and
.dfont. Documentation only; no change in behavior.
@sdxc/kit
Republished with this release's changelog and component registry.
@sdxc/mail
Republished because @sdxc/ui changed.
@sdxc/pdf
Add @sdxc/pdf, a PDF writer with an imperative API
@sdxc/pdf is a new package that writes PDF 1.7 documents from code. It needs
no external binary and runs in Workers, Bun, Node and the browser. You create a
PDF, register TrueType fonts and JPEG or PNG images, add pages, and draw text,
wrapped paragraphs, lines, rectangles, images and links on them. Coordinates are
points, with the origin at the top-left corner and y growing downward.
import { PDF } from "@sdxc/pdf"; import { isFailure } from "@sdxc/result"; let pdf = new PDF({ size: "letter", title: "Report", author: "Ada", lang: "en" }); let regular = pdf.font(regularTtf); if (isFailure(regular)) return regular; let page = pdf.page(); page.text("Report", { x: 40, y: 40, font: regular.data, size: 24 }); page.line({ from: [40, 72], to: [572, 72], width: 0.5, color: "#999999" }); let summary = pdf.paragraph( [{ text: "Read the " }, { text: "full report", href: "https://example.com" }, { text: "." }], { width: 532, font: regular.data, size: 10, lineHeight: 1.4, align: "justify" }, ); page.paragraph(summary, { x: 40, y: 88 }); // returns the y below it return new Response(pdf.stream(), { headers: { "content-type": "application/pdf" } });
Fonts embed as Type0/CIDFontType2 with kerning, a W array and a ToUnicode
map, so text copies and searches as written. Only the glyphs the document
draws are embedded. A font whose license forbids embedding fails with
restricted-font, and one whose license forbids subsetting embeds whole.
Paragraphs break lines at spaces and after hyphens, and take left, center,
right or justified alignment. They expose height and lines, and
split(height) cuts them in whole lines at a page break. The package never
adds pages on its own.
JPEGs pass through unchanged. PNGs are decoded with @sdxc/png, and an image
with transparency gets a soft mask.
The same calls with the same createdAt always write the same bytes.
@sdxc/privacy-pass
Add a KV redemption store, router middleware and test helpers
Three additions make an origin's Privacy Pass route a few lines.
@sdxc/privacy-pass/kv keeps fresh challenges and spent nonces in Workers KV,
so a challenge issued by one isolate can be answered at any other. Lifetimes
under KV's one-minute minimum are written as 60 seconds, and every key starts
with "privacy-pass:" unless you pass another prefix:
import { KVRedemptionStore } from "@sdxc/privacy-pass/kv"; new PrivacyPass({ issuer, store: new KVRedemptionStore(env.CACHE) });
@sdxc/privacy-pass/middleware publishes an instance as ctx.privacyPass
and adds redeemOrChallenge(ctx, { onRedeem? }). It answers 204 once a token
redeems, with any headers onRedeem returns (such as a cookie), 401 with the
WWW-Authenticate challenge otherwise, and 204 when the issuer cannot be
reached. Every answer is no-store, and the outcome is recorded on the current
log as privacyPass:
@sdxc/privacy-pass/testing adds createTestPrivacyPass(), an origin that
trusts a freshly generated issuer and keeps its keys and redemptions in memory,
and redeemThrough(fetch, issuer, url), which repeats a challenged request with
a token the way a client holding tokens does.
The package now depends on @sdxc/logger. Existing exports are unchanged.
@sdxc/raster
Fill cubic outline commands from @sdxc/font
Path.from() now draws the cubic command @sdxc/font emits for CFF
outlines; before, a cubic step would have closed the contour. Consumers
need no change: glyphs from CFF fonts fill like TrueType ones.
@sdxc/ui
Leave room for the focus ring between a field's label and control
TextField, NumberField, SearchField, DateField, TimeField and
ColorField now put a 0.5rem gap between the label, the control and the
description or error under it. Before, the gap was 0.25rem, so the focus ring
of a focused control (2px off its edge and 3px wide) covered the bottom of its
label. Their fields were also shorter than a Select or TextArea laid out
with the more common 0.5rem gap, so the two didn't line up when placed side by
side.
No change is needed to adopt it. A layout that relied on the tighter gap
shows 4px more space per field.
Read an inbox's Retry-After with @sdxc/http
A failed delivery now reads the inbox's Retry-After through parseRetryAfter from @sdxc/http/retry-after, still capped at the longest backoff step. The obsolete RFC 850 and asctime date spellings are now read in UTC, and a negative or fractional delay is now ignored, so DeliveryError.retryAfter is null and the job's own backoff applies where it used to read 0. Consumers need not act.
@sdxc/atom
Breaking: Return Results from building and serializing a feed
Building and writing an Atom feed no longer throws. The constructor is private: build an instance with Atom.fromJSON({ feed, entries }), or validate and serialize plain data in one call with Atom.stringify. addEntry and the new setFeed answer a Result instead of throwing AtomParseError, and serialization failures arrive as an AtomStringifyError failure.
This also fixes Atom.parse, Atom.fromXML and Atom.fetch throwing on a feed or entry with an empty <title/>, which RFC 4287 permits; they now return the feed with title: "". Building a feed likewise accepts an empty title, and refuses only a missing one.
Migration:
Replace the constructor and toString() with Atom.stringify.
Before:
let atom = new Atom(feed); for (let entry of entries) atom.addEntry(entry); let xml = atom.toString();
After:
let xml = Atom.stringify({ feed, entries }); if (isFailure(xml)) return xml.error; xml.data;
When you need an instance, build it with Atom.fromJSON.
Before:
let atom = new Atom(feed);
After:
let atom = Atom.fromJSON({ feed, entries: [] }); if (isFailure(atom)) return atom.error;
Check the ResultaddEntry returns.
Before:
atom.addEntry(entry);
After:
let added = atom.addEntry(entry); if (isFailure(added)) return added.error;
Replace assignments to atom.feed with setFeed; the feed getter is unchanged.
Before:
atom.feed = { ...atom.feed, updated };
After:
let replaced = atom.setFeed({ ...atom.feed, updated });
Serialize an instance with Atom.stringify(atom) instead of atom.toString() or String(atom); toString() is gone, so a template literal now prints [object Object].
@sdxc/auth
Republished because @sdxc/well-known changed.
@sdxc/authz
Republished because @sdxc/billing changed.
@sdxc/billing
Type webhook handlers with the router's context and let them return a Result
BillingWebhook now takes the request context type as a type parameter, so a handler receives your router's context, with every service its middleware publishes (ctx.db, ctx.models, ...), instead of the bare RequestContext. A handler may also return a Result: a Failure is reported exactly like a thrown error (a retryable one answers 503, any other is logged and acknowledged with 200, and the delivery stays unprocessed). A thrown error is still caught and reported the same way.
The type parameter defaults to RequestContext, so existing endpoints compile unchanged; drop any ctx as RequestContext cast by passing your router's context type instead.
@sdxc/captcha
Republished because @sdxc/privacy-pass changed.
@sdxc/diagram
Republished because @sdxc/markdown changed.
@sdxc/feed
Read RSS documents through the Result-returning RSS.fromXML
Feed.parse and the readers built on it take RSS documents from the Result-returning RSS.fromXML in @sdxc/rss instead of catching what it threw. A document the RSS parser refuses still answers a FeedParseError with the same message. No consumer action is needed.
@sdxc/highlight
Name grammar constants in UPPER_SNAKE_CASE
Internal cleanup with no consumer effect: each grammar's non-exported rule constants use UPPER_SNAKE_CASE, and test comments describe their fixtures on their own terms.
@sdxc/http
Keep the Content-Type a caller passes to file()
Before, file() from @sdxc/http/response always wrote Content-Type: application/octet-stream, overwriting a Content-Type passed in init.headers. Now the caller's type wins, and application/octet-stream stays the default when init names none:
Consumers need not act. Code that built the Response by hand to set its own type around this can switch to file().
Read Retry-After as a wait in milliseconds
The new @sdxc/http/retry-after entry point exports parseRetryAfter(value, now?), which reads an RFC 9110 Retry-After header in either form: delay-seconds, or an HTTP-date (IMF-fixdate and the obsolete RFC 850 and asctime spellings) measured from now, which defaults to the current time. A date already past reads as 0; a missing header, or a value in neither form (negative or fractional numbers included), reads as null so the caller falls back to its own backoff.
Name content-type lookup tables in UPPER_SNAKE_CASE
Internal cleanup with no consumer effect: the lookup tables behind content negotiation use UPPER_SNAKE_CASE.
@sdxc/http-signatures
Republished because @sdxc/well-known changed.
@sdxc/jmap
Type Email/set creations with EmailCreate
Email/set now takes EmailCreate values in create, whose body parts are EmailBodyPartCreate: every property optional, so a part names only what RFC 8621 asks of it. Before, create was a shallow Partial<Email>, and a body part needed every EmailBodyPart property or a cast.
SetArguments takes the creation shape as an optional second type parameter, SetArguments<T, Create = Partial<T>>, so every other /set is unchanged. Code that cast a body part to EmailBodyPart keeps compiling, and the cast can be removed.
@sdxc/jscontact
State the full vCard media type in the README
The README said VCARD_MEDIA_TYPE is text/vcard; the constant is, and always was, "text/vcard;charset=utf-8". Only the documentation changed, and no action is needed.
@sdxc/json-feed
Breaking: Return Results from building and serializing a feed
Building and writing a JSON Feed no longer throws. The constructor is private: build an instance from camelCase data with the new JSONFeed.from({ feed, items }), or validate and serialize it in one call with JSONFeed.stringify. addItem and the new setFeed answer a Result instead of throwing JSONFeedParseError, and leave the feed unchanged when they refuse. A value JSON cannot represent, such as a BigInt in an extension, arrives as a JSONFeedStringifyError failure. JSONFeed.fromJSON, parse and fetch are unchanged, and JSONFeed.Data names the { feed, items } shape.
Migration:
Replace the constructor, addItem loop and toString() with JSONFeed.stringify.
Before:
let feed = new JSONFeed(metadata); for (let item of items) feed.addItem(item); let json = feed.toString();
After:
let json = JSONFeed.stringify({ feed: metadata, items }); if (isFailure(json)) return json.error; json.data;
When you need an instance, build it with JSONFeed.from.
Before:
let feed = new JSONFeed(metadata);
After:
let feed = JSONFeed.from({ feed: metadata, items: [] }); if (isFailure(feed)) return feed.error;
Check the ResultaddItem returns.
Before:
feed.addItem(item);
After:
let added = feed.addItem(item); if (isFailure(added)) return added.error;
Replace assignments to feed.feed with setFeed; the feed getter is unchanged.
Before:
feed.feed = { ...feed.feed, expired: true };
After:
let replaced = feed.setFeed({ ...feed.feed, expired: true });
Serialize an instance with JSONFeed.stringify(feed) instead of feed.toString() or String(feed); toString() is gone, so a template literal now prints [object Object]. JSON.stringify(feed) still writes the document through toJSON(), but throws on a value JSON cannot represent.
@sdxc/kit
Judge lazy mappings, contracts and test helpers as the app layout requires
sdxc doctor's dependencies, fan-out, orphans and result-throws checks flagged the wiring every app needs, so a fresh sdxc create app failed its own doctor with dozens of warnings.
Before: a lazy() mapping in the router, the command line or the job dispatcher counted as an outward import, a cycle edge and fan-out; a controller importing its route contract or the layout it renders broke the dependency rule; an initializer importing the jobs, commands or emails declarations or the router's own middleware did too; a test helper in app/test/ that only tests import, a module vite.config.ts names, and the empty MCP declarations were orphans; and bootstrap/browser.ts's loadModule, which the Remix runtime expects to throw, was flagged by result-throws.
After: a dynamic import() is a deferred edge, so it keeps its target from being an orphan but closes no cycle, breaches no layer and adds no fan-out. Route contracts are the innermost layer and views sit between the handlers that render them and the initializers they read. app/jobs/index.ts, app/commands/index.ts, app/emails/index.ts and app/mcp/{tools,resources}/index.ts are declarations any layer reads, and an initializer may import app/http/middleware/. Imports from *.test.ts files and paths a root *.config.ts names count as uses. bootstrap/ is left out of result-throws.
sdxc diagram --json gains a deferred field on each edge. No action is needed; re-run sdxc doctor to see the warnings that remain.
Build the app template's OpenAPI document once
Before: an app from sdxc create built a new openapiHandler for every request to /api/openapi.json, so the document was assembled and serialized on each request and the server it named was whatever origin the request reached.
After: the controller creates the handler once at module scope, so the document is built on the first request and every later one is served from that build with the same ETag. createApiDocument() takes no argument and names SITE_URL from config/constants.ts as the server.
An existing app can apply the same change: move the handler out of the action and build the document from a fixed origin.
Ship the database and MCP test helpers in the app template
An app from sdxc create now has app/test/database.ts (migrate() and factories()) and app/test/mcp.ts (callTool()) from the start, instead of receiving them with the first sdxc scaffold. A test can use them right away:
import { factories, migrate } from "~/app/test/database";beforeAll(migrate);
The template's tests use both: the database test applies the migration chain to an empty binding, and a new /mcp test calls a tool the server does not offer. callTool reads the response in a helper of its own, so the helper stays within sdxc doctor's complexity limit. sdxc scaffold still writes either file into a project that lacks it.
Pass sdxc doctor in a fresh app from the app template
Before: a new app failed its own sdxc doctor with jsdoc warnings (four module descriptions ran to four lines) and complexity warnings (db fresh, db migrate and the access middleware's signedIn).
Name the declared package manager's install after sdxc ui add
Before: sdxc ui add ignored package.json's packageManager field, so in a project declaring bun@… without a lock file it printed "run npm install" after adding a package, while sdxc make printed "run bun install" for the same project.
Write valid, distinct declarations from make binding, secret and do
Before:
make do wrote fetch(request) with an unused argument and no override, which fails a project with noImplicitOverride, and named feed-do's class FeedDoDO (undo's binding came out as UN).
make binding durableObject wrote worker: /* self */, exportName: "TODO", which does not parse.
make binding r2 USER_UPLOADS named the bucket user_uploads, which R2 refuses; d1 and queue reused the Worker's own name, and rateLimit reused namespace 1001, so a new binding shared the template's database, queue or counter.
--force moved the replaced declaration to the top of env and left a blank line behind each time.
These three kinds skipped the project's format command and printed lowercase wrote/edited.
After:
The Durable Object stub declares override fetch(): Response, and a trailing do in the name, in any case, is dropped before DO is added once: feed-do writes FeedDO bound as FEED.
r2 names the bucket in kebab case (user-uploads); d1 and queue name theirs ${manifest.name}-<key>; rateLimit takes the next namespace number the config leaves free.
--force replaces the declaration where it stands, keeping its comment.
All three run the project's format command over what they wrote and print Wrote, Replaced and Edited like every other kind.
Bindings declared by an earlier release keep working; rename a shared database, queue or rate-limit namespace before deploying if one was generated with the old placeholders.
Give the app template's test stand-in a DurableObject base class
An app from sdxc create resolves cloudflare:workers to app/test/cloudflare-workers.ts under Vitest. It now exports a DurableObject class holding the ctx and env it is constructed with, so a module from sdxc make do loads in a test instead of failing with "Class extends value undefined", and a test constructs it with a mock state:
let views = new PageViewsDO(createDurableObjectState(), env);
An existing app can add the same class to its own app/test/cloudflare-workers.ts.
List fix, setup and diagram, and every doctor and run key, in the README
The @sdxc/kit README's command table now names sdxc fix, sdxc setup and sdxc diagram, and its configuration table lists the doctor.complexity, doctor.moduleSize, doctor.crap, doctor.testRatio, doctor.fanOut, doctor.duplication and doctor.mutation keys and run.entry with their defaults. No consumer action is needed.
Format the app template's db fresh command
Formatting only; generated apps get the same code laid out as the formatter writes it. No action is needed.
Show corrected release notes to projects past the original release
Before, when a later release corrected a published note, sdxc upgrade showed the correction only to projects whose upgrade still crossed the original note's release. A project already past it got neither the original nor the replacement in its prompt, even when the replacement changed a breaking change's migration steps.
Now the prompt has a ## Corrected notes section. It lists each note of a package the project imports that comes from a release the project already had, when the correction shipped in a release the upgrade moves across. Each entry names both releases and gives the replacement text:
### @sdxc/auth: Rename the issuerReleased in 2026.9.5, corrected in 2026.10.14.
changelog.jsonl now records correctedIn on a corrected line, and keeps an older note whose correction shipped within its twelve-month window. Older kits ignore the new key. You don't need to do anything: run sdxc upgrade as usual.
List a project check's files past node_modules
ctx.files(folder) in a check written with defineCheck from @sdxc/kit/doctor now walks the folder without descending into node_modules or dot-folders. Before, it read the whole tree first and filtered afterwards, so a folder whose node_modules held a symlink loop (as workspace installs do) failed to list and the check received an empty array, passing without reading a file. Checks that scan a folder holding installed packages now see its files; no action is needed.
Check source conventions in sdxc doctor
sdxc doctor runs six new checks over the app's source, each a warning that names the file and line:
local-const: a const inside a function or block, tests included. Declare locals with let; const is for module-level constants.
constant-names: a non-exported module-level const holding a literal, an array, an object of data or a new Set/Map/RegExp, named outside UPPER_SNAKE_CASE.
stack-imports: an import of zod, react, react-router, Tailwind or remix/html-template; use remix/data-schema, remix/component and css() mixins.
process-env: app code reading process.env; import env from cloudflare:workers.
fetch-param: a typeof fetch parameter or option; call the global fetch and mock it with MSW.
logger: createLogger() outside app/initializers/; log through ctx.log or currentLog().
Run one on its own while fixing its findings:
sdxc doctor --only local-const
Projects that already follow the conventions the app template's AGENTS.md lists see six more pass lines. Warnings leave the exit code at 0; to skip a check, pass --skip <name>.
@sdxc/lazy-route
Accept guards that publish a context value
lazy()'s second argument now accepts any middleware, including one that publishes a typed context value such as captcha() from @sdxc/captcha/middleware. Before, such a guard was a type error at the lazy() call, even though it ran correctly:
The value the guard publishes reaches the loaded handler, which reads it typed when the publishing package declares it on RequestContext, as @sdxc/captcha does for ctx.captcha. Code that compiled before compiles unchanged; no action is needed.
@sdxc/mail
Republished because @sdxc/highlight changed.
@sdxc/markdown
Accept components typed with a named props interface in toRemix
Before, a component registered in toRemix's components map type-checked only when its props were an inline type literal; a component typed as Handle<CalloutProps> with interface CalloutProps { type: string; children: RemixNode } was rejected unless the interface added [key: string]: unknown. Now any component whose props declare children as a RemixNode (required or optional), or that takes no props, is accepted, whether its props are an interface or a type literal. No action is needed; the [key: string]: unknown workaround can be removed from props interfaces.
Explain that compose runs a parent's handlers before its children
The Markdown.compose reference now says that a parent's handlers all run before the walk reaches its children, so text one visitor produces inside a node (a value variables() fills) reaches the other visitors only in a later walk. Its JSDoc example no longer composes variables() with headings(). No consumer effect; run variables() in its own walk before visitors that read the text it fills, as the variables pattern already shows.
@sdxc/math
Say to register MathTag, not MathFormula, in toRemix's components map
The @sdxc/math README now states that MathFormula takes no children and so fails to type-check in @sdxc/markdown's toRemix components map, and that MathTag is the component to register there: toRemix(document, { components: { math: MathTag } }). A type test pins both. No consumer effect.
@sdxc/messaging
Read a platform's Retry-After with @sdxc/http
A failed send now reads the Retry-After header through parseRetryAfter from @sdxc/http/retry-after, which @sdxc/messaging now depends on, before falling back to a body's retry_after. The obsolete RFC 850 and asctime date spellings are now read in UTC, and a negative or fractional header value is now ignored in favor of the body's retry_after (or null), as RFC 9110 allows only whole seconds. Consumers need not act.
@sdxc/newsletter
Type webhook handlers with the router's context and let them return a Result
NewsletterWebhook now takes the request context type as a type parameter, so a handler receives your router's context, with every service its middleware publishes (ctx.db, ctx.models, ...), instead of the bare RequestContext. A handler may also return a Result: a Failure answers the delivery with 503 and leaves the event unremembered, exactly as a thrown error does, so the platform redelivers it. A thrown error is still caught and reported the same way.
The type parameter defaults to RequestContext, so existing endpoints compile unchanged; drop any ctx as RequestContext cast by passing your router's context type instead.
@sdxc/openapi
Republished because @sdxc/http changed.
@sdxc/privacy-pass
Add a test issuer at @sdxc/privacy-pass/testing
The new @sdxc/privacy-pass/testing entry stands in for a Privacy Pass issuer in an origin's tests: createTestIssuer() makes a key, issuerDirectoryResponse(issuer) is the directory response for an MSW handler, and answerChallenge(issuer, header) returns the Authorization value a client holding a token sends. Before, a test could only cover the paths where the issuer is down.
import { answerChallenge, createTestIssuer, issuerDirectoryResponse } from "@sdxc/privacy-pass/testing";
let issuer = await createTestIssuer();
server.use(http.get(directory.url, () => issuerDirectoryResponse(issuer)));
let authorization = await answerChallenge(issuer, unwrap(await privacyPass.challenge()));
let redeemed = await privacyPass.redeem(authorization);
signToken(issuer, token) is exported too, for signing a token with chosen fields.
@sdxc/rdap
Read a registry's Retry-After with @sdxc/http
A rate-limited lookup now reads the server's Retry-After through parseRetryAfter from @sdxc/http/retry-after, which @sdxc/rdap now depends on. RDAPError.retryAfter keeps its meaning (milliseconds, or null when the server named none); the obsolete RFC 850 and asctime date spellings are now read in UTC. Consumers need not act.
@sdxc/rss
Breaking: Return Results from building, parsing and serializing a feed
Nothing in @sdxc/rss throws any more. The constructor is private: build an instance with RSS.fromJSON({ channel, items }), or validate and serialize plain data in one call with RSS.stringify. addItem and the new setChannel answer a Result instead of throwing, and leave the feed unchanged when they refuse. RSS.parse, RSS.fromXML and RSS.fetch answer a Result too. Failures arrive as three new error classes: RSSParseError (a document or data missing what RSS 2.0 requires), RSSFetchError (a failed request, a non-ok status, or a response that is not XML) and RSSStringifyError (a name or value XML cannot hold).
Migration:
Replace the constructor, addItem loop and toString() with RSS.stringify.
Before:
let rss = new RSS(channel); for (let item of items) rss.addItem(item); let xml = rss.toString();
After:
let xml = RSS.stringify({ channel, items }); if (isFailure(xml)) return xml.error; xml.data;
When you need an instance, build it with RSS.fromJSON.
Before:
let rss = new RSS(channel);
After:
let rss = RSS.fromJSON({ channel, items: [] }); if (isFailure(rss)) return rss.error;
Check the ResultaddItem returns.
Before:
rss.addItem(item);
After:
let added = rss.addItem(item); if (isFailure(added)) return added.error;
Replace assignments to rss.channel with setChannel; the channel getter is unchanged.
Before:
rss.channel = { ...rss.channel, lastBuildDate };
After:
let replaced = rss.setChannel({ ...rss.channel, lastBuildDate });
Read the feed out of the Result that RSS.parse and RSS.fromXML return, instead of catching an exception.
Before:
let feed = RSS.parse(xml); feed.channel.title;
After:
let feed = RSS.parse(xml); if (isFailure(feed)) return feed.error; feed.data.channel.title;
Do the same with RSS.fetch, whose promise now resolves to a Result rather than rejecting.
Before:
let feed = await RSS.fetch(url);
After:
let feed = await RSS.fetch(url); if (isFailure(feed)) return feed.error;
Serialize an instance with RSS.stringify(rss) instead of rss.toString() or String(rss); toString() is gone, so a template literal now prints [object Object].
@sdxc/security-headers
Show passing the nonce to @sdxc/assets-middleware and when to read it
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.
@sdxc/spec
Drop ADR citations from comments
Internal cleanup with no consumer effect: comments state their reasons instead of citing ADRs, and an internal metadata key is named META_KEY.
@sdxc/ui
Name the view-transition state map in UPPER_SNAKE_CASE
Internal cleanup with no consumer effect: the per-frame transition state map is named FRAME_TRANSITIONS.
Read and write RFC 5005 complete and archive markers
Atom.Feed gains complete and archive, the Feed Paging and Archiving (RFC 5005)
markers fh:complete and fh:archive. Parsing sets them from the elements, judged by the
http://purl.org/syndication/history/1.0 namespace whatever prefix the document binds it
to, so they no longer land in extensions. Serializing writes them back under the feed's
own prefix, declaring xmlns:fh when the feed binds none:
let atom = new Atom({ id, title, updated, complete: true }); atom.toString(); // … xmlns:fh="http://purl.org/syndication/history/1.0" … <fh:complete/> Atom.parse(archivePage).data.feed.archive; // true
The paging and archive relations (first, last, next, previous, prev-archive,
next-archive, current) keep round-tripping as ordinary link entries. A consumer that
read fh:complete or fh:archive out of feed.extensions reads feed.complete or
feed.archive instead.
@sdxc/auth
Breaking: Ask for and answer RFC 9470 step-up authentication
A resource server can now refuse a token whose user authentication is too weak or too
old with RFC 9470's insufficient_user_authentication challenge, and a client can read
that challenge back and re-authorize the person at the level it names.
import { ResourceServer } from "@sdxc/auth/resource-server"; import { ProtectedResource } from "@sdxc/auth/protected-resource"; let token = await api.verifyRequest(request); let challenge = api.authenticationChallenge(token, { acrValues: ["mfa"], maxAge: "15 minutes" }); if (challenge) { return new Response(null, { status: 401, headers: { "WWW-Authenticate": challenge } }); } // On the client, after the 401: let stepUp = ProtectedResource.requiredAuthentication(response); if (stepUp) return rp.authorize(ctx, { acrValues: stepUp.acrValues, maxAge: stepUp.maxAge ?? undefined });
What is new:
AccessToken reads acr and auth_time as acr and authTime, and
token.meets({ acrValues?, maxAge? }) checks them; a token missing a claim the
requirement reads does not meet it. maxAge is seconds or a duration string.
ResourceServer#authenticationChallenge(token, requirement) answers the challenge
string, or null when the token meets the requirement. challenge() also accepts
acrValues and maxAge.
ProtectedResource.requiredAuthentication(response) answers { acrValues, maxAge }
from a step-up refusal, or null.
ServiceClient#introspect reads acr and auth_time (RFC 9470 §6.2), and a
ResourceServer resolving an opaque token carries them onto the AccessToken.
ResourceServer.Introspection gains optional acr and authTime.
BearerError includes "insufficient_user_authentication".
Breaking: parse from @sdxc/auth/bearer-challenge now reads acr_values and a whole
number max_age into the typed acrValues and maxAge fields, so they no longer
appear in extensions, and BearerChallenge has the two fields as required members.
Before:
let maxAge = challenge.extensions.max_age; // "300"
After:
let maxAge = challenge.maxAge; // 300
Code that builds a whole BearerChallenge object adds acrValues: [] and
maxAge: null; code passing a partial one to stringify needs no change.
Check at_hash on ID tokens signed with Ed25519
@sdxc/jwt now signs Edwards tokens with the Ed25519 algorithm name from
RFC 9864 instead of the deprecated EdDSA. Before this fix, RelyingParty
had no at_hash digest for Ed25519, so it refused any login whose ID token
carried an at_hash and was signed with that name. Now Ed25519 uses SHA-512,
the same digest as EdDSA, and both names verify. You don't need to change
anything.
If you pin algorithms for an Edwards issuer, use the new name:
algorithms: [JWK.Algorithm.Ed25519]. It still accepts tokens that say
EdDSA.
Describe a rate-limited login in the draft-11 RateLimit fields
The 429 a relying party throws when its login rate limit is spent now
carries the RateLimit and RateLimit-Policy fields of
draft-ietf-httpapi-ratelimit-headers-11, which @sdxc/rate-limit writes.
Retry-After is unchanged. Consumers act only if they parse these fields.
Check the authorization response's iss on the callback
RelyingParty.callback() now holds the authorization response to the issuer
the client sent the browser to (RFC 9207), before it reports an error response
or redeems a code:
When the callback carries iss, it must equal the issuer's published
issuer exactly, character for character.
When the issuer's metadata sets
authorization_response_iss_parameter_supported: true, a callback without
iss is refused.
Either failure throws an AuthError with code issuer_mismatch, the code a
discovery document naming the wrong issuer already uses, so a route that
handles AuthError needs no new branch:
try { let grant = await rp.callback({ request, session }); } catch (error) { if (AuthError.is(error, AuthErrorCode.IssuerMismatch)) return signInAgain(); throw error; }
Issuer.Metadata gains the optional
authorization_response_iss_parameter_supported member, so inline metadata
can state it. Callbacks from an issuer that neither sends iss nor advertises
it complete as before.
Bind tokens to a key with RFC 9449 DPoP
A new @sdxc/auth/dpop entry point covers both ends of DPoP, so a stolen access or
refresh token is useless without the key it is bound to.
Client side:
import { DPoP } from "@sdxc/auth/dpop"; import { ServiceClient } from "@sdxc/auth/service-client"; let dpop = await DPoP.import(JSON.parse(env.DPOP_KEY)); // or DPoP.generate() let service = new ServiceClient(issuer, { clientId, clientSecret, dpop }); let token = await service.token({ resources: ["https://api.example.com"] }); let response = await dpop.fetch("https://api.example.com/reports", { accessToken: token });
dpop.fetch signs a fresh proof per request, sends the token as Authorization: DPoP,
remembers each server's DPoP-Nonce, and retries once when a server refuses with
use_dpop_nonce (a 400 body from a token endpoint or a 401DPoP challenge from an
API). Store dpop.serialized to keep using the same key. ServiceClient with a dpop
key sends a proof with every grant and caches its tokens apart from bearer ones.
Server side:
let api = new ResourceServer(issuer, { resource, dpop: { replay } }); let token = await api.verifyRequest(request); // DPoP scheme + proof, held to cnf.jkt
verifyProof(request, { replay, accessToken? }) checks a single dpop+jwt proof signed
with the key it embeds: htm, htu (query and fragment ignored), iat within five
minutes, ath, an optional server nonce, and one use of each jti through the
ReplayStore you supply. ResourceServer#dpopChallenge() writes the DPoP challenge,
and parseDPoP / stringifyDPoP in @sdxc/auth/bearer-challenge read and write it.
Also new: AccessToken#jkt (from cnf.jkt), jkt on ServiceClient#introspect's answer
and on ResourceServer.Introspection, and the invalid_dpop_proof and use_dpop_nonceAuthErrorCodes.
Behavior change: ResourceServer#verifyRequest now refuses, with invalid_token, a token
carrying cnf.jkt that is presented under the Bearer scheme, as RFC 9449 requires. No
action is needed unless you issue DPoP-bound tokens and accepted them as bearer tokens.
Push authorization requests and sign request objects from RelyingParty
RelyingParty can now push each login's authorization request to the issuer's PAR
endpoint (RFC 9126) before redirecting, and sign the parameters into a request object
(RFC 9101). Both are opt-in; a client configured with neither redirects exactly as
before.
typescript
import{JWK}from"@sdxc/jwt";import{RelyingParty}from"@sdxc/auth/relying-party";let rp =newRelyingParty(issuer,{ clientId, clientSecret, redirectUri,pushAuthorizationRequests:true,requestObject:{algorithm:JWK.Algorithm.ES256,keys: clientSigningKeys },});
pushAuthorizationRequests: true reads pushed_authorization_request_endpoint from
the issuer's metadata, posts the request there with the same client credentials the
token endpoint receives (client_id stays in the form beside Basic credentials),
and redirects the browser with only client_id and the returned request_uri. An
issuer advertising no PAR endpoint throws endpoint_unsupported; a refused push
throws authorization_failed carrying the issuer's error and error_description.
requestObject: { algorithm, keys, lifetime? } signs every authorization parameter
into an oauth-authz-req+jwt with iss set to the client, aud to the issuer
identifier, and exp five minutes out unless lifetime says otherwise. It travels
as request beside client_id, or is pushed alone when pushing is on.
Issuer gains pushedAuthorizationRequestEndpoint(), and Issuer.Metadata now types
pushed_authorization_request_endpoint and require_pushed_authorization_requests.
No action is needed for existing clients.
Bind a relying party's tokens to a DPoP key
RelyingParty takes a dpop key, like ServiceClient already does. Every code exchange
and refresh then carries a DPoP proof (retried once when the provider asks for its
nonce), and the userinfo call presents the access token as Authorization: DPoP beside a
proof, so the provider issues tokens bound to that key.
import { DPoP } from "@sdxc/auth/dpop"; let dpop = await DPoP.import(JSON.parse(env.DPOP_KEY)); let rp = new RelyingParty(issuer, { clientId, clientSecret, redirectUri, dpop });
Keep the key across deploys (store dpop.serialized), since a bound refresh token is
only accepted beside a proof from the same key. Without dpop nothing changes.
Exchange a token for one aimed at another API
ServiceClient#exchange performs an RFC 8693 token exchange: it trades a token (a
user's access token, say) for one scoped to a downstream service, authenticating as the
client like every other grant and carrying a DPoP proof when the client has a dpop key.
actorToken adds a party acting for the subject, resources names targets by URI
(RFC 8707), and the token types default to urn:ietf:params:oauth:token-type:access_token.
The answer is { accessToken, issuedTokenType, tokenType, expiresIn, scopes }, and a
refusal throws token_request_failed with the issuer's error in providerError.
Exchanged tokens are not cached, since each depends on the token presented.
Verify a signed RFC 9701 introspection response
ServiceClient#introspect takes signed: true to ask the issuer for a JWT introspection
response (Accept: application/token-introspection+jwt) and verify it before trusting
it: signed by a key the issuer publishes, typed token-introspection+jwt, naming the
issuer as iss and this client as aud. The description inside it is read exactly like
a JSON answer.
let description = await service.introspect(token, { signed: true });
An answer that is not signed, or fails any of those checks, throws
introspection_failed. Without signed nothing changes.
@sdxc/authz
Republished because @sdxc/billing changed.
@sdxc/billing
Republished because @sdxc/dates changed.
@sdxc/captcha
Accept Privacy Pass tokens with PrivacyPassCaptcha
@sdxc/captcha/privacy-pass adds a provider that redeems Privacy Pass
tokens through a configured PrivacyPass from @sdxc/privacy-pass. It
needs no widget: the client sends its token in Authorization: PrivateToken, and a failure answers 401 with a fresh WWW-Authenticate
challenge, which a client holding tokens retries on its own.
import { captcha } from "@sdxc/captcha/middleware"; import { PrivacyPassCaptcha } from "@sdxc/captcha/privacy-pass"; import { MemoryRedemptionStore, PrivacyPass } from "@sdxc/privacy-pass"; let privacyPass = new PrivacyPass({ issuer: "demo-pat.issuer.cloudflare.com", store: new MemoryRedemptionStore(), }); router.post("/sign-up", { middleware: [captcha(new PrivacyPassCaptcha(privacyPass))], handler, });
To support it, the Captcha interface gains two optional members a
provider may define: readToken(request), which the middleware uses in
place of reading the form field, and refuse(error), the failure answer
when the route sets no onFailure. Existing providers and custom
Captcha implementations work unchanged; consumers need not act.
@sdxc/cbor
Add the @sdxc/cbor package
New package for CBOR (RFC 8949): decoding bounded for untrusted input, and
deterministic encoding (RFC 8949 §4.2.1) for bytes that must hash or sign
the same every time.
import * as CBOR from "@sdxc/cbor"; let value = CBOR.decode(bytes, { maxDepth: 8, maxItems: 1_000 }); let strict = CBOR.decode(signed, { deterministic: true }); let { value: first, length } = unwrap(CBOR.decodeFirst(record)); // record.subarray(length) follows let encoded = CBOR.encode(new Map([["a", [1, 2n ** 70n]]])); // keys sorted, bignum tag 2
Integers are number, or bigint beyond the safe range and for bignums
(tags 2 and 3); byte strings are copied Uint8Arrays; maps are Map; other
tags decode to Tagged and unassigned simple values to Simple. Every
function returns a Result whose CBORError carries a code (truncated,
malformed, trailing-bytes, duplicate-key, limit-exceeded,
not-deterministic, unencodable) and, for decoding, the byte offset.
maxDepth (default 64) and maxItems (default 100,000) bound what one
document can allocate. Every example in RFC 8949 Appendix A decodes, and
each deterministic one re-encodes to the same bytes.
Sign and verify COSE_Sign1 messages with COSE keys
@sdxc/cbor/cose is a new entry point for COSE (RFC 9052) over WebCrypto:
COSE_Sign1 signing and verification, COSE key import, JWK conversion and the
RFC 9679 COSE Key Thumbprint. It supports ES256, ES384, ES512, Ed25519 (plus
the older EdDSA identifier), PS256, PS384 and PS512.
typescript
import*asCOSEfrom"@sdxc/cbor/cose";let message =awaitCOSE.sign1({protected:newMap([[COSE.HeaderParameter.ALG,COSE.Algorithm.ES256]]), payload,key: privateKey,});let verified =awaitCOSE.verifySign1(bytes, publicKey);// or { payload } for a detached onelet key =awaitCOSE.importKey(coseKeyMap);// CryptoKey for the key's algorithmlet kid =awaitCOSE.thumbprint(coseKeyMap);// RFC 9679, SHA-256
Verification reads the algorithm from the protected header, refuses a key
imported for any other algorithm, and rejects crit labels the caller does
not list in understood. encodeSign1 keeps the signed protected header
bytes, so attaching data to the unprotected header leaves the signature valid.
Failures are a COSEError with a code. The root entry is unchanged.
@sdxc/cron
Republished because @sdxc/dates changed.
@sdxc/data-model
Republished because @sdxc/jobs changed.
@sdxc/database-middleware
Republished because @sdxc/jobs changed.
@sdxc/dates
Parse and format RFC 9557 timestamps
@sdxc/dates now reads and writes the Internet Extended Date/Time Format
(RFC 9557): an RFC 3339 timestamp followed by a time zone and suffix tags,
such as 2026-10-24T10:00:00-03:00[America/Montevideo][u-ca=hebrew].
Formatting and parsing are inverses, so a zoned instant can be stored as
text in a JSON field or a TEXT column and read back as an equal value.
import { formatZonedDateTime, parseZonedDateTime } from "@sdxc/dates"; import { isFailure } from "@sdxc/result"; let text = formatZonedDateTime({ date: new Date("2026-10-24T13:00:00Z"), timeZone: "America/Montevideo", }); // "2026-10-24T10:00:00-03:00[America/Montevideo]" let parsed = parseZonedDateTime(text); if (isFailure(parsed)) return parsed; // parsed.error.problem names the rule parsed.data; // { date, offset: -180, timeZone: "America/Montevideo", calendar: null, tags: [] }
A ZonedDateTime carries the instant, the written offset in minutes (null
for Z or -00:00, which RFC 9557 reads as "local offset unknown"), the
IANA or offset zone, the u-ca calendar and every other tag. When offset
is left out, formatZonedDateTime writes the zone's offset at the instant;
pass { critical: true } to mark the zone and calendar tags with !.
Parsing follows the RFC's rules and reports failures as an
InvalidZonedDateTimeError whose problem is "syntax", "invalidDate",
"experimentalKey", "unsupportedCritical", "inconsistent" or
"unknownTimeZone":
Unknown elective tags are kept on tags (first occurrence of each key);
an unknown critical tag fails unless its key is listed in options.keys.
Experimental _ keys fail unless listed in options.keys.
A duplicate key with a different value fails when either copy is critical.
A critical u-ca must name a calendar the runtime's Intl supports.
Z never disagrees with a zone. A critical zone whose offset at the
instant differs from the written offset always fails; an elective one
fails by default, or resolves with onInconsistentOffset: "keepInstant"
(keep the instant, adopt the zone's offset) or "keepWallClock" (keep
the local time, move the instant to the zone's current rules).
@sdxc/digest-fields
Add Unencoded-Digest and Want-Unencoded-Digest
parse, stringify and verify now read and write the Unencoded-Digest and
Want-Unencoded-Digest fields from HTTP Unencoded Digest
(draft-ietf-httpbis-unencoded-digest): a digest of the selected representation
before any content coding, with the same Dictionary grammar, algorithms and 0-10
preference weights as Repr-Digest and Want-Repr-Digest.
typescript
import{ digest, parse, stringify, verify }from"@sdxc/digest-fields";import{ unwrap }from"@sdxc/result";let digests ={"sha-256":unwrap(awaitdigest(unencodedBody,"sha-256"))};stringify(digests,"unencoded-digest");// success("sha-256=:…:")parse("sha-512=3, sha-256=10","want-unencoded-digest");// success({ "sha-512": 3, "sha-256": 10 })// A body still coded as Content-Encoding says (gzip, x-gzip, deflate, identity):awaitverify(request.headers,await request.bytes(),{field:"unencoded-digest",decode:true});// A body fetch already decoded:awaitverify(response.headers,await response.bytes(),{field:"unencoded-digest"});
decode: true removes every listed coding, last applied first, before hashing;
decodeContent(body, contentEncoding) exposes the same step. An unknown coding or
a body that does not decode fails with the new coding error code, so a switch
over DigestErrorCode gains one case. Existing calls are unaffected.
@sdxc/distill
Sign page requests with a sign option on distill
distill takes sign, a function that receives each hop's Request and answers the
signed copy as a Result, so a publisher can verify who is fetching the article. Pair it
with Web Bot Auth:
A signer's failure stops the request before it is sent and answers a DistillLimitError.
Without sign, pages are fetched as before.
@sdxc/doh
Resolve over RFC 8484 wire format with extended DNS errors, and type SVCB, HTTPS, TLSA, DS and DNSKEY answers
resolve now speaks RFC 8484 application/dns-message as well as the JSON API. Pass
CLOUDFLARE_WIRE or GOOGLE_WIRE (or any { url, format: "wire" }) as resolver to query any
standard DoH server; answers come back in exactly the shape the JSON resolvers give. Wire
responses also carry RFC 8914 extended DNS errors, reported as extendedErrors: { code, text }[]
on the answer and on NameNotFoundError, ServerFailureError and ResponseCodeError, which
now share the base class AnsweredError. A SERVFAIL's message names the first extended error,
and extended RCODEs from the OPT record (such as 16, BADVERS) reach ResponseCodeError.rcode.
typescript
import{CLOUDFLARE_WIRE,ServerFailureError, resolve }from"@sdxc/doh";import{ isFailure }from"@sdxc/result";let answer =awaitresolve("dnssec-failed.org","A",{resolver:CLOUDFLARE_WIRE});if(isFailure(answer)&& answer.error instanceofServerFailureError){ answer.error.extendedErrors;// [{ code: 9, text: "no SEP matching the DS found for dnssec-failed.org." }]}
Answers for SVCB, HTTPS, TLSA, DS, CDS, DNSKEY and CDNSKEY are now typed, with
DoH.SVCBRecord, DoH.HTTPSRecord, DoH.TLSARecord, DoH.DSRecord, DoH.CDSRecord,
DoH.DNSKEYRecord and DoH.CDNSKEYRecord aliases, whichever format the resolver answers in:
Behavior change: an HTTPS answer used to come back untyped as { type, data }; read its
priority, target and params instead, or print it with formatRecordData from
@sdxc/zone-file. Every answer gains extendedErrors, always empty from a JSON resolver; the
JSON resolvers and the default stay as they were.
@sdxc/email-address
Republished because @sdxc/doh changed.
@sdxc/email-auth
Add @sdxc/email-auth for DMARC, SPF, MTA-STS, TLS-RPT and DKIM policies
New package. It parses and evaluates the DNS policies that authenticate a
domain's email, with every lookup made over DNS over HTTPS through
@sdxc/doh, so the checks run in a Cloudflare Worker.
DMARC follows RFC 9989: the np, psd and t tags, and the DNS Tree Walk
instead of the public suffix list. discoverDmarc() returns the record
that applies, where it was published, the Organizational Domain and the
policy a receiver applies; isAligned() checks strict or relaxed
identifier alignment.
parseDmarcReport() reads RFC 9990 aggregate reports, and RFC 7489-era
reports without the namespace.
SPF follows RFC 7208: checkHost() is check_host() with macros, exp
explanations, the 10-lookup limit and the void-lookup limit;
analyzeSpf() counts a domain's lookups across includes and redirects.
MTA-STS (RFC 8461): the _mta-sts record, and fetchMtaStsPolicy(), which
reads the policy file the way a sending MTA does, through
@sdxc/outbound: HTTPS, no redirects, a 200 text/plain body under 64 KiB.
TLS-RPT (RFC 8460) and DKIM key records (RFC 6376): parsers and lookups.
import { analyzeSpf, discoverDmarc } from "@sdxc/email-auth";
Parsers return a Result whose failure is a RecordParseError naming the
protocol. A resolver failure is always the Failure, never "no policy".
Read BIMI records and check the DMARC policy BIMI requires
@sdxc/email-auth now reads Brand Indicators for Message Identification
(draft-brand-indicators-for-message-identification-14):
parseBimiRecord() reads a <selector>._bimi record: the logo (l=),
the evidence document (a=), local-part selectors (lps=) and the avatar
preference (avp=). Both URLs must be HTTPS with a domain name, and a
non-SVG logo suffix is an error. An empty l= and a= is reported as
declined.
discoverBimi() looks the record up at the Author Domain, then at the
Organizational Domain; pass organizationalDomain from a DMARC
discovery to skip a second Tree Walk.
bimiDmarcShortfalls() lists why a DMARC policy is too weak for BIMI:
no policy, p=none, sp=none, t=y, or a pct below 100.
import { bimiDmarcShortfalls, discoverBimi, discoverDmarc } from "@sdxc/email-auth";
let dmarc = await discoverDmarc("example.com");
let bimi = await discoverBimi("example.com", {
organizationalDomain: dmarc.data.organizationalDomain,
});
bimiDmarcShortfalls(dmarc.data); // [] when receivers may show the logo
The logo is validated, never fetched. RecordParseError's protocol gains
"bimi". The README now states that DKIM1 (RFC 6376) is what the package
parses, and that DKIM2 is being tracked. Existing exports are unchanged.
@sdxc/feed
Sign feed requests with a sign option on Feed.fetch
Feed.fetch and Feed.discover take sign, a function that receives each hop's
Request and answers the signed copy as a Result, so a publisher can verify which
reader is polling. Pair it with Web Bot Auth:
typescript
import{Feed}from"@sdxc/feed";import{ webBotAuthSigner }from"@sdxc/http-signatures/web-bot-auth";let result =awaitFeed.fetch(url,{sign:webBotAuthSigner({ key,agent:"https://reader.example.com"}),});
A signer's failure stops the request before it is sent and answers a FeedFetchError.
Without sign, requests are sent as before.
Expose RFC 5005 complete, archive and paging addresses
Feed gains three accessors for Feed Paging and Archiving (RFC 5005):
complete: the document lists every item (fh:complete), so an item missing from it
has left the feed.
archive: the document is an archive page (fh:archive).
paging: the resolved first, last, next, previous, prevArchive, nextArchive
and current addresses, the first declaration of each winning; rel="prev" reads as
previous.
let feed = Feed.parse(source, { url }).data;
if (feed.complete) dropItemsMissingFrom(feed.items);
let { prevArchive, next } = feed.paging;
Feed.Data carries complete and archive for Atom and RSS. A JSON Feed's next_url now
appears in links as rel: "next" and so answers as paging.next; JSON Feed 1.1 has no
equivalent of the two markers, so a JSON feed is never complete or archive. No action is
needed from existing consumers.
@sdxc/flags
Republished because @sdxc/jobs changed.
@sdxc/flags-engine
Republished because @sdxc/flags changed.
@sdxc/health
Add dependency health checks in the application/health+json format
@sdxc/health is a new package. HealthCheck runs one probe per dependency
in parallel, each bounded by a timeout, and answers with a report in the
Health Check Response Format for HTTP APIs: 200 while nothing fails, 503
once a critical probe does.
import { HealthCheck } from "@sdxc/health"; let health = new HealthCheck<AppContext>({ serviceId: "shop" }); health.probe("database", (ctx) => ctx.db.exec("SELECT 1")); health.probe("payments", (_, signal) => fetch("https://api.example.com/healthz", { signal }), { critical: false }); export default createAction(routes.health, (ctx) => health.respond(ctx));
A probe passes when it resolves, and fails when it rejects, outlasts its
timeout (its signal aborts), or resolves to a non-2xx Response or a failed
@sdxc/result. A response that is itself a health report is judged by what
it reports. Error messages stay out of the report unless exposeErrors is
set; every check that is not passing is logged on the current
@sdxc/logger log.
parseHealth(text) and isHealthResponse(response) read a report another
service sent, normalizing ok/up/error/down in any case to
pass/warn/fail. @sdxc/health/schema exports the format as an
@sdxc/json-schema schema, and @sdxc/health/schema.json ships the same
JSON Schema document as a static file.
Judge a fetched response without waiting for its body to cancel
Before: when a probe returned a response that was not a health report, or a
health report over 64 KB, the check waited for the body's cancellation to
settle. Some stream sources never settle it (MSW's mocked bodies under Node
among them), so the probe ran into its timeout and reported "timeout"
whatever status the dependency answered.
After: the body is cancelled without waiting, and the check is judged by the
status code at once. No consumer action is needed; tests that mocked empty
bodies to work around it can return real bodies again.
@sdxc/http
Announce and read API deprecations with Deprecation and Sunset
The new @sdxc/http/deprecation entry point writes and reads the standard
deprecation signals: the RFC 9745 Deprecation field (a structured-field date
such as @1688169599), the RFC 8594 Sunset field (an HTTP-date), and links
with the deprecation and sunset relation types.
import { getDeprecation, setDeprecation } from "@sdxc/http/deprecation"; // Server: announce that this resource is retired. setDeprecation(response.headers, { deprecation: new Date("2026-12-01T00:00:00Z"), sunset: new Date("2027-06-01T00:00:00Z"), deprecationLink: "https://example.com/changelog", }); // Client: notice it. let notice = getDeprecation(response.headers); if (notice?.deprecation) console.warn("Deprecated", notice);
setDeprecation replaces any earlier notice and keeps every other Link
entry, such as pagination links. It returns a Result and fails with
DeprecationNoticeError, leaving the headers untouched, for an invalid date
or a sunset earlier than the deprecation, which RFC 9745 forbids. Dates are
truncated to whole seconds. getDeprecation leaves out any field that does
not parse and answers null when the response announces nothing.
@sdxc/http now depends on @sdxc/structured-fields and
@sdxc/link-header.
Build and read CDN-Cache-Control targeted cache fields
@sdxc/http/cache now writes and reads RFC 9213 targeted cache fields such as
CDN-Cache-Control and Cloudflare-CDN-Cache-Control, which give an edge cache
its own lifetime apart from the browser's.
targetedPolicy() takes the same options as policy() and serializes them as a
Structured Field Dictionary, the grammar RFC 9213 requires:
parseTargetedPolicy(value) reads one back as a CacheControl from
remix/headers, answering null when a cache ignores the field (absent, empty,
or not a valid Dictionary). Unknown directives, parameters and ill-typed values
such as a decimal max-age are skipped, and private or no-cache with a
field-name list read as the unqualified directive.
@sdxc/http-signatures
Sign and verify Web Bot Auth requests and key directories
The new @sdxc/http-signatures/web-bot-auth entry implements
draft-ietf-webbotauth-httpsig-protocol-00. A bot signs each request with RFC 9421 under
tag="web-bot-auth", its key's RFC 7638 thumbprint as keyid, and a covered
Signature-Agent member naming the origin whose
/.well-known/http-message-signatures-directory publishes the key.
typescript
import{ follow }from"@sdxc/outbound";import{ isSuccess, unwrap }from"@sdxc/result";import{ importWebBotAuthKey, verifyWebBotAuth, webBotAuthSigner }from"@sdxc/http-signatures/web-bot-auth";let key =unwrap(awaitimportWebBotAuthKey(JSON.parse(env.WEB_BOT_AUTH_KEY)));awaitfollow(url,{sign:webBotAuthSigner({ key,agent:"https://bot.example.com"})});let verified =awaitverifyWebBotAuth(request,{ cache });if(isSuccess(verified)) verified.data.agent;// the directory URL the key came from
importWebBotAuthKey(jwk) imports an Ed25519, ECDSA P-256 or RSA private JWK into a
non-extractable signing key, its thumbprint and the public half to publish.
signWebBotAuth(request, options) covers @authority @method @path by default plus the
signature-agent member it writes, valid for 5 minutes (expiresIn), keeping any
other signatures and Signature-Agent members. webBotAuthSigner fits follow's sign.
verifyWebBotAuth(request, options) enforces the tag, keyid, created and expires,
coverage of @authority or @target-uri and the Signature-Agent member (plus any
components you require), and a lifetime within maxLifetime (24 hours). It then
fetches the directory or jwks_uri through @sdxc/outbound with no redirects, a 200
only, and size, key-count and time bounds, caches it in an @sdxc/cacheCache for
its max-age (one minute to one day), and selects the key whose computed thumbprint is
keyid. The legacy bare String Signature-Agent is accepted unless legacy: false.
signDirectoryResponse(response, request, { keys }) signs a directory response with
every key it publishes over "@authority";req and content-digest, for the sign
option of @sdxc/well-known's serve.
parseSignatureAgent and stringifySignatureAgent read and write the field.
The RFC 9421 signature base now also covers response components: @status, and request
components through ;req. sign and verify on requests behave as before.
Publish a Web Bot Auth key's public half without alg or ext
importWebBotAuthKey copied the JWK's alg and ext members into publicKey. A key
exported from Web Crypto carries the JOSE name "alg": "Ed25519" and "ext": true, so a
directory built from it named an algorithm verifiers do not recognize, and they dropped
the key.
publicKey now carries only the key type's public members, kid and whatever else the
JWK declared apart from alg, ext, key_ops and the private members. No action is
needed beyond republishing the directory.
@sdxc/i18n
Match Accept-Language with RFC 4647 Lookup and honor q=0
LanguageDetector and getClientLocales from @sdxc/i18n now negotiate the
Accept-Language header the way RFC 4647 §3.4 Lookup and RFC 9110 §12.5.4
describe. No consumer action is needed; detected languages change only for
the headers below.
A range is truncated before the next range is tried. Before, es-UY,en;q=0.9
with supportedLanguages: ["en", "es"] detected en, because es-UY never
matched es until every range had been tried exactly. Now it detects es.
Script subtags and extensions truncate too: zh-Hant-TW reaches zh-Hant,
then zh, and zh-Hant-CN-x-private1 drops the dangling x with its subtag.
A range marked q=0 means "not acceptable". Before, es;q=0 still detected
es, and getClientLocales returned fr for fr;q=0. Now such a range is
never picked and the supported language it names is excluded from other
ranges' matches, so es;q=0 resolves to the fallback.
Quality values follow RFC 9110: 0 to 1 with at most three decimals, a
case-insensitive q, and optional whitespace before the semicolon. Before,
es;q=1.5 outranked every other range and en ;q=0.5 was dropped; now the
first is skipped as malformed and the second is read with quality 0.5.
Tags may carry any number of subtags of up to eight characters, so
de-CH-1996, en-US-u-ca-gregory and private-use x- tags are read whole
instead of being dropped.
When Lookup matches no range, the detector still falls back to a match on the
primary language code (en-US finds a supported en-GB) before using
fallbackLanguage. * matches nothing and ties keep header order.
Resolve translator and createI18n locales with RFC 4647 Lookup
createTranslator and createI18n from @sdxc/i18n now reach a language
through every truncation of the requested tag, compared case-insensitively.
No consumer action is needed.
createTranslator: before, translate("es-UY") with
supportedLanguages: ["en", "es"] bound to the fallback en, and
translate("PT-br") missed a supported pt-BR. Now the first resolves to
es and the second to pt-BR, with translation.locale reporting the
supported language in its configured casing.
createI18n: before, a key resolved through the locale, its primary subtag
and the fallback, so zh-Hant-TW skipped a zh-Hant bundle and read zh,
and EN-gb missed an en-GB bundle. Now it walks every Lookup truncation
(zh-Hant-TW, zh-Hant, zh, then the fallback's) and matches bundle names
case-insensitively.
@sdxc/icalendar
Republished because @sdxc/dates changed.
@sdxc/idempotency
Fingerprint JSON bodies in RFC 8785 canonical form
fingerprint() now hashes an application/json or +json body in its JSON
Canonicalization Scheme form (via @sdxc/json-canonical) instead of its
raw bytes. A retry that reorders object keys or changes whitespace now
matches the stored record and gets the replay. Before, it got 422.
// Both now produce the same fingerprint: {"amount":10,"currency":"EUR"} { "currency": "EUR", "amount": 10 }
A body that is already canonical (sorted keys, no whitespace) hashes to
exactly the same value as before. A JSON body is still compared byte for
byte when it is not valid UTF-8 or I-JSON, or holds a run of 16 or more
digits, since a double cannot tell such numbers apart. Other media types
are unchanged.
Consumers who hand-sorted keys in a custom fingerprint option can drop
that code. After upgrading, a record stored from a non-canonical JSON
body no longer matches its own retry: during the first ttl window, a
retry of such a request gets 422 instead of the replay. Deploy when you
can accept that, or wait out the ttl.
@sdxc/jmap
Breaking: Expand Session URL templates with @sdxc/uri-template
@sdxc/jmap now expands the Session's uploadUrl, downloadUrl and
eventSourceUrl with @sdxc/uri-template, a full RFC 6570 level 1-4
implementation, and no longer exports its own level 1 expand function.
A Session template that RFC 6570 rejects (an unclosed {, for example)
now makes jmap.upload(), jmap.download() and jmap.events() return a
JMAPRequestError with code invalid-response, whose cause is the
UriTemplateError naming the offset. Before, the malformed text was sent
to the server as part of the URL.
Migration, only if you imported expand from @sdxc/jmap:
Install @sdxc/uri-template.
Import expand from it. It returns a Result instead of a string.
Before:
import { expand } from "@sdxc/jmap";let url = expand(session.downloadUrl, { accountId, blobId, name, type });
After:
import { unwrap } from "@sdxc/result";import { expand } from "@sdxc/uri-template";let url = unwrap(expand(session.downloadUrl, { accountId, blobId, name, type }));
Add @sdxc/jmap, a typed JMAP client for mail and contacts
New package for talking to JMAP servers (RFC 8620) such as Fastmail:
read the Session, send batched method calls typed by method name, chain
calls with result references, and read RFC 8621 mail and RFC 9610
contacts data.
import { Batch, JMAP } from "@sdxc/jmap"; let jmap = new JMAP({ url: "https://api.fastmail.com/jmap/session", token }); let batch = new Batch(); let query = batch.call("Email/query", { accountId, limit: 10 }); let emails = batch.call("Email/get", { accountId, ids: query.ref("/ids") }); let response = await jmap.send(batch);
Request-level failures come back as a JMAPRequestError carrying the
server's problem details, and each call's error response as a
JMAPMethodError. The client also uploads and downloads blobs, streams
StateChange push events from the event source, and parses
PushSubscription deliveries with parsePush().
@sdxc/jobs
Republished because @sdxc/cron changed.
@sdxc/jscalendar
Add @sdxc/jscalendar for RFC 8984 events, tasks and groups
New package: read, validate and write JSCalendar (RFC 8984) objects, expand
their recurrences, and convert them to and from @sdxc/icalendar's model
following draft-ietf-calext-jscalendar-icalendar.
import { parse, jscalendarResponse } from "@sdxc/jscalendar"; import { occurrences } from "@sdxc/jscalendar/recurrence"; import { fromICalendar, toICalendar } from "@sdxc/jscalendar/icalendar"; let event = unwrap(parse(await request.text())); let upcoming = unwrap(occurrences(event, { from: now, to: now + 30 * 86_400_000 })); let group = fromICalendar(unwrap(parseICalendar(icsText)).calendar); return jscalendarResponse(group); // application/jscalendar+json; type=group
parse keeps vendor properties and checks value formats and RFC 8984's MUST
rules; schemas are exported for remix/data-schema. Recurrence expansion
reuses @sdxc/icalendar's RRULE engine and applies overrides as PatchObjects.
The README lists which jscalendarbis changes the package follows.
@sdxc/jscontact
Add @sdxc/jscontact for RFC 9553 JSContact Cards and vCard conversion
New package @sdxc/jscontact reads, validates and writes JSContact Cards at
version 2.0 (RFC 9553 as updated by RFC 9982, where uid is optional), and
converts them to and from vCard 4.0 and jCard (RFC 9555, RFC 7095):
import { parse, localize } from "@sdxc/jscontact"; import { fromVCard, parseVCard, readJCard, stringifyVCard, toVCard } from "@sdxc/jscontact/vcard"; let card = parse(await request.text()); // Result<JSContact.Card, JSContactParseError> let french = localize(card.data, "fr"); // the "fr" localization applied let cards = parseVCard(text); // vCard text, one or more cards let fromJCard = readJCard(entity.vcardArray); // jCard, such as an RDAP entity's let contact = fromVCard(fromJCard.data); // JSContact.Card let vcard = stringifyVCard(toVCard(contact)); // back to text/vcard
Validation enforces the RFC's MUST rules, including case variants of
registered names and values, and keeps unknown and vendor properties. Map
entries convert with their key in PROP-ID (JSID is read too), localizations
become LANGUAGE alternatives tied by ALTID, vCard properties with no
counterpart are kept in vCardProps, and JSPROP carries everything else, so
a Card converted to vCard and back is unchanged.
@sdxc/json-canonical
Add @sdxc/json-canonical for RFC 8785 canonical JSON
New package. canonicalize() writes the JSON Canonicalization Scheme
(JCS) form of a value: no whitespace, object members sorted by the UTF-16
code units of their names at every depth, and numbers and strings written
exactly as ECMAScript's JSON.stringify writes them. Equal data gives equal
bytes, so it is safe to hash or sign.
Input must be I-JSON (RFC 7493). NaN, Infinity, a lone surrogate,
undefined, a sparse array hole, a cycle, or anything other than plain
objects, arrays and JSON scalars returns a CanonicalJsonError, whose
pointer is the JSON Pointer to the offending value. Every test vector in
RFC 8785 passes, Appendix B's number samples included.
@sdxc/json-patch
Add @sdxc/json-patch for RFC 6902 JSON Patch
New package. It applies, validates and generates JSON Patch documents
(application/json-patch+json): ordered add, remove, replace, move, copy
and test operations aimed at RFC 6901 JSON Pointers.
apply() is atomic: the patch runs on a private copy, so a failing
operation leaves the input untouched, and the result shares nothing
with the inputs. The patch is validated before any operation runs.
validate() and parse() turn untrusted JSON into typed operations.
Every failure is a JsonPatchError with the failing operation's index
and a reason ("invalid-patch", "unresolvable", "test-failed") that maps
to RFC 5789's 400, 422 and 409.
It passes RFC 6902's Appendix A and the json-patch-tests suite. Use it
where @sdxc/merge-patch cannot express the change: array element edits,
an explicit null, or test preconditions.
@sdxc/jsonl
Read and write RFC 7464 JSON text sequences
@sdxc/jsonl now reads and writes JSON text sequences (application/json-seq), where every
record is an RS byte (0x1E), one JSON text, then a line feed. The readers keep the JSON Lines
guarantees: bytes are split at RS before decoding, so records, separators and multi-byte
characters split across chunks read correctly, and maxRecordBytes bounds the buffer.
typescript
import*asJSONLfrom"@sdxc/jsonl";import{ isFailure }from"@sdxc/result";returnnewResponse(JSONL.encodeSequence(events),{headers:{"Content-Type":"application/json-seq"},});forawait(let entry ofJSONL.readSequence(request.body,{maxRecordBytes:65_536})){if(isFailure(entry)){ entry.error.code;// "truncated", "invalid-json", "invalid-value" or "record-too-long" entry.error.record;// 1-based among non-empty recordscontinue;} entry.data.value;}
New exports: records, readSequence (with maxRecordBytes, skip and a Standard Schema
schema), parseSequence, stringifySequence, encodeSequence, encodeSequenceTexts and
the JSONSeqError class. Empty and whitespace-only records are skipped; a record that is not
JSON, fails the schema, or is a top-level number, true, false or null with no whitespace
after it (possibly truncated, per RFC 7464 section 2.4) yields a failure and reading continues;
only a record over maxRecordBytes stops it. The JSON Lines API is unchanged.
@sdxc/jsonpath
Add @sdxc/jsonpath for RFC 9535 JSONPath queries
New package. It implements RFC 9535 JSONPath in full: name, wildcard,
index, slice and filter selectors; child and descendant segments;
comparisons, logical operators and existence tests; and the length,
count, match, search and value function extensions. match() and search()
read RFC 9485 I-Regexp patterns.
import { JSONPath, query } from "@sdxc/jsonpath"; import { unwrap } from "@sdxc/result"; let cheap = unwrap(JSONPath.parse("$..book[?@.price < 10].title")); cheap.values(store); // ["Sayings of the Century", "Moby Dick"] query(store, "$..book[-1].title"); // success([{ value: "The Lord of the Rings", // location: ["store", "book", 3, "title"], // path: "$['store']['book'][3]['title']" }])
JSONPath.parse() refuses every query the RFC rejects, ill-typed function
arguments included, with a JsonPathSyntaxError that carries the offset.
Each selected node comes with its normalized path and its location
segments, so it can feed @sdxc/json-pointer and @sdxc/json-patch. All
715 cases of the official jsonpath-compliance-test-suite pass.
@sdxc/jwt
Breaking: Sign Edwards tokens as Ed25519 and refuse unlisted algorithms by default
RFC 9864 deprecates the JOSE algorithm name EdDSA and replaces it with the
fully-specified Ed25519. @sdxc/jwt now uses the new name everywhere:
JWK.Algorithm.EdDSA is now JWK.Algorithm.Ed25519, new key pairs are
generated for Ed25519, tokens are signed with an alg: "Ed25519" header, and
JWK.toJSON publishes alg: "Ed25519".
Tokens and keys from before the change keep working:
JWT.verify with algorithms: [JWK.Algorithm.Ed25519] also accepts a token
whose header says EdDSA, as long as the key is an Ed25519 key.
A token is matched to a key published under either name, so old tokens
verify against a new JWKS, and new tokens verify against a JWKS that still
says EdDSA.
JWK.importKeyPair reads a stored pair saved with alg: "EdDSA" as
Ed25519.
If you hard-code "EdDSA" anywhere, for example in discovery metadata, change it
to "Ed25519". Relying parties that only accept EdDSA need an update before
they can verify the new tokens.
JWT.verify now follows RFC 8725 (JWT Best Current Practices) more closely:
Without algorithms, it now accepts only ES256, RS256, Ed25519 and the
deprecated EdDSA name. Before, it accepted any algorithm that fit the key. A
token signed with HS256, PS256, ES384 or any other algorithm, or an unsecured
alg: "none" token, is now refused unless you list its algorithm:
Token classes can set an explicit type. A subclass that sets static type
signs with that typ header, and its verify refuses a token of any other
type, so one kind of token cannot be used as another:
class AccessToken extends JWT {
static override type = "at+jwt";
}
Compute a key's RFC 7638 thumbprint with JWK.thumbprint
JWK.thumbprint(jwk) answers the base64url SHA-256 JWK thumbprint of RFC 7638 (and
RFC 8037 Appendix A.3 for Ed25519 keys) as a Result from @sdxc/result. Only the
members the key type requires are hashed, so a private JWK and its public half share
one thumbprint, and kid, alg or use never change it. Web Bot Auth signs under
this value as keyid, and its key directory publishes it as kid.
A key missing a member its type requires answers a failure.
Add a SecurityEventToken class for RFC 8417 Security Event Tokens
SecurityEventToken is a JWT subclass for Security Event Tokens (RFC 8417). It signs
with the secevent+jwt type, and create writes every claim a SET requires: iss, aud,
events, a fresh random jti and iat now, unless you pass them.
typescript
import{JWK,SecurityEventToken}from"@sdxc/jwt";letset=awaitSecurityEventToken.create({issuer:"https://idp.example.com/",audience:"https://rp.example.com/",subjectId:{format:"email",email:"user@example.com"},transaction:"txn-1",timeOfEvent:newDate(),events:{"https://schemas.openid.net/secevent/risc/event-type/account-disabled":{reason:"hijacking"},},}).sign(JWK.Algorithm.ES256, keys);let event =awaitSecurityEventToken.verify(set, issuerKeys,{ issuer, audience });event.events;// each payload under its event URIevent.subjectId;// { format: "email", email: "user@example.com" }
verify checks everything JWT.verify checks. It also requires the secevent+jwt type,
iss, iat, jti, aud and an events object of one or more event objects. It refuses
a SET that carries exp, because a SET records something that already happened. A failed
check throws jose's JWTClaimValidationFailed, and its claim names the claim that failed.
The events, transaction (txn), timeOfEvent (toe) and subjectId (sub_id)
accessors read the SET claims. subjectId types RFC 9493's email, iss_sub and opaque
identifiers, and reads one of those that is missing a required member as null. Any other
format is read as given. To model a SET profile, subclass SecurityEventToken: create and
verify then return the subclass.
Sign and verify a token whose header carries its own key
A token can now be signed with its public key embedded in the jwk header
(RFC 7515 §4.1.3) instead of a kid, and verified against that header key. This is how
an RFC 9449 DPoP proof travels: the verifier learns the key from the proof and then holds
it to a binding, such as the cnf.jkt thumbprint a DPoP-bound access token names.
import { JWK, JWT } from "@sdxc/jwt"; class DPoPProof extends JWT { static override type = "dpop+jwt"; } let keyPair = await JWK.importKeyPair(await JWK.generateKeyPair(JWK.Algorithm.ES256)); let proof = await new DPoPProof({ htm: "POST", htu, jti, iat }).signEmbedded(keyPair); let { token, jwk } = await DPoPProof.verifyEmbedded(proof); let jkt = await JWK.thumbprint(jwk);
signEmbedded uses the pair's own algorithm and writes only the key's public members.
verifyEmbedded accepts the same options as verify, keeps the default algorithm list
and the class's typ check, refuses a header that carries a private key, and answers the
public members of the key the token was signed under. Existing signing and verification
are unchanged.
@sdxc/kit
Breaking: Serve the new app's health check at /health in the application/health+json format
An app created with sdxc create now answers its health check at GET /health instead of
GET /api/health, with an application/health+json report from @sdxc/health: 200 while
every critical probe passes or warns, 503 once one fails. The template probes its D1
database with SELECT 1, names the report after the app's package.json name, and documents
the route in its OpenAPI document with @sdxc/health/schema under application/health+json
for both statuses. /api/health is removed, not redirected.
sdxc make scaffold --api now adds the @sdxc/json-schema import to routes/api.ts when the
file lacks it, instead of printing the operations for you to place by hand.
To migrate an app created from the earlier template:
Add @sdxc/health to dependencies at the same version as your other @sdxc/* packages,
and install.
Move the route out of the api group in routes/api.ts and document the new body.
Before:
import * as s from "@sdxc/json-schema";const ROUTES = route({ api: { health: get("/api/health"), openapi: get("/api/openapi.json"), notFound: "/api/*path", }, mcp: post("/mcp"),});export const HEALTH = defineOperation("health", ROUTES.api.health, { summary: "Check the service", responses: { 200: { description: "The service is up", body: s.object({ status: s.literal("ok") }) }, },});
After (keep the @sdxc/json-schema import if anything else in the file uses s):
import HEALTH_REPORT from "@sdxc/health/schema";const ROUTES = route({ health: get("/health"), api: { openapi: get("/api/openapi.json"), notFound: "/api/*path", }, mcp: post("/mcp"),});export const HEALTH = defineOperation("health", ROUTES.health, { summary: "Check the service and every dependency it reads", responses: { 200: { description: "Every critical dependency answers: the report's status is `pass` or `warn`", body: { "application/health+json": HEALTH_REPORT }, }, 503: { description: "A critical dependency fails: the report's status is `fail`", body: { "application/health+json": HEALTH_REPORT }, }, },});
Create app/initializers/health.ts with one probe per binding the app reads:
import { HealthCheck } from "@sdxc/health";import { sql } from "remix/data-table";import type { AppContext } from "~/app/initializers/router";import manifest from "../../package.json" with { type: "json" };export const health = new HealthCheck<AppContext>({ serviceId: manifest.name });health.probe("database", (ctx) => ctx.db.exec(sql`SELECT 1`), { componentType: "datastore" });
Move app/http/controllers/api/health.tsx to app/http/controllers/health.ts and answer
with the report.
Replace /api/health with /health in tests and in every monitor or load balancer that
polls it, in the same deploy. A monitor that matched the body {"status":"ok"} should
check for "status":"pass", or read the application/health+json report.
Ship a component's browser test through sdxc ui
The component registry now accepts a test named <name>.browser.test.tsx
(or .ts) beside a component, the name a test running in Vitest Browser Mode
carries. sdxc ui add youtube-embed with tests enabled copies
youtube-embed.browser.test.tsx next to the component:
sdxc ui add youtube-embed
Run that test from a Vitest project with Browser Mode enabled. Existing
<name>.test.tsx tests copy as before.
@sdxc/link-header
Read and write RFC 9264 link sets
The new @sdxc/link-header/linkset entry reads and writes link sets in both forms
RFC 9264 defines: application/linkset, which is the Link header grammar with one
link per line, and application/linkset+json. Both read into one flat list of links,
so a Link header converts to either document and back.
context fills a missing anchor and resolves relative references, so a set keeps its
meaning outside the response that carried it. A line naming several relation types reads
as one link per type. title* and every other RFC 8187 attribute decode into
internationalized (UTF-8 and ISO-8859-1) and encode back as UTF-8'lang'…, and other
target attributes land in extensions as arrays. parseJson answers a LinksetParseError
listing every member that breaks the RFC at a JSON Pointer, such as a relation type whose
value is a bare string instead of an array of target objects. The existing parse,
stringify and serializeLink exports are unchanged.
@sdxc/mail
Republished because @sdxc/jobs changed.
@sdxc/merge-patch
Point to @sdxc/json-patch for updates a merge patch cannot express
The README now names @sdxc/json-patch as the format to use when an
update inserts or removes a single array element, sets a member to null,
or must apply only while a value is unchanged. This change has no effect
on the package's behavior.
@sdxc/messaging
Republished because @sdxc/outbound changed.
@sdxc/newsletter
Republished because @sdxc/email-address changed.
@sdxc/openapi
Send Deprecation and Sunset for a deprecated operation
An operation's deprecated option now also accepts a DeprecationNotice
from @sdxc/http/deprecation. The notice marks the operation
deprecated: true in the document, as true does, and the new
deprecationHeaders(operation) middleware from @sdxc/openapi/router writes
its RFC 9745 Deprecation field, RFC 8594 Sunset field and deprecation /
sunset links onto every response the operation's route answers.
import { defineOperation } from "@sdxc/openapi"; import { deprecationHeaders } from "@sdxc/openapi/router"; let LEGACY_SHOW = defineOperation("legacyShow", routes.api.legacy.show, { summary: "Show a legacy record", responses: { 200: { description: "The record" } }, deprecated: { deprecation: new Date("2027-01-01T00:00:00Z"), sunset: new Date("2027-07-01T00:00:00Z"), deprecationLink: "https://docs.example.com/changelog", }, }); router.map(routes.api.legacy.show, { middleware: [deprecationHeaders(LEGACY_SHOW)], handler: showLegacy, });
Building the document fails with an OpenAPIBuildError pointing at the
operation's deprecated when its sunset is earlier than its deprecation, so a
drift test catches it before it ships. deprecated: true and operations
without the option behave as before; no action is needed. @sdxc/openapi now
depends on @sdxc/http.
Serve documents as application/openapi+json and application/openapi+yaml
openapiHandler now answers with the OpenAPI media types registered by
draft-ietf-httpapi-rest-api-mediatypes-09, carrying the document's OpenAPI
version as the version parameter. That draft is still an IETF Internet-Draft
(in Working Group Last Call), so the media type names may change before it
becomes an RFC.
The response type follows Accept:
no Accept, */*, or nothing the handler serves:
Content-Type: application/openapi+json; version=3.1.1
Accept: application/openapi+yaml, or ?format=yaml:
Content-Type: application/openapi+yaml; version=3.1.1
Accept: application/json or Accept: application/yaml: that type, as before
?format=json|yaml still picks the syntax, and Accept then chooses between
the registered and the generic type of that syntax. Responses keep
Vary: Accept. The new constants name the types:
import { MEDIA_TYPE_OPENAPI_JSON, MEDIA_TYPE_OPENAPI_YAML } from "@sdxc/openapi";
Before, a request without Accept (or with */*) got application/json;
it now gets application/openapi+json; version=3.1.1 with the same body.
Clients that parse the body need no change. A client that checks the
Content-Type for exactly application/json should send
Accept: application/json to keep receiving it.
@sdxc/openpgp
Add @sdxc/openpgp for RFC 9580 signing and verification
New package. It signs and verifies OpenPGP data with nothing but Web
Crypto, so it runs in Workers, browsers, Node and Bun: ASCII armor with
the optional CRC24 footer, packet framing, version 4 and 6 keys with their
fingerprints, cleartext signed messages and detached signatures.
import { generateKey, signCleartext, verifyCleartext } from "@sdxc/openpgp"; import { unwrap } from "@sdxc/result"; let key = unwrap(await generateKey({ userId: "Security <security@example.com>" })); let signed = unwrap(await signCleartext("Contact: mailto:security@example.com\n", key)); let verified = await verifyCleartext(signed, key.publicKey);
generateKey() makes a version 6 Ed25519 key, or with version: 4 an
Ed25519Legacy key that GnuPG 2.2 can import. readPrivateKey() and
readPublicKey() read armored or binary keys, including keys exported by
gpg, and readPrivateKey(input, { passphrase }) unlocks AEAD-GCM, CFB and
MalleableCFB protection. key.lock(passphrase) protects a key with
Iterated-and-Salted SHA-256, HKDF and AES-256-GCM. Signatures use Ed25519,
Ed25519Legacy, ECDSA on NIST curves or RSA, with SHA-256, SHA-384 or
SHA-512. signDetached() and verifyDetached() cover binary and text
signatures, and verifyKey() checks a certificate's self-signatures.
Verification refuses revoked, expired and unbound signing keys. Argon2,
OCB and EAX keys answer "unsupported", since Web Crypto cannot run them.
Encryption, the web of trust and keyservers are out of scope. The RFC
9580 Appendix A test vectors pass, and GnuPG verifies the signatures it
makes.
@sdxc/outbound
Sign each request follow sends with a sign option
follow takes sign, a function that receives each hop's Request and answers the
signed copy as a Result. It runs before every hop is sent, so each origin in a redirect
chain receives a signature over its own authority. A failure stops the walk before the
request leaves, as the new signing-failed code, which is not retryable.
typescript
import{ follow }from"@sdxc/outbound";import{ webBotAuthSigner }from"@sdxc/http-signatures/web-bot-auth";let followed =awaitfollow(feedUrl,{timeout:"10 seconds",sign:webBotAuthSigner({ key,agent:"https://reader.example.com"}),});
Requests without sign are sent exactly as before. A caller that switches over every
OutboundErrorCode gains one case, signing-failed.
@sdxc/pagination
Republished because @sdxc/link-header changed.
@sdxc/passkey
Read WebAuthn CBOR with @sdxc/cbor
The attestation object, the credential public key in authenticator data and
stored COSE keys are now decoded by @sdxc/cbor instead of a private reader.
Ceremonies verify as before, and consumers need not act.
The reader is now a full RFC 8949 decoder: an attestation object that uses
indefinite lengths decodes instead of failing as malformed (the fields it
must carry are still checked), a map that repeats a key is refused, and
unreadable CBOR still fails with MalformedResponseError.
@sdxc/privacy-pass
Add @sdxc/privacy-pass for Privacy Pass origins
New package: the origin (redeemer) side of Privacy Pass (RFC 9576, 9577
and 9578). It writes the WWW-Authenticate: PrivateToken challenge,
redeems the token a client answers with in Authorization: PrivateToken,
verifies Blind RSA tokens (type 0x0002) with Web Crypto, reads the
issuer's keys from its /.well-known/private-token-issuer-directory,
and refuses a token spent twice. Every call answers a Result.
import { MemoryRedemptionStore, PrivacyPass } from "@sdxc/privacy-pass"; let privacyPass = new PrivacyPass({ issuer: "demo-pat.issuer.cloudflare.com", store: new MemoryRedemptionStore(), }); let redeemed = await privacyPass.redeem(request.headers.get("Authorization")); if (isFailure(redeemed)) { let challenge = await privacyPass.challenge(); // answer 401 with WWW-Authenticate: challenge.data }
redemptionContext: "fresh" (the default) binds each token to one
challenge; "empty" accepts cached tokens and keeps spent nonces. Back
RedemptionStore with shared storage in production. The structures
(encodeTokenChallenge, parseToken, parseAuthorization) and the
verifier (importTokenKey, verifyToken) are exported for custom flows.
@sdxc/rate-limit
Breaking: Write the RateLimit fields of draft-ietf-httpapi-ratelimit-headers-11
@sdxc/rate-limit now writes RateLimit and RateLimit-Policy as the current
revision of the IETF draft (-11) defines them: Structured Field Lists of Items
named after the policy, instead of the -07 Dictionary and bare Item.
Header values, before and after, for a 10-request, 10-second policy:
Retry-After is unchanged. The limit moved from RateLimit to the policy's
q. A denial now always reports r=0, also on a backend that cannot count
what remains (the Cloudflare binding); an allowed request on such a backend
gets no RateLimit field, since r is required. A window under one second
drops w and keeps the policy. Writing the fields onto a response keeps Items
other policies already put there, replaces one of the same name, and keeps
the longer Retry-After, so nested limiters each report their own policy.
Migration:
rateLimitHeaders, applyRateLimitHeaders and tooManyRequests take a
policy where they took a window. An adapter is one, so pass it whole:
Update anything that reads or asserts the old values. A client that read
limit, remaining and reset reads q from RateLimit-Policy, and r
and t from RateLimit:
partitionKey (a Uint8Array) writes pk on both fields. quotaExceeded
answers the draft's quota-exceeded problem type as application/problem+json,
naming the policy in violated-policies:
if (!decision.allowed) return quotaExceeded(decision, adapter, "Try again in 7 seconds."); // {"type":"https://iana.org/assignments/http-problem-types#quota-exceeded", …, // "violated-policies":["default"]}
DEFAULT_POLICY_NAME, QUOTA_EXCEEDED_TYPE and the RateLimitPolicy and
QuotaUnit types are exported too.
@sdxc/rdap
Report the fields a registry redacted under RFC 9537
A domain lookup now reads the response's RFC 9537 redacted member into
domain.redacted, and the new isRedacted() tells a field the registry
withheld from one the registration never had:
import { isRedacted, RDAP } from "@sdxc/rdap"; let looked = await rdap.domain("example.com"); if (isSuccess(looked) && isRedacted(looked.data, "registrant.email")) { // show "hidden by the registry" instead of "not published" }
Each RDAP.Redaction keeps the entry's name, method (removal,
emptyValue, partialValue or replacementValue, defaulting to
removal), prePath/postPath/replacementPath, pathLang and
reason, plus the field it resolves onto: handle, or a lowercased role
and contact field such as registrant.name, technical.phone or
abuse.email. The field is read from the JSONPath first (jCard and
JSContact shapes) and from the registered name (Tech Email, Registry Domain ID) when the path says nothing; a contact removed whole
(administrative.contact) redacts each of its fields.
RDAP.Domain gains the redacted array, empty when a registry publishes
none. Code that builds an RDAP.Domain by hand must add it.
Read entity contacts from JSContact cards and jCards alike
A domain lookup now answers domain.contacts: every entity of the
response, nested ones after their parent, as one RDAP.Contact whether the
server sent a jCard vcardArray or a JSContact jscontact_card
(draft-ietf-regext-rdap-jscontact):
let looked = await rdap.domain("example.com"); let registrant = looked.data.contacts.find((c) => c.roles.includes("registrant")); registrant?.name; // "Joe User", or null when absent or redacted registrant?.card; // the card as a JSContact Card, via @sdxc/jscontact
Each contact carries roles, handle, kind, name, organization,
emails, phones, faxes, address, contactUri and url; an emptied
(redacted) value reads as null, and isRedacted tells it apart from a
missing one. RDAP.Registrar is read the same way, so a registrar that
only publishes a JSContact card now gets its name and abuse email, and a
card with an empty name falls back to its organization.
RDAP.Domain gains the contacts array, and the exported jCard helper
jCardText is gone; code that builds an RDAP.Domain by hand must add
contacts.
Read entity contacts from JSContact cards and jCards alike
A domain lookup now answers domain.contacts: every entity of the
response, nested ones after their parent, as one RDAP.Contact whether the
server sent a jCard vcardArray or a JSContact jscontact_card
(draft-ietf-regext-rdap-jscontact):
let looked = await rdap.domain("example.com"); let registrant = looked.data.contacts.find((c) => c.roles.includes("registrant")); registrant?.name; // "Joe User", or null when absent or redacted registrant?.card; // the card as a JSContact Card, via @sdxc/jscontact
Each contact carries roles, handle, kind, name, organization,
emails, phones, faxes, address, contactUri and url; an emptied
(redacted) value reads as null, and isRedacted tells it apart from a
missing one. RDAP.Registrar is read the same way, so a registrar that
only publishes a JSContact card now gets its name and abuse email, and a
card with an empty name falls back to its organization.
RDAP.Domain gains the contacts array; code that builds an
RDAP.Domain by hand must add it.
@sdxc/robots
Read, write and evaluate IETF AI Preferences Content-Usage signals
@sdxc/robots now supports the IETF AI Preferences drafts (draft-ietf-aipref-vocab and
draft-ietf-aipref-attach) beside the existing Content-Signal line.
A robots.txt Content-Usage rule, with or without a leading path pattern, is parsed into
group.contentUsage and written back by stringify. contentUsage() answers the preferences
a file states for one agent and URL: the longest matching pattern decides (no pattern counts as
/), rules tied at that length combine with the most restrictive preference winning, and a
disallowed URL answers null, since it carries no preferences.
Preferences are Robots.UsagePreferences: true allows a category, false disallows it, and a
missing label is unknown. Labels are case-sensitive, so an invalid field leaves every category
unknown. The package now depends on @sdxc/structured-fields and @sdxc/result, with remix as
a peer. No existing API changes.
@sdxc/rss
Read and write RFC 5005 complete and archive markers
RSS.Channel gains fhComplete and fhArchive, the Feed Paging and Archiving (RFC 5005)
markers fh:complete and fh:archive. Parsing sets them from the elements, judged by the
http://purl.org/syndication/history/1.0 namespace whatever prefix binds it, so they no
longer land in extensions. Serializing writes them back, declaring xmlns:fh when the
document binds none:
let rss = new RSS({ title, link, description, fhComplete: true }); rss.toString(); // … xmlns:fh="http://purl.org/syndication/history/1.0" … <fh:complete/>
The paging and archive relations travel as atomLink entries (rel: "prev-archive" and
so on), as before. A consumer that read the markers out of channel.extensions reads
channel.fhComplete or channel.fhArchive instead.
@sdxc/sample
Republished because @sdxc/dates changed.
@sdxc/scim
Breaking: Page lists by cursor and sign SCIM event tokens
Lists can now page by cursor (RFC 9865), and the new @sdxc/scim/events
entry point builds and signs SCIM events (RFC 9967).
Cursor pagination: pass cursor: true to parseListQuery or
parseSearchRequest to read the cursor parameter. query.cursor is
null for an index request, "" for the first cursor page (a bare
?cursor), or the cursor the client sent back. Answer a cursor page with
nextCursor instead of startIndex; leaving it out marks the last page:
let query = parseListQuery(url, { maxCount: 200, cursor: true }); if (isFailure(query)) return errorResponse(query.error); if (query.data.cursor !== null) { let page = await store.after(query.data.cursor, query.data.count); return listResponse( { resources: page.users, totalResults, nextCursor: page.next }, toWire, ); }
defaultPagination: "cursor" pages requests that name neither cursor nor
startIndex by cursor. A cursor outside RFC 3986's unreserved characters
fails 400 invalidCursor, and a request that sends both cursor and
startIndex fails 400 invalidValue. Scim.ErrorType now includes
invalidCursor, expiredCursor and invalidCount. serviceProviderConfig
takes a pagination option to advertise RFC 9865's capability:
SCIM events: createScimEvent builds a Security Event Token with a fresh
jti, the subject in sub_id, and the events from the scimEvents builders.
It is typed secevent+jwt and signed through @sdxc/jwt:
import { createScimEvent, scimEvents } from "@sdxc/scim/events"; let signed = await createScimEvent({ issuer: "https://scim.example.com", audience: "https://receiver.example.com/events", subject: { uri: `/Users/${id}`, externalId }, events: [scimEvents.create({ data: userResource(user) })], }).sign(JWK.Algorithm.ES256, keys);
ScimEventToken.verify refuses any other token type. prefersAsync and
acceptedResponse handle Prefer: respond-async and the empty 202 with
Set-Txn, and serviceProviderConfig takes a securityEvents option.
Delivering the tokens (RFC 8935 push or RFC 8936 poll) stays with the app.
Breaking: Scim.ListQuery has a new required cursor field, and Scim.Page
is now Scim.IndexPage | Scim.CursorPage. Code that builds a query by hand
must add the field:
// before let query: Scim.ListQuery = { filter: null, startIndex: 1, count: 100, ... }; // after let query: Scim.ListQuery = { filter: null, startIndex: 1, cursor: null, count: 100, ... };
Code that reads page.startIndex from a Scim.Page must type the page as
Scim.IndexPage. Pages passed to listResponse need no change.
Ship the event builders that @sdxc/scim/events imports
The previous commit published the @sdxc/scim/events entry point without
the modules it re-exports (createScimEvent, ScimEventToken, scimEvents,
EVENT_URIS, prefersAsync, acceptedResponse), so importing it failed to
resolve. They ship now, with the RFC 9865 and RFC 9967 tests and fixtures.
Both commits land in the same release, so consumers need no action.
Build SCIM event tokens on SecurityEventToken
ScimEventToken now extends SecurityEventToken from @sdxc/jwt instead of JWT.
createScimEvent builds it with SecurityEventToken.create. The package no longer
depends on @sdxc/uuid.
Building and signing a SCIM event works as before. subjectId still reads only a scimsub_id, and transaction and events return the same values. The token also gains the
timeOfEvent accessor and setters for subjectId, transaction and events.
ScimEventToken.verify now holds a token to RFC 8417's claim rules as well as the
secevent+jwt type. It refuses a token that has no iss, iat, jti or aud, has an
empty or non-object events, or carries exp. Every token createScimEvent builds
passes these checks, so a receiver of SCIM events from this package doesn't need to act.
A receiver of hand-built tokens that lack those claims will now see them refused.
@sdxc/scitt
Add the @sdxc/scitt package
New package for SCITT (RFC 9943) on the issuer and verifier sides: Signed
Statements over COSE_Sign1, Receipts with RFC 9162 inclusion proofs (RFC
9942), Transparent Statements, and a client for the SCITT Reference API
(draft-ietf-scitt-scrapi-11).
typescript
import{ attachReceipts, signStatement,TransparencyService, verifyTransparentStatement }from"@sdxc/scitt";let statement =unwrap(awaitsignStatement({ issuer, subject, payload, key }));// key: { id, alg, private }let service =newTransparencyService("https://transparency.example");let receipt =unwrap(await service.submit(statement));// POST /entries, then polls the Locationlet transparent =unwrap(attachReceipts(statement,[receipt]));let keys =unwrap(await service.keys());// /.well-known/scitt-keyslet result =awaitverifyTransparentStatement(transparent,{ keys, issuerKey });
Statements carry the algorithm, kid, content type and the CWT iss and
sub claims in the protected header; an @sdxc/jwt key pair signs them
directly. A Receipt verifies when its inclusion proof leads from the leaf
hash of the registered entry (the statement with an empty unprotected header)
to a root the service signed. Service keys are matched by kid or by RFC 9679
thumbprint. The client honors Retry-After, otherwise backs off with jitter,
and reports Concise Problem Details errors in ServiceError.
@sdxc/search
Republished because @sdxc/pagination changed.
@sdxc/security-headers
Republished because @sdxc/structured-fields changed.
@sdxc/seo
Republished because @sdxc/robots changed.
@sdxc/spam
Republished because @sdxc/doh changed.
@sdxc/spec
Republished because @sdxc/jsonl changed.
@sdxc/structured-fields
Write RateLimit as a List of policy Items in examples
The README's examples write RateLimit in the shape the current rate limit
draft defines, "default";r=0;t=7, and the empty-Dictionary pattern uses
Priority. The package's behavior is unchanged; no action needed.
@sdxc/uri-template
Add @sdxc/uri-template for RFC 6570 URI Templates
New package. It expands URI Templates at all four levels: every operator
({var}, {+var}, {#var}, {.var}, {/var}, {;var}, {?var}, {&var}) with the
:N prefix and * explode modifiers, over strings, numbers, lists and
associative arrays. It also parses a template into its parts and matches
a URI back to the variables that produced it.
import { UriTemplate, expand } from "@sdxc/uri-template"; import { unwrap } from "@sdxc/result"; expand("{/path*}{?q}", { path: ["docs", "api"], q: "a b" }); // success("/docs/api?q=a%20b") let file = unwrap(UriTemplate.parse("file:///{+path}")); file.match("file:///docs/a%20b.txt"); // success({ path: "docs/a b.txt" })
match() returns null for a URI the template cannot produce. It fails
for a template whose adjacent expressions have no boundary between them,
such as {a}{b}, rather than guessing. Parse and expansion failures are
UriTemplateError values with an offset into the template. Every case in
the uritemplate-test suite passes, and matching inverts each of its
expansions.
@sdxc/web-push
Republished because @sdxc/jwt changed.
@sdxc/webhooks
Add the source of the security-events entry point
This adds the @sdxc/webhooks/security-events code, tests and README section that the
previous feat(webhooks): Deliver Security Event Tokens by push and poll describes:
transmitSet, setReceiver, verifySetRequest, verifySet, setAccepted,
setRejected, answerPoll, pollSets, verifyPolledSets, MemorySetStore and the
SetStore interface. That note covers how to use them. This commit adds nothing beyond
it, and consumers don't need to act.
@sdxc/webmention
Republished because @sdxc/link-header changed.
@sdxc/websub
Republished because @sdxc/link-header changed.
@sdxc/well-known
Add the Web Bot Auth key directory and a sign step for served documents
@sdxc/well-known/http-message-signatures-directory reads, builds and serves the HTTP
Message Signatures Directory from draft-ietf-webbotauth-httpsig-protocol: the JWK Set a
signing bot publishes at /.well-known/http-message-signatures-directory, answered as
application/http-message-signatures-directory+json with Access-Control-Allow-Origin: *.
parse(text) keeps public, asymmetric keys whose alg (if any) is a registered HTTP
signature algorithm and whose nbf/exp are numbers, counting the rest in skipped.
build(keys) publishes each key's public half with use: "sig", and fails for a
symmetric key or one without kid. Set kid to the key's RFC 7638 thumbprint
(JWK.thumbprint in @sdxc/jwt).
httpMessageSignaturesDirectory is the descriptor serve and respond take.
respond and serve also take a sign(response, request) option that runs over the full
200 response before a 304 or HEAD drops the body, so a message signature can cover its
digest, as the directory's own signature does:
Leave ext out of a built key directory and refuse JOSE alg names
build from @sdxc/well-known/http-message-signatures-directory published a key's ext
member, which a key exported from Web Crypto carries, and published any alg it was
given, including JOSE names such as EdDSA or Ed25519. parse drops a key whose
alg is not a registered HTTP signature algorithm, so verifiers skipped that key.
Now build publishes each key without ext, and answers an issue at /keys/<n>/alg
for an alg outside the HTTP Signature Algorithms registry. Remove the JOSE alg from
a key before building, or set it to the HTTP name (ed25519); keys without alg are
published as before.
Model PAR and request object members in authorization server metadata
AuthorizationServerMetadata (and so OpenIdProviderMetadata) now types the members
RFC 9126 (Pushed Authorization Requests) and RFC 9101 (JWT-Secured Authorization
Requests) add to the metadata registry, so a server publishes them and a client reads
them without going through extensions:
requestParameterSupported and requestUriParameterSupported moved from the OpenID
Connect document to the RFC 8414 one; OpenIdProviderMetadata still has both, so
code reading them needs no change. One behavior change for RFC 8414 readers: parse
now reads an absent request_uri_parameter_supported as true (the registry's
definition), and stringify writes the member only when it is false. A server that
does not fetch request objects by reference should set it to false explicitly;
before, a define'd RFC 8414 document carried the member under extensions only.
Add OAuth Client ID Metadata Documents
@sdxc/well-known/client-id-metadata-document reads, writes and serves the document
from draft-ietf-oauth-client-id-metadata-document-02: the RFC 7591 client metadata a
client publishes at the https URL it uses as its client_id, the scheme MCP clients
use to reach an authorization server they never registered with.
An authorization server checks a fetched document with parse, passing the URL it
fetched:
parse fails when client_id differs from the fetched URL by simple string comparison
(https://example.com:443/client is not https://example.com/client), on a
client_secret or client_secret_expires_at member, on a secret-based or unknown
token_endpoint_auth_method (it accepts none, private_key_jwt, tls_client_auth and
self_signed_tls_client_auth), on private_key_jwt or self_signed_tls_client_auth
without exactly one of jwks and jwks_uri, on private key material in jwks, on a
redirect URI with a fragment or a javascript:/data: scheme, and on an empty
redirect_uris for the authorization_code or implicit grant. An absent
token_endpoint_auth_method reads as none. isClientIdentifierUrl applies the draft's
§3 rules: https, a path, and no userinfo, dot segments or fragment.
A client publishes its own document with define and the existing respond, which
answers with application/json, a public one-hour Cache-Control, an ETag and 304s:
stringify always writes token_endpoint_auth_method, because RFC 7591 reads an absent
one as client_secret_basic, and publishes only each key's public half from jwks.
Existing subpaths are unchanged.
Serve an RFC 9727 API catalog at /.well-known/api-catalog
The new @sdxc/well-known/api-catalog entry builds, reads and serves the API catalog RFC
9727 defines: an application/linkset+json link set, with the RFC 9727 profile
parameter, listing the APIs a host publishes and where to find each one's OpenAPI
document, documentation, policies and health endpoint.
build writes an item link from the catalog to each API and anchors each API's
service-desc, service-doc, service-meta and status links at its endpoint, with
every path made absolute against the catalog's URL; catalogs nests other catalogs.
Served through wellKnown(), every answer, HEAD included, carries
Link: </.well-known/api-catalog>; rel="api-catalog" as RFC 9727 requires, plus CORS.
parse reads any catalog into the links @sdxc/link-header/linkset models.
WellKnownFormat gains an optional headers member that respond() and serve() set on
every answer. Existing formats leave it out and answer as before.
Sign security.txt with an OpenPGP cleartext signature
RFC 9116 recommends serving security.txt as an OpenPGP cleartext signed
message. The new cleartextSigner() from @sdxc/well-known/security-txt
does that through @sdxc/openpgp, plugged in with the new transform option
that serve() and respond() accept:
key reads an armored OpenPGP private key on each call, and passphrase
optionally unlocks it. With no key the file is served unsigned as before.
A key that cannot be read or used is reported to onError, and the file is
then also served unsigned. Each distinct body is signed once, so repeated
answers keep one ETag.
transform(body) rewrites any well-known document's serialized body before
its ETag is computed. Nothing changes for callers that do not pass it.
Model the DPoP and JWT introspection algorithm lists
AuthorizationServerMetadata (and so the OpenID Connect discovery document) gains two
RFC 8414 registry members, read and written like the other algorithm lists:
dpopSigningAlgValuesSupported (dpop_signing_alg_values_supported, RFC 9449 §5.1):
the algorithms a DPoP proof may be signed with.
introspectionSigningAlgValuesSupported (introspection_signing_alg_values_supported,
RFC 9701 §7): the algorithms a JWT introspection response is signed with.
Both default to an empty list and are left out of the document when empty. A document
read before this change that carried either member under extensions now carries it
in the typed field instead.
@sdxc/workers-cache
Declare CDN-Cache-Control and Cloudflare-CDN-Cache-Control lifetimes
ctx.cache() now takes cdn and cloudflare in its object form, written as
the RFC 9213 CDN-Cache-Control and Cloudflare-CDN-Cache-Control fields. The
edge obeys them over Cache-Control, so it can keep a page far longer than
browsers do and still drop it on a purge:
cdn is forwarded to any CDN in front of the edge; cloudflare is read only by
the edge, which takes it over cdn. A later declaration replaces the earlier
policy and its targeted fields together.
The safety checks now cover what a CDN actually obeys. On a request with a
session (or, without session middleware, any cookie), a valid targeted field
that lacks private and no-store is refused even when Cache-Control is
private, with the new CacheRefusalReason"session-with-shared-targeted-policy";
this includes targeted fields the handler set on the response itself. Invalid
or empty targeted fields are judged as absent, since caches ignore them. Every
downgrade, including the Set-Cookie one, now also removes both targeted
fields, so the edge falls back to private, no-store. The applied-policy log
line records the field the edge follows as cache.edge_field.
CDN_CACHE_CONTROL_HEADER, CLOUDFLARE_CDN_CACHE_CONTROL_HEADER and
EDGE_TARGETED_HEADERS (the edge's target list, most specific first) are
exported. Declarations without targeted fields behave as before.
@sdxc/zone-file
Breaking: Read SVCB, HTTPS, TLSA, DS, DNSKEY, CDS and CDNSKEY data into typed fields
parseRecordData, parse and formatRecordData now read and print seven more record types,
from presentation format and from RFC 3597 generic data alike:
SVCB and HTTPS (RFC 9460): { priority, target, params }, where params holds each
SvcParam as a camelCase field (mandatory, alpn, noDefaultAlpn, port, ipv4Hint,
ech, ipv6Hint, dohPath, ohttp) and any other key under other by key number.
DS and CDS (RFC 4034, RFC 7344): { keyTag, algorithm, digestType, digest }; algorithm
mnemonics such as RSASHA256 read as their number.
DNSKEY and CDNSKEY: { flags, zoneKey, secureEntryPoint, protocol, algorithm, publicKey, keyTag }, where keyTag is the RFC 4034 Appendix B tag a DS record names the key by.
Hex prints lowercase, base64 without whitespace, and SvcParams in key order, so a zone file's
spelling and a resolver's generic form of one record print to the same string. A new
typeCode maps a mnemonic or TYPEnnn to its number.
Breaking: records of these types used to come back untyped as { type, data } with the RDATA
as written (and, from parse, an origin). Code that read data from one of them must read
the typed fields instead, or print them back with formatRecordData:
Data that does not fit one of these types now fails with RecordDataError in
parseRecordData and becomes an invalid-data rejection in parse, where it used to be
accepted verbatim.
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/api-client
Republished because @sdxc/trace-context changed.
@sdxc/assets-middleware
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/attribution
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/auth
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/authz
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/backoff
Republished because @sdxc/random changed.
@sdxc/billing
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/bracket-params
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/cache
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/captcha
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/catch-response-middleware
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/cli
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/cloudflare-mocks
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/data-model
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/data-table-d1
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/data-table-sqlstorage
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/database-middleware
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/diagram
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/digest-fields
Republished because @sdxc/structured-fields changed.
@sdxc/distill
Republished because @sdxc/html changed.
@sdxc/doh
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/email-address
Republished because @sdxc/doh changed.
@sdxc/expression
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/feed
Republished because @sdxc/outbound changed.
@sdxc/file-storage-r2
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/flags
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/flags-engine
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/get-client-ip
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/highlight
Republished because @sdxc/markdown changed.
@sdxc/honeypot
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/hostname
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/html
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/http
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/http-signatures
Republished because @sdxc/digest-fields changed.
@sdxc/i18n
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/icons
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/idempotency
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/jobs
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/json-schema
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/jwt
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/kit
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/lazy-frame
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
Prefetch a dialog's frame on intent shown on its opener
A LazyFrame with loadOn="open" and an opener takes a new prefetch
prop. With it, the frame's src is fetched ahead as soon as the visitor
rests the mouse or keyboard focus on the opener for 100ms, or presses it,
so the dialog's content is warm when it opens:
<LazyFrame src="/jobs/1?frame" loadOn="open" opener="job-1" prefetch> <a href="/jobs/1">Read the full posting</a> </LazyFrame>
The request goes through prefetch() from remix/component: it sends the
same Accept: text/html and X-Remix-Frame: true headers as the frame,
hints the scripts, stylesheets and preloads the response names, and runs
only where the runtime intercepts navigations. It fires at most once per
opener and is skipped when the visitor saves data or is on a 2G link.
The frame reuses the prefetched HTML from the browser's HTTP cache only when
the server makes the response cacheable, for example with
Cache-Control: private, max-age=30; without such a header the frame fetches
it again. The prop defaults to off, so existing frames behave as before.
@sdxc/lazy-route
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/logger
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/mail
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/markdown
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/math
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/mcp
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/merge-patch
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/messaging
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/microformats
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/micropub
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/newsletter
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/no-www-middleware
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/openapi
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/outbound
Republished because @sdxc/doh changed.
@sdxc/pagination
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/passkey
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/problem
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/qr
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/random
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/rate-limit
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/rdap
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/sample
Republished because @sdxc/jwt changed.
@sdxc/scim
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/search
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/security-headers
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/seo
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/session-storage-kv
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/sitemap
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/spam
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/spec
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/structured-fields
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/trace-context
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/trailing-slash-middleware
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/u
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/ui
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
Prefetch a Link or LinkButton destination with the prefetch prop
Link and LinkButton accept an optional prefetch prop that starts loading
the destination page before the visitor navigates. "intent" prefetches
once the visitor rests the pointer or focus on the link, or presses it;
"viewport" prefetches once the link scrolls into view. The default,
"none", renders the anchor exactly as before.
The prop writes data-rmx-prefetch, which the remix/component runtime in
remix 3.1.0 reads, so it takes effect on pages that run that runtime. Mark
only links whose GET request is safe to repeat.
Share one prefetch contract across link components
@sdxc/ui/utils exports LinkPrefetch, the prefetch modes link components
accept ("none" | "intent" | "viewport" | "render"), with two helpers:
prefetchAttribute(mode) returns the data-rmx-prefetch value for the
modes the remix/component runtime reads, and rendersPrefetchHint(mode, href) says whether a <link rel="prefetch"> belongs beside the anchor.
import { prefetchAttribute } from "@sdxc/ui/utils";<a href={href} data-rmx-prefetch={prefetchAttribute(mode)}>…</a>
Existing components are unchanged by this commit.
Prefetch the option a combobox's arrows rest on
activeDescendantKeys takes an optional prefetch strategy. Once the arrow
keys rest on an option for 100ms, the option's same-origin link starts
loading, so pressing Enter lands sooner:
"frame" calls prefetch() from remix/component, which warms the HTTP
cache a client-side (frame) navigation reads. Use it where Remix handles
navigations and the pages are cacheable.
"document" appends a <link rel="prefetch"> to the document head, which a
full document load reuses. Use it where links load whole documents.
The new prefetchOption(combobox, index, strategy) loads an option's link
directly, for example the top result once new results settle:
prefetchOption(input, 0, "document");
Both skip readers with Save-Data on or a slow-2g/2g connection, links to
another origin, links that open elsewhere or download, the page already
showing, and a destination loaded in the last five minutes. Without
prefetch the mixin behaves exactly as before; nobody needs to change code.
Prefetch Pagination, NavigationMenu and Sidebar link destinations
Pagination.Link, NavigationMenu.Link, Sidebar.MenuLink and
Sidebar.MenuSubLink accept a prefetch prop with the same modes as
Link: "none" (the default) writes nothing, "intent" and "viewport"
write data-rmx-prefetch on the anchor for the remix/component runtime, and
"render" renders a <link rel="prefetch"> right after the anchor, which
also serves full-document navigations.
Each "render" hint is a request on page load, so in a menu or sidebar keep
it to the first few links; on pagination it suits the next-page link.
Existing links are unchanged until they set the prop.
Prefetch link destinations on render or intent from every link
Link, LinkButton, NavLink and Breadcrumbs.Link now accept the same
prefetch prop: "none" (the default), "intent", "viewport" or the new
"render". "intent" and "viewport" write data-rmx-prefetch on the anchor
for the remix/component runtime; "render" instead renders
<link rel="prefetch" href> right after the anchor, so the browser fetches the
destination as soon as the page loads, which also serves full-document
navigations. A link without an href renders no hint.
Each "render" hint is a request on page load, so keep it to the first few
items of a list. Link.Prefetch, LinkButton.Prefetch, NavLink.Prefetch and
Breadcrumbs.Prefetch name the shared mode type.
Group now flattens a control's end corners only when another control follows
it, so the last control keeps its rounded corners when a "render" prefetch hint
sits after it. No consumer action is needed.
Submit a form into its frame and keep a frame current with frameSubmit and frameRefresh
Two new mixins in @sdxc/ui/mixins drive the frame that renders their host.
frameSubmit(options?) goes on a <form> inside a frame. On submit it checks the form's
validity, then sends the form's data through the frame and renders the answer there in one
request, honoring the submitting button's formaction, formmethod and formenctype. The
form carries aria-busy="true" while the request runs, and dispatches a ui:frame-submit
event (FrameSubmitEvent) whose state is pending, then settled, aborted or failed.
Afterwards the frame returns to its own address, so the action should answer a frame request
with the frame's content; a redirect to the frame's route works. Pass { keepSrc: false }
to have the frame adopt the action's address instead. Without JavaScript the form submits as
a normal document request.
frameRefresh(options) reloads the enclosing frame every every milliseconds, whenever the
on event reaches the host, or both. One reload runs at a time, the schedule rests while the
page is hidden and reloads once when it is shown again, and an until callback stops it for
good once it returns true.
Document FrameSubmitEvent's state field
The state field on FrameSubmitEvent now carries its own doc comment: it reports where a frameSubmit submission stands, with pending always first. No behavior changes and no consumer action is needed.
@sdxc/user-agent
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/validate
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/web-push
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/webhooks
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/webmention
Republished because @sdxc/html changed.
@sdxc/websub
Republished because @sdxc/outbound changed.
@sdxc/well-known
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
@sdxc/workers-cache
Upgrade Remix to 3.1.0
Every @sdxc package that depends on or peers with remix now pins remix
3.1.0 instead of 3.0.0, and new apps from the kit template start on it.
Remix 3.1.0 is a minor release with no breaking changes: server rendering
with remix/component is about twice as fast, and it adds
createMixin(setup, { ssr: false }), frame.reload(), frame prefetching and
streaming form-data parsing under the /future entry points.
Consumers upgrade remix to 3.1.0 alongside these packages:
bun add remix@3.1.0
No code changes are needed. The sweep also picks up in-range updates of
@cloudflare/workers-types, @cloudflare/vite-plugin, wrangler, jose,
linkedom and lucide-static, none of which change any package's API.
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/cache
Republished because @sdxc/logger changed.
@sdxc/cli
Satisfy Oxlint shape rules without API changes
No consumer effect: parameter reassignment, nested ternaries, bare returns, Promise constructor names, and accumulating spreads are rewritten so vp lint passes under the new deny rules.
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
Print ExecError stderr on command failure
A failed child kept its stderr on the error while the run only printed
the exit summary, so CI saw "exited with 1" without wrangler or cf's
authentication lines. Failure output now includes that stderr.
typescript
// before: stderr was only "bunx wrangler … exited with 1"// after: that line, then wrangler's Authentication error body
@sdxc/codemod
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/cron
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/crypto
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/data-model
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/database-middleware
Republished because @sdxc/cli changed.
@sdxc/diagram
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/digest-fields
Republished because @sdxc/crypto changed.
@sdxc/distill
Republished because @sdxc/html changed.
@sdxc/epub
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/feed
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Restore author-list typing after nested-ternary rewrite
Callers are unaffected. The nested-ternary rewrite left source untyped, so typecheck rejected the JSON Feed author fallback; the array is annotated as JSONFeed.Author[] again.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/flags
Satisfy Oxlint shape rules without API changes
No consumer effect: parameter reassignment, nested ternaries, bare returns, Promise constructor names, and accumulating spreads are rewritten so vp lint passes under the new deny rules.
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/flags-engine
Republished because @sdxc/flags changed.
@sdxc/highlight
Republished because @sdxc/markdown changed.
@sdxc/honeypot
Republished because @sdxc/crypto changed.
@sdxc/hostname
Republished because @sdxc/api-client changed.
@sdxc/html
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Type selected option list in embeddedValue
Callers are unaffected. The nested-ternary rewrite left chosen as an implicit any[]; it is typed as the option NodeList result so .map typechecks.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/http
Republished because @sdxc/crypto changed.
@sdxc/http-signatures
Republished because @sdxc/crypto changed.
@sdxc/i18n
Republished because @sdxc/cli changed.
@sdxc/idempotency
Republished because @sdxc/crypto changed.
@sdxc/iife
Restore the expression control-flow helper
Import { iife } from @sdxc/iife and wrap short statement-only branches
that compute one value: let x = iife(() => { if (a) return b; return c; }),
or await iife(async () => …) when the callback is async. Prefer that over an
outer mutable let filled by if/else when rewriting nested ternaries
(ADR-171, ADR-172).
@sdxc/jobs
Republished because @sdxc/cli changed.
@sdxc/json-schema
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Type nullable schema type list
Callers are unaffected. The nested-ternary rewrite left types as an implicit any[]; it is annotated as JSONSchema.TypeName[] so withNull typechecks.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/kit
Let sdxc run start a configurable entry module
Projects set run.entry in .config/sdxc.jsonc (default bootstrap/cli.ts)
so a non-app repo can point sdxc run at cli/index.ts without inventing
a bootstrap/ tree. sdxc deploy uses the same entry. Schema and README
reference regenerated.
Consumers: leave the default for apps; set "run": { "entry": "cli/index.ts" }
in .config/sdxc.jsonc when the command line lives elsewhere.
Add setup, fix, and binding generators with project author credit
sdxc setup installs auth, billing and flags from a printed plan (-y writes);
sdxc fix repairs commands, .env.example secrets, models and emails; make secret / make binding / make do declare Worker bindings. Setup-written
files close their module JSDoc with @author / @copyright from the project's
package.json author or git user.name, the same path make stubs use.
sdxc setup auth -ysdxc fix envsdxc make binding kv CACHE
Consumers must act only to fill the secrets a plan names and map new routes.
Sync README reference and help snapshot with new commands
Adding setup, fix, and make secret/binding/do left the README command
reference and the --help snapshot behind the contract. Regenerate with
bun run kit:reference and list the new top-level commands in the help
test so CI matches what createSDXC() describes.
No consumer action; docs and test expectations only.
Add architecture diagram and clean-code doctor checks
sdxc diagram prints a Mermaid flowchart of app-layout layer imports
(and optional SVG via @sdxc/diagram / --json for agents).
sdxc doctor gains complexity, module-size, dependencies and
crap checks — project-level metrics oxlint does not cover. Defaults
(cyclomatic 4, module 200 lines, CRAP 12) live under
doctor.complexity and are tuned for agent-written code.
Terminal
sdxc diagramsdxc diagram --svg architecture.svgsdxc doctor --only complexity,dependencies,crap
Configure thresholds in .config/sdxc.jsonc under doctor.complexity.
Give each doctor check its own config group
Split the shared doctor.complexity object so complexity,
module-size and crap each read a sibling group
(doctor.complexity, doctor.moduleSize, doctor.crap), matching
doctor.migrations. There is no shared clean-code config bucket.
Satisfy Oxlint shape rules without API changes
No consumer effect: parameter reassignment, nested ternaries, bare returns, Promise constructor names, and accumulating spreads are rewritten so vp lint passes under the new deny rules.
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Flatten doctor positive-integer schema nesting
Callers are unaffected. unicorn/max-nested-calls rejected s.integer().pipe(checks.min(1)) inside the doctor complexity, module-size and CRAP leaves; those leaves share a module-level POSITIVE_INTEGER schema instead.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
Add fan-out, orphans, duplication and related doctor checks
sdxc doctor now warns on fan-out, orphan modules, feature-folder
scatter, duplicated blocks, bare throw, low test/code ratio, and
surviving mutants (skip without a report). Each threshold lives under
its own doctor.* group (testRatio, fanOut, duplication,
mutation). ADR-173.
Drop ADR citation from feature-scatter module comment
Comments state the contract on their own terms; ADR numbers belong under
docs/adr/, not in JSDoc.
Format doctor config leaves under nested-call ceiling
Rebase left packages/kit/src/config.ts unformatted, which failed CI
bun check. Extract NON_NEGATIVE_INTEGER, INTEGER_AT_LEAST_TWO and
NON_NEGATIVE_NUMBER beside POSITIVE_INTEGER so the new doctor leaves
stay under unicorn/max-nested-calls after formatting.
Surface migrate child stderr when deploy listing fails
sdxc deploy wrapped a failed db migrate --remote --pending with only
the ExecError message, dropping the child's stderr. The failure now
includes that detail so a missing D1 permission shows wrangler/cf's
reason in the deploy log.
Before: Listing pending migrations … exited with 1
After: the same line plus the child's Authentication error (or similar)
stderr. No consumer action required beyond reading the clearer log.
@sdxc/logger
Republished because @sdxc/cli changed.
@sdxc/mail
Satisfy Oxlint shape rules without API changes
No consumer effect: parameter reassignment, nested ternaries, bare returns, Promise constructor names, and accumulating spreads are rewritten so vp lint passes under the new deny rules.
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Narrow failed-preview subject for empty-state title
Callers are unaffected. Assigning selected.subject into a string empty-state title after the nested-ternary rewrite needed a ?? "" fallback when the subject is missing.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/markdown
Satisfy Oxlint shape rules without API changes
No consumer effect: parameter reassignment, nested ternaries, bare returns, Promise constructor names, and accumulating spreads are rewritten so vp lint passes under the new deny rules.
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Type emphasis nodes before insertAfter
Callers are unaffected. The nested-ternary rewrite widened the emphasis local so insertAfter rejected it; the local is typed as Emphasis | Strong | Strikethrough again.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/math
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/mcp
Republished because @sdxc/json-schema changed.
@sdxc/messageformat
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/messaging
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/microformats
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/micropub
Republished because @sdxc/microformats changed.
@sdxc/newsletter
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/openapi
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/opml
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
@sdxc/pagination
Republished because @sdxc/crypto changed.
@sdxc/passkey
Republished because @sdxc/crypto changed.
@sdxc/password-policy
Republished because @sdxc/crypto changed.
@sdxc/png
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/qr
Satisfy Oxlint shape rules without API changes
No consumer effect: parameter reassignment, nested ternaries, bare returns, Promise constructor names, and accumulating spreads are rewritten so vp lint passes under the new deny rules.
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/raster
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/rate-limit
Republished because @sdxc/logger changed.
@sdxc/rdap
Republished because @sdxc/cache changed.
@sdxc/saml
Republished because @sdxc/crypto changed.
@sdxc/sample
Satisfy Oxlint shape rules without API changes
No consumer effect: parameter reassignment, nested ternaries, bare returns, Promise constructor names, and accumulating spreads are rewritten so vp lint passes under the new deny rules.
@sdxc/scim
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Type multi-valued patch incoming values
Callers are unaffected. The nested-ternary rewrite left incoming as an implicit any[]; it is annotated as unknown[] so filter and iteration typecheck.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/search
Republished because @sdxc/pagination changed.
@sdxc/security-headers
Republished because @sdxc/crypto changed.
@sdxc/seo
Republished because @sdxc/attribution changed.
@sdxc/spam
Republished because @sdxc/honeypot changed.
@sdxc/spec
Satisfy Oxlint shape rules without API changes
No consumer effect: parameter reassignment, nested ternaries, bare returns, Promise constructor names, and accumulating spreads are rewritten so vp lint passes under the new deny rules.
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/trace-context
Republished because @sdxc/cli changed.
@sdxc/u
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
@sdxc/ui
Satisfy Oxlint shape rules without API changes
No consumer effect: parameter reassignment, nested ternaries, bare returns, Promise constructor names, and accumulating spreads are rewritten so vp lint passes under the new deny rules.
Rewrite nested ternaries for eslint/no-nested-ternary
No consumer effect: nested ? : chains are rewritten to if/else or named locals so eslint/no-nested-ternary can stay denied without suppressions.
Narrow Attachment.Trigger inferred role
Callers are unaffected. The nested-ternary rewrite left inferredRole as string | undefined; it is typed as "link" | "button" | undefined so the trigger role prop typechecks.
Prefer iife for expression-shaped branches
Call sites that used an outer let filled by if/else after the nested-ternary
rewrite now use iife so the binding stays an expression. Consumers take
@sdxc/iife as a workspace dependency; runtime behavior is unchanged.
Add alphabet-based randomStringrandomString({ length, alphabet }) draws a cryptographically strong string
by rejection-sampling crypto.getRandomValues over a caller-chosen alphabet,
so every index is equally likely.
Use it when an existing format needs a custom character set (CSRF cookies,
honeypot field names). Prefer randomToken for new URL-safe secrets.
Default length is 32; default alphabet is A–Z a–z 0–9. Throws RangeError for
an invalid length (not an integer in 0..65536) or an empty / oversize alphabet.
@sdxc/data-model
Republished because @sdxc/jobs changed.
@sdxc/database-middleware
Republished because @sdxc/jobs changed.
@sdxc/digest-fields
Republished because @sdxc/crypto changed.
@sdxc/flags
Republished because @sdxc/jobs changed.
@sdxc/flags-engine
Republished because @sdxc/flags changed.
@sdxc/honeypot
Republished because @sdxc/crypto changed.
@sdxc/hostname
Republished because @sdxc/api-client changed.
@sdxc/http
Republished because @sdxc/crypto changed.
@sdxc/http-signatures
Republished because @sdxc/crypto changed.
@sdxc/idempotency
Republished because @sdxc/crypto changed.
@sdxc/jobs
Republished because @sdxc/trace-context changed.
@sdxc/kit
Type command handlers, mock the queue and clear stale typegen in new apps
Three fixes to the app sdxc create writes, and one to sdxc scaffold:
app/initializers/cli.ts now declares the CLITypes augmentation, so a command handler in
its own file reads ctx.db, ctx.models, ctx.email and ctx.intl with their types.
Before, ctx.models failed to type check (TS2339) until the augmentation was added by hand.
app/test/cloudflare-workers.ts now mocks the QUEUE binding with createQueue() from
@sdxc/cloudflare-mocks, so a test that enqueues a job or calls ctx.email.queue() runs
and can read the queued messages from env.QUEUE. Before, such a test failed.
sdxc run typegen now stamps .cloudflare/types/index.d.ts with the current time after
cf workers types succeeds. cf leaves an unchanged file alone, so after a config edit that
adds no binding (a cron trigger from sdxc make job --cron, say) sdxc doctor kept warning
that the types were stale; it now passes once typegen runs.
sdxc scaffold writes its migration header in the form sdxc make model and sdxc make migration use: -- CreatePosts: creates the posts table., then a blank line.
Existing apps can take the first three by hand: add to the end of app/initializers/cli.ts
add QUEUE: createQueue() to the env in app/test/cloudflare-workers.ts, and after the
cf workers types call in app/commands/typegen.ts call
utimes(".cloudflare/types/index.d.ts", now, now) from node:fs/promises. A project stub
for scaffold.migration.stub keeps its own header.
Enforce JSDoc shape in sdxc doctor
sdxc doctor gains a jsdoc check that walks app source and warns when a
comment is not JSDoc, when a description runs past three prose lines, when
@description appears, or when @param / @returns / @throws spill onto
a second line. Tooling directives stay allowed.
Terminal
sdxc doctor --only jsdoc
A finding names the file and line; the fix is to rewrite the comment within
those limits. Tags other than the one-line set do not count toward the
description budget.
Widen the command table for the JSDoc doctor line
The sdxc doctor row now mentions JSDoc beside layout, which lengthens the
column; oxfmt reflows the whole commands table to match.
No consumer-facing behavior change.
Generate pairing .spec files for controllers, commands, MCP and scaffolds
sdxc make controller, command and mcp now write a black-box .spec under
spec/ beside the Vitest test, and sdxc scaffold writes one feature suite for
the whole resource. Pages use browser, API routes use http, commands use
cli, and MCP tools use mcp. Scaffold mixes whichever surfaces it wrote.
Terminal
sdxc make controller about # also writes spec/about.specsdxc make controller keys --routes api # http .specsdxc make command users/grant # spec/commands/users/grant.specsdxc make mcp get-post # spec/mcp/get-post.specsdxc scaffold post title body --mcp# spec/posts.spec with browser + mcp
make.specs (default true) and --spec / --no-spec control it; sdxc destroy
removes the pairing file. Writing a .spec adds @sdxc/spec when missing. The
app template ships @sdxc/spec and a starter spec/config.jsonc.
@sdxc/mail
Republished because @sdxc/crypto changed.
@sdxc/messaging
Republished because @sdxc/api-client changed.
@sdxc/newsletter
Republished because @sdxc/api-client changed.
@sdxc/pagination
Republished because @sdxc/crypto changed.
@sdxc/passkey
Republished because @sdxc/crypto changed.
@sdxc/password-policy
Republished because @sdxc/crypto changed.
@sdxc/saml
Republished because @sdxc/crypto changed.
@sdxc/sample
Republished because @sdxc/crypto changed.
@sdxc/search
Republished because @sdxc/pagination changed.
@sdxc/security-headers
Republished because @sdxc/crypto changed.
@sdxc/spam
Republished because @sdxc/honeypot changed.
@sdxc/spec
Add an mcp capability for Streamable HTTP tool calls
Call a Streamable HTTP MCP server from a .spec without spelling JSON-RPC.
mcp.discover, mcp.list_tools and mcp.call POST through fetch with the
headers and _meta the protocol requires, resolve targets through bases like
http, and reuse --allow-net.
use mcpwhen { let tools = mcp.list_tools "/mcp" on "web" let result = mcp.call "/mcp" "search_jobs" { query: "Remix" } on "web"}then { expect result.ok true expect result.is_error false expect result.text …}
ok is HTTP 2xx with no JSON-RPC error; a tool-level isError surfaces as
is_error so the suite can assert it. text is the first text content block
and json prefers structuredContent. The Workers entry exports the same
factory — MCP is fetch-only.
Collect Chrome DevTools Protocol traces from browser specs
.spec files that use browser can record a Performance timeline, read
Chrome metrics, and send one-shot CDP commands:
use browseruse fstest "checkout leaves a Performance trace" { given { browser.trace.start browser.open "/checkout" on "web" } when { browser.click button "Pay" let trace = browser.trace.stop "checkout.json" } then { expect trace.path "checkout.json" expect file "checkout.json" exists }}
browser.trace.start / browser.trace.stop write chrome://tracing JSON
into the test workspace and return { path, event_count }.
browser.metrics returns Performance.getMetrics as a name→number
object. browser.cdp "Domain.method" [params] is the escape hatch for
any other one-shot CDP command.
Both the local agent-browser backend and the Cloudflare Browser Run
backend implement the same four tools (ADR-019).
Store Performance traces through artifacts without a filesystem
browser.trace.stop already writes chrome://tracing JSON into the test
workspace. Hosts that run specs without a filesystem — Cloudflare Workers
with createNoFilesystemWorkspace — had nowhere for that file to land.
When workspace.resolve refuses the path and the run supplies
context.artifacts, the tool now writes the JSON through the artifact
store and still returns { path, event_count }. A missing store fails
with a clear error instead of a filesystem exception.
typescript
awaitrunTests({ suite,createWorkspace: createNoFilesystemWorkspace,artifacts:{directory:"flow-traces",write:async(name, contents)=>{/* upload or buffer */return name;},},});
Drop the ADR citation from the Browser Run module comment
The module header already states that the binding is injected so this
package never owns the remote browser service. No API change.
@sdxc/trace-context
Republished because @sdxc/crypto changed.
@sdxc/ui
Animate the Sidebar's collapse in both directions
Before, collapsing a Sidebar with collapsible="offcanvas" or "icon"
left it at full width: the collapse rules lost to the rail's own size, so
inline-size and the slide-out transform never applied and nothing animated.
Now the rail shrinks and slides out together when collapsing and back in when
expanding, using its existing 200ms transition.
Consumers who worked around it, for example with a negative
margin-inline-start on the collapsed rail, should remove that override, or
the rail will be offset twice.
Set long-form Typeset body copy at 18px and 20px
Typeset used to set body copy at 16px for the docs preset (the default) and 18px for reading. docs is now 1.125rem (18px on a 16px root) and reading is 1.25rem (20px), so a documentation page or an article is large enough to read. chat stays at 15px.
No call-site change is required. Headings, code and tables still scale from --ui-typeset-size. To keep a 16px body, set that property on the host:
Describe a command line as data and check one without running it
Every CLI built with createCLI now answers --help --json with its contract as data,
and the CLI object gains two methods for tools that check command lines against it:
hello greet --help --json # { "title": "hello greet", "arguments": […], "flags": […], … } let description = cli.describe(["greet"]); let checked = await cli.check(["greet", "Ada", "--shuot"]); if (isFailure(checked)) console.error(checked.error.message);
cli.describe(path?) returns the command path names (the whole program without one)
with every visible member below it: arguments, flags with their short names, value
names, defaults and whether they repeat or take a list, and examples. The flags every
command answers, --help, --version and --no-progress, are listed with
builtin: true. It returns undefined for a path that names no command.
cli.check(argv) parses and checks a command line the way a run does before it asks
anything: unknown commands, unknown flags and values a schema rejects come back together
as one UsageError. A value a prompt would ask for counts as given, and no handler loads.
--help --json prints the same description; a --json after -- stays an argument.
The new CommandDescription, ArgumentDescription, FlagDescription and
CheckedCommand types are exported. Existing programs need no change.
Name three commands and count the rest when a flag belongs elsewhere
When a flag is passed to a command that does not declare it, the usage error
names the commands that do. Before, it listed every one of them, so a flag that
a whole group shares produced a line naming a dozen commands:
--force is not a flag of sdxc make migration; sdxc make, sdxc make controller, … and sdxc make test take it
Now it names the first three and counts the others:
--force is not a flag of sdxc make migration; sdxc make, sdxc make controller, sdxc make middleware and 10 more take it
Up to three commands are still listed in full. Nothing to change in your code;
a test asserting the full list of a flag shared by more than three commands
needs its expected message updated.
Name three commands and count the rest when a flag belongs elsewhere
When a flag is passed to a command that does not declare it, the usage error
names the commands that do. Before, it listed every one of them, so a flag that
a whole group shares produced a line naming over a dozen commands:
--force is not a flag of sdxc make migration; sdxc make, sdxc make controller, … and sdxc make test take it
Now it names the first three and counts the others:
--force is not a flag of sdxc make migration; sdxc make, sdxc make controller, sdxc make middleware and 12 more take it
Up to three commands are still listed in full. Nothing to change in your code;
a test asserting the full list of a flag shared by more than three commands
needs its expected message updated.
@sdxc/codemod
Append list entries with addElement and read source with tokenize
addElement(filename, source, { call, path?, value }) appends source text to a list in the
first call to call that has it: the call's own arguments, or, with path, the array literal
reached by key through the object literal the call receives. The entry follows the list's
layout, one per line with its siblings' indentation and trailing-comma style, or inline after
the last entry. A missing call, key or array fails with not-found.
import { addElement } from "@sdxc/codemod"; let edit = addElement("router.ts", source, { call: "createRouter", path: ["middleware"], value: "requestId()", });
tokenize(filename, source) and the Token/TokenType types are now exported, so a tool can
read JavaScript, TypeScript and JSX the way the edits do, with strings, template literals,
regular expressions, comments and JSX told apart. It returns a Result<Token[], CodemodError>.
Existing functions are unchanged; consumers need not act.
Remove a declaration and the statements that load a module
Three edits undo what addProperty and insertAfterLast add:
removeProperty takes the same call, argument and path as addProperty and removes
key with its comma and, when it sits on its own line, the line. A group the removal
leaves empty, such as trials: {}, is removed from its parent in turn, through route()
calls too. A missing call, path or key fails with not-found.
findStatements answers the innermost statements holding a string literal equal to
specifier, across lines, with their text and range, so a caller can read what a mapping
maps before removing it.
removeStatements removes each of them with the rest of its lines.
No change for existing callers.
Leave {} when removeProperty takes out an object's only property
Before, removing the only property of an object written one property per line left its braces on two lines, as createModels({\n}). Now the object becomes {}, as it was before addProperty added the property, so adding and removing a property gives back the original source. No action is needed.
@sdxc/data-model
Declare an app's seed with defineSeed from @sdxc/data-model/seed
A new @sdxc/data-model/seed entry point declares the rows a new database starts with as
named steps over the app's registry, each writing fixed rows through models or generated
ones through factories, so every write runs the models' callbacks and constraints.
import { defineSeed } from "@sdxc/data-model/seed"; export default defineSeed(models, { admin: ({ models }) => models.users.create({ email: "admin@example.com", role: "admin" }), posts: ({ factories }) => factories.createMany(PostFactory, 10), }); let ran = await seeder.run({ db }); // success(["admin", "posts"])
run(context, options?) binds the registry with context, runs the steps in order and answers
the names that ran, or a failure naming the step that threw. Factory values come from
options.seed (1 by default), so the same seed writes the same rows; host and the bind
options pass through to registry.bind. Like ./testing, it needs @sdxc/sample installed.
Type a model created inline in createModels like one declared on its own
Before, a model written inline in a registry, as createModels({ tags: createModel(tags, {}) }),
took its types from the registry's entry type instead of its table and options: its fields
widened to any field map, so models.tags.create({ id, name }) failed to type-check, demanding
a meta the model never declared. Declaring the model in its own variable first avoided it.
Now createModel's types come from the table and options alone, wherever it is called, so
both forms type the same and create() takes { id, name }. Types only; nothing changes at
runtime, and code that declared models first needs no change.
@sdxc/database-middleware
Republished because @sdxc/cli changed.
@sdxc/flags
Republished because @sdxc/jobs changed.
@sdxc/flags-engine
Republished because @sdxc/flags changed.
@sdxc/hostname
Republished because @sdxc/api-client changed.
@sdxc/i18n
Republished because @sdxc/cli changed.
@sdxc/icons
Load every icon from one module, so importing one icon no longer loads 1,746 files
Before, the @sdxc/icons entry re-exported one module per icon. A bundler tree-shook them, but
a dev server or test runner loaded and transformed all 1,746 files for any single icon;
@sdxc/ui/button took about 6.5s to import cold under Vitest. Now the entry defines every icon
itself as a /*#__PURE__*/ call, so it loads four modules, and bundlers still keep only the icons
an app names. The exported names and props are unchanged; consumers need not act.
@sdxc/idempotency
Republished because @sdxc/logger changed.
@sdxc/jobs
Republished because @sdxc/cli changed.
@sdxc/kit
Breaking: Type fields by their names, and write a model's migration and factory with it
sdxc scaffold, sdxc make model and sdxc make migration take fields as name, name:type or
name? (nullable; quote it in zsh). A bare name takes its type from the name: *_at a timestamp
(epoch milliseconds), *_on and *_date a date, is_*, has_* and published a boolean,
*_count an integer, email an email, *_url and website a URL, body, description and
notes long text, *_id a reference; anything else is a string, and an explicit type always
wins. A field named password is refused; store password_hash.
sdxc make model post title body published_at author_id sdxc make migration add-slug-to-posts 'slug?' sdxc scaffold event name starts_at 'ends_at?' contact_email website
sdxc make model writes the model's columns, the create-<table> migration (default chain, or
--chain) and database/factories/<name>.ts with a value per field. sdxc make migration reads
its name as Rails does: create-posts … writes CREATE TABLE, add-…-to-posts … ADD COLUMN per
field (a boolean defaults to 0; other added fields must be nullable), remove-…-from-posts …
DROP COLUMN; the SQL is applied to the replayed chain before the file is written.
Breaking changes:
sdxc make model names its table with the plural (posts; before, post) and writes the
migration and factory beside the model. To write the model alone:
Before: sdxc make model post
After: sdxc make model post --skip migration,factory
A model stub copied with sdxc make stubs model needs name: "{{table}}" (before:
name: "{{snake}}") to follow the plural, and {{columns}} where the fields go.
A copied factory.stub needs {{{attributes}}} as defineFactory's second argument (before:
defineFactory({{Name}}, {}), after: defineFactory({{Name}}, {{{attributes}}})) for
make model with fields; otherwise pass --skip factory.
Scaffolds that relied on a bare name being a string now get the conventional type (body is
text, published a checkbox, email an email field). Write :string to keep a string.
Existing models, tables and migrations are untouched.
Breaking: Run the app's own db migrate and deploy commands from sdxc deploy
sdxc deploy still builds, migrates production, then deploys, in that order, behind one
confirmation. The migrate and deploy steps are now the app's own commands: it runs
db migrate --remote and then deploy through the app's command line, as sdxc run does, so an
app changes how it migrates or ships by editing those two commands. New apps get a deploy
command that runs cf deploy --prebuilt, and a db migrate --pending flag that lists the
migrations the database lacks, which sdxc deploy shows in its plan.
--skip-build and --skip-migrations are replaced by a repeatable --skip <step>.
Before: sdxc deploy --yes --skip-build --skip-migrations
After: sdxc deploy --yes --skip build --skip migrate (or --skip build,migrate)
--skip deploy applies the migrations without deploying.
An app needs a deploy command on its command line, or sdxc deploy stops before anything
remote. Add app/commands/deploy.ts:
export default createCommand(commandset.deploy, async (ctx) => {
let command = ["cf", "deploy", "--prebuilt", ...(ctx.flags.dryRun ? ["--dry-run"] : [])];
let deployed = await ctx.exec(command, { cwd: PROJECT_ROOT });
return isFailure(deployed) ? deployed : success();
});
declare it in app/commands/index.ts as
deploy: command({ description: "Upload the build", flags: { dryRun: flag.boolean("dry-run") } })
and map it in app/initializers/cli.ts with
cli.map(commandset.deploy, lazy(() => import("~/app/commands/deploy")));
deploy --dry-run must succeed without uploading.
An app without a db migrate command passes --skip migrate.
Optional: give db migrate a --pending flag that prints one pending migration per line and
applies nothing, so the plan names each migration.
The app template no longer has a cf:deploy script; an app from an earlier template may
delete it and deploy with sdxc deploy.
The plan names the app from package.json, and the app's deploy --dry-run prints what it ships.
New projects' AGENTS.md and README describe these commands.
Breaking: Generate authorization with @sdxc/authz in make policy, scaffold and the app template
Generated authorization now uses @sdxc/authz: one catalog of abilities, one policy granting
them to roles, and the router middleware binding each request's principal as ctx.access.
app/policies/policy.ts: definePolicy(abilities, { facts: { actor }, everyone: [], roles: { member: [] } }),
registered as AuthzTypes["policy"].
app/http/middleware/access.ts, in the page chain after the session: a visitor whose
session holds actor is a member, anyone else a guest. Sign someone in with
ctx.session.set("actor", { id }). The API chain (and so /mcp) binds every caller as a guest.
app/test/session.ts: signIn() answers a session cookie for a test request.
sdxc make policy <resource> adds <resource>.{create,read,update,delete} to the catalog
(read, update and delete checked against the model's row; read refuses as not found)
and grants the read to everyone and the writes to member, writing only
app/policies/<resource>.test.ts. --dry-run prints both edits; without a catalog or policy
it prints the lines to add.
sdxc make policy post ctx.access.can(abilities.post.update, { post: row })
sdxc scaffold declares the same abilities. Its pages answer 404 for a read post.read hides
and 403 for a refused write; its MCP tools answer a "no such" error and a ForbiddenError;
the index and list_<plural> leave hidden rows out. Its tests write as a signed-in member and
assert a guest's refusal.
Breaking changes and migration steps:
make policy no longer writes app/policies/<name>.ts with a boolean function.
Before: sdxc make policy can-edit wrote export function canEdit(actor: Actor | null): boolean.
After: sdxc make policy post edits app/policies/abilities.ts and app/policies/policy.ts.
Existing policy functions keep working; move each rule into the policy as a grant (with a
when condition) and replace canEdit(actor) with ctx.access.can(abilities.post.update, { post }).
Scaffolded resources no longer write app/policies/<name>.ts with
authorize<Name>(actor, action).
Before: if (!authorizePost(null, "update")) return new Response(null, { status: 403 });
After: if (!ctx.access.can(abilities.post.update, { post: row })) return new Response(null, { status: 403 });
For a resource scaffolded earlier, run sdxc make policy <name>, replace each
authorize<Name>(null, action) with the matching ctx.access.can(…) (list/show become
read), and delete app/policies/<name>.ts and its test.
Projects created before this release need the template's authorization before running
make policy or scaffold: add @sdxc/authz to package.json, copy
app/policies/abilities.ts, app/policies/policy.ts, app/http/middleware/access.ts and
app/test/session.ts from a fresh sdxc create, put access after session(…) in
app/http/middleware/page.ts, and add access(policy, { load: [abilities] }) to
createMiddleware(cors(), …) in app/http/middleware/api.ts.
Scaffolded writes are granted to member, so a guest gets 403 on the new and edit pages
until the app signs people in. To keep every visitor writing meanwhile, move the
<name>-write grant from roles.member to everyone in app/policies/policy.ts.
A project stub named policy.stub, scaffold.policy.stub or scaffold.policy.test.stub
is no longer read; policy.test.stub is the one stub make policy and scaffold render.
Update every copied @sdxc/ui component with sdxc ui update --all
sdxc ui update takes --all to update every component the lock file records to the
installed @sdxc/ui, instead of naming each one. Untouched copies are replaced; a file you
edited is left as it is and named in the output, without a prompt even on a terminal, so the
command is safe in scripts and CI. --force still replaces edited files, and --dry-run
prints the diff without writing.
sdxc ui update --all --dry-run # see what would change sdxc ui update --all # replace every untouched copy
update now needs component names or --all; neither, or both, exits 2 with the usage.
When a new version of a copied component imports a component the project has not copied,
update names it with the sdxc ui add command that copies it, and the copy keeps importing
it from @sdxc/ui. --with-deps copies those components as part of the update, as
sdxc ui add --with-deps does.
Mount a generated middleware on a router or chain with make middleware --mount
sdxc make middleware <name> --mount <target> writes the middleware and its test, then imports
it into the target and calls it last in the chain, so it runs right away. The targets are your
project's own: router (or any initializer in app/initializers/ that calls createRouter)
takes it in its middleware array, and page, api or any module in app/http/middleware/
that default-exports createMiddleware(…) takes it as its last argument.
sdxc make middleware require-user --mount page sdxc make middleware request-id --mount router --dry-run
A target the project lacks stops the command with a usage error listing the ones it has, and
nothing is written. When the edit cannot be placed, the middleware is written and the import
and call to add are printed. Without --mount, nothing changes.
Write a migration's SQL from a model with sdxc make migration --from-model
sdxc make migration <name> --from-model <model> writes the SQL that brings a migration chain
in step with the tables app/models/<model>.ts exports:
sdxc make migration add-slug --from-model posts --dry-run
It loads the model with your project's runtime, replays the chain into an in-memory SQLite,
and writes only what is missing: a CREATE TABLE for a new table, ALTER TABLE ADD COLUMN / DROP
COLUMN where SQLite allows them, a CREATE UNIQUE INDEX for a new .unique(), and a table
rebuild that copies every row through the old column names for a change of type, nullability,
default, primary key or foreign key. The result is applied to the replayed schema and checked
before the file is written; when the chain already matches, nothing is written. --chain
picks the chain to diff against.
A renamed column reads as a drop plus an add, and the command warns that the dropped column's
data is deleted, on screen and in the file. Unique indexes the model does not declare are kept.
A rebuild of a table another table references with ON DELETE CASCADE, SET NULL, SET DEFAULT or
RESTRICT is refused, since on D1 dropping the table would act on those rows; write that
migration by hand. Existing commands are unchanged.
Write a resource's model, migration, pages and tests with sdxc scaffold
sdxc scaffold <name> [field:type ...] writes everything a resource needs to be listed, shown,
created, edited and deleted, each piece where sdxc make would put it, declared and mapped the
way make declares it, with tests that pass as written:
sdxc scaffold post title body:text views:integer published:boolean publishedOn:date
writes the Post model with a column per field (registered as ctx.models.post), the
migration that creates the posts table, a factory, the form's validator, a policy, a form
shared by the new and edit pages, and five pages in routes/web.ts (/posts, /posts/new,
/posts/:id, /posts/:id/edit and the delete action), with their copy in
resources/locales/*.json. Field types are string (the default), text, integer,
boolean and date. The table and URLs take the plural; --plural people names one the
English rules miss.
--mcp adds the MCP tools list_posts, get_post, create_post, update_post and
delete_post; --command adds posts list, posts show <id>, posts create --title … and
posts delete <id> to the app's command line. Every file and edit is planned before anything
is written, so a taken name leaves the project as it was; --dry-run prints the whole plan and
--no-test skips the tests. The stubs are scaffold.*.stub, and sdxc make stubs scaffold
copies them into make.stubs to edit.
List every route, its controller and middleware with sdxc routes
sdxc routes prints every route your contracts in routes/ declare: method, full pattern,
contract and name (posts.show), the controller the router maps it to, and the middleware that
runs for it: the router's global middleware, the guards in lazy()'s second argument, and the
controller's own chain, such as page. It reads your source and runs none of it, so it needs
no bindings or build.
sdxc routes # a table per contract sdxc routes --json # an array an agent parses
Each JSON entry is { method, pattern, contract, name, router, controller: { file, export }, middleware: { router, guards, controller } }. A declared route no router maps shows as
(not mapped), and anything the reader cannot follow is reported on stderr, so stdout always
parses.
Check a project for release drift and missing secrets with sdxc doctor
sdxc doctor reports, one line per check, what keeps a project from matching its @sdxc
release, each with the command that fixes it:
pins: an @sdxc/* pin behind its version at the project's release (the newest date among its
pins), with the version sdxc upgrade would move it to
installed: an @sdxc/* package or remix missing from node_modules, or installed at a version
other than the one package.json pins
remix: a remix pin other than the peer the release's packages declare
env: a secret cloudflare.config.ts declares with bindings.secret() that .env.example leaves
out (CI generates the Worker's types from it), and keys in .env.example nothing declares
sdxc doctor
sdxc doctor --json # { "ok": false, "checks": [...] } for an agent
It exits 1 when any check fails and changes nothing itself. Without the npm registry, pins and
remix report skip and the other checks still run.
Ship an app with sdxc deploy, migrating before the Worker goes live
sdxc deploy builds the app, applies the pending production migrations, then deploys the
Worker with cf deploy --prebuilt, in that order, so new code never runs against an old
schema. Before it changes anything remote it prints the Worker, the Cloudflare account, and
every pending migration by name (read with cf d1 migrations list), and asks to continue.
sdxc deploy # build, show the plan, ask, migrate, deploy sdxc deploy --dry-run # build and print the plan; change nothing remote sdxc deploy --yes # no question; required without a terminal, as in CI
Migrations run through the app's own db migrate --remote command, and only when some are
pending; a Worker without a D1 database skips that step. A failed step stops the ones after it,
and the message says where production stands: a failed build changes nothing, and a failed
deploy names the migrations already applied. --skip-build deploys the existing
.cloudflare/output, and --skip-migrations deploys without touching the database. It signs
in with your existing cf login or CLOUDFLARE_API_TOKEN.
Give new projects an AGENTS.md that sdxc upgrade keeps current
sdxc create now writes AGENTS.md, the instructions AI coding agents read, and a CLAUDE.md
that imports it for Claude Code. It teaches an agent the project: create files with
sdxc make <kind> <name> or sdxc scaffold, read routes with sdxc routes --json, check the
project with sdxc doctor, ship with sdxc deploy, where each kind of code goes, and the rules
for code built on the @sdxc packages (remix/component with css() mixins, native dialogs and
popovers, @sdxc/result, ctx.log, remix/data-schema, lazy() routes, Vitest with MSW).
The sdxc part sits between two markers:
<!-- sdxc:start · sdxc upgrade rewrites this section from the release it installs; keep project rules outside it --> … <!-- sdxc:end -->
sdxc upgrade rewrites that section from the release it installs and leaves everything outside
the markers as you wrote it, so put your own rules below the end marker. A project without the
markers, or without an AGENTS.md, keeps its file: the upgrade prompt links the release's
section for your agent to add. Existing projects need not act; add the section once to have
upgrades keep it current. The template README now lists bun run test, the project's test
command.
Keep copies untouched when sdxc ui rewrites their imports
Before: when sdxc ui add, sdxc ui update --with-deps or sdxc ui remove pointed an existing
copy's imports at a newly copied component (or back at @sdxc/ui/<name>), the lock file kept that
copy's old hash, so the copy read as edited: sdxc ui list marked it edited and sdxc ui update
refused to replace it without --force. Copying dialog, then running sdxc ui add button, left
dialog reading as edited.
After: the lock file records the new hash of each untouched copy whose imports the command
rewrote, taken after the project's format runs, so those copies stay untouched and
sdxc ui diff shows them matching the installed release. A copy you edited keeps its recorded
hash and still reads as edited.
No action is needed for future runs. A copy already wrongly marked edited is restored with
sdxc ui update <name> --force, as long as it has no hand edits of its own.
Catch up @sdxc packages pinned behind the release with sdxc upgrade
Before: when a project's newest @sdxc/* pin was already the target release, sdxc upgrade (and
sdxc upgrade <that release>) printed "up to date" and left alone any @sdxc/* package pinned
behind its version at that release, as well as a remix pin that differed from the release's
peer. On a forward upgrade the prompt covered such a package only from the project's release.
After: sdxc upgrade re-pins every lagging @sdxc/* package and remix to their versions at the
target release, installs, prints the prompt, and says "up to date" only when no pin moves. The
prompt covers each lagging package from its own old pin, through the new repeatable
--since <package>@<version> flag of sdxc upgrade --prompt:
No action is needed: run sdxc upgrade to catch up any lagging package.
Filter sdxc routes by name, controller, method or contract, and list unused routes
sdxc routes takes the options rails routes has. Filters apply before output and compose with
each other and with --json:
-g, --grep <pattern> keeps routes whose name, pattern, method or controller matches,
ignoring case, as text or as a regular expression
-c, --controller <path> keeps the routes of one controller file or folder
--method <method> keeps routes answering a method; a route declared for any method stays
--contract <name> keeps routes declared in one contract in routes/
--unused keeps the routes no router maps, and reports on stderr each controller file that no
route loads and nothing imports
-E, --expanded prints one block per route with every field, for a narrow terminal
Each router's eager list in --json now names every action that loads with the router, one
entry per action. Running sdxc routes without options prints the same table as before.
Lint a project with sdxc doctor's new checks and the project's own
sdxc doctor now also checks:
typegen: Worker types older than cloudflare.config.ts or the env files
migrations: a chain that does not replay on an empty database
layout: app/ folders outside the app layout, and imports of bootstrap/
routes: routes no router maps, and actions that load with the router instead of through lazy()
(a controller is judged one action at a time; an inline handler that uses import() passes)
models: models app/models/index.ts does not register
ui: copied @sdxc/ui components behind the installed release
A project adds its own checks as modules in .config/sdxc/checks/ (the doctor.checks key), each
default-exporting defineCheck from the new @sdxc/kit/doctor entry:
import { defineCheck } from "@sdxc/kit/doctor"; export default defineCheck({ name: "no-env-in-views", async run(ctx) { let found = (await ctx.files("resources")).filter((file) => file.endsWith(".env")); return found.length === 0 ? { status: "pass", message: "No env files in views" } : { status: "warn", message: "Env files in views", findings: found }; }, });
--only and --skip select checks by name. A migration that already ran in production and no
longer replays is accepted under doctor.migrations.accept as its file and the column its error
names; doctor steps past that statement and keeps checking the rest, and an entry that stops
matching warns. The pins and remix checks now give sdxc upgrade <release> as their fix.
Projects without checks or the new keys need not act.
Keep scaffolded page tests within Vitest's default timeout
Before, a scaffolded page test imported its controller, views and @sdxc/ui inside its first
test, so it carried a 30-second timeout, and the app template's page.test.ts could time out at
5 seconds in a project with several scaffolds. Now each scaffolded controller test, and the
template's page test, imports its controller when the file loads, and the 30-second timeouts are
gone. New projects and new scaffolds get this automatically; existing generated tests keep
working and may drop their timeout option.
Let a project from the app template format a lone migration
Before: in a project created from the app template, sdxc make migration wrote the file, then
exited 1 with "format command bunx vp fmt exited with 2", because vp fmt fails when every path
it is given is a file it does not format. After: new projects configure
"format": ["bunx", "vp", "fmt", "--no-error-on-unmatched-pattern"], so the command exits 0, and
real formatting errors still fail.
Existing projects must act: in .config/sdxc.jsonc, change "format": ["bunx", "vp", "fmt"] to
"format": ["bunx", "vp", "fmt", "--no-error-on-unmatched-pattern"].
Escape the string literals sdxc scaffold writes into generated code
Before, sdxc scaffold wrote labels, flag names, sample values and validation messages into the
generated controllers, tools and commands with JSON.stringify, which leaves <, > and the
Unicode line separators U+2028 and U+2029 as they are. After, those literals escape them the same
way sdxc make already does, so a value can never close a script element or break the line it
sits on. Generated code reads the same; consumers need not act.
Guard a generated controller with a resource's abilities through make controller --resource
sdxc make controller <name> --resource <resource> writes a controller that checks the
request's bound access against the resource's abilities, the ones sdxc make policy <resource> declares, the same way a scaffolded controller does. The ability comes from
--method:
get checks <resource>.read; a hidden row, or a missing one when the resource has a
model, answers 404 (a page renders the not-found page)
form and post check <resource>.create and answer 403 when refused
put and patch check <resource>.update, delete checks <resource>.delete; each
answers 404 when the row is hidden or missing, then 403 when the write is refused
sdxc make policy post
sdxc make controller posts/archive --resource post --method delete
writes, at the top of the handler:
let row = await ctx.models.post.find(ctx.params.id); if (row === null || !ctx.access.can(abilities.post.read, { post: row })) { … 404 } if (!ctx.access.can(abilities.post.delete, { post: row })) { return new Response(null, { status: 403 }); }
A read, update or delete checks one row, so its route defaults to /<name>/:id; a --path
without an :id param is refused before anything is written. Without a model exporting
<Resource>Row, the row is { id: ctx.params.id }. When app/policies/abilities.ts does not
declare the resource yet, the command prints a note to run sdxc make policy <resource>
first. --routes api writes a JSON endpoint with the same check.
The checks live in three new stubs, controller.resource.stub, controller.resource.form.stub
and controller.api.resource.stub, which sdxc make stubs controller copies like the others;
their {{access}} and {{pageAccess}} placeholders hold the generated check. A multi-line
placeholder value standing alone on an indented line of any stub now takes that indentation on
every line. Controllers made without --resource are unchanged; no action is needed.
Ship the guard planner and resource stubs behind make controller --resource
The previous commit added sdxc make controller --resource <name> without the module that plans the access check or the three stubs it renders (controller.resource.stub, controller.resource.form.stub, controller.api.resource.stub), so @sdxc/kit would not load. This commit adds them; the flag behaves as that commit's note describes. Both land in the same release, so no consumer action is needed.
Replace a generated file and its test with sdxc make --force
sdxc make <kind> <name> --force writes the file and its test from the stub again when they
already exist, instead of stopping:
sdxc make controller about --force Replaced app/http/controllers/about.tsx Replaced app/http/controllers/about.test.tsx Kept the declaration, mapping and mount about already has; --force replaces files only
Every kind takes it except migration, whose files are always new.
A file that existed keeps its route, job, tool or command declaration, its mapping and its
middleware mount, so a second run never declares anything twice.
make model --force on an existing model rewrites the model, its test and its factory and
writes no second migration; add columns with sdxc make migration.
The output says Replaced for each file it overwrote and Wrote for each new one.
Without --force nothing changes, apart from the refusal now naming the flag:
app/services/charge.ts already exists; sdxc make leaves it as it is unless --force.
Seed, reset and prepare the local database, and open a REPL, from the app template
Apps created with sdxc create now ship four more commands for local work. Existing apps
are unaffected; copy the files from the template to adopt them.
sdxc run db seed # run the seeders in database/seeders on the local database sdxc run db fresh --seed # drop every local table, apply every migration, then seed sdxc run db prepare # migrate, and seed a database that had no migration applied sdxc run console # Bun's REPL with `db` and `models` loaded
Seeders live in database/seeders/, one file each, default-exporting a Seeder that writes
through the app's factories or models, and are listed in run order in
database/seeders/index.ts:
Factories draw from one fixed seed, so db fresh --seed writes the same rows every time.
db seed writes on every run; db prepare seeds only a new database, so it is safe to run on
every start. All three refuse --remote. console starts bun --interactive with
bootstrap/console.ts preloaded, so await models.post.query().all() works at the prompt.
The template now depends on @sdxc/sample, which @sdxc/data-model/testing factories need at
runtime; an app whose factories fail with "Cannot find package '@sdxc/sample'" should add it.
Write the missing test for an existing file with sdxc make test
sdxc make test <file> writes the test sdxc make would have written beside a file, for one
made with --no-test or written by hand:
sdxc make test app/services/billing/charge.ts Wrote app/services/billing/charge.test.ts
The kind comes from the folder the file sits in, so the test is rendered from that kind's
test stub, your own in make.stubs included.
A controller's test takes the contract and key path of the route that maps it, and a form
controller (one with index and action) gets the form test.
An MCP resource in app/mcp/resources/ gets the resource test.
An existing test stops the run unless --force replaces it; --dry-run prints the test.
Migrations, factories and policies are refused with the reason: the first two never have a
test, and sdxc make policy writes a policy's test with its abilities.
No action is needed for existing projects.
Index a field with :index or :unique in make model, make migration and scaffold
A field now takes an :index or :unique modifier after its name or its type, with ? on
any part:
sdxc make model post title slug:unique rank:index 'code?:index' sdxc make migration add-slug-to-posts 'slug?:unique' sdxc scaffold person name email:email:unique
:unique writes the column as c.text().unique() in the model, and the migration that
creates or adds it ends with CREATE UNIQUE INDEX "<table>_<column>_unique".
:index writes CREATE INDEX "<table>_<column>_index" in the migration; the model
declares no plain index, so the migration is where it lives.
Two types or two modifiers in one field are refused with the forms it accepts.
Fields without a modifier write the same files as before; no action is needed.
Write a resource's controllers in one run with make controller --actions
sdxc make controller <name> --actions <action,...> writes one controller per action under
<name>, each with the method and route a resource's pages or endpoints take, and formats
them together:
sdxc make controller posts --actions all --resource post sdxc make controller api/posts --routes api --actions index,show,create
Contract
Actions and routes
a page one
index GET /posts, new form /posts/new, show GET /posts/:id,
edit form /posts/:id/edit, destroy POST /posts/:id/destroy
--routes api
index GET, show GET /:id, create POST, update PATCH /:id,
destroy DELETE /:id
all writes every action of the contract; an action the contract lacks is refused.
With --resource, each controller checks the ability its action needs: new and create
check create, show read, edit and update update, destroy delete. index lists
rows, so it is written unguarded with a note to filter rows by read.
Every file is checked free before the first is written; --force replaces them.
--method and --path are refused beside --actions, which sets both.
make controller without --method still asks for it on a terminal and takes get
otherwise; the question now comes from the command instead of the flag, which changes
nothing for callers.
Fix: a form controller whose route has params, such as --method form --path /posts/:id/edit, called href() with no arguments and failed to type check. Its form action
and redirect now pass ctx.params, and its test passes sample values ({ id: "1" }), through
the new {{params}} and {{sampleParams}} placeholders of controller.form.stub,
controller.resource.form.stub and controller.form.test.stub. Projects with their own copies
of those stubs can add the placeholders to their href() calls.
Leave out pieces a project already has with sdxc scaffold --skip
sdxc scaffold <name> [field ...] --skip <piece,...> writes the resource without the pieces
it names: model, migration, factory, validator, policy or pages. The common case
is pages for a model sdxc make model already wrote:
sdxc make model post title body sdxc scaffold post title body --skip model,migration,factory
model leaves out the model, its test and its registry entry; policy the abilities, the
grants and the policy test; pages the five controllers, their tests, the form and the
locale copy.
A skipped piece the rest reads must exist already, or the run stops before writing:
--skip model needs app/models/post.ts, which the pages, tools and commands read; drop model from --skip. The same holds for the validator the pages submit through, the factory the
tests seed rows with, and the abilities the pages and tools check.
make controller --actions reads its action list from the same module as --skip; nothing
else changes for existing scaffolds.
Scaffold a JSON resource with its OpenAPI operations through sdxc scaffold --api
sdxc scaffold <name> [field ...] --api writes the resource as JSON endpoints in the api
contract instead of pages:
sdxc scaffold post title body published --api
Endpoint
Controller
Answers
GET /api/posts
app/http/controllers/api/posts/index.tsx
{ data: [...] }
GET /api/posts/:id
.../show.tsx
{ data } or notFound
POST /api/posts
.../create.tsx
201 { data }
PATCH /api/posts/:id
.../update.tsx
{ data }
DELETE /api/posts/:id
.../destroy.tsx
204
routes/api.ts gains the routes and, after them, POST_SCHEMA and one operation per
endpoint (POSTS_INDEX, POST_SHOW, POST_CREATE, POST_UPDATE, POST_DESTROY), typing
each body from the fields; app/initializers/openapi.ts adds them to the document, so
/api/openapi.json describes every endpoint. A file laid out otherwise gets the code
printed to place by hand.
Each write parses its body through its operation, answers a refused body or model
validation with the validationError problem, and a missing or hidden row with
notFound. Each checks the resource's ability, as the pages do.
The model, migration, factory and policy are written as without --api; the validator,
form, page controllers and locale copy are not. --skip pages leaves out the endpoints.
The template's API binds every caller as a guest, who may only read, so the write
endpoints answer 403 until the app authenticates API callers; their tests say so and
leave the authenticated case as a test.todo.
Scaffolds without --api are unchanged.
Declare the app template's seed in database/seed.ts with defineSeed
The template's seed is now one file, database/seed.ts, default-exporting
defineSeed(registry, { … }) from @sdxc/data-model/seed, in place of the
database/seeders/ folder and the template's own app/services/seeders.ts. sdxc run db seed
runs its steps in order and prints Seeded <name> for each.
An app made from the previous template moves each seeder into a step and deletes the rest:
Then point app/commands/db/seed.ts at it (await seeder.run({ db: ctx.db })) and remove
database/seeders/ and app/services/seeders.ts.
Ship database/seed.ts with the app template
The previous release's template moved its seed into database/seed.ts but left the file out,
so a new app's db seed command failed to import it. A new app now gets the file, an empty
defineSeed(registry, {}). An app created in between adds it by hand:
import { defineSeed } from "@sdxc/data-model/seed"; import registry from "~/app/models";
Ship database/seed.ts with the app template
A new app from sdxc create gets database/seed.ts, an empty defineSeed(registry, {}) that
sdxc run db seed reads. It ships in the same release as the move to database/seed.ts, so
no app needs to act.
Leave out paths and sort the listing with sdxc routes --except-path and --sort
sdxc routes takes two more flags:
--except-path <path> leaves out the routes whose pattern is the path or sits under it by
whole segments, so /api drops /api/posts and keeps /apiary. Repeat it or list several;
it composes with every other filter and --json.
--sort <field> orders the routes by name, pattern, method or controller instead of
declaration order; a route no router maps sorts last by controller.
Without them the listing is unchanged.
End make and scaffold output with what they left out and what needs you
sdxc make and sdxc scaffold now print their notes last, after the formatter's own output,
so a long run ends with what still needs your attention:
sdxc make model post title --skip migration,factory Wrote app/models/post.ts Wrote app/models/post.test.ts Edited app/models/index.ts ✓ Formatting 3 files Wrote no migration or factory, as --skip asked
make model --skip and scaffold --skip name every piece they left out.
make model --force on an existing model says it wrote no migration and names the
sdxc make migration add-<columns>-to-<table> to run for new columns.
Edits to make by hand, the --force note on kept declarations, and the --actions note on
index move to the end too.
The files written are unchanged; only the order of the output differs.
List note comments with sdxc notes and count code with sdxc stats
Two read-only commands for an overview of a project:
sdxc notes app/http/controllers/posts/show.tsx: [21] TODO: render the page sdxc stats Kind Files Lines Code Controllers 8 173 108 … Code: 1094 Tests: 490 Code to test ratio: 1:0.4
sdxc notes lists every TODO, FIXME, HACK and OPTIMIZE comment under app/,
bootstrap/, config/, database/, resources/ and routes/, by file and line, after
//, /*, *, {/*, -- or <!--. --tag picks other tags (--tag TODO,REVIEW), and
--json prints the notes as an array.
sdxc stats counts files, lines, and code lines without blanks and comments, for each kind
of code the app layout names (controllers, middleware, validators, jobs, models, services,
policies, initializers, MCP, commands, emails, migrations, factories, resources, routes…),
with tests counted apart wherever they sit, and prints the code to test ratio. --json
prints the counts.
No action is needed for existing projects.
Print every middleware chain and initializer with sdxc middleware and sdxc initializers
Two listings for finding where something in a request comes from:
sdxc middleware app/initializers/router.tsx, the router's global middleware: 1. asyncContext() remix/middleware/async-context 2. log(logger) @sdxc/logger/middleware … app/http/middleware/page.ts, a chain 2 routes run: 1. formData() remix/middleware/form-data 2. cop() remix/middleware/cop … sdxc initializers File Exports Built with app/initializers/logger.ts logger createLogger (@sdxc/logger) app/initializers/router.tsx createWebRouter createRouter (remix/router)
sdxc middleware prints each router's global middleware in run order, then every module in
app/http/middleware/: a createMiddleware(…) chain expanded to its members, or a single
middleware, each with the module it comes from and the number of routes that run it,
counting the routes of every chain it sits in.
sdxc initializers lists every module in app/initializers/, its exports, and the package
factories it calls (create*, open*, define*, connect*).
Both take --json.
No action is needed for existing projects.
Show each model's table and whether its migrations match with sdxc models
sdxc models loads every model in app/models/ with the project's runtime, as the app runs
it, and compares its table with the migration chain:
sdxc models Model File Table Columns Migrations post app/models/post.ts posts 4 behind sdxc models post post: the posts table, in app/models/post.ts Column Type Null Default Key id text no primary title text no slug text no unique subtitle text yes Migrations: the migrations create a different table; sdxc make migration sync-posts --from-model post writes the SQL that catches them up Factory: none; sdxc make factory post writes one
Without names it prints one row per model; with names it prints each in full: every
column's type, nullability, default, and whether it is the primary key, unique, or a
foreign key (authors.id).
The migration status replays the default chain and diffs it against the table, the way
make migration --from-model does, so "behind" means that command has SQL to write.
--json prints the models, columns and pending statements.
An unknown model fails naming the models the project has; one that fails to load fails
with the runtime's error.
No action is needed for existing projects.
Add @sdxc/sample when generated code imports @sdxc/data-model/testing
Factories and the test database that sdxc make model, sdxc make factory and sdxc scaffold
write import @sdxc/data-model/testing, which loads @sdxc/sample, an optional peer of
@sdxc/data-model. The step that lists the packages generated code imports added only
@sdxc/data-model, so the app's tests failed with Cannot find package '@sdxc/sample'. It now
adds @sdxc/sample too, at the project's release. An app that already hit the error can keep the
@sdxc/sample it installed by hand, or run:
bun add @sdxc/sample
The app template's README and cloudflare.config.ts now give the cf commands with their flags:
cf d1 create --name <name>, cf kv namespaces create --title <name> and
cf queues create --queue-name <name>.
List scheduled jobs, their next runs and the triggers that fire them with sdxc schedule
sdxc schedule reads every job({ cron }) in app/jobs/index.ts and the cron triggers in
cloudflare.config.ts (or wrangler.jsonc):
sdxc schedule Job Schedule Next run Trigger reports.daily 0 8 * * * 2026-10-20 08:00 UTC none; add triggers.scheduled({ schedule: "0 8 * * *" }) digest 0 9 * * 1-5 2026-10-20 09:00 UTC cloudflare.config.ts cloudflare.config.ts fires "0 5 * * 1", which no job declares
A scheduled job runs only when a Worker trigger delivers its exact expression, so a job no
trigger fires gets the trigger to add, and a trigger no job takes is listed below the table.
Expressions are compared as parsed, so 0 9 * * MON-FRI matches 0 9 * * 1-5.
Next runs are computed in UTC, the zone Workers deliver cron triggers in.
--json prints the jobs and the unused triggers.
@sdxc/kit now depends on @sdxc/cron. No action is needed for existing projects.
Undo sdxc make with sdxc destroy
sdxc destroy <kind> <name> removes what sdxc make <kind> <name> wrote and edited, after
printing the plan and asking once:
sdxc destroy controller sponsors Removes: app/http/controllers/sponsors.tsx app/http/controllers/sponsors.test.tsx Edits: routes/web.ts app/initializers/router.tsx Remove 2 files and edit 2? › No
It deletes the file and its test (and a model's factory), the mapping that loads the file
from its initializer, and the declaration that mapping names: a controller's route and its
sitemap decision, a job, an MCP tool or resource (--resource), a command, a model's
registry entry. Groups left empty and imports whose last use went with them go too, so a
make followed by a destroy gives back the files as they were.
Every other line of the app that still names the file or its declaration is listed at the
end, under "Still referenced, to remove by hand", and the edited files are formatted.
A model's migrations stay, since a database may have applied them; the run says to write
one that drops the table.
Every make kind but migration and policy is accepted. A file that does not exist is an
error, so a typo edits nothing.
--yes (-y) skips the question and is required without a terminal; --dry-run prints the
plan and the diff of every edit and changes nothing.
No action is needed for existing projects.
List every command, argument and flag in the README
The @sdxc/kit README, which sdxc.dev serves at /api/kit, is now the CLI reference: the command
table covers destroy, models, schedule, middleware, initializers, notes and
stats, and every command and make kind has a section with its arguments and a table of
its flags, generated from the command line's own description so it reads exactly as
sdxc <command> --help. It also mentions --help --json for agents, and the usage examples
show scaffold --api, destroy and models. No action needed.
Start new apps with an email registry and a job that delivers queued email
sdxc create writes an app whose emails live in a registry: app/emails/index.ts
declares each email and the schema of its props, and app/initializers/mail.ts
maps each template onto createMail() with the app's translator. The router, the
job dispatcher and the command line hand that registry to their mailers, so
ctx.email sends a declared email from a request, a job or a command:
await ctx.email.send(emails.welcome, { to, locale, props: { name } }); ctx.email.later(emails.welcome, { to, locale, props: { name } }); await ctx.email.queue(emails.welcome, { to, locale, props: { name } });
queue() enqueues the new email job (app/jobs/email.ts), which delivers the
email and retries a provider failure. Jobs now read ctx.email too.
The transport moved to app/initializers/mail-transport.ts, beside the queue
function, because both read Worker bindings and the command line imports the
registry. An existing app needs no change; to adopt the registry, copy those
files and pass mail (and queue) to the mail middleware in the router, the
dispatcher and the command line.
Declare and map emails with sdxc make email, taking their props as fields
sdxc make email takes fields the way sdxc make model does and writes an email
that works at once: it declares the email and its props in app/emails/index.ts,
writes the template, maps it onto the app's createMail() registry through
lazy(), and writes a test that renders it through the registry.
sdxc make email teams/invite team invite_url 'expires_on?' is_admin
Each field is typed by the same naming conventions (*_url a link, *_email an
address, is_* a box, *_on a date), and a trailing ? makes the prop optional.
The first text prop is the subject and the heading, a link renders as a button,
and the template's preview() and the test share one sample per prop. Without
fields the email takes heading and body. A reference, :index or :unique
describes a table, so make email refuses it.
The generated template is a createEmail() default export instead of a
defineEmail() class. An app without the registry still gets the files, with
the declaration and mapping printed to add by hand.
Describe sdxc make email in the README as its help does
The README section for sdxc make email carries the same one-line description sdxc make email --help prints, like every other command section. No action needed.
Put the subject prop's heading first in an email sdxc make email writes
Before, sdxc make email rendered <Email.Heading> where the subject field fell in the field list, so sdxc make email notice count:integer title put the heading below the count. The heading now opens the body whatever the field order. Emails already generated keep the order they were written with; move the heading up by hand if you want it first.
Fail when the README's command reference drifts from the contract
The README's per-command reference, every sdxc command with its arguments and
flags, is now rendered from the command line's own contract, and the kit's tests
fail when the published README differs from it. The README on npm and on
sdxc.dev therefore always lists the flags sdxc <command> --help prints.
This changes nothing for consumers of @sdxc/kit.
Add the Worker trigger a cron job needs with sdxc make job --cron
sdxc make job <name> --cron "<expression>" now also adds the trigger that fires the job to
the worker.triggers list in cloudflare.config.ts, so a scheduled job runs once deployed
without a hand edit:
A trigger that already delivers the schedule is reused; expressions are compared as parsed, so
0 9 * * MON-FRI shares the trigger of 0 9 * * 1-5. When the Worker is configured in
wrangler.jsonc, or cloudflare.config.ts has no worker.triggers list, the command prints
the trigger to add by hand after its other output.
sdxc destroy job <name> removes that trigger again once no other job runs on the same
schedule, and names a wrangler.jsonc cron to remove by hand. No action is needed: jobs made
before this release keep their triggers, and sdxc schedule still lists any job without one.
Preview emails in new apps and check the email registry with sdxc doctor
An app sdxc create writes now previews its emails while developing:
bun dev serves /_emails, listing every mapped email with an HTML and a text link per
supported language, and rendering one from its template's preview(). The router mounts
previews(mail, { locales: SUPPORTED_LANGUAGES, enabled: import.meta.env.DEV }) from
@sdxc/mail/previews before mailer(...), so production passes every request on.
sdxc run emails preview <name> [--locale <language>] [--html] prints the subject and the
text part, or the HTML document, rendered from the template's preview():
sdxc run emails preview teams.invite --locale es
To add both to an existing app, put the previews(...) line above in the router's middleware
(a single entry, never a conditional spread, which erases the router's typed context), then
declare an emails: commands({ preview: command({ … }) }) group in app/commands/index.ts,
copy app/commands/emails/preview.ts and its test from a freshly created app, and map it in
app/initializers/cli.ts with lazy(() => import("~/app/commands/emails/preview")).
sdxc doctor runs a new emails check after models. It fails when an email
app/emails/index.ts declares has no template mapped in app/initializers/mail.ts, since
every send of it fails, and warns on a mapped template without a .test.tsx/.test.ts
beside it or without preview(). A project without app/emails/index.ts skips it; skip it
by name with sdxc doctor --skip emails.
Ship the emails doctor check and the emails preview command's files
The emails check sdxc doctor runs and the emails preview command an app sdxc create
writes, both described in the previous release note, ship in this release: the check's
module and its tests, and the template's app/commands/emails/preview.ts with its test. No
action is needed beyond what that note lists for an existing app.
Theme the new app's /_emails inbox with its document stylesheets
sdxc create writes a router whose previews() passes
stylesheets: () => assetResolver.getStylesheets("resources/layouts/document.tsx"), so the
/_emails inbox wears the app's @sdxc/ui theme. An existing app adds the same option to its
previews() call to match.
Escape every regular expression character in a name sdxc destroy looks for
sdxc destroy builds a pattern from each imported name to tell whether markup still uses it.
Before, only $ was escaped; now every regular expression character is, so a name is always
matched literally. Names are JavaScript identifiers, so commands behave the same; no action is
needed.
Remove an email's declaration with sdxc destroy email
Before, sdxc destroy email <name> deleted the template, its test and its mapping in the
mail initializer, but left the email declared in app/emails/index.ts, so the app still
listed an email with no template behind it. Now it removes the declaration too, with the
groups and imports it leaves unused, as it does for jobs, tools and commands:
sdxc make email teams/invite team sdxc destroy email teams/invite --yes
If you destroyed an email before this release, remove its entry from app/emails/index.ts
by hand.
Keep a declared policy's abilities and grants with make policy --force
Before, sdxc make policy <name> --force on a resource whose abilities the catalog already
declared tried to declare them again, and printed "Declare and map it by hand, since
app/policies/abilities.ts: post already exists" with every line to add. Now it treats the
resource as made: it replaces the policy's test, keeps the abilities in
app/policies/abilities.ts and the grants in app/policies/policy.ts, and prints
Kept the declaration, mapping and mount post already has; --force replaces files only
as every other kind does. No action is needed.
@sdxc/logger
Republished because @sdxc/cli changed.
@sdxc/mail
Breaking: Remove defineEmail in favor of declared emails
defineEmail() and its EmailDefinition, EmailClass and DefinedEmail types are
gone. Declare each email in the registry and send it by name instead.
Props that carried a translator t drop it and pass the reader's locale: every
template member receives t and locale beside the parsed props. A test that
checked instanceof InviteEmail on a sent message uses
isComposedEmail(message.email, emails.invite).
Mail that is no declared email can still be sent as a plain message or as any
object with to, subject and body().
Declare emails in a registry and send, defer or queue them by name
An app can now declare every email it sends, and the schema of its props, in
one map, write each email's template in its own module, and send it by its
declaration. Importing the declarations costs only the schemas, so a sender
never loads the module that renders an email.
The props are parsed by the declared schema before anything renders, and copy
is translated when the email renders: every template member receives the
props with locale and t beside them, from the registry's translator
(createTranslator() from @sdxc/i18n fits). Augment MailTypes with
translate to type t()'s keys. preview() is optional and only feeds
mail.preview(); mail.render() renders any declared email without sending.
queue() validates the props and hands the delivery, as plain JSON, to the
mailer's new queue option. One job delivers every queued email:
export default jobs({ email: job({ input: EMAIL_DELIVERY }) }); export default createJobHandler(jobs.email, async (ctx) => { let sent = await ctx.email.deliver(ctx.input); if (isFailure(sent) && sent.error instanceof EmailRefusedError) ctx.exit(sent.error.message); if (isFailure(sent)) ctx.retry({ cause: sent.error }); });
@sdxc/mail/middleware/jobs is new: it publishes ctx.email to every
@sdxc/jobs run and sends what later() deferred once the handler returns.
Sending a plain message or an email object works as before; existing code
needs no change.
Lead the README's examples with declared emails
The README sends a declared email in its router, test and send()/later() examples, lists the mail and queue options on the mail middleware, and keeps defineEmail() as the way to write an email outside the registry. No action needed.
Preview every declared email in development with @sdxc/mail/previews
previews(mail, options) from @sdxc/mail/previews is fetch-router middleware that lists
every email the registry maps, in every locale you give it, and renders one from its
template's preview() props. Mount it only while developing:
GET /_emails lists each email with an HTML and a text link per locale, or "No preview" for
a template without preview(). GET /_emails/<name>?locale=es&format=html|text renders one:
the HTML document, or the subject and the plain-text part. An unmapped email, or one without
a preview, answers 404; every other path passes on. options.path moves the list.
Mail also gains hasPreview(email), which reports whether the template mapped for an email
(a declaration or its name) has a preview(), without rendering it.
Serve email previews only while enabled, keeping one typed middleware chain
previews(mail, options) from @sdxc/mail/previews takes enabled (default true). With
enabled: false it passes every request on, so an app keeps the middleware in its router's
inline chain and serves /_emails only in development:
Write it this way rather than spreading a conditional array
(...(import.meta.env.DEV ? [previews(mail)] : [])), which the previous release note showed:
a spread erases what each middleware publishes, so the router's RouterContext loses
ctx.models, ctx.email and the rest. Apps that followed that example should switch to
enabled.
Ship the @sdxc/mail/previews module
@sdxc/mail/previews, described in the two previous release notes, ships in this release:
the previews(mail, { locales, path, enabled }) middleware and its tests. No action is
needed beyond those notes.
Show email previews as an inbox built from @sdxc/ui
previews() from @sdxc/mail/previews now answers /_emails with an inbox instead of a table:
every mapped email listed with its subject and opening lines in the chosen locale, and the one
?email= names open beside the list, as HTML in a frame or as its text part (?view=text). The
page is built from @sdxc/ui; the new stylesheets option links the app's own document
stylesheets so it wears the app's theme:
The raw renders at /_emails/<name>?locale=&format=html|text answer as before. Without
stylesheets the page renders unthemed; no other change is needed.
Trim a previews path's trailing slashes in time linear in its length
Before: previews(mail, { path }) trimmed trailing slashes from path with a regular expression
that backtracks, so a path holding a long run of / not at its end took seconds to set up the
middleware (1.7s for 50,000 slashes). After: the slashes are removed by walking back from the
end, so any path is handled in time linear in its length, and /inbox/// still serves at
/inbox. No action is needed.
@sdxc/mcp
Republished because @sdxc/logger changed.
@sdxc/messaging
Republished because @sdxc/api-client changed.
@sdxc/newsletter
Republished because @sdxc/api-client changed.
@sdxc/rate-limit
Republished because @sdxc/logger changed.
@sdxc/rdap
Republished because @sdxc/cache changed.
@sdxc/seo
Republished because @sdxc/attribution changed.
@sdxc/spec
Republished because @sdxc/cli changed.
@sdxc/trace-context
Republished because @sdxc/cli changed.
@sdxc/u
Read import.meta.env through optional chaining
when() and the a11y debug helper read import.meta.env.DEV directly. A project's Vitest run
leaves installed packages untransformed, where import.meta.env is undefined, so calling either
from a test threw TypeError: Cannot read properties of undefined (reading 'DEV'). Both now read
import.meta.env?.DEV: under a bundler they behave as before, and where nothing defines
import.meta.env they run as production. Consumers need not change anything.
@sdxc/ui
Render components in tests that leave @sdxc/ui untransformed
Components and mixins checked import.meta.env.DEV for their dev-mode warnings. Vitest leaves
installed packages untransformed, where import.meta.env is undefined, so a project's test
rendering a Button (or any component with a dev warning) threw
TypeError: Cannot read properties of undefined (reading 'DEV'). Every read is now
import.meta.env?.DEV: apps built with Vite still warn in development, and where nothing defines
import.meta.env the components render without the warnings. A project that added
test.server.deps.inline: ["@sdxc/ui"] to work around it can remove that line.
Add a property to an object passed after other arguments
addProperty takes an argument option, the zero-based position of the object literal
among the call's arguments, so it can edit calls that take their object after others:
It defaults to 0, so existing calls behave as before. The first call to options.call
with an object literal at that position is edited, and when none has one the result is a
not-found failure.
Add the fixture for an object passed after other arguments
No consumer effect: this adds the input and expected output the argument option's test reads.
@sdxc/data-model
Generate a model's primary key with generateIdcreateModel takes a generateId option that creates the primary key of a row create or
upsert inserts without one. create then types the key as optional, so the model no longer
needs optional: ["id"] plus a beforeCreate callback to fill it:
typescript
import{ createModel }from"@sdxc/data-model";import{ generateUUID }from"@sdxc/uuid/v7";exportconstUsers=createModel(users,{generateId: generateUUID });awaitUsers.bind({ db }).create({ email, name });// id filled with a UUIDv7
A key the caller passes is written as given. The generated key is filled before validate
and beforeCreate run, so every callback sees it, and a sub-model from extend() inherits it.
The generator must return the key column's type, and a table with a composite primary key
refuses the option. Existing models keep working unchanged.
@sdxc/epub
Republished because @sdxc/zip changed.
@sdxc/file-storage-r2
Store remix/file-storage files in a Cloudflare R2 bucket
New package. R2FileStorage is a FileStorage from remix/file-storage over an R2 bucket binding, so code that reads and writes Files runs against R2 in a Worker and any other backend in a test.
A file reads back as a native File with the name, type and lastModified it was stored with: the name and modification time travel as the object's custom metadata, the type as its content type. An object written to the bucket some other way reads back named by its key and dated by its upload time.
has answers with a HEAD; list takes prefix, cursor, limit and includeMetadata, and returns a cursor while more objects remain; put resolves the file as read back; remove succeeds on a missing key.
The bucket parameter is the structural R2FileBucket type, which any R2Bucket satisfies, whether wrangler types or @cloudflare/workers-types typed it.
@sdxc/font
Read TrueType fonts for metrics, kerning, outlines and line layout
New package @sdxc/font parses TrueType (.ttf, glyf-outline) fonts in plain JavaScript, with no WebAssembly, so a Worker can measure and draw text with real glyphs.
parseFont(bytes) takes a Uint8Array or ArrayBuffer and answers a Result<Font, FontError>. A CFF (OTTO) font, a collection (ttcf) or a font without a Unicode cmap fails with code "unsupported"; a missing required table with "missing-table"; a corrupt header or table with "malformed", naming the table in error.table.
A Font answers unitsPerEm, ascender, descender, lineGap (OS/2 typographic metrics when USE_TYPO_METRICS is set), family and subfamily; glyphIndex(codePoint) through cmap formats 4 and 12; advance(glyph); kerning(left, right) from the kern table or, when the font has none, GPOS pair positioning; outline(glyph) as move/line/quad/close commands in font units with composites resolved; path(glyph, size, x, y) in pixel space with y down; layout(text, size, { tracking, kerning }) and measure(text, size).
import { parseFont } from "@sdxc/font"; import { isFailure } from "@sdxc/result";
@sdxc/kit
Format what make and ui add write in a project from the app template
Before, sdxc create wrote .config/sdxc.jsonc with format commented out, so the
declarations and mappings sdxc make inserts into an initializer stayed exactly as written.
A fresh app's first bun run check after sdxc make controller posts/show or
sdxc make mcp search-posts then failed with format issues in
app/initializers/router.tsx and app/initializers/mcp.ts.
Now a project created from a built-in template ships with the formatter enabled:
"format": ["bunx", "vp", "fmt"],
so every file sdxc make and sdxc ui add write or edit is run through Vite+'s formatter
and bun run check passes straight after them.
Projects created before this release keep their configuration; uncomment the format line
in .config/sdxc.jsonc to get the same behavior, and run bunx vp fmt once to format the
files make already edited. sdxc init and remote templates are unchanged.
Breaking: Give the app template an API contract beside its pages, on one router
sdxc create now writes an app whose one router serves two route contracts:
routes/web.ts pages: home, and a 404 page for any other path routes/api.ts GET /api/health, GET /api/openapi.json, POST /mcp, and a problem+json 404 for any other /api path app/http/middleware/page.ts formData(), cop(), assets(...), render(...) app/http/middleware/api.ts cors() app/http/controllers/api/*.tsx the API's controllers app/http/controllers/mcp.tsx the MCP endpoint, now a controller app/initializers/openapi.ts the OpenAPI document, from the operations in routes/api.ts
The router's own middleware is what every route uses: asyncContext(), the logger, and a rate
limit of 100 requests a minute per client address on a new RATE_LIMITER binding (answering
429 as a problem document). Each controller declares its contract's chain, so an API request
skips the form parser, the cross-origin check and the asset lookups. The template now
depends on @sdxc/openapi, @sdxc/json-schema, @sdxc/problem, @sdxc/rate-limit and
@sdxc/get-client-ip.
sdxc make controller follows the contract. --routes api writes a JSON endpoint from the
new controller.api.stub (with controller.api.test.stub) and maps it on the router:
A controller is now mapped on the initializer that imports its contract and calls
createRouter, so another initializer importing the contract no longer captures it.
BREAKING: page controllers written by sdxc make controller (and --method form) declare
the page chain instead of relying on the router's. In a project made from an earlier template:
Move the page middleware out of the router into app/http/middleware/page.ts:
Or keep the old controller shape by copying the previous controller.stub into
.config/sdxc/stubs/ (sdxc make stubs controller writes the current ones to edit).
Make a new app pass its own bun run check
Before, an app made with sdxc create failed bun run check straight after
bun install with two type errors in vite.config.ts: TS2321 "Excessive
stack depth comparing types ... and 'UserConfig'" at defineConfig, and
TS2769 "No overload matches this call" at the remix() plugin. The app
installed Vite itself while vite-plus checks against its own Vite core, so
the plugins were typed against one Vite and the config against another.
Now the template installs vite as the core Vite+ ships, and pins every
transitive copy to it:
The dev, build and start scripts run vp dev, vp build and
vp preview, since that package has no vite binary.
An existing app made from an earlier template fixes the same errors by making
those changes to its package.json (with the vite-plus version it already
pins) and running bun install again.
Give the app template a problem catalog for its API errors
A new app from sdxc create declares every problem its API answers with in one catalog,
config/problems.ts, whose base URL comes from config/constants.ts:
Code imports it as problems. The API's 404 answers problems.notFound(), the rate limit
answers problems.tooManyRequests(), and the OpenAPI document publishes each entry as a
schema and response, so an operation can list problems: ["validationError"]. Each problem's
type is now PROBLEMS_URL plus its slug, where it was about:blank; set PROBLEMS_URL to
the page that documents them. controller.api.stub points new endpoints at the catalog.
Projects created earlier are unaffected; to adopt it, add the two files and replace each
problem({ status }) call with the matching problems.<name>().
Send a Content-Security-Policy with the app template's pages
A project from sdxc create now sends a Content-Security-Policy and the related security
headers (X-Frame-Options, Referrer-Policy, Cross-Origin-Opener-Policy, Permissions-Policy,
X-Content-Type-Options, and Strict-Transport-Security over HTTPS) with every page. API and MCP
responses are unchanged and carry none of them.
The policy lives in config/security-policy.ts as an @sdxc/security-headers policy:
Inline css() styles and Vite's dev client, HMR included, work under it, and the document's
inline import map is admitted by the response's nonce. Add an origin to the policy before a
page loads a script, style, image or font from it.
An existing project gets the same policy in four steps:
Run bun add @sdxc/security-headers and save the policy above as
config/security-policy.ts.
In app/http/middleware/page.ts, add securityHeaders before assets() and hand its nonce
to assets().
Without this, a page that hydrates an island has its import map blocked.
Leave app/http/middleware/api.ts as it is, so JSON and MCP responses stay without a CSP.
Refuse page form posts without valid honeypot fields
A project from sdxc create now verifies @sdxc/honeypot fields on every page POST. The page
middleware answers a submission that is missing the fields, filled the hidden trap, or carries a
forged token with a plain-text 400 before the controller runs. API and MCP routes are not
affected.
sdxc make controller <name> --method form renders the fields and writes a test that submits
the form without them and with the trap filled:
The fields are signed with a new HONEYPOT_SECRET secret. New projects get a development value
in .env.example, and sdxc create copies that file to .dev.vars, so bun dev works right
away. Before deploying, set a long random value with cf workers secrets update HONEYPOT_SECRET.
cf deploy fails until you do.
The template's tests now resolve cloudflare:workers to app/test/cloudflare-workers.ts, so a
module that reads env when it is imported loads under Vitest.
To add this to an existing project:
Run bun add @sdxc/honeypot.
Declare the secret in cloudflare.config.ts and set it remotely before the next deploy:
HONEYPOT_SECRET: bindings.secret(),
For development, add HONEYPOT_SECRET=<any value> to .dev.vars.
Create app/initializers/honeypot.ts:
import { Honeypot } from "@sdxc/honeypot";import { env } from "cloudflare:workers";export const honeypot = new Honeypot({ secret: env.HONEYPOT_SECRET });
In app/http/middleware/page.ts, add the middleware after cop().
Import it as import { honeypot } from "@sdxc/honeypot/middleware" and
import { honeypot as trap } from "~/app/initializers/honeypot".
Render <HoneypotFields {...unwrap(await ctx.honeypot.issue())} /> (from
@sdxc/honeypot/ui) inside every page form. Without it, every POST to a page answers 400.
If your tests import a module that reads env, alias cloudflare:workers to a test module
that exports env in the test section of vite.config.ts.
Ask for Cloudflare Turnstile on generated forms
sdxc make controller <name> --method form now renders a Cloudflare Turnstile widget from
@sdxc/captcha, and declares captcha(turnstile) on the form's action. A submission with a
missing or invalid token is answered with a plain-text 403 before the handler runs. Only the
POST pays for the verification call, and API routes are not affected. The generated test now
also submits the form without a token.
New projects from sdxc create ship app/initializers/captcha.ts, and two secrets declared in
cloudflare.config.ts: TURNSTILE_SITE_KEY and TURNSTILE_SECRET_KEY. .env.example carries
Cloudflare's test keys, which always pass, so bun dev works without an account. Before
deploying, create a Turnstile widget in the Cloudflare dashboard and set both keys with
cf workers secrets update. cf deploy fails until you do.
The page Content-Security-Policy now admits https://challenges.cloudflare.com in script-src
and frame-src, which the widget loads from. The widget's script carries the response's nonce.
To add this to an existing project:
Run bun add @sdxc/captcha.
Declare both secrets in cloudflare.config.ts, set them remotely, and add Cloudflare's test
keys to .dev.vars for development:
Score generated form submissions with a spam filter
sdxc make controller <name> --method form now renders a message field, and scores it with
@sdxc/spam in the form's action before anything else runs. A spam verdict is answered with
a plain-text 422. A ham or unsure verdict reaches the redirect, where you decide what to do
with it. The score takes in the honeypot's signed render time, so a form sent back within
seconds of rendering counts against the submission.
let message = ctx.formData.get("message"); let assessment = await spamFilter.check({ content: typeof message === "string" ? message : "", renderedAt: isSuccess(honeypot) ? honeypot.data.renderedAt : undefined, author: { userAgent: ctx.request.headers.get("User-Agent") ?? undefined }, }); if (assessment.verdict === "spam") { return new Response("Message refused as spam", { status: 422 }); }
New projects from sdxc create ship app/initializers/spam.ts, a filter of the local rules
(links, markup, timing), which needs no account, secret or network call. Add a reputation check
from @sdxc/spam, such as akismet() or stopForumSpam(), to its checks when a form needs
one.
In each form's action, check the fields a visitor writes in, as above, and refuse a spam
verdict.
Give the app template a D1 database published as ctx.db
A project from sdxc create now has a database. app/initializers/database.ts opens
remix/data-table over a DB D1 binding, and the router and the job dispatcher publish it as
ctx.db, so the models and migrations sdxc make model and sdxc make migration write have a
database to run against. bun db:local:migrate and bun db:remote:migrate apply
database/migrations/. Under Vitest, DB and RATE_LIMITER are in-memory stand-ins from
@sdxc/cloudflare-mocks, and the page and form tests fetch through createWebRouter(), so
they run every middleware the Worker runs.
Before the first deploy, run bunx cf d1 create <name> and put the id it prints in
cloudflare.config.ts and in both db:*:migrate scripts.
An existing project gets the same setup in five steps:
Run bun add @sdxc/data-table-d1 @sdxc/database-middleware and
bun add -d @sdxc/cloudflare-mocks.
Save app/initializers/database.ts:
import { createD1DatabaseAdapter } from "@sdxc/data-table-d1";import { env } from "cloudflare:workers";import { Database } from "remix/data-table";export function openDatabase(): Database { return new Database(createD1DatabaseAdapter(env.DB), { now: () => Date.now() });}
In cloudflare.config.ts, declare the binding, and add the scripts to package.json:
Publish it. In app/initializers/router.tsx, add database(openDatabase()) (from
@sdxc/database-middleware) to the end of createRouter({ middleware: [...] }). In
app/initializers/dispatcher.ts, pass middleware: [database(openDatabase)] as const (from
@sdxc/database-middleware/jobs) and type the handlers with it:
In app/test/cloudflare-workers.ts, add DB: createD1Database() and
RATE_LIMITER: createRateLimit() from @sdxc/cloudflare-mocks to env. A test that builds
its own router with createRouter({ middleware: [log(logger)] }) no longer type checks
against a controller once ctx.db is in the chain; fetch through createWebRouter() instead:
Trace every request and command in the app template
A project from sdxc create now continues the caller's W3C traceparent on every request, or
starts a trace, through @sdxc/trace-context. Its log record carries trace_id, span_id,
trace_flags and parent_span_id, and every job the request enqueues runs under the same
trace, so one query by trace_id finds a request and the jobs it started. Commands run with
bun run cli do the same from the TRACEPARENT environment variable.
An existing project gets the same in three steps:
Run bun add @sdxc/trace-context.
In app/initializers/router.tsx, add trace() right after log(logger):
In app/initializers/cli.ts, do the same on the command line:
import { trace } from "@sdxc/trace-context/middleware/cli";middleware: [log(COMMAND_LOGGER), trace()],
Jobs need no change: @sdxc/jobs carries the trace in every message it enqueues.
Give the app template's pages a KV-backed session
A project from sdxc create now loads the visitor's session on every page as ctx.session:
a signed, httpOnly __session cookie naming a record in the SESSIONS KV store, kept for 30
days after its last change. The page middleware saves it after the controller runs, and only
sends a cookie when the session changed.
Before the first deploy, run bunx cf kv namespace create <name>, put the id it prints in the
SESSIONS binding, and set SESSION_SECRET with cf workers secrets update SESSION_SECRET.
In cloudflare.config.ts, declare SESSIONS: bindings.kv({ id: "<id>" }) and
SESSION_SECRET: bindings.secret(), and add SESSION_SECRET=... to .env.example and
.dev.vars.
In app/http/middleware/page.ts, add the session right after cop():
import { session } from "remix/middleware/session";import { sessionCookie, sessionStorage } from "~/app/initializers/session";cop(),session(sessionCookie, sessionStorage),
Breaking: Translate the app template's pages through @sdxc/i18n
A project from sdxc create now renders its pages from MessageFormat 2 bundles in
resources/locales/. The page middleware picks the visitor's language from ?lng=, the
session's lng value and Accept-Language, publishes ctx.locale and ctx.intl, and falls
back to English. app/initializers/i18n.ts lists the languages and exports translate, so a
job or an email reads the same copy:
ctx.intl.t("home.title"); // in a page translate(user.language).t("home.title"); // in a job or an email
DocumentLayout now takes the request's translator, sets <html lang> from it, and wraps the
page in IntlProvider, so a component reads it with intl(handle) from @sdxc/i18n/ui. Pages
sdxc make controller writes pass it.
Breaking for an existing project: DocumentLayout requires intl. To migrate:
Run bun add @sdxc/i18n, save your copy as resources/locales/en.json, and save
app/initializers/i18n.ts:
import { createTranslator } from "@sdxc/i18n";import en from "~/resources/locales/en.json";export const SUPPORTED_LANGUAGES = ["en"];export const FALLBACK_LANGUAGE = "en";export const RESOURCES = { en };export const translate = createTranslator({ resources: RESOURCES, supportedLanguages: SUPPORTED_LANGUAGES, fallbackLanguage: FALLBACK_LANGUAGE,});
In app/http/middleware/page.ts, add the middleware right after the session:
In resources/layouts/document.tsx, add an intl: I18n prop, render
<html lang={intl.locale}>, and wrap the children in <IntlProvider intl={intl}> from
@sdxc/i18n/ui.
Pass it from every page.
Send the app template's email through Cloudflare's send_email binding
A project from sdxc create now has a mailer on every request. The router publishes
ctx.email, an @sdxc/mail mailer over the EMAILsend_email binding, from the
MAIL_FROM address in config/constants.ts, so the emails sdxc make email writes have
somewhere to go:
ctx.email.later(new WelcomeEmail(user.email, copy)); // sent after the response await ctx.email.send(new WelcomeEmail(user.email, copy)); // when the response depends on it
A job builds a mailer over the same transport and awaits send():
import { Mailer } from "@sdxc/mail"; import { transport } from "~/app/initializers/mail"; import { MAIL_FROM } from "~/config/constants"; await new Mailer({ transport, from: MAIL_FROM }).send(email);
bun dev simulates the binding. Cloudflare delivers only from a domain with Email Routing
enabled, so set MAIL_FROM to an address on yours before deploying.
An existing project gets the same in four steps:
Run bun add @sdxc/mail, and add
export const MAIL_FROM = { email: "no-reply@your-domain.com", name: "App" }; to
config/constants.ts.
Save app/initializers/mail.ts:
import { CloudflareTransport } from "@sdxc/mail/cloudflare";import { env } from "cloudflare:workers";export const transport = new CloudflareTransport(env.EMAIL);
In cloudflare.config.ts, declare EMAIL: bindings.sendEmail().
In app/initializers/router.tsx, add the mailer to the end of the router's middleware:
import mail from "@sdxc/mail/middleware";mail({ transport, from: MAIL_FROM }),
Breaking: Publish SEO tags, robots.txt, a sitemap and security.txt from the app template
A project from sdxc create now publishes what search engines and security researchers look
for:
Every page's head carries its title, description, canonical link and Open Graph tags through
@sdxc/seo, resolved on SITE_URL from config/constants.ts whichever host served it.
/robots.txt lets every crawler in and names /sitemap.xml, which lists the home page.
/.well-known/security.txt (RFC 9116) names a security contact, from
config/security-txt.ts; a test fails a month before its expires date so it is reviewed.
A path ending in / redirects with a 308 to the same path without it, the form canonical
links use.
Set SITE_URL, SITE_NAME and SITE_DESCRIPTION in config/constants.ts, and the contact in
config/security-txt.ts, before deploying.
Breaking for an existing project: DocumentLayout requires the request's URL. To migrate:
Run bun add @sdxc/seo @sdxc/robots @sdxc/sitemap @sdxc/well-known @sdxc/http @sdxc/trailing-slash-middleware, and add SITE_URL, SITE_NAME and SITE_DESCRIPTION to
config/constants.ts.
Save app/initializers/seo.ts:
import { createSeo } from "@sdxc/seo";export const seo = createSeo({ baseUrl: SITE_URL, siteName: SITE_NAME, defaultDescription: SITE_DESCRIPTION,});
In resources/layouts/document.tsx, add url: URL and description?: string props and
replace the <title> with the SEO tags:
Add robots: get("/robots.txt") and sitemap: get("/sitemap.xml") to routes/web.ts, with
controllers answering text(stringify({ groups, sitemaps, records: [] })) from
@sdxc/robots and xml(sitemap.toString()) from @sdxc/sitemap, and map both before
notFound.
Save config/security-txt.ts exporting securityTxtEntry = serve(securityTxt, () => SECURITY_TXT)
from @sdxc/well-known, and in app/initializers/router.tsx add, right after trace():
Redirect the app template's www. host to the apex domain
A project from sdxc create now answers a request to www. its domain with a 308 to the
same URL on the apex domain, through @sdxc/no-www-middleware, so every page has one URL and
the canonical links on SITE_URL match it.
An existing project gets the same with bun add @sdxc/no-www-middleware and noWWW() in
app/initializers/router.tsx, right before trailingSlash():
import { noWWW } from "@sdxc/no-www-middleware";
Report each request's timings in a Server-Timing header
A project from sdxc create now sends a Server-Timing header with every response, which
browser devtools show in the network panel. The router publishes an @sdxc/server-timing
collector as ctx.timing; a handler measures its own work, and the whole request is
reported as app:
Run bun add @sdxc/server-timing and save app/http/middleware/server-timing.ts, a
middleware that creates a TimingCollector, publishes it with
ctx.set(Timing, timing, { property: "timing" }), awaits
timing.measure("app", "", () => next()), and answers a copy of the response with
timing.toHeaders(new Headers(response.headers)).
Add serverTiming() to app/initializers/router.tsx, right after trace().
Give the app template's command line db commands, mail and translations
A project from sdxc create now does its database work through its own command line:
bun run cli db migrate # bun db:local:migrate bun run cli db migrate --remote # bun db:remote:migrate bun run cli db console # sql> prompt over the local database bun run cli db console --execute "SELECT count(*) FROM posts"
db migrate applies every migration in database/migrations/ the local database lacks,
directly to the SQLite file bun dev serves from, and records it in the same d1_migrations
table cf and Wrangler use. It finishes as soon as it is done. With --remote it runs
cf d1 migrations apply against production. Both read the database id from
cloudflare.config.ts, so the id is written once.
Every command also gets the app's services on its context: the local database as ctx.db,
a mailer as ctx.email that prints each message to stderr instead of delivering it, and the
app's translations as ctx.intl (in the language LANG names) and ctx.translate(language).
An existing project gets the same in four steps:
Run bun add @sdxc/result, and save app/initializers/local-database.ts (exporting
DATABASE_ID, PROJECT_ROOT, LOCAL_DATABASE_FILE and openLocalDatabase()),
app/services/migrations.ts (applyMigrations(database, migrations)),
app/commands/db/migrate.ts and app/commands/db/console.ts
(export { dbHandler as default } from "@sdxc/database-middleware/cli";) from a new
project.
Give models from sdxc make model a UUIDv7 id on create
A model sdxc make model writes now fills in its row's id when create leaves it out, with
a time-ordered UUIDv7 from @sdxc/uuid/v7, so ids sort by creation and never repeat:
let post = await Post.bind({ db: ctx.db }).create({ title: "Hello" }); // post.data.id: "01927f3c-…"
make adds @sdxc/uuid to package.json with the model. Models written before keep working;
to give one the same behavior, add to its createModel options:
Run the app template's own commands through sdxc run
A project from sdxc create now lists @sdxc/kit as a dev dependency, and its
db:local:migrate and db:remote:migrate scripts run sdxc run db migrate and
sdxc run db migrate --remote. sdxc run is how an app's own commands are run, from any folder
in the project:
sdxc run about sdxc run db migrate sdxc run db console --execute "SELECT count(*) FROM posts"
With the dev dependency, the scripts and bunx sdxc work without a global install.
An existing project gets the same with bun add -d @sdxc/kit and these scripts:
Before: "db:local:migrate": "bun run cli db migrate" After: "db:local:migrate": "sdxc run db migrate"
Stamp created_at and updated_at on rows models and commands create
Before, a model sdxc make model wrote left its table's timestamps unset, so create wrote
no created_at or updated_at, and a migration declaring them NOT NULL refused every row
with a ConstraintViolation. The app's command line also opened its local database with
remix/data-table's default clock, whose Date SQLite cannot bind. Now the model's table
declares timestamps: true, and the command line writes timestamps as epoch milliseconds, the
way the Worker's database does, so a row created from a request, a job or a command carries
both columns.
Existing projects must act:
In every model sdxc make model wrote, add timestamps: true to its table({ … }):
In app/initializers/local-database.ts, pass the clock to the database:
Publish the app template's models as ctx.models, registered by sdxc make model
A project from sdxc create now has a model registry, app/models/index.ts, and publishes it
bound to the run's database as ctx.models on every request, job and command, through
@sdxc/data-model's middleware. sdxc make model post registers the new model there, imported
on first use, so it is reachable as soon as the command finishes:
// app/models/index.ts, after `sdxc make model post` export default createModels({ post: () => import("./post"), }); // a controller, a job or a command let created = await ctx.models.post.create({});
A model make writes now default-exports itself, which the registry's import reads. In a
project without app/models/index.ts, make model prints the entry to add.
An existing project gets the same in three steps:
Run bun add @sdxc/data-model, and save app/models/index.ts:
import { createModels } from "@sdxc/data-model";export default createModels({});
Register each existing model, and add export default <Model>; to its module:
Shorten the app template's README to a quick reference
A project from sdxc create now starts with a README of about 80 lines instead of 150: how to
start, the everyday sdxc make and sdxc run commands, where each kind of code lives, what a
handler reads from ctx, and a numbered checklist for the first deploy. Nothing about the
project's behavior changed, and existing projects need no action.
Breaking: Drop the app template's db:*:migrate scripts for sdxc run db migrate
A project from sdxc create no longer has db:local:migrate and db:remote:migrate package
scripts. Migrations run through the app's own command line, the same way as every other
command:
sdxc run db migrate # the local database `bun dev` serves sdxc run db migrate --remote # production
Breaking for an existing project only if something calls the scripts: replace
bun db:local:migrate with sdxc run db migrate, and bun db:remote:migrate with
sdxc run db migrate --remote, in your deploy scripts and CI, then delete both entries from
package.json's scripts.
Put the project's node_modules/.bin on PATH for sdxc runsdxc run now starts the app's command line with the project's node_modules/.bin first on
PATH, as a package script does. A command that runs a tool the project installs, such as
cf or vp, finds the project's copy, without a global install and with no need for a package
script around it:
No action needed; a command that relied on a global tool now runs the project's version when
the project installs one.
Breaking: Generate the app template's Worker types with sdxc run typegen
A project from sdxc create no longer has a cf:typegen package script. The app's command
line has a typegen command instead, which writes the Worker's env types from
cloudflare.config.ts through the project's cf:
sdxc run typegen
Breaking for an existing project only if something calls the script. To migrate:
Save app/commands/typegen.ts:
import { createCommand, success } from "@sdxc/cli";import { isFailure } from "@sdxc/result";import commandset from "~/app/commands";import { PROJECT_ROOT } from "~/app/initializers/local-database";export default createCommand(commandset.typegen, async (ctx) => { let generated = await ctx.exec(["cf", "workers", "types"], { cwd: PROJECT_ROOT }); return isFailure(generated) ? generated : success();});
Declare it in app/commands/index.ts as
typegen: command({ description: "Write the Worker's env types from cloudflare.config.ts" }),
and map it in app/initializers/cli.ts with
cli.map(commandset.typegen, lazy(() => import("~/app/commands/typegen")));.
Replace bun cf:typegen with sdxc run typegen in your docs and CI, and delete the
cf:typegen script from package.json.
Build the app template's sitemap from the route table
Apps created with sdxc create now build /sitemap.xml with fromRoutes from
@sdxc/sitemap/remix, so every GET route in routes/web.ts has to be listed or excluded
in app/http/controllers/sitemap.ts. A route left out is a type error:
The generated sitemap is unchanged: it lists the home page at SITE_URL with priority 1
and is cached for an hour. A page added with sdxc make controller now fails
bun check until you add it to the sitemap, with true (or options) to list it or false
to exclude it. Existing apps need no action, but they can adopt the same controller.
Credit the author in the module JSDoc of generated files
Files written by sdxc make and by sdxc create from the built-in app template now end their opening module JSDoc with @author and @copyright tags:
/** * Charge: describe the rule this service carries out across models, … * * @author [Ada Lovelace](https://ada.dev) * @copyright Ada Lovelace 2026 */
The author is the author field of the nearest package.json, searched from the folder the file is written to up to the repository root. Both npm forms work: "Name <email> (url)" and { "name": …, "url": … }. If no package.json names an author, git config user.name is used, and the tag has no link. If neither gives a name, no tags are written. The year is the current UTC year.
Project stubs pick this up through a new {{header}} placeholder. Place it at the end of the module JSDoc's last description line: * {{title}}: what this file does.{{header}}. Run sdxc make stubs to see it in the built-in stubs. Project stubs copied earlier keep working unchanged and get no tags until you add {{header}}. Templates downloaded from GitHub are written exactly as they are.
Decide a new page in the sitemap with sdxc make controller
When a controller builds the sitemap with fromRoutes from @sdxc/sitemap/remix over the
same route contract, sdxc make controller now adds the new page's decision beside the route
and its mapping, so the app keeps type checking:
sdxc make controller sponsors # sponsors: true, sdxc make controller posts/show --path /posts/:slug # posts: { show: [] }, sdxc make controller signup --method form # signup: { index: true },
A page is listed (true) by default. A pattern with required params starts as [], for you
to fill with the pages to list, and a form route decides its page under index. A page
inside a group the sitemap already excludes with false gets no edit. post, put, patch
and delete routes need no decision and are left out. When the route or its mapping cannot
be placed, make prints the sitemap decision with the other edits to make by hand.
Before, a page added with make failed the type check until you decided it by hand. Projects
without a fromRoutes sitemap see no change.
Link the sdxc.dev docs from the module JSDoc of generated files
Files written by sdxc make now open with links to the sdxc.dev guide and API reference for the packages the file is built on, so you know what to read before filling it in:
/** * Charge: describe the rule this service carries out across models, … * * @see {@link https://sdxc.dev/docs/conventions/result-everywhere} * @see {@link https://sdxc.dev/api/result} * * @author [Ada Lovelace](https://ada.dev) * @copyright Ada Lovelace 2026 */
Each kind links its own pages: jobs link the jobs-and-cron guide and @sdxc/jobs, models the data-models guide and @sdxc/data-model, MCP handlers the MCP server guide and @sdxc/mcp, and test files the guide for the kind plus the testing guide. Migrations are SQL and get no links.
Project stubs copied earlier with sdxc make stubs keep working unchanged and get no links. To add them, rerun sdxc make stubs into an empty folder and copy the @see lines into yours, placed before {{header}}.
Mark where your code goes in generated files
Files written by sdxc make now carry a // TODO: comment (or {/* TODO: … */} inside JSX) at the spot your code belongs, so a generated file shows what to fill in without reading the whole thing:
export default createJobHandler(jobs.sendDigest, async (ctx) => { ctx.log.set({ job: { name: "send-digest" } }); // TODO: do the work, through the services on `ctx` });
Controllers, form controllers (one for the fields, one for saving the submission), API controllers, jobs, cron jobs, commands, services, middleware, models (where columns go) and emails get one. Replace each marker with your code and delete it; your editor's TODO search lists the ones left.
Project stubs copied earlier with sdxc make stubs keep working unchanged and get no markers.
Generate model ids with generateId in sdxc make model
A model written by sdxc make model now reads as its table and one line:
@sdxc/data-model's generateId fills the primary key with a UUIDv7 on create and upsert,
replacing the optional: ["id"] list and the beforeCreate callback every generated model
repeated. Models generated earlier keep working; to slim one down, drop optional: ["id"] and
the callback and pass generateId: generateUUID instead.
Write a defineEmail() email with sdxc make emailsdxc make email welcome now writes the email as the copy it says and one
defineEmail() call from @sdxc/mail, instead of a copy interface, a body
component and a class with a constructor, to, subject and body():
export const WelcomeEmail = defineEmail<WelcomeCopy>({ subject: (copy) => copy.heading, body: (handle) => () => ( <Email.Layout preview={handle.props.heading} title={handle.props.heading}> <Email.Heading>{handle.props.heading}</Email.Heading> <Email.Text>{handle.props.body}</Email.Text> {/* TODO: lay out the rest of the email */} </Email.Layout> ), });
It is sent the same way as before, ctx.email.later(new WelcomeEmail(to, copy)),
and the generated test also renders the body. Emails generated earlier keep
working unchanged.
Guard sdxc make controller --method form actions with the spam middleware
A generated form controller's action now declares
middleware: [captcha(turnstile), spam(spamFilter, { fields: { content: "message" } })], and its
handler only saves and redirects: the 422 for spam comes from @sdxc/spam/middleware. Rename
"message" to the form field that holds what the visitor wrote, and add email, name or
url to fields when the form collects them.
New apps from sdxc create install getClientIP() and userAgent() in the router, so every
request reads ctx.ip and ctx.userAgent, and the address rate limit keys on ctx.ip. Apps
created earlier keep working. To get the same in one, add @sdxc/user-agent, put
getClientIP() from @sdxc/get-client-ip/middleware and userAgent() from
@sdxc/user-agent/middleware in createRouter({ middleware }), and replace a generated
action's inline spamFilter.check(…) with the middleware above.
@sdxc/mail
Define an email from its props, subject and body with defineEmail()defineEmail() builds the class the mailer sends from a subject and a body
component, so an email is its props and its markup instead of a hand-written
class with a constructor, to, subject and body():
The class takes the recipient (a string, an Address or a list) and the
props, and exposes those props as email.props. replyTo, headers,
unsubscribe, list and calendar are optional functions of the props.
Each call returns its own class, so transport.last?.email instanceof WelcomeEmail still finds a sent message. The Email contract is unchanged:
existing email classes keep working, and nothing needs to migrate.
Include the module behind defineEmail()
The previous commit exported defineEmail() without adding the file that implements it. Both commits ship in the same release, so consumers see only the new defineEmail() and need to do nothing.
@sdxc/openapi
Serve the document on a router whose middleware publishes context
openapiHandler was typed for a request context with nothing published on it, so passing
it to a router whose middleware sets a value (a logger, a session, a tenant) failed to
compile:
router.get(routes.openapi, openapiHandler(() => document.build())); // TS2345: RequestHandler<RequestContext<{}, []>> is not assignable to …
It now accepts any request context, since it reads only the request. Runtime behavior is
unchanged, and no consumer needs to change anything; a cast written to work around the error
can be removed.
@sdxc/png
Encode and decode PNG images without WebAssembly
New package @sdxc/png writes a pixel buffer as a PNG and reads any valid PNG back, using the platform's CompressionStream and DecompressionStream, so it runs in Workers, Bun, Node and the browser with no WebAssembly.
encode writes RGB when every pixel is opaque (pass { alpha: "keep" } for RGBA), picks a filter per scanline with libpng's heuristic, and writes tEXt entries from options.text. decode checks the signature and every CRC and expands all color types and bit depths, palettes with tRNS, 16-bit samples and Adam7 interlacing into 8-bit RGBA; failures come back as a PNGError whose code is signature, crc, header, unsupported, truncated or inflate.
Encode images faster by scoring filters in one pass
encode used to filter every scanline five times, through a generic per-byte predictor, to find the cheapest filter. It now scores all five filters in one pass over the row and writes only the winner, with each filter's loop specialized, and decode reverses filters with the same specialized loops. Encoding a 1200×630 image takes roughly half the time it did, and the bytes written are identical. No action is needed.
@sdxc/raster
Draw antialiased paths, gradients, masks and text in a Worker
New package. Canvas is a 2D drawing surface in plain TypeScript, with no WebAssembly, that encodes to PNG through @sdxc/png and sets text with @sdxc/font, so a Worker can render an image such as a social card on demand.
typescript
import{Canvas, color, radialGradient,TRANSPARENT}from"@sdxc/raster";let canvas =newCanvas(1200,630);canvas.fillRect(0,0,1200,630,color("oklch(0.155 0.006 275)"));canvas.mask(radialGradient({center:[600,315],radius:700,stops:[[0,color("#fff")],[0.75,TRANSPARENT]]}),()=>{for(let x =0; x <1200; x +=48) canvas.fillRect(x,0,1,630,color("#2b2d38"));});canvas.text("Sign and verify JWTs",{ font,size:76,minSize:52,maxLines:2,maxWidth:880,x:600,y:300,align:"center",paint:color("#f4f4f6")});let png =await canvas.toPNG();
fillRect and fillPath (nonzero or evenodd) with exact-area antialiasing; Path builds lines, quadratic and cubic curves, rectangles and rounded rectangles, and adopts glyph outlines.
Solid colours from hex, rgb() and oklch(), plus linear and elliptical radial gradients interpolated in premultiplied sRGB.
layer({ opacity }, draw) and mask(paint, draw) composite a group of calls once.
text() wraps at spaces, shrinks to a line limit, and truncates with an ellipsis, returning the metrics to place what follows.
Shade whole spans and composite only what a layer touched
Fills used to sample their paint and blend one pixel at a time through closures, and layer()/mask() composited the whole canvas. Now fillRect and fillPath shade a row span at a time with gradient math done incrementally, copy fully covered opaque pixels and skip transparent ones, and layers composite only the box their drawing touched. A full-canvas gradient fill is about four times faster and a 1200×630 card renders in roughly half the time. Output is unchanged and no action is needed.
Draw SVG path data with Path.fromSVG
Path.fromSVG(d, { transform }) reads an SVG d attribute, every command (M L H V C S Q T A Z, absolute and relative) with SVG's number syntax, so a logo or icon exported as SVG fills on a Canvas. The optional transform is an SVG matrix(a b c d e f), which places and scales a shape drawn in its own viewBox. Malformed data throws a RangeError naming the position.
typescript
import{Canvas, color,Path}from"@sdxc/raster";let logo =Path.fromSVG("M2970 8530c-318-68-583-290-705-592…",{transform:[0.004,0,0,-0.004,80,104]});canvas.fillPath(logo,color("#f3f4f6"));
Parse colour functions in linear time
color() from @sdxc/raster could take seconds on an unclosed colour function
followed by a long run of whitespace, such as "rgb(" plus 100,000 tabs: the
pattern it matched against backtracked quadratically. It now rejects such input
with the same RangeError immediately. Every colour that parsed before parses
the same way, including whitespace right after the opening parenthesis. No
action is needed from consumers.
@sdxc/seo
State a social card image's width and height
Seo.OpenGraph takes imageWidth and imageHeight, which Seo.Meta writes as og:image:width and og:image:height alongside og:image. A platform that knows the size can lay out a large card on the first share instead of waiting to fetch the image. Both are ignored without an image.
Build a sitemap from a Remix route table with every GET route decided
New @sdxc/sitemap/remix entry point. fromRoutes(routes, origin, decisions) walks a remix/routes table and requires a decision for every GET and ANY route in it, so a page added to the table fails typechecking until the sitemap lists or excludes it. A route with params lists its pages, with the params typed from its pattern.
A route without required params takes true, false or the entry's AppendOptions; a route with required params takes false or a list of { params, ...options }; a nested map takes its own decisions or false. Write-only routes (POST, PUT, DELETE, …) take no key.
Optional groups such as (.:ext) are left out of a URL unless the page passes their param.
Pages are listed in the order the table declares its routes, and each URL is resolved against origin.
remix is a peer dependency of this entry point only; @sdxc/sitemap itself is unchanged.
@sdxc/spam
Score form submissions in a spam() router middleware
@sdxc/spam/middleware exports spam(filter, options), which scores every submission before
the handler runs. A spam verdict gets a 422 response by default, and every assessment is
published as ctx.spamAssessment, so the handler only saves what it received:
Each entry in fields names a form field whose value is read from the submitted form:
content takes one name or several, joined by line breaks, and name, email and url
describe the author. The submission also carries ctx.ip from @sdxc/get-client-ip/middleware,
ctx.userAgent.raw from @sdxc/user-agent/middleware, and the render time honeypot() from
@sdxc/honeypot/middleware verified, each one when that middleware runs earlier. Pass
onSpam(assessment, ctx) to answer spam with your own response, or null to let the handler
decide. format and languages pass through to the filter.
@sdxc/ui
Add liveFrame and activeDescendantKeys mixins for live results in a frame
Two mixins in @sdxc/ui/mixins for search-as-you-type over server-rendered results.
liveFrame reloads the frame its input sits in once typing pauses, from an address you build from the value, and only lets the newest request settle. It reports progress as a LiveFrameEvent ("ui:live-frame") whose state is pending, slow, loading or settled, and reloads at once when the input receives LIVE_FRAME_RELOAD_EVENT:
activeDescendantKeys gives a combobox input the arrow-and-Enter pattern over the options of the listbox its aria-controls names, keeping focus in the input through aria-activedescendant. Enter follows the chosen option's link, or the only option when it is not inside an aria-busy region. chooseOption(input, index) and chosenOption(input) set and read the choice, for example after a reload replaced the options:
@sdxc/user-agent
Keep the parsed string on the result as rawparse() and the userAgent() middleware now return the string they read as raw, beside
browser, engine, os and device, so code that forwards the header verbatim (a spam or
analytics provider) reads it from ctx.userAgent instead of the request headers.
import { userAgent } from "@sdxc/user-agent/middleware"; let router = createRouter({ middleware: [userAgent()] }); // in a handler ctx.userAgent.raw; // "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) …"
A request without the header, and a context the middleware never ran on, read raw as "".
Code that builds a UserAgent object literal by hand must now add a raw string.
@sdxc/zip
Compute CRC-32 with an indexed loop
crc32 read its input through the typed array's iterator, which spent more time in iteration than in the checksum. It now indexes the bytes directly, so checksumming large entries in Zip (and every chunk @sdxc/png writes) is faster. Results are unchanged and no action is needed.
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/api-client
Republished because @sdxc/trace-context changed.
@sdxc/assets-middleware
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/attribution
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/auth
Republished because @sdxc/catch-response-middleware changed.
@sdxc/authz
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/billing
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
Bill from an @sdxc/cli command with @sdxc/billing/middleware/cli
@sdxc/billing/middleware/cli exports billing(options) for an @sdxc/cli command line. It publishes options.provider, or a (ctx) => Billing factory's answer resolved once per run, as ctx.billing, so an admin command grants an entitlement or looks up a customer by hand through the same platform and secrets a route uses. The route guards stay in the router entry.
@sdxc/cli is an optional peer dependency, so an app without a command line installs nothing new.
@sdxc/billing/middleware now publishes context.billing under the CurrentBilling context key it exports, shared with the command-line entry, so ctx.get(CurrentBilling) reads the same provider in a route or a command. The property is now read-only once the middleware runs; nothing else changes.
@sdxc/cache
Accept any typing of a Workers KV binding
WorkerKVCache takes any KV binding, whatever declares its type.
Before, the KV cache typed its binding with the global KVNamespace that only a Worker project declares, so type checking a project that compiles the package without Cloudflare's types (such as one importing it through sdxc) failed with "Cannot find name 'KVNamespace'". Now it declares the calls it makes as WorkerKVNamespace, which any binding satisfies: a Worker's generated types, @cloudflare/workers-types, or a test double. No action needed; existing code passes its binding unchanged.
@sdxc/captcha
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/catch-response-middleware
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/cli
Add @sdxc/cli for command lines declared as a contract
New package. A command line is a contract of commands, arguments and flags, with handlers mapped onto it and loaded lazily. Every handler answers a Result: success exits 0, a failure prints its message and exits 1, usage("…") prints the command's help and exits 2, and a cancelled prompt or task exits 130.
Flags: booleans with a generated --no-<name>, string and number flags as --name value or --name=value, .multiple(), .list() for comma lists and .optionalValue() for --flag[=value], short and long aliases, and --. A flag belongs to the command that declares it; passing it elsewhere names the commands that take it. Values go through any Standard Schema, and every problem is reported in one usage error.
Help is generated at every level from the contract, and mistyped commands and flags suggest the closest name.
Middleware publishes onto the context with ctx.set(key, value, { property }), typed from the chain as in @sdxc/jobs (CommandMiddleware, ChainProperties), globally in createCLI or per command in createCommand(command, { middleware, handler }).
ctx carries cwd, env, stdout/stderr, style (NO_COLOR, FORCE_COLOR, per-stream terminal), exec (no shell; stdio inherit, ignore, collect or stderr; answers a Result) and signal.
Seven prompt kinds (text, password, number, confirm, select, multiselect, search), bound to flags and arguments or asked by a handler through ctx.prompt with a required default. Without a terminal the default applies, and an input with neither is a usage error.
ctx.task(label?, fn) shows a spinner or a progress bar (task.update, task.total, task.advance, task.signal), nests, owns the terminal while it runs, and prints two plain lines without a terminal, in CI, on TERM=dumb or with --no-progress.
@sdxc/cli/test exports invoke(cli, argv, options): scripted answers by name or in order, a recorded exec table, and a virtual terminal driven by keys for testing prompt drawing.
Document every export and add usage patterns
The @sdxc/cli README now opens with the smallest complete command, documents every export of @sdxc/cli and @sdxc/cli/test, and adds patterns for publishing a database through middleware, keeping one module per command, and testing prompts and child processes. No code changed; nothing to do.
Add tri-state booleans, group inputs, flag headings and prompt initial values
Several additions to @sdxc/cli, and four changes to what it prints.
Tri-state boolean flags. Declare default: undefined and the flag reads
boolean | undefined: unset unless --x or --no-x is passed, so a
configuration or a later question decides. The help shows --[no-]x.
Group arguments and flags. commands() takes arguments, flags and
tasks for a handler mapped onto the group itself. Prompts bound to them ask
on a terminal, and without one a missing input is a usage error. A word the
group's first argument rejects is reported as an unknown command.
Shared helpers. ChainContext<typeof CHAIN> is the context of any command
behind a middleware chain, so a helper several commands call takes one type:
const CHAIN = [project()] as const; function root(ctx: ChainContext<typeof CHAIN>) { return ctx.project.root; }
Help headings. Each flag takes heading, the help section it is listed
under in place of "Options":
flag.string("retries", { heading: "Scheduling" })
Other additions:
command({ tasks: true }) marks a command whose handler runs ctx.task.
prompt.confirm takes active and inactive, the words its toggle and
summary line use for yes and no.
ctx.prompt.select, multiselect and search infer their value type
from options, so multiselect({ options: names, default: [] }) answers
string[] with no type argument.
Changed behavior:
The help lists --no-progress only for commands declared with
tasks: true. Every command still accepts it. Add tasks: true to keep it
listed.
A flag written before a member's name now moves to that member:
prog make --dry-run job passes --dry-run to job. Before, it was an
unknown flag of the group.
An empty value (--seed=, or --allow-env= on a comma list) is now the
same usage error as a missing one, "--seed needs a value". Before, --seed=
went to the schema, and a comma list said "--allow-env= needs at least one
value".
A value that fails its schema is reported under the name typed (--jobs),
not the flag's main name (--concurrency). A flag another command declares
now consumes its value, so --cron "0 8 * * *" on the wrong command is one
error, without "Unexpected argument".
Consumers only act on the --no-progress change, and on tests that match the
old messages.
Let middleware read the run's result, require values, extend children's env, and read stdin
@sdxc/cli adds five things to middleware and handlers.
next() resolves to what the rest of the chain answered, so a middleware can
log the outcome. exitCodeOf(error) is exported, and answers the exit code a
failure maps to:
let result = await next(); if (isFailure(result)) log.set({ exit_code: exitCodeOf(result.error) });
ctx.require(key) reads a value an earlier middleware must have published. A
missing value fails the run with exit 1, naming the command. A middleware
sees the bare context, so this is how it reads another's value without an
undefined check:
ctx.setExecEnv(variables) adds variables every child ctx.exec starts with.
They go over the run's env and under a call's own options.env, and an
undefined value removes a variable:
ctx.stdin exposes isTTY and text(), which reads everything piped in.
invoke() from @sdxc/cli/test takes stdin: "…" to script it, which makes
interactive default to false. Without stdin text, a non-interactive
invoke() run now sees an empty pipe that ends at once:
let sql = ctx.stdin.isTTY ? undefined : await ctx.stdin.text();
NextFunction now resolves to a CommandResult instead of void. Middleware
that awaits next() needs no change.
Type every property a middleware publishes from a union of effects
A CommandMiddleware can now declare several effects as a union, one per
property it installs. A handler behind it reads each property, typed:
Before, a union effect typed none of its properties, so a middleware
publishing more than one had to augment CommandContext for the rest.
Middleware declaring one effect is unchanged.
Hand a command's arguments to another program with passthrough
A command declared with passthrough: true receives every token after its
name exactly as typed, flags and --help included, in its one variadic
argument, so it can run another program with them:
let run = command({ arguments: { args: argument.variadic(s.string()) }, passthrough: true, }); // prog run users find --limit 5 // ctx.arguments.args: ["users", "find", "--limit", "5"]
--help written before the command's name still shows the program's own
help. A passthrough command must declare exactly one variadic argument and no
flags; createCLI throws otherwise.
Take another program's arguments with argument.rest(), and expose ctx.argv
argument.rest() declares an argument that receives every token after the
command's name exactly as typed, flags and --help included, for a command
that runs another program with them:
let run = command({ arguments: { args: argument.rest() } }); // prog run users find --limit 5 // ctx.arguments.args: ["users", "find", "--limit", "5"]
It is the command's only argument and the command declares no flags;
createCLI throws otherwise. --help written before the command's name still
shows the program's own help. It replaces the passthrough: true command
option added earlier in this release, which is removed.
ctx.argv holds the arguments the run was given, exactly as cli.run
received them, for logging a run or starting it again:
Supersede the passthrough release note
passthrough: true was replaced within the same release by
argument.rest(), whose note describes the shipped API. Nothing to do.
Shorten the @sdxc/cli API reference
The README's API section now gives each export one line, grouped into declaring commands, running them, the handler's context and results as tables, and testing; option-by-option detail stays in each export's JSDoc. No code changed; nothing to do.
@sdxc/codemod
Add the @sdxc/codemod package
New package for source-to-source edits of JavaScript and TypeScript
(.js, .mjs, .cjs, .jsx, .ts, .mts, .cts, .tsx). Every edit replaces source
ranges and returns the new text, so a file keeps its formatting, comments
and quote style. Its only runtime dependency is @sdxc/result.
The scanner reads strings, template literals, regular expressions,
comments and JSX text as tokens of their own, so <p>Don't import "./x.js"</p>
names no module. Input that ends inside one of them, or whose brackets do
not pair, fails with a CodemodError (code, filename, offset) before any
edit is computed, and every edit re-scans its own output. Each function
answers Result<Edit, CodemodError>, where Edit is
{ source, changed, unhandled }.
Report TypeScript import types on request
findModuleReferences takes an importTypes option that also reports TypeScript import types, typeof import("…") and import("…").Name, as dynamic references with typeOnly: true. A declaration file names its dependencies this way, so a check over emitted .d.ts files needs them:
Without the option the result is unchanged, so existing callers need no action.
Read JSX in .js, .mjs and .cjs files
Every @sdxc/codemod function now reads JSX in .js, .mjs and .cjs files, the
way it already did in .jsx and .tsx. Projects that keep React-style components in
.js files can be scanned and edited without renaming them:
import { moveImports } from "@sdxc/codemod"; let moved = moveImports("page.js", 'import { Button } from "acme/ui";\nexport let page = <Button />;\n', { from: "acme/ui", names: ["Button"], to: "./button.js", });
Before, a .js file containing JSX failed to scan or was read with its markup as code.
A < where an expression begins is now an element in every JavaScript file, and a <
after an operand (a < b) stays a comparison, so plain JavaScript files read exactly as
before. No action is needed.
Breaking: Move default and namespace imports, and merge moved declarations
moveImports now moves every kind of binding, matched by the name the module
exports: a named binding by its name, a default import by "default", and
import * as X, export * as X and export * from by "*", which repoints the
whole declaration.
import { moveImports } from "@sdxc/codemod"; moveImports("page.ts", source, { from: "acme/ui", names: ["default", "Button"], to: "~/components/ui/index.js", }); // import Ui, { Button, Dialog } from "acme/ui"; // becomes // import { Dialog } from "acme/ui"; // import Ui, { Button } from "~/components/ui/index.js";
The moved bindings of one kind (imports or re-exports, type-only or not) now land in
one declaration of to: an existing one, the first declaration repointed in place,
or one new declaration. Before, two declarations that both moved left two
declarations of to:
import { Button } from "acme/ui"; import { Dialog } from "acme/ui"; // before: two imports of "~/ui.js"; now: import { Button, Dialog } from "~/ui.js";
A default joins the named imports; a namespace, a type-only default and a second
default keep declarations of their own, and import type stays separate from
import.
Breaking: Edit.unhandled from moveImports now holds only the namespace imports
and export * declarations of from that stay while other names move. A default
import that is not named in names, or a namespace that is not named with "*",
used to be reported there and is now left in place like any other binding that
does not move. Callers that reported default imports from unhandled should add
"default" to names to move them.
Correct the release note for moving default and namespace imports
moveImports now moves every kind of binding, matched by the name the module
exports: a named binding by its name, a default import by "default", and
import * as X, export * as X and export * from by "*", which repoints the
whole declaration.
import { moveImports } from "@sdxc/codemod"; moveImports("page.ts", source, { from: "acme/ui", names: ["default", "Button"], to: "~/components/ui/index.js", }); // import Ui, { Button, Dialog } from "acme/ui"; // becomes // import { Dialog } from "acme/ui"; // import Ui, { Button } from "~/components/ui/index.js";
The moved bindings of one kind (imports or re-exports, type-only or not) now land in
one declaration of to: an existing one, the first declaration repointed in place,
or one new declaration. Before, two declarations that both moved left two
declarations of to:
import { Button } from "acme/ui"; import { Dialog } from "acme/ui"; // before: two imports of "~/ui.js"; now: import { Button, Dialog } from "~/ui.js";
A default joins the named imports; a namespace, a type-only default and a second
default keep declarations of their own, and import type stays separate from
import.
Breaking: Edit.unhandled from moveImports now holds only the namespace imports
and export * declarations of from that stay while other names move, since those
reach the moved names through the whole module. A default import of from used to
be reported there and is now left in place unless names includes "default".
Callers that reported default imports from unhandled should add "default" to
names to move them.
@sdxc/data-model
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
Publish ctx.models on an @sdxc/cli command line with @sdxc/data-model/cli
@sdxc/data-model/cli exports models(registry, context, options?) for an @sdxc/cli command line, with the same contract as the ./router and ./jobs entries: it publishes the registry bound to each command run as ctx.models (or options.property) under the same Models key, and context runs once, on the first model access, so it reads whatever earlier middleware published and a command that touches no model never binds.
import { createCLI, failure, success } from "@sdxc/cli"; import { models } from "@sdxc/data-model/cli"; import { database } from "@sdxc/database-middleware/cli"; let cli = createCLI({ name: "app", commands: contract, middleware: [database(db), models(registry, (ctx) => ({ db: ctx.db }))], }); cli.map(contract.users.find, async (ctx) => { let user = await ctx.models.users.findByEmail(ctx.arguments.email); return user === null ? failure(new Error("No such user")) : success(); });
@sdxc/cli is an optional peer dependency, so an app without a command line installs nothing new. The other entries are unchanged.
@sdxc/data-table-d1
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
Accept any typing of a D1 binding
createD1DatabaseAdapter takes any D1 binding, whatever declares its type.
Before, the D1 adapter typed its binding with the global D1Database that only a Worker project declares, so type checking a project that compiles the package without Cloudflare's types (such as one importing it through sdxc) failed with "Cannot find name 'D1Database'". Now it declares the calls it makes as D1Binding, which any binding satisfies: a Worker's generated types, @cloudflare/workers-types, or a test double. No action needed; existing code passes its binding unchanged.
@sdxc/data-table-sqlstorage
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
Accept any typing of Durable Object SQL storage
The SQLite storage adapter takes any Durable Object ctx.storage.sql, whatever declares its type.
Before, the SqlStorage adapter typed its binding with the global SqlStorage that only a Worker project declares, so type checking a project that compiles the package without Cloudflare's types (such as one importing it through sdxc) failed with "Cannot find name 'SqlStorage'". Now it declares the calls it makes as SqlStorageBinding, which any binding satisfies: a Worker's generated types, @cloudflare/workers-types, or a test double. No action needed; existing code passes its binding unchanged.
@sdxc/database-middleware
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
Publish ctx.db on an @sdxc/cli command line and add a db command
@sdxc/database-middleware/cli publishes a database on every @sdxc/cli command run as ctx.db, under the same Database key the router and job entries use, so code that reads ctx.get(Database) works in a route, a job or a command. Pass the instance, or a function that opens it once per run that reaches a handler (--help opens nothing). Importing the entry adds db to @sdxc/cli's CommandContext, so a later middleware's callback reads ctx.db.
The entry also exports a db command to mount in your own contract under any name: DB_COMMAND is its declaration and dbHandler the action to map onto it. app db --execute "SELECT …" (or -e) runs one statement and exits, failing with the database's error; app db opens a sql> prompt that runs statements until .exit, .quit or Ctrl+C. Reads print as aligned columns with a row count, writes print their affected count, and without a terminal the prompt ends at once.
import { commands, createCLI } from "@sdxc/cli"; import { DB_COMMAND, database, dbHandler } from "@sdxc/database-middleware/cli"; let contract = commands({ db: DB_COMMAND }); let cli = createCLI({ name: "app", commands: contract, middleware: [database(() => openDatabase())] }); cli.map(contract.db, dbHandler);
@sdxc/cli is an optional peer dependency, so an app without a command line installs nothing new; the package now depends on @sdxc/result. The router and ./jobs entries are unchanged.
Run SQL piped into the db command
The db command from @sdxc/database-middleware/cli now runs SQL piped into
it when stdin is not a terminal, the same way --execute runs one statement:
app db < query.sql echo "SELECT count(*) FROM users" | app db
With nothing piped it still ends at once. Run without database() in the
middleware, it now fails with "db read a context key that no middleware
published". Before, the message named database().
@sdxc/diagram
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/digest-fields
Republished because @sdxc/structured-fields changed.
@sdxc/distill
Republished because @sdxc/outbound changed.
@sdxc/doh
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/email-address
Republished because @sdxc/doh changed.
@sdxc/expression
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/feed
Republished because @sdxc/outbound changed.
@sdxc/flags
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/flags-engine
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
Accept any typing of a Workers KV binding
The KV flag store takes any KV binding, whatever declares its type.
Before, the KV flag store typed its binding with the global KVNamespace that only a Worker project declares, so type checking a project that compiles the package without Cloudflare's types (such as one importing it through sdxc) failed with "Cannot find name 'KVNamespace'". Now it declares the calls it makes as WorkerKVNamespace, which any binding satisfies: a Worker's generated types, @cloudflare/workers-types, or a test double. No action needed; existing code passes its binding unchanged.
@sdxc/get-client-ip
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/highlight
Republished because @sdxc/markdown changed.
@sdxc/honeypot
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/hostname
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/http
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/http-signatures
Republished because @sdxc/digest-fields changed.
@sdxc/i18n
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
Translate on an @sdxc/cli command line with @sdxc/i18n/middleware/cli
@sdxc/i18n/middleware/cli exports i18n(options) for an @sdxc/cli command line. It takes the same options as createTranslator (resources, supportedLanguages, fallbackLanguage, optional onError) and installs:
ctx.translate, the translator factory, for text a command writes to someone else: ctx.translate(user.language) answers { locale, t, intl }, where locale is the supported language it bound to.
ctx.locale and ctx.intl, for the command's own output in the language of whoever runs it, read from the first of LC_ALL, LC_MESSAGES and LANG that is set (es_AR.UTF-8 matches es-AR, then es). C, POSIX, an unsupported language or no variable binds fallbackLanguage.
import { createCLI, success } from "@sdxc/cli";
import i18n from "@sdxc/i18n/middleware/cli";
cli.map(contract.invites.resend, async (ctx) => {
let { locale, t } = ctx.translate(user.language);
await sendEmail({ to: user.email, language: locale, subject: t("invite.subject") });
ctx.stdout(${ctx.intl.t("cli.inviteSent")}\n);
return success();
});
Message errors become i18n.error warnings on the run's log, as in the router entry. @sdxc/cli is an optional peer dependency, so an app without a command line installs nothing new.
@sdxc/i18n/middleware now publishes context.locale and context.intl under the CurrentLocale and CurrentIntl context keys it exports, shared with the command-line entry, so ctx.get(CurrentIntl) reads the same translator in a route or a command. The properties are now read-only once the middleware runs; code that assigns context.locale or context.intl itself, such as a test building a context by hand without the middleware, keeps working.
Type ctx.locale and ctx.intl from the CLI middleware's chain
The i18n() middleware from @sdxc/i18n/middleware/cli now declares
translate, locale and intl as its effects, instead of augmenting
@sdxc/cli's CommandContext with locale and intl.
Handlers on a command line whose middleware includes i18n() type all three
as before. Code that read ctx.locale or ctx.intl off a context without
i18n() in its chain, such as another middleware's callback, no longer
type-checks. Read it by key with ctx.require(CurrentLocale) or
ctx.require(CurrentIntl).
@sdxc/icons
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/idempotency
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/jobs
Enqueue jobs from an @sdxc/cli command with @sdxc/jobs/cli
The new @sdxc/jobs/cli entry point publishes ctx.jobs to a command line built with
@sdxc/cli, under the same Jobs key @sdxc/jobs/router uses, so a command enqueues a
job exactly as a route does. jobEnqueuer(queue) writes through whatever queue the app
passes, and each message carries the run's trace.
Passed @sdxc/jobs/memory's queue and the app's dispatcher, the jobs a command enqueued run
in the command's own process once its handler settles, round after round until nothing is
due, so their records, failures and retries show in the terminal. A job that throws settles
as a retry, and messages still delayed are noted as jobs.pending on the command's log.
@sdxc/cli is an optional peer dependency, needed only by this entry point; no existing
entry point changes behavior.
@sdxc/json-schema
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/jsonc
Add the @sdxc/jsonc package
New package for reading JSON with comments and trailing commas, the
format of tsconfig.json and wrangler.jsonc:
typescript
import*asJSONCfrom"@sdxc/jsonc";let parsed =JSONC.parse(text);if(isFailure(parsed)) parsed.error.message;// "... at line 4, column 12"
parse answers a Result; values are exactly what JSON.parse
produces. Failures carry reason, offset, line and column
computed by the package, so Node, Bun and Workers report the same
position. strip returns the same-length JSON text for callers that
parse it themselves.
@sdxc/jsonl
Add the @sdxc/jsonl package
New package for reading and writing JSON Lines (NDJSON): one JSON value per
line, with one set of line rules for every reader, a bounded buffer for
untrusted input, and the line number in every failure.
import * as JSONL from "@sdxc/jsonl"; import { isFailure } from "@sdxc/result"; let parsed = JSONL.parse('{"id":1}\n\n{"id":2}\n'); // success([{ id: 1 }, { id: 2 }]) let text = JSONL.stringify([{ id: 1 }]); // success('{"id":1}\n') for await (let entry of JSONL.read(request.body, { schema: Row, maxLineBytes: 1_048_576 })) { if (isFailure(entry)) continue; // entry.error.code, entry.error.line entry.data.value; // typed by any Standard Schema, sync or async } return new Response(JSONL.encode(rows)); // ReadableStream<Uint8Array>
Every reader removes the \r of a \r\n ending, keeps a last line without a
newline, skips blank lines while still counting them, and ignores a leading
byte-order mark. lines() yields raw line text, skip resumes after a count
of values, and encodeLines() streams already-serialized lines byte for byte.
Failures are a single JSONLError whose code is line-too-long,
invalid-json, invalid-value or unserializable.
@sdxc/kit
Breaking: Move the sdxc command line to @sdxc/kit
The sdxc command line now ships as its own package, @sdxc/kit, whose binary is still named sdxc. Install it globally to run the commands anywhere:
@sdxc/kit carries the built-in templates, the code stubs, the configuration and lock file JSON Schemas (@sdxc/kit/config.schema.json, @sdxc/kit/lock.schema.json), and from the next release the component registry and changelog sdxc ui and sdxc upgrade read. It also exports createSDXC() and kitVersion() for a program that embeds the command line.
The sdxc package keeps re-exporting every package as sdxc/<name>, now including sdxc/kit, and keeps a sdxc binary that runs the kit's command line, so a project that depends on sdxc still runs npx sdxc … with no other install.
Breaking for anyone reading files out of the sdxc package directly:
sdxc/config.schema.json is now sdxc/kit/config.schema.json (or @sdxc/kit/config.schema.json). sdxc init writes "$schema": "../node_modules/sdxc/src/kit/config.schema.json"; in an existing .config/sdxc.jsonc, change the old "../node_modules/sdxc/config.schema.json" to that path.
sdxc/lock.schema.json is now sdxc/kit/lock.schema.json.
templates/ and stubs/ moved from the sdxc package to @sdxc/kit.
sdxc upgrade reads the target release's changelog from @sdxc/kit@<version> instead of sdxc@<version>; the project keeps depending on sdxc, which is what the upgrade bumps.
This one commit spans both packages because the command line's files move from one to the other; either half alone leaves the repository unbuildable.
Breaking: Write, pin and upgrade the scoped @sdxc packages
Everything @sdxc/kit writes now imports the scoped @sdxc/<name> packages, and every command keeps the project's package.json listing the ones its code imports, pinned to one release.
A release is a date: each @sdxc/* package versions as the UTC day it was published, and a daily release republishes only what changed. The kit reads a project's release as the newest date among its @sdxc/* pins, and pins a package at that release to its newest version on or before that date, read from the npm registry.
sdxc create: the app template imports @sdxc/cli, @sdxc/jobs, @sdxc/logger, @sdxc/mcp, @sdxc/ui and the rest directly, and lists each one in package.json, pinned to its latest version at create time, with remix pinned to the version the kit requires.
sdxc make: stubs import @sdxc/*, the imports it inserts while declaring and mapping use @sdxc/*, and a package the written code imports that package.json does not list is added at the project's release:
$ sdxc make job reports/dailyWrote app/jobs/reports/daily.ts...Added @sdxc/jobs@2026.10.12 to package.json; run bun install
--dry-run shows the package.json change as a diff with the rest.
sdxc ui: copies import @sdxc/ui/<name> and @sdxc/ui/<folder>, add and remove rewrite imports of @sdxc/ui, and add lists any @sdxc/* package a copy imports, as make does.
sdxc upgrade [release]: moves every @sdxc/* package the project lists to its newest version on or before the target release (the latest when left out) and remix to the version that release requires, installs, then runs that release's own kit for the prompt (bunx @sdxc/kit@<release> upgrade --prompt …, or the npx, pnpm dlx or yarn dlx equivalent), so the prompt comes from the target release's changelog and component registry. Releases are the published versions of @sdxc/kit, which ships in every release.
sdxc init points $schema at https://unpkg.com/@sdxc/kit/config.schema.json.
Breaking: the kit no longer reads, writes or bumps the sdxc package. To move an existing project:
Replace each sdxc/<name> import with @sdxc/<name> (for example import { createCLI } from "sdxc/cli" becomes import { createCLI } from "@sdxc/cli").
Replace the sdxc dependency with the @sdxc/* packages the code imports, at one release, for example "@sdxc/cli": "2026.10.14".
In .config/sdxc.jsonc, set "$schema": "https://unpkg.com/@sdxc/kit/config.schema.json".
Run sdxc upgrade afterwards to move every package to the latest release together.
Name a new migration like the files already in its chain
sdxc make migration <name> now reads the chain's folder and writes the new file with the
same numbering, separator and case as the migrations already there, instead of always writing
NNNN_PascalName.sql.
Before, in a folder holding 0004-websub-lease.sql, sdxc make migration add-index wrote
0005_AddIndex.sql; in a folder of 20261008100000_domain_registration.sql files it wrote
20261008100001_AddIndex.sql. Now:
a zero-padded sequence keeps its width: 0005-add-index.sql, 0015_AddIndex.sql
a 14-digit YYYYMMDDHHmmss chain takes the current UTC time: 20261015090807_add_index.sql
(or one past the newest file when the clock reads earlier, so the file always applies last)
the separator (- or _) and the case (kebab, snake, Pascal or camel) follow the newest
file; a one-word name such as 0001-init.sql takes its case from an older file, else from
its separator
a missing or empty chain still starts at 0001_AddIndex.sql
No action is needed; migrations already written keep their names.
Escape the string literals sdxc make writes into generated code
sdxc make now writes every string it splices into a declaration, mapping or import
(handler specifiers, route patterns, tool names, titles, cron schedules) with <, >
and the Unicode line separators U+2028 and U+2029 escaped, on top of the quotes,
backslashes and control characters it already escaped. Before, a name or path holding
one of those characters was written raw into the generated source; after, it is written
as a \uXXXX escape that reads back as the same string. Ordinary names and paths
produce exactly the same output as before, so no action is needed.
The registry lookup behind sdxc upgrade also encodes every / in a package name, with
no change for any published package name.
Read the app template's test summary as plain text on CI
This change has no effect on consumers of @sdxc/kit: it only fixes the kit's own test of the
app template, which ran the generated project's tests and failed on CI because Vite+ colored
that summary there.
Link upgrade prompts to package docs on sdxc.dev
Before, the prompt sdxc upgrade hands an AI agent linked each package's reference at https://sdxc.sergiodxa.com/api/<package>.md, which now answers with a redirect. It now links https://sdxc.dev/api/<package>.md directly. Consumers need not act.
@sdxc/lazy-frame
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/lazy-route
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/logger
Log each @sdxc/cli command run with @sdxc/logger/middleware/cli
The new @sdxc/logger/middleware/cli entry point gives a command line built with
@sdxc/cli the same wide event a route or a job writes. log(logger) opens a log of the
new command kind for each run (or joins the log a host already opened), publishes it as
ctx.log under the same CurrentLog key the router middleware uses, and makes
currentLog() work inside handlers and the code they call. The record carries
command.path (users find) and its duration, and a run that throws records
command.exit_code and fails the log.
Log.Kind gains "command". @sdxc/cli is an optional peer dependency, needed only by
this entry point; no existing entry point changes behavior.
Record a failed exit code when an @sdxc/cli command answers a failure
The log() middleware from @sdxc/logger/middleware/cli now fails the
command's log when the handler returns a failure, such as usage("…") or
failure(error). It records command.exit_code as the code the shell saw,
and the error fields. Before, only a handler that threw was logged as failed,
and a returned failure was logged with outcome: "ok" and no exit code.
Nothing to change in apps.
@sdxc/mail
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
Send mail from an @sdxc/cli command with @sdxc/mail/middleware/cli
@sdxc/mail/middleware/cli exports mail(options) for an @sdxc/cli command line. It takes the router entry's options (transport, from, replyTo, headers), with transport a Transport or a (ctx) => Transport factory resolved once per run, and publishes a Mailer as ctx.email, so an admin command resends an invitation or a receipt with the same templates a route uses. Messages queued with later() send after the handler returns and are logged as in the router entry; a failed deferred send also fails the run with its error. On a laptop, pass MemoryTransport or a transport that prints each message, so a local run never emails a real user.
import { createCLI, success } from "@sdxc/cli"; import mail from "@sdxc/mail/middleware/cli"; import { MemoryTransport } from "@sdxc/mail/memory"; let cli = createCLI({ name: "app", commands: contract, middleware: [mail({ transport: new MemoryTransport(), from: { email: "no-reply@example.com" } })], }); cli.map(contract.invites.resend, async (ctx) => { ctx.email.later(new InviteEmail(invite)); return success(); });
@sdxc/cli is an optional peer dependency, so an app without a command line installs nothing new.
@sdxc/mail/middleware now publishes context.email under the CurrentMailer context key it exports, shared with the command-line entry, so ctx.get(CurrentMailer) reads the same mailer in a route or a command. The property is now read-only once the middleware runs; nothing else changes.
Print messages instead of sending them with @sdxc/mail/print
New PrintTransport writes each message to a function you give it and
reports it sent, so local runs and command lines show the email without it
reaching a real inbox:
import { PrintTransport } from "@sdxc/mail/print"; let mailer = new Mailer({ transport: new PrintTransport({ write: (text) => process.stderr.write(text) }), from: { email: "no-reply@example.com" }, });
The summary lists From, To, Cc, Bcc, Reply-To, Subject, Date, Message-ID and
any extra headers, then the plain-text body. mime: true prints the raw MIME
message instead. In an @sdxc/cli command, pass
(ctx) => new PrintTransport({ write: (text) => ctx.stderr(text) }) as the
transport of @sdxc/mail/middleware/cli.
Type PrintTransport's write option as a function property
PrintTransportOptions.write is now declared as a function property, so passing a bound or arrow function type-checks without an unbound-method warning. Behavior is unchanged; nothing to do.
@sdxc/markdown
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/math
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/mcp
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/merge-patch
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/messaging
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/microformats
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/micropub
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/newsletter
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
Manage subscribers from an @sdxc/cli command with @sdxc/newsletter/middleware/cli
@sdxc/newsletter/middleware/cli exports newsletter(options) for an @sdxc/cli command line. It publishes options.provider, or a (ctx) => Newsletter factory's answer resolved once per run, as ctx.newsletter, so an admin command subscribes or removes an address by hand through the same provider and secrets a route uses.
@sdxc/cli is an optional peer dependency, so an app without a command line installs nothing new.
@sdxc/newsletter/middleware now publishes context.newsletter under the CurrentNewsletter context key it exports, shared with the command-line entry, so ctx.get(CurrentNewsletter) reads the same list in a route or a command. The property is now read-only once the middleware runs; nothing else changes.
@sdxc/no-www-middleware
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/openapi
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/outbound
Republished because @sdxc/doh changed.
@sdxc/pagination
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/passkey
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/problem
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/rate-limit
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/rdap
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/scim
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/search
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/security-headers
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/seo
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/session-storage-kv
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/spam
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/spec
Report spec/config.jsonc errors at the right line and column
Before, an invalid spec/config.jsonc was reported with the engine's
JSON.parse message, measured after comments were removed: the
position pointed at the wrong place, and on Bun there was none at all.
Now the error names the line and column in the file as written, the
same on every runtime:
spec/config.jsonc ./spec/config.jsonc is not valid JSONC: Expected ':' after a property name at line 3, column 25
The message keeps its is not valid JSONC: prefix. No action needed;
@sdxc/spec now depends on @sdxc/jsonc.
Read the plugin stdio protocol through @sdxc/jsonl
The stdio transport between spec and an out-of-process plugin now reads its
request and reply lines with @sdxc/jsonl instead of a private line splitter.
The wire format is unchanged and plugins need no update.
A malformed reply line still fails the call and stops the plugin; the error
now names the line number and the JSON parse error instead of echoing the raw
line.
Generate spec's help and flag parsing from a command contract
The spec command line now parses its arguments through @sdxc/cli, so
spec run --help lists every flag with its value and default, and every
usage error prints that help. Exit codes are unchanged: 0 when every test
passed, 1 when a test failed, 2 for a usage or load error. Suite output,
load errors and permission denials still print on stdout, including the
hint to re-run with --allow-config; config-declared permissions still
apply only with --allow-config.
What changes for a user:
spec run --help prints the run command's usage, arguments, flags and
examples. spec --help lists the commands only.
Usage errors print on stderr, followed by the help, instead of on stdout.
Their wording changed: --seed with nothing after it reports
--seed needs a value, an empty --seed= reports
--seed: expects a value, …, --jobs=0 reports
--concurrency: expects a positive integer, …, --allow-net= reports
--allow-net= needs at least one value, an unknown flag reports
Unknown flag --x with the closest known flag, and an unknown command
suggests run.
--concurrency (--jobs), --retries, --seed, --run-id and
--artifacts also take their value as the next argument:
spec run --jobs 4 --seed checkout e2e.
A second suite directory reports Unexpected argument "…".
--allow-* flags behave as before: bare grants the family,
--allow-net=host[:port],… scopes it, repeats union and a bare flag
absorbs the scopes. No action is needed unless a script matched the old
usage-error text or read it from stdout.
Group spec run's help by topic and run with the command's env and cwd
spec run --help lists its flags under Scheduling, Generated data,
Diagnostics and "Permissions (denied unless granted)" again, and no longer
lists --no-progress.
Usage errors name the flag as typed, and an empty value reads as a missing
one:
spec run --jobs=0 # --jobs: expects a positive integer; got "0" spec run --seed= # --seed needs a value
Before, --jobs=0 was reported as --concurrency, with an example of the
flag, and --seed= printed "expects a value, e.g. …".
spec run now reads its environment and working directory from the command
context. Under invoke(cli, argv, { cwd, env }) from @sdxc/cli/test, these
resolve against that cwd:
the suite directory
--artifacts and the --allow-host-fs scopes
cli … in <dir> and db.run_file paths
These read that env:
env.get and a bare --allow-env
the base and connection variables in spec/config.jsonc
the PATH given to child processes and plugins
Programmatic callers can do the same:
runSuite and runTests options take optional env and cwd.
loadProjectConfig(root, env?) takes an env.
connectStdioPlugin and connectDeclaredPlugins take
StdioPluginOptions { env?, cwd? }.
createPermissionSet(grants, env?) takes an env.
Each falls back to the host process when omitted, so existing callers have
nothing to change.
ToolContext now always carries env and cwd, and plugins should read
those instead of process.env and process.cwd(). Code that builds a
ToolContext by hand must add both fields, or use createToolContext, which
fills them in.
@sdxc/strings
Keep identifiers and inline code as typed in titleize
titleize now leaves a word in the exact form you typed when it reads as an identifier, and it lowercases vs. inside a title.
A word keeps its form when it sits in inline code between backticks, has a capital past its first letter, contains a digit, or contains code punctuation such as ., _ or /.
Before:
titleize("use waitUntil in a remix v3 app"); // "Use WaitUntil in a Remix V3 App"
titleize("pass client_id to entry.client"); // "Pass Client_id to Entry.client"
titleize("remix vs next"); // "Remix Vs Next"
After:
titleize("use waitUntil in a remix v3 app"); // "Use waitUntil in a Remix v3 App"
titleize("pass client_id to entry.client"); // "Pass client_id to entry.client"
titleize("remix vs next"); // "Remix vs Next"
You don't need to change anything. If you listed a word like v3 in special only to keep its casing, you can now remove it.
Add sentenceCase for titles read inside running text
sentenceCase capitalizes the first word of a title and lowercases the rest. It keeps any proper nouns you list exactly as you wrote them. Use it when a title sits inside a sentence and title case would read oddly.
import { createSentenceCaser, sentenceCase } from "@sdxc/strings";
sentenceCase("Make Regional HTTP Requests with Durable Objects", {
special: ["Durable Objects"],
}); // "Make regional HTTP requests with Durable Objects"
An entry in special can be one word or a phrase. A possessive or contraction of an entry still matches it. A word with no casing of its own is lowercased, so pass every proper noun that should stay capitalized. The built-in set (API, GitHub, JavaScript…) and the pronoun I are always kept. Identifiers and inline code keep their form, just like in titleize.
titleize's special option now matches multi-word names as well, and the built-in set now includes I. Existing titleize calls don't need any change.
@sdxc/structured-fields
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/trace-context
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
Trace each @sdxc/cli command run with @sdxc/trace-context/middleware/cli
The new @sdxc/trace-context/middleware/cli entry point gives a command line built with
@sdxc/cli the trace a route gets. trace() continues the trace in the TRACEPARENT and
TRACESTATE environment variables (OpenTelemetry's carrier for processes), or starts one
when they are missing or invalid. It binds the trace for currentTrace(), publishes it as
ctx.trace under the same CurrentTrace key the router middleware uses, and sets
trace_id, span_id, parent_span_id and trace_flags on the run's log. Every child
process the handler starts with ctx.exec receives TRACEPARENT naming the run's span,
unless the call passes its own, and jobs the command enqueues carry the trace.
@sdxc/cli is an optional peer dependency, needed only by this entry point; no existing
entry point changes behavior.
Hand child processes the trace through ctx.setExecEnv
The trace() middleware from @sdxc/trace-context/middleware/cli now passes
TRACEPARENT and TRACESTATE to child processes through @sdxc/cli's
ctx.setExecEnv() instead of replacing ctx.exec. A TRACEPARENT the
caller passes in options.env still wins. A caller that passes TRACEPARENT
without TRACESTATE now gets the run's TRACESTATE beside it.
Nothing to change in apps.
@sdxc/trailing-slash-middleware
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/u
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/ui
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
Import a single component from its own subpath
Every component in @sdxc/ui now has a subpath named after its file, so a module can import one
component without going through the package root:
The existing entry points (@sdxc/ui, @sdxc/ui/styles, @sdxc/ui/reset.css, …) resolve as
before. glyphEdges and its GlyphEdges type, which report whether a control's content starts
or ends with an element, are now exported from @sdxc/ui/utils. No action is needed.
@sdxc/user-agent
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/web-push
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
@sdxc/webmention
Republished because @sdxc/microformats changed.
@sdxc/websub
Republished because @sdxc/outbound changed.
@sdxc/well-known
Republished because @sdxc/http changed.
@sdxc/workers-cache
Make remix a peer dependency of every package that imports it
Every @sdxc package whose code imports remix/* now lists remix under
peerDependencies (pinned to the same exact version as before) instead of
dependencies, so your app's own remix is the only copy installed.
Before, a version mismatch between your app's remix and a package's pin
installed a second nested copy, and Remix context keys and instanceof checks
silently stopped matching between the app and the package. Now the mismatch
fails at install with a peer conflict.
Action for consumers: list remix in your own package.json at the version
the @sdxc packages pin (currently 3.0.0); npm 7+, Bun and pnpm install a
missing required peer automatically.
Patch jsQR version-23 alignment for round-trips
Stock jsQR 1.4.0 lists alignment centre 74 for version 23; ISO/IEC 18004
Annex E requires 78 (cozmo/jsQR#251). The encoder already matches the
standard; the round-trip suite now loads a corrected reader so version-23
symbols decode.
Drop temporary fuzz probe scripts
The version-23 jsQR patch and the round-trip regression stay; the
one-off isolate/probe scripts do not ship with the package.
@sdxc/spec
Add Browser Run plugin for CDP-backed browser tools
Workers can drive the same browser tool surface as agent-browser by
injecting a Browser Run binding through @sdxc/spec/browser-run, so a
hosted flow can exercise a real app without a local CLI.
Kill the process group after cli.stop's leader exits
A shell that dies on SIGTERM cancelled the SIGKILL timer while its
background children were still disappearing; stop now SIGKILLs the
group in finally, and the grandchild assertion waits out the brief
kill(pid, 0) race.
@sdxc/ui
Keep Typeset code blocks from trapping page scroll
overflow: auto made every pre a two-axis scrollport, so a vertical
wheel over a fence stopped at the block instead of chaining to the
document. Scroll long lines on the inline axis only, and contain
overscroll there so a horizontal fling stays inside the block.
Drop Typeset pre scroll comment
The overflow utilities already state the contract; the block restated
what the declarations do.
@sdxc/workers-cache
Mark a response that declares no policy as private, no-store
Workers Cache applies heuristic freshness to a response without Cache-Control,
storing a 200 for two hours under a key that ignores cookies. A route that
never called ctx.cache() was therefore cached and replayed to every visitor of
its URL, signed-in pages included. The middleware now writes private, no-store
on such a GET or HEAD response, unless it set its own Cache-Control or Expires.
Format conversion paths through @sdxc/json-pointer
@sdxc/link-header
RFC 8288 parse and stringify
@sdxc/mcp
Republished because @sdxc/json-schema changed.
@sdxc/merge-patch
Format member paths through @sdxc/json-pointer
@sdxc/openapi
Escape pointer segments through @sdxc/json-pointer
@sdxc/pagination
Parse Link headers through @sdxc/link-header
@sdxc/problem
Format issue paths through @sdxc/json-pointer
@sdxc/search
Republished because @sdxc/pagination changed.
@sdxc/ui
Fix CodeQL polynomial ReDoS and incomplete sanitization alerts (#4)
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
Summary
Clears the open CodeQL code-scanning findings (API access to the alerts
list wasn’t available to this agent, so the same
javascript-code-scanning suite was run locally against main).
js/polynomial-redos in packages/ui — slide()’s plain-length
regex used \d*\.?\d+, which backtracked over long digit runs that
weren’t lengths. Replaced with mutually exclusive numeric alternatives
and added a linear-time regression test.
js/incomplete-sanitization in apps/sdxc — reachedThrough
escaped only $ before building a RegExp. Identifiers are now fully
escaped and matched with JavaScript identifier edges (so $ names still
resolve).
Verification
vp test run on packages/ui/src/animations/transitions.test.ts and
apps/sdxc/scripts/catalogue.test.ts — 54 passed
bun check:fix — clean
Local CodeQL javascript-code-scanning re-run after the fixes — 0
findings outside ignored test/vendor paths
Commits
fix(ui): match slide distances with a linear-time length regex
fix(sdxc): escape identifiers before matching them in catalogue reachability
Add YouTubeEmbed, a lazy-loaded 16:9 YouTube player
YouTubeEmbed renders an iframe for a video id, optionally starting at a
given second, from www.youtube-nocookie.com so visitors receive no
YouTube cookies until they press play. The title is a required prop,
and a page using it must allow that host in frame-src.
@sdxc/webmention
Read Link headers through @sdxc/link-header
Advertise the endpoint through @sdxc/link-header
@sdxc/websub
Parse Link headers with the RFC 8288 scanner
Write hub Link advertisements through @sdxc/link-header
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/api-client
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/assets-middleware
Publish a page's document assets as ctx.assets
New package. assets(resolver, { stylesheets, script, nonce }) resolves the stylesheets a
document links and its browser entry through the app's asset resolver, before the route
runs, and publishes them as ctx.assets for the page to pass to its document. The CSP
nonce is read through the callback the first time ctx.assets.nonce is accessed, so a
response that renders no document never asks for one.
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/atom
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/attribution
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/auth
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/authz
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/backoff
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/billing
Generate identifiers with @sdxc/uuid/v4
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/bracket-params
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/cache
Generate identifiers with @sdxc/uuid/v4
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/captcha
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/catch-response-middleware
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/cloudflare-mocks
Generate identifiers with @sdxc/uuid/v4
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/cloudflare-pricing
Define a rate card that prices usage quantities
defineRateCard(rates) turns a record of per-unit prices into a frozen card with the
resources in the order they were written, zero() for an empty quantities record, and
price(quantities) for the total in cents, treating a missing or negative quantity as
zero. AnalyticsEngine.billedCentsPerUnit(meter) prices an Analytics Engine meter at
zero until Cloudflare starts billing for it.
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/cron
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/crypto
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/csv
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/data-model
Generate example ids with @sdxc/uuid/v4
@sdxc/data-table-d1
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/data-table-sqlstorage
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/database-middleware
Publish a request's database as ctx.db
New package. database(db) is router middleware that sets a remix/data-table
Database on the request context under the exported Database key and as ctx.db,
with a typed context transform so a router that derives its context from an inline
middleware list sees ctx.db typed. Importing the package declares db on
RequestContext, which is the property @sdxc/data-model/router's models() reads.
Publish the database on jobs through ./jobs
@sdxc/database-middleware/jobs exports database(db) as @sdxc/jobs job middleware,
setting the database under the same Database key as ctx.db, so a job handler reads it
the way a route handler does. It takes the instance or a function opening it, called once
per job run, since a dispatcher outlives the tests that swap its database. @sdxc/jobs is
an optional peer dependency.
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/dates
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/diagram
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/digest-fields
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/distill
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/doh
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/duration
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/email-address
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/epub
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/expression
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/feed
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/flags
Generate identifiers with @sdxc/uuid/v4
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/flags-engine
Generate KV keys with @sdxc/uuid/v4
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/get-client-ip
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/highlight
Drop crypto.randomUUID from the grammar example
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/honeypot
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/hostname
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/html
Compute accessible names in-package, dropping dom-accessibility-api
Accessible names now come from an AccName 1.2 / HTML-AAM implementation inside
@sdxc/html, built on the package's own role table and hiding rules. Some query names
change to match what a browser computes:
inline markup no longer splits words (<a>Pro<b>file</b></a> is "Profile")
<script> and <style> text no longer counts toward a name built from content
an input's placeholder and a figure's <figcaption> now name them
a text field's value counts when it sits inside another control's label
hidden content inside a hidden aria-labelledby target counts toward the name
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/http
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/http-signatures
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/i18n
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/icalendar
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/icons
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/idempotency
Generate identifiers with @sdxc/uuid/v4
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/ip
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/jobs
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/jsdoc
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/json-feed
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/json-schema
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/jwt
Generate identifiers with @sdxc/uuid/v4
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/lazy-frame
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/lazy-route
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/location
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/logger
Remove dependencies nothing imports
Drops declarations that no file in their workspace references, so a change to one
of them no longer republishes the packages that listed it:
logger: @cloudflare/workers-types (dev)
webmention: remix
demo: @sdxc/messageformat, @sdxc/sample (dev)
The lockfile also drops the entries for the unused declarations already removed from
activitypub, billing, idempotency, messaging, newsletter, auth-saas, blog, books and
reader.
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/mail
Generate identifiers with @sdxc/uuid/v4
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/markdown
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/math
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/mcp
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/merge-patch
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/messageformat
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/messaging
Generate identifiers with @sdxc/uuid/v4
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/microformats
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/micropub
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/newsletter
Generate identifiers with @sdxc/uuid/v4
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/no-www-middleware
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/openapi
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/opml
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/outbound
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/pagination
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/passkey
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/password-policy
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/problem
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/qr
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/random
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/rate-limit
Generate identifiers with @sdxc/uuid/v4
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/rdap
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/response
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/result
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/robots
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/rss
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/saml
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/sample
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/scim
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/search
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
Read an order: directive into parsed.order
parseQuery reads order:relevance, order:asc and order:desc into a new
ParsedQuery.order (a SearchOrder, "relevance" by default) instead of a term. The package
carries the direction only; the caller decides which column asc and desc sort. An unknown
value, a signed order:, or a declared field or filter named order keeps today's reading.
FormatQuery writes a parsed query back as canonical text
formatQuery(query, { prefix }) writes what parseQuery read as one canonical text: single
spaces, OR between alternatives, quotes only where a value needs them, and order: last.
Parsing it again yields the same clauses, filters and order, so two spellings of one query
write the same text, which an app can store under a unique index.
@sdxc/security-headers
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/semver
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/seo
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/server-timing
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/session-storage-kv
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/sitemap
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/spam
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/spec
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/strings
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/structured-fields
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/trace-context
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/trailing-slash-middleware
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/typeid
Build example UUIDs with @sdxc/uuid/v4
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/types
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/u
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
Raw colors and shadows pass through, translucent() is see-through, debug(false) and u.if() lists work
Color utilities pass hex, named and system colors through as written:
bg("#fff"), bg("Canvas") and fg("red") emit those colors instead of
throwing or resolving var(--ui-red-fg). Tones and palette paths resolve as before;
a tone sharing a CSS color name is written with a suffix ("red.fg").
shadow("none") clears the elevation shadow, and a raw CSS shadow such as
shadow("0 1px 2px black") applies as written instead of becoming the md shadow.
translucent() paints a see-through background (--ui-bg mixed 70% with
transparent) where the backdrop blur applies, so the blur is visible; under
reduced transparency it keeps the opaque --ui-bg.
debug(false) emits nothing, so a flag can switch the outline off; debug()
still outlines.
u.if(condition, [a, b]) merges the list into one mixin, so it applies as a
unit inside a mix list like combine() does.
Docs: type("lg")'s line-height fallback is calc(1.75 / 1.125), and
backdropDropShadow() states it needs its own backdrop root to show.
@sdxc/ui
Generate identifiers with @sdxc/uuid/v4
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
Larger pointer targets, concentric surfaces and finer typographic detail
Every small control now reaches a pointer target of --ui-target-size: 24px by
default (WCAG 2.5.8) and 44px under pointer: coarse, through the new
hitArea() style. Buttons, toggle and link buttons, tag remove buttons, the
Resizable handle, sliders, toast and calendar controls, sidebar actions, drag
handles and swatches keep their visible size and grow only the area that
receives the pointer. TagGroup.Remove renders as a 1rem glyph again instead
of a 40px icon button inside its tag. Breadcrumb links and sortable table
headers make their whole visible area clickable.
Floating panels (menus, list popups, select pickers, navigation menus) derive
their radius from --ui-radius-md plus --ui-surface-padding, so rows and
panel corners stay concentric under any override (surfaceInset(),
surfacePadding(), concentricRadius()). Elevated surfaces draw a layered
--ui-shadow-ring instead of a solid border, images get an inset
--ui-image-outline, and the reset enables font smoothing.
Titles wrap with text-wrap: balance and body copy with pretty; counts,
readouts, dates, page numbers and key caps use tabular figures, and
Table.Column/Table.Cell take numeric for end-aligned tabular columns.
Buttons trim the padding beside a leading or trailing icon.
enterExit() gains blur, separate exit values, exitDuration (75% of
duration by default) and exitEasing; zoom() and slide() exit halfway
back, and Drawer, Sheet and Modal leave with a short fade and blur. Icon-only
button sizes and the checkbox size are now custom properties.
Trim the README additions for target size, surfaces and motion to one line each
Count a floating surface's 1px edge in its concentric radius
Menus, list popups, select pickers, the command palette, the menubar and navigation panels round their outer corners by the row radius plus the padding plus the surface's 1px edge, so the gap between a highlighted row and the panel corner is even all the way around.
Give a vertical Slider the same pointer target as a horizontal one
A vertical slider's range input now reaches --ui-target-size across the track's width (24px, or 44px on coarse pointers) instead of the 20px thumb width, while the rail and fill render exactly as before.
@sdxc/user-agent
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/uuid
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/validate
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/web-push
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/webhooks
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/webmention
Remove dependencies nothing imports
Drops declarations that no file in their workspace references, so a change to one
of them no longer republishes the packages that listed it:
logger: @cloudflare/workers-types (dev)
webmention: remix
demo: @sdxc/messageformat, @sdxc/sample (dev)
The lockfile also drops the entries for the unused declarations already removed from
activitypub, billing, idempotency, messaging, newsletter, auth-saas, blog, books and
reader.
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/websub
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/well-known
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/workers-cache
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/xml
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/yaml
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/zip
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
@sdxc/zone-file
Restructure the README into usage steps, a concise API reference and standalone patterns
Usage walks the basics in order, the API reference gives each export one or two sentences under its signature, and the patterns show the package on real tasks, so the README teaches every feature without reading the whole reference. Signatures and behavior are checked against the current source.
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/api-client
Republished because @sdxc/trace-context changed.
@sdxc/attribution
Republished because @sdxc/logger changed.
@sdxc/auth
Republished because @sdxc/idempotency changed.
@sdxc/authz
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/billing
Republished because @sdxc/api-client changed.
@sdxc/cache
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/cloudflare-mocks
Type the SQL cursor's next() as IteratorResult so it satisfies the latest workers-types
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/cron
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/data-model
Reach the model context from methods, upsert in one statement, and match constraint violations
Methods read the model context as this.context: this.context.models
reaches a sibling in the same binding and unit of work, and every member
the app supplies, such as jobs, is there too. A lazily loaded entry
answers db and context before its module loads.
Type models on the context from an interface of the registry's entries,
BoundModels<AppModels>, rather than BoundRegistry<typeof models>: each
entry then resolves when it is read, so a method calling a sibling no
longer collapses ctx.models to any (TS7022). withContext<Context>()
answers a createModel typed with a context of your own, for an app that
binds several registries; each registry's bind and middleware require
the members its models' context declares.
Breaking changes:
upsert(values, { conflict, update }) replaces
upsert(values, { conflictTarget }). It is one INSERT … ON CONFLICT
statement with no read before it and runs no model callbacks;
update defaults to the values without the conflict and key columns and
created_at, and update: {} keeps a conflicting row as it is.
A table declaring primaryKey: ["id"] takes its key as the column's
value in find, update and delete, as primaryKey: "id" does.
A method or scope named like a model member (exists, db, join,
context…) is now a type error; ReservedName lists them.
Also:
update(key, {}) touches updated_at and runs the update callbacks.
A bulk update from a query takes touch: false and returning.
A database constraint refusal is a ConstraintViolation, a
ValidationError with kind ("unique", "foreign-key", "not-null",
"check") and column.
./testing adds overrideModel(model, build), which replaces members in
every binding of a model, per-request ones included, and
publishModels(ctx, registry, context).
A chained call on a lazy entry whose import fails rejects once, without
an unhandled rejection from the intermediate calls.
Write only the timestamp columns a table has in upsert and empty updates
A table declaring timestamps: { createdAt } resolves updatedAt to its
default name, which the table may not have; upsert and update(key, {})
wrote it anyway and the statement failed.
Hand overrideModel's build the original members
A replacement that called through to bound.create at call time reached
itself and recursed. build now receives a copy holding the original
members. Also exports ConstraintKind, and the docs declare a
withContext context as an interface, since an intersection type makes
the models circular again.
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
Refuse an upsert outside a model's constraints before writing, take http(s) URLs only, and answer NotFound for a key of the wrong shape
upsert on a model with constraints now reads the conflict target first, so a conflicting row of another sub-model is left as it is instead of being overwritten and then refused. field.url() accepts http and https URLs only, on write and on read, so a stored value is safe to render as a link. A meta key or scope named like an Object.prototype member (constructor, proto) is undeclared like any other instead of throwing, and a key of a shape no primary key takes, such as a list, answers null from find and NotFound from update and delete.
Restructure the README and add patterns for scopes, methods, callbacks, constraints and meta fields
Usage walks define, bind, publish and context in order, and the API documents each export in one or two sentences under its signature. Five new standalone patterns show a default scope with composable scopes, custom methods answering queries, results or raw rows, every callback around one write, constraints pinning a model to a slice of a table, and typed meta fields over a key/value table; the post-types pattern now focuses on extend().
@sdxc/data-table-d1
Bind an upsert's insert values before its conflict update
An upsert whose update differs from its values compiled the conflict
clause first, so its values were bound to the insert's placeholders and
the row was written with the wrong columns, or refused. Values now bind
in the order the statement reads them.
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/data-table-sqlstorage
Bind an upsert's insert values before its conflict update
An upsert whose update differs from its values compiled the conflict
clause first, so its values were bound to the insert's placeholders and
the row was written with the wrong columns, or refused. Values now bind
in the order the statement reads them.
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/flags
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/flags-engine
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/hostname
Republished because @sdxc/api-client changed.
@sdxc/i18n
Republished because @sdxc/logger changed.
@sdxc/icons
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/idempotency
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/jobs
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/jsdoc
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/jwt
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/logger
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/mail
Republished because @sdxc/logger changed.
@sdxc/mcp
Import a tool or resource handler on first use with lazy()
Wrap a handler's module in lazy(() => import(...)) when mapping it and a Worker starts without the code behind every tool and resource. A module imports once per isolate and concurrent requests share the import; a failed import answers as an unexpected failure and is retried by the next request.
tools/call and resources/read import only the handler they reach. Lists import every lazy module they must ask, because available and list live in the module, and a list containing a lazy handler defaults to a private cacheScope.
@sdxc/messaging
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/newsletter
Republished because @sdxc/api-client changed.
@sdxc/rate-limit
Republished because @sdxc/logger changed.
@sdxc/rdap
Republished because @sdxc/cache changed.
@sdxc/sample
Republished because @sdxc/jwt changed.
@sdxc/search
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
@sdxc/seo
Republished because @sdxc/attribution changed.
@sdxc/spec
Republished because @sdxc/sample changed.
@sdxc/trace-context
Republished because @sdxc/logger changed.
@sdxc/typeid
Republished because @sdxc/uuid changed.
@sdxc/ui
Republished because @sdxc/icons changed.
@sdxc/uuid
Upgrade all dependencies, including vite-plus 0.3.3 and Vitest 4.1.11
Vitest 4.1.11 fixes the @vitest/mocker path traversal advisory (Dependabot alert 2). Vitest is carried by vite-plus, so the bump comes from vite-plus.
Add default scopes and this-bound methods; join whereMeta reads
Breaking: methods is now an object whose methods run with this bound to
the model, so a method can call the model's other methods with types; a
method answering a plain value turns the definition into an InvalidModel.
ModelContext keeps only db and get(key): require() is gone, and services
a callback reads are declared by augmenting the interface and supplied at
binding. models is typed the same way, with BoundRegistry<typeof models>.
defaultScope applies to every read and to the row an update or delete
targets; unscoped() reads past it.
The first whereMeta on a read joins the meta table, so a broad key such
as a locale filters any number of rows within D1's parameter limit.
An update naming only meta keys touches the table's updatedAt column.
Build the model context when an app augments ModelContext
Binding cast the package's own members to ModelContext, which fails to
compile once an app adds a member such as models to the interface.
Run a lazy model's calls as real promises, awaited or not
A call on a model whose module had not loaded returned a thenable that
did nothing until something called its then(), so an unawaited write
never ran and code testing instanceof Promise never awaited it. The call
now starts the import and replays as it is made, behind a real Promise.
Expose the binding's database on a bound model as db
A custom method can run a raw statement the query builder cannot express,
such as an INSERT ... ON CONFLICT DO NOTHING, through this.db, which is
the transaction when the model runs inside a unit of work.
Accept a single primary key in its object form
A table that declares its key as primaryKey: ["id"] types a key as { id }, so find,
update and delete were handed an object they bound as the key's value. A single key now
reads as its value or as an object naming its column, the two forms data-table accepts.
@sdxc/typeid
Import generateUUID from @sdxc/uuid/v7 in examples
@sdxc/uuid
Breaking: Generate v4 and v7 UUIDs from their own entry points
@sdxc/uuid/v4 and @sdxc/uuid/v7 each export generateUUID(): UUID, so the import path
names the version and switching versions changes only that path. The root entry point keeps
the UUID type, isUUID, assertUUID and the error classes, and no longer exports
generateUUID or generateUUIDv7: import generateUUID from @sdxc/uuid/v4 for the old
generateUUID(), and from @sdxc/uuid/v7 for the old generateUUIDv7().
The v7 generator is now monotonic: a 12-bit counter in rand_a keeps values from one
process in call order within a millisecond, which matters on Cloudflare Workers where
Date.now() holds still between I/O.
Decode base32 and PEM text in linear time
A long run of = in base32 input, or many unterminated PEM begin lines, took quadratic time to decode. Both decoders now scan the text once, accepting and rejecting exactly the same input as before.
Export the codecs alone as @sdxc/crypto/encoding
@sdxc/crypto/encoding exposes Base32, Base64, Base64Url and Hex through an
import graph that stays on Web APIs. Browser code imports from there so a dev
server that serves modules unbundled never requests the node:crypto import
behind password hashing, which it refuses to load in a browser.
@sdxc/data-model
Add models over remix/data-table tables
A new package for the model layer apps keep writing by hand. createModel
takes a data-table table plus scopes, custom methods, async callbacks,
constraints and typed meta fields; a definition binds once to a database
and a host context, and every member runs there.
Scopes chain on real data-table queries, so Pagination, search
refinement and eager loading take them unchanged.
Writes answer Results: ValidationError for callback, table-hook and
constraint failures, NotFound for a missing key.
afterCommit callbacks defer to the end of models.transaction() and drop
on a throw or a returned Failure, on every adapter; writes roll back
only where the database has real transactions.
extend() builds sub-models on a discriminator column, and meta fields
read and write a key/value companion table as typed values.
createModels() registries load entries on demand; ./router and ./jobs
publish them as ctx.models, and ./testing adds seeded factories.
@sdxc/diagram
Escape every regular-expression character in sequence arrows
The message pattern escaped only parentheses in arrow tokens; it now escapes every metacharacter, so adding an arrow can never change how messages parse.
Name a diagram from an alt option and a fence's alt annotation
parseDiagram, toSVG and the Diagram component take an alt that becomes the SVG title, the accessible name screen readers announce, over the name a title or accTitle statement gives it. The markdown visitor keeps a mermaid fence's {% alt="…" %} annotation on the diagram tag, so renderDiagram and DiagramTag name the drawing from the markdown.
@sdxc/digest-fields
Republished because @sdxc/crypto changed.
@sdxc/distill
Republished because @sdxc/outbound changed.
@sdxc/doh
Republished because @sdxc/zone-file changed.
@sdxc/email-address
Republished because @sdxc/doh changed.
@sdxc/epub
Check stylesheet references in linear time
A stylesheet full of unclosed comment openers made reference checking quadratic. Comments are now removed with a forward scan that keeps the same results.
Read stylesheet url() and @import references in linear time
A stylesheet with an unclosed url( followed by a long whitespace run, or many repeated @import openers, made reference checking take quadratic time or worse. References are now read by forward scanners that accept the same quoted and bare forms.
@sdxc/expression
Read strings and quoted names with a linear scanner
Strings, backtick-quoted names and context paths are now read by small scanners instead of regular expressions. Parsing results and error positions are unchanged.
@sdxc/feed
Republished because @sdxc/atom changed.
@sdxc/flags
Republished because @sdxc/jobs changed.
@sdxc/flags-engine
Republished because @sdxc/expression changed.
@sdxc/highlight
Scan JavaScript regex literals in linear time
A backslash or "[" inside a regex literal now reads one way only, as an escape or a character class, so long runs of "[]" or "\" no longer hang the highlighter. A regex with an unclosed "[" is painted as division.
@sdxc/honeypot
Draw trap field names uniformly from the alphabet
Trap names were drawn with a byte modulo 26, which slightly favored some letters; letters are now picked by rejection sampling, so each is equally likely.
@sdxc/hostname
Republished because @sdxc/api-client changed.
@sdxc/http
Republished because @sdxc/crypto changed.
@sdxc/http-signatures
Republished because @sdxc/crypto changed.
@sdxc/i18n
Read each Accept-Language range on its own
parse splits the header on commas and reads each trimmed range with an anchored pattern, so its cost stays linear. A malformed range is now skipped whole instead of leaving fragments behind.
@sdxc/idempotency
Republished because @sdxc/crypto changed.
@sdxc/jobs
Republished because @sdxc/logger changed.
@sdxc/jsdoc
Read inline links in linear time
An unclosed {@link} followed by a long run of whitespace made inlineLinks quadratic. Links are now read with a forward scanner that returns the same targets, labels and offsets.
@sdxc/logger
Republished because @sdxc/expression changed.
@sdxc/mail
Derive the plain-text part in linear time with no markup left behind
htmlToText now drops comments, the doctype, scripts, styles and hidden or skip-in-text elements in a single forward pass. Input with many unclosed comments or tags no longer makes it slow, and removing one region can no longer join the text around it into a new tag or comment.
@sdxc/markdown
Parse link titles and write raw HTML blocks in linear time
A link title full of backslash escapes no longer takes exponential time, and a backslash before the closing quote now always escapes it, as CommonMark specifies. Writing a raw HTML block that ends in a long run of newlines no longer slows down. HTML comment blocks still end only at "-->".
Load server-rendered regions into a document with a frame tag
FRAME_TAG from @sdxc/markdown/plugin/frames registers a frame tag that holds a
region a route renders per request: <frame src="/frames/demo">Loading…</frame>. Its
src must be a path on the page's own origin, so a frame pointing anywhere else fails the
parse at the tag's line. FrameTag from @sdxc/markdown/remix draws it as a Remix
<Frame>, with the tag's children as the streamed fallback; a self-closing tag holds the
page until the region resolves. toHTML and toPlainText render the fallback, so feeds
and search indexes read it in place of the region.
Say when a frame tag's fallback gives way to its content
A frame tag with children streams them first, and the client runtime swaps the region in when it arrives. A self-closing tag holds the page and inlines the region, so it reads the same before any script loads.
@sdxc/math
Republished because @sdxc/markdown changed.
@sdxc/mcp
Republished because @sdxc/logger changed.
@sdxc/messaging
Build Discord edit URLs in linear time
A webhook URL ending in thousands of slashes made DiscordWebhook.update quadratic.
@sdxc/microformats
Keep page-supplied rel keys from reaching Object.prototype
A link whose URL or rel value was __proto__ wrote onto Object.prototype instead of into relUrls/rels; such keys are now ordinary own entries. Trimming text and e-* HTML also runs in linear time on long inner whitespace runs, which previously took quadratic time.
@sdxc/micropub
Republished because @sdxc/microformats changed.
@sdxc/newsletter
Republished because @sdxc/api-client changed.
@sdxc/openapi
Republished because @sdxc/yaml changed.
@sdxc/opml
Republished because @sdxc/xml changed.
@sdxc/outbound
Strip trailing dots from host names in linear time
A host name holding thousands of dots made resolveHost quadratic before the lookup.
@sdxc/pagination
Refuse a keyset query that already orders its rows
Pagination.byKeyset appends its own sort keys, so a query that already
carried an orderBy would sort on that column first and seek on the wrong
key. It now answers an InvalidOrderingError naming the existing sort
instead of returning wrongly paged rows; leave the ordering to the
orderBy option.
@sdxc/passkey
Republished because @sdxc/crypto changed.
@sdxc/password-policy
Republished because @sdxc/crypto changed.
@sdxc/rate-limit
Republished because @sdxc/logger changed.
@sdxc/rdap
Republished because @sdxc/cache changed.
@sdxc/robots
Trim record whitespace in linear time
A line padded with long runs of spaces or tabs no longer makes parse backtrack quadratically; only leading and trailing spaces and tabs are trimmed, as before.
@sdxc/rss
Republished because @sdxc/xml changed.
@sdxc/saml
Republished because @sdxc/crypto changed.
@sdxc/sample
Republished because @sdxc/crypto changed.
@sdxc/scim
Read If-Match and If-None-Match headers in linear time
A conditional header holding a long run of characters that form no tag took quadratic time to parse. Tags are now read by a single scan that yields the same tags as before.
@sdxc/search
Republished because @sdxc/pagination changed.
@sdxc/security-headers
Republished because @sdxc/crypto changed.
@sdxc/seo
Republished because @sdxc/attribution changed.
@sdxc/sitemap
Republished because @sdxc/xml changed.
@sdxc/spam
Scan link markup and trailing punctuation in linear time
Submitted text with long runs of "[url=", "<a\t", "[" or "!" made the link-syntax rule and link extraction take quadratic time. They now read the text in a single pass and score exactly the same markup.
@sdxc/spec
Sanitize artifact names in linear time
A test title with long runs of dashes made trimming them quadratic.
@sdxc/strings
Convert long digit runs with underscore in linear time
An identifier with a long run of digits or capitals took quadratic time in underscore(). The acronym boundary is now found with a lookaround, giving the same output.
@sdxc/trace-context
Trim tracestate members in linear time
Long runs of optional whitespace around or inside a member no longer make parse backtrack quadratically; the trimming rules are unchanged.
@sdxc/ui
Parse hsl() hues with long digit runs in linear time
parseColor took quadratic time on an hsl() hue holding thousands of digits. The hue is now matched by an unambiguous pattern that accepts the same values.
Keep MathML spacing and draw it in a stretchable math font
The base reset zeroed the padding the browser gives MathML table cells and
fractions, collapsing matrices and cases into touching rows. Everything inside
<math> now keeps its user-agent spacing, and <math> names STIX Two Math and
Cambria Math ahead of the generic math family so fences, integrals and sums
stretch to the content they enclose.
Server-render subscribing mixins without errors in workerd
calendarKeys, rangePreview, gridListKeys, treeKeys, dragReorder, dropZone,
commandFilter, messageFollow, resizeHandle and viewTransition subscribed to
their model, session or frame while rendering, which on a server hands
addEventListener a stand-in signal that workerd rejects. Each render logged
"Incorrect type for the 'signal' field on 'AddEventListenerOptions'".
They now subscribe when their host is inserted, through the new exported
whileLive(handle, subscribe) helper, which also detaches a replaced model's
listeners when a mixin is re-rendered with a different one. A replaced
DragSession or ResizeSession is cancelled at that point too. The Toaster and
Announcer examples now subscribe inside handle.queueTask for the same reason.
Let island components subscribe through whileLive
whileLive(handle, subscribe) now also takes a component's Handle. An island
subscribes once its first render commits, so its server render never touches
a real event target with the server's stand-in signal, and the listeners
detach when the island unmounts. The Toaster and Announcer examples use it.
Show aria-hidden="false" for exposing Skeleton, ColorSwatch and Marker.Icon
A boolean false drops the attribute, so the component default keeps the element hidden; the "false" token is what exposes it.
@sdxc/user-agent
Read Android models in linear time on adversarial user agents
A model padded with thousands of whitespace characters made device detection quadratic. The Build/ suffix is now cut with a single search.
@sdxc/web-push
Read padded base64url keys in linear time
A key carrying a long run of = took quadratic time to strip before decoding. Padding is now trimmed with a single scan, so subscribe, subscription parsing and VAPID keys accept the same values as before.
Load @sdxc/web-push/browser under an unbundled dev server
The browser entry reached node:crypto through the @sdxc/crypto barrel. A
production build tree-shook it away, but a dev server serving modules one by
one failed the import, so an island using subscribe never hydrated in dev.
It now imports its base64url codec from @sdxc/crypto/encoding.
@sdxc/webhooks
Republished because @sdxc/crypto changed.
@sdxc/webmention
Republished because @sdxc/microformats changed.
@sdxc/websub
Republished because @sdxc/crypto changed.
@sdxc/well-known
Republished because @sdxc/http changed.
@sdxc/workers-cache
Republished because @sdxc/logger changed.
@sdxc/xml
Parse hostile XML declarations in linear time
An XML declaration padded with long whitespace runs or malformed attribute text could take seconds to parse. The declaration is now read by a linear scan, and the version, encoding and standalone values it returns are unchanged.
@sdxc/yaml
Stringify strings with many line breaks in linear time
Measuring a multi-line string's trailing breaks took quadratic time when the string held long runs of line breaks before its end. The output is unchanged.
@sdxc/zone-file
Parse names, CAA, RFC 3597 generic data and TTLs in linear time
Long runs of backslashes, whitespace or digits no longer make absoluteName, parseRecordData or TTL reading backtrack polynomially (or exponentially for \# generic data). Accepted and rejected inputs are unchanged.
Add an ActivityPub package for federating an app
A new private package that holds the protocol logic for ActivityPub. The app
keeps its own data and implements four small store interfaces for it.
The root reads ActivityStreams 2.0 from untrusted JSON and evens out how
Mastodon, Misskey, Pixelfed, GoToSocial and Threads write it. stringify
writes it back with one fixed @context.
./keys generates and imports RSA actor keys. ./discovery gives the
WebFinger self link and handle lookup. ./response handles content
negotiation and serving documents, with 410 for a Tombstone.
./collections builds collections and their pages.
./remote fetches actors, keys and objects with SSRF checks on every
redirect, checks the document id against where it came from, signs GETs
when given a signer, and caches what it fetched.
./inbox verifies incoming activities during the request, accepting
RFC 9421 or draft-cavage signatures with a digest. handle then processes
them: follows, undos, creates, deletes, likes, boosts and moves.
summarize turns a reply, like or boost into a Webmention-shaped record.
./outbox fans an activity out to one delivery per distinct inbox. Each
delivery tries an RFC 9421 signature first, falls back to draft-cavage, and
remembers which scheme each server accepted. Servers that have been failing
for 7 days are skipped.
./memory and ./conformance give in-memory stores, plus a Vitest suite
that checks an app's own stores.
Close sender-spoofing, foreign-delete and weak-signature paths
handle ignores an activity when the actor document fetched for the
sender has a different id. Before, a redirecting actor URL could make
another account appear as the sender.
A Delete whose object no longer resolves is processed only when that
object is on the sender's own origin.
receive also checks the verified signer's host against blocked, so a
key that redirects to a blocked server is refused.
deliver always covers @method, @target-uri and content-digest, even
when an inbox's Accept-Signature asks for less.
Confirm handles on the actor's host, and cap Retry-After
lookup used to accept any actor whose preferredUsername matched the
handle's user, so @alice@evil.com could resolve to the real alice on
another server. Now, unless the handle is already preferredUsername@<actor host>, WebFinger on the actor's host must point back at the same actor, as
Mastodon requires. parseRetryAfter clamps its value between 0 and 12 hours,
so an inbox cannot push its retries arbitrarily far out.
Leave queue batch sizing to the job writer
fanOut closes a batch at pageSize deliveries alone. Keeping each batch
under Cloudflare's 256 KB sendBatch limit is now handled by
enqueueMany in @sdxc/jobs.
Breaking: Serve and process federation through one Federation class
new Federation({ actor, keys, stores, cache, userAgent, queue, blocked })
takes the wiring once. It then provides:
on(type, handler) to handle incoming activities, with ctx.summary()
fetch(request) to serve the actor, inbox, outbox, followers and following
respond(request, document) for content negotiation on the app's own pages
publish(activity), lookup(handle) and verify(request)
Background work runs as one job: Federation.MESSAGE describes every queued
message, and process(message, { attempts }) handles it. A retryable failure
carries the delay to retry with, and the runtime enqueues Accept and Reject
replies and drops inboxes that answer 410 on its own.
ActorKeys and RemoteResolver replace the key and resolver functions. The
vocabulary, stringify, the collection builders and actorLink stay plain
functions. The subpaths are now the root and ./testing, which holds the
in-memory stores and conformance suites.
Publish @sdxc/activitypub to npm
The package is now public and ships in the daily release under the @sdxc scope.
Approve or reject a pending follower with federation.approve and federation.reject
A follower held back by a "pending" Follow decision can now be decided
later. approve stores it as accepted and queues the Accept of its stored
Follow; reject queues the Reject, then removes it. Both answer not-found
for an actor that does not follow the local actor and are safe to retry.
The README's job example now returns ctx.retry and ctx.ack.
Remember processed activities in any @sdxc/cache Cache with CacheSeenActivities
A shipped SeenActivities store that keeps claims under activitypub:seen:<id>, holding each for at least the one minute Workers KV accepts.
@sdxc/api-client
Republished because @sdxc/trace-context changed.
@sdxc/attribution
Record where a visit came from as a first and last touch
New package. readTouch reads the utm_* parameters, the ad-network click identifier and the
Referer into a touch, normalizes every campaign value to a short slug (an address or a URL in
one is dropped), and credits it to a channel. The attribution() middleware keeps the first
touch within a window and the latest non-direct one in the session or a signed cookie and
publishes them as ctx.attribution; bots, non-navigation requests and direct revisits write
nothing, and Global Privacy Control is honored by default. toMetadata and toUtmParams flatten
touches for a checkout's metadata or a newsletter provider, and @sdxc/attribution/parameters
holds the tracking-parameter list with withoutTracking to strip it from a URL.
Flatten a touch into plain campaign fields with toCampaign
toCampaign(touch, url) answers the touch's source, medium, campaign, term and content, the
referring hostname, and the landing path resolved into an absolute URL, leaving out every
field the touch lacks. A null touch answers undefined, so ctx.attribution.last ??
ctx.attribution.first passes straight in. The result fits a newsletter or CRM provider that
takes campaign fields under plain names.
@sdxc/auth
Republished because @sdxc/crypto changed.
@sdxc/authz
Add @sdxc/authz, authorization from a typed ability catalog, additive roles and guards
A catalog declares every ability once with the context a check of it passes; a policy grants abilities through additive roles and everyone, refuses only through guards that apply to admins too, and writes conditions in a strict @sdxc/expression dialect so a missing or mistyped fact refuses instead of granting. policy.for binds roles, a within ceiling and facts (values, or lazy sources loaded once by access.load) into an access whose checks are synchronous: can, check, authorize, permittedFields, decide and claims, with Decisions typed for hydrated components.
Adapters ship as their own entries: router access/requireAbility, the job dispatcher's ctx.authz, MCP guard/requireToolAbility, fromFlags and fromEntitlements fact sources, and testAccess/diffPolicies for tests.
Return plain Middleware from access and requireAbility
Both adapters declared a context entry, which turned a controller's context into one TypeScript would no longer pass to helpers typed RequestContext. ctx.access stays typed on every request context through the module augmentation, and ctx.get(ability) reads the loaded context typed through the ability, undefined until requireAbility ran.
Keep undecidable decisions plain data and answer a whole catalog
An undecidable decision now carries each failure as { grant, message, path, missing?, mismatch? } instead of an ExpressionError, so it survives structured cloning across a Durable Object RPC intact. access.decide and access.claims also accept the catalog root, answering every group in one call.
@sdxc/billing
Read a request's entitlements once with readEntitlements
readEntitlements(ctx) runs the billing middleware's entitlements reader at most once per request, caching a null snapshot too, and answers a Result instead of throwing. requireEntitlement reads through it, so other code deciding on the same request (an authorization policy's billing facts) shares the guard's read.
@sdxc/cache
Republished because @sdxc/logger changed.
@sdxc/cron
Republished because @sdxc/dates changed.
@sdxc/crypto
Encode and decode PEM armor
Pem.encode(der, label) wraps DER bytes as an RFC 7468 block, for example
an SPKI public key or a PKCS#8 private key. Pem.decode(text, label) reads
the first block back. It accepts CRLF line endings, indentation and any line
width, and fails when the label does not match.
@sdxc/dates
Add day ranges, a six-week month grid, and the runtime's time-zone list
Adds monthRange, quarterRange, yearToDateRange, lastNDaysRange, dayRangeLength, isWholeMonth and validateDayRange over inclusive DayRange day keys; validateDayRange reports InvalidDayRangeError with a problem of invalid, reversed, tooLate or tooLong. Adds monthGrid for calendars that always draw six weeks, with inMonth on padding days. Adds supportedTimeZones, isSupportedTimeZone and timeZonesByRegion, read from Intl.supportedValuesOf with UTC first, and systemTimeZone.
@sdxc/diagram
Draw Mermaid sequence, class, state and flowchart diagrams as SVG, with a markdown visitor and a component
@sdxc/diagram reads a subset of Mermaid's text syntax — the one GitHub renders in mermaid fences — and draws it as SVG on the server, with text measured from font metrics so no DOM or browser is needed. Sequence diagrams cover participants, actors, every arrow, activations, notes, blocks and autonumber; flowcharts every node shape, link form, chains and nested subgraphs; class diagrams members, generics, annotations, the UML relations with cardinalities, notes and namespaces; state diagrams descriptions, start/end per scope, choice/fork/join, notes and composite states.
toSVG returns the markup and parseDiagram the JSON tree of SVG elements; DiagramError carries the line and column. Lines and text use currentColor and fills fall back to Canvas, so a diagram follows the page's color scheme. @sdxc/diagram/markdown turns mermaid fences into diagram tags, failing the walk on invalid source unless invalid: "keep", and renderDiagram draws them for toHTML. @sdxc/diagram/ui provides Diagram and DiagramTag for toRemix.
@sdxc/digest-fields
Add RFC 9530 digest fields and the legacy Digest header
A new private package that computes, parses, writes and verifies
Content-Digest, Repr-Digest and their Want- preferences, plus the
RFC 3230 Digest header that draft-cavage HTTP signatures cover. It
supports SHA-256 and SHA-512.
Reject a legacy Digest that repeats an algorithm
SHA-256=<forged>, SHA-256=<valid> used to keep only the last entry, so a
forged digest could sit next to a valid one. A repeated algorithm in the
RFC 3230 Digest header is now malformed.
Publish @sdxc/digest-fields to npm
The package is now public and ships in the daily release under the @sdxc scope.
@sdxc/distill
Republished because @sdxc/outbound changed.
@sdxc/doh
Print record data back to presentation form and keep CAA's flags octet
formatRecordData is the inverse of parseRecordData: names print absolute, TXT strings and
CAA values print quoted with \DDD escapes, and a parsed record always reads back unchanged.
A CAA record from a zone file and the same record as a resolver's RFC 3597 generic data now
print to one string, so a diff keyed on the value sees one record.
CAARecord gains flags, the octet as published with its reserved bits, and generic CAA data
with an empty tag no longer parses. NameNotFoundError.authenticated reports whether the
resolver validated the denial with DNSSEC.
Decide whether a CA may issue for a name from its CAA records
The new @sdxc/doh/caa entry reads CAA records the way a certificate authority does
(RFC 8659, RFC 8657). parseCaaProperty reads an issue, issuewild or iodef value under
the RFC's grammar, findRelevantCaa climbs from the name toward the TLD to the first RRset it
publishes, evaluateCaa decides a request against an RRset with no I/O, so a zone file's
records decide the same way, and mayIssue combines the two.
A failing lookup reads as allowed: false, because a CA refuses on it too; narrow on
reason === "lookup-failed" to retry through a second resolver first.
Breaking: Read record data through @sdxc/zone-file
The RDATA presentation codec moved to @sdxc/zone-file, which this package
now depends on. parseRecordData, formatRecordData and RecordDataError
are no longer exported here; import them from @sdxc/zone-file.
DoH.RecordData and the per-type field interfaces are now ZoneFile types
(ZoneFile.RecordData<Type>, ZoneFile.MXData…). DoH.RecordFor<Type> is
those fields plus name and ttl, so a resolved record and one read from a
zone file share every type-specific field; resolve's answers keep their
shape. PTR and DNAME answers now come back typed, with a target, and names
in record data come back in canonical escaped form.
@sdxc/email-address
Republished because @sdxc/doh changed.
@sdxc/epub
Build EPUB 3.3 publications from XHTML chapters
A new package for offering long-form writing as an ebook. EPUB.build({ metadata, chapters, cover, styles, resources }) answers Result<EPUB, EpubError>, and epub.stream() writes
an application/epub+zip body that e-readers, phone reading apps and Send to Kindle open:
mimetype stored first, the package document, a navigation document with a nested table
of contents and landmarks, an EPUB 2 toc.ncx (unless legacyNcx: false), an optional
cover page, one content document per chapter, and every stylesheet and resource.
epub.bytes() collects it, and epub.files lists every file of the container.
A chapter body is an XHTML string, such as toHTML(document, { syntax: "xhtml" }) from
@sdxc/markdown/html. Each body is parsed and re-serialized, which proves it well-formed,
keeps its whitespace and turns named entities like into characters. The build
refuses what epubcheck reports as an error, with one error subclass per code and the
chapter id or path it concerns: invalid-metadata, invalid-content (script, event
handlers, forms, duplicate ids, a chapter nobody can reach), missing-resource (a
reference or fragment the publication lacks, CSS url() included), remote-resource
(images, stylesheets or fonts from the web), unsupported-media and invalid-path.
Manifest properties (svg, mathml, nav, cover-image) are derived from the content.
Accessibility metadata is written only when given.
@sdxc/expression
Compare a field against another context path, and test lists with includes, intersects and subsetOf
Every comparison built-in (eq, ne, in, notIn, lt, lte, gt, gte) takes path in place of
value or values, so a rule can compare two facts the caller supplies, as in
{ op: "eq", field: "article.authorId", path: "actor.id" }. A node carries one or the other;
the schema refuses both and neither. A comparison between two paths is false when either side is
missing, null, or of a type the operator cannot compare, and two Dates compare by time value.
includes asks whether a list field has a member, intersects whether two lists share one, and
subsetOf whether every member of the field is in the other list. Each takes a literal or a path.
evaluate() now accepts any object as its context, so interface-typed records type-check.
Breaking: Write every path in the text form under a ctx. root
The text form now spells a context path as ctx followed by its segments, so both sides of a
comparison read the same way: ctx.article.authorId == ctx.actor.id. A segment a bare word cannot
spell is quoted in backticks on its own (ctx.headers.user-agent). A comparison's right-hand side
and a call's right-hand argument fill path when written as ctx.…, as in
includes(ctx.list, ctx.x); a path anywhere else fails naming the operator.
Breaking: text written as plan.tier == "pro" fails with "Paths start with 'ctx.'"; prefix every
path with ctx.. stringify() prints the new form. The JSON form is unchanged, so stored
expressions need no migration. createLanguage() throws a TypeError for an operator or reference
named ctx or another keyword of the text form.
Add strict languages that fail on missing or mistyped operands, and list the paths an expression reads
createLanguage({ strict: true }) fails a leaf, instead of answering false, when a path it reads
resolves to nothing (exists excepted), when a comparison between two paths holds null, or when
an operand has a type the operator cannot compare. evaluate() then returns
Result<boolean, ExpressionError>; the error carries the context path in missing or the operand
types in mismatch, and names the failing node by its path, a failure inside a reference
reported at the reference node with the inner one as its cause. all, any and not combine failures
in three-valued logic, so swapping operands never changes the answer, and evaluation still stops
at the first deciding member. Lenient languages, the default, answer exactly as before.
language.paths(compiled) returns every context path a compiled expression reads, through
references, so a caller can load only the facts a rule needs.
@sdxc/feed
Republished because @sdxc/outbound changed.
@sdxc/flags
Republished because @sdxc/jobs changed.
@sdxc/flags-engine
Keep the condition schema to the operators targeting rules have today
The expression language gained includes, intersects and subsetOf. Flag conditions name their
built-ins explicitly, so CONDITION_SCHEMA keeps refusing those until targeting rules adopt them.
Write condition text with the ctx. root and note path comparisons
flagConditions.parse() reads paths as ctx.plan.tier, so the README's text-form examples use it.
The comparisons from eq to gte also accept path in place of a literal.
@sdxc/highlight
Republished because @sdxc/markdown changed.
@sdxc/honeypot
Republished because @sdxc/crypto changed.
@sdxc/hostname
Republished because @sdxc/api-client changed.
@sdxc/http
Republished because @sdxc/crypto changed.
@sdxc/http-signatures
Sign and verify requests with RFC 9421 or draft-cavage-12
A new private package. sign adds the signature and body digest a request
needs, and verify checks one. Both work with either scheme. verify
requires the signature to cover the method, the target, the host, a time and
the body digest, and checks the digest and the signature age. The
structured Signature-Input, Signature and Accept-Signature fields, and
the cavage Signature header, can also be parsed and written on their own.
Reject replays that add an unsigned created, and malformed covered names
A draft-cavage signature now counts created and expires as its time only
when it covers (created) and (expires). Before, appending an unsigned
created to a captured request reset its age, so it could be replayed
indefinitely. A covered name that is not a valid header field name now fails
verify as malformed instead of throwing.
Publish @sdxc/http-signatures to npm
The package is now public and ships in the daily release under the @sdxc scope.
@sdxc/i18n
Republished because @sdxc/logger changed.
@sdxc/icalendar
Republished because @sdxc/dates changed.
@sdxc/idempotency
Republished because @sdxc/crypto changed.
@sdxc/jobs
Split Cloudflare queue writes by size as well as count
A Cloudflare Queues sendBatch accepts at most 256 KB across its messages, so an
enqueueMany of 100 messages a few KB each was refused whole. The Cloudflare queue
now closes a write before its serialized bodies, plus headroom per message, reach
that limit, as well as at 100 messages.
@sdxc/jwt
Store signing keys in Cloudflare R2 with @sdxc/jwt/r2
createR2KeyStorage(bucket) implements KeyStorage over an R2 bucket binding and reads back files with their stored name and type. Bucket types are declared structurally, so importing it needs no platform types.
@sdxc/lazy-frame
Add LazyFrame, a frame that loads when the reader scrolls near it or opens its dialog
Renders its children until then, so a browser without script keeps a working link. It can also keep the address bar on the page being read, hold the reader's place when content lands above them, and turn a link into the opener of the dialog around it. Apps resolve the client entry @sdxc/lazy-frame/ui#LazyFrame in their loadModule.
Give LazyFrame a written EntryComponent type so its declarations build
The publish build emits declarations, and the inferred clientEntry type named internal remix/component types it cannot reference (TS2883).
@sdxc/logger
Republished because @sdxc/expression changed.
@sdxc/mail
Leave markdown comments out of both parts of an email
@sdxc/markdown
Write XHTML from toHTML with syntax: "xhtml"
toHTML(node, { syntax: "xhtml" }) writes output an XML parser reads: the task-list
checkbox is self-closed, and every boolean attribute carries its name as its value
(disabled="disabled", an annotation's data-wide="data-wide"). Use it for EPUB content
documents and any other consumer that parses the markup as XML. The default, "html", is
unchanged, and markup a tag renderer returns is written as the renderer built it.
Read comments as nodes renderers skip and stringify keeps
A comment on its own line is a comment block that may span lines, blank ones
included; inside a line it is an inline comment. toHTML, toRemix and toPlainText
leave it out, and Markdown.stringify writes it back, so a document an editor parses
and writes keeps the author's notes. An unclosed comment is a parse error at the line
it opened on, and an annotation above a comment decorates the block after it.
comment joins Markdown.Block and Markdown.Inline, so an exhaustive switch over
node types needs a case for it.
Take variables, arrays and objects in attribute values, and fill them with plugin/variables
A braced attribute value now holds data with variable leaves: src={$cdn},
data={[1, 2, $three]}, options={{ stacked: true, "max-width": $width }}, plus
{null} and quoted strings. Tags and annotations share the one reader, a $name
reads as the same variable node a text hole produces, and nothing in a value
executes. Markdown.Attributes is now Record<string, Markdown.AttributeValue>.
A tag whose attributes hold a variable skips its schema at parse time. The new
@sdxc/markdown/plugin/variables visitor fills text holes and attribute values from
one set of values, runs the deferred schema with options.tags, and fails on a
missing name unless missing: "keep".
toHTML writes a structured annotation value into its data- attribute as JSON, and
an unfilled variable as its braced source spelling.
Render allowlisted HTML elements as elements through options.html
Raw HTML still renders as escaped text. Markdown.Options.html names the elements a
document may opt into and the attributes each may carry, e.g.
{ details: ["open"], summary: [], sup: [], a: ["href"] }. An allowlisted element
parses to a new element node whose children are markdown, and toHTML, toRemix and
toPlainText draw it as itself.
Where an element stands comes from the element: details, div and other
containers are blocks holding blocks, summary/figcaption/dt hold a line of
inline content, phrasing elements like sup, kbd and a are inline wherever
they are written, and br, img, wbr and hr are void with an optional
closing slash. Elements markdown already spells and raw-text or script elements
cannot be allowlisted.
An unlisted attribute is a parse error at the opening tag, on… handlers are
always refused, and URL attributes take only relative, http, https, mailto and tel
URLs. plugin/variables takes html to check a URL a variable is filled with, and
both renderers drop an unsafe attribute from a hand-built tree.
element joins Markdown.Block and Markdown.Inline. A tag's children that open
with a comment are now written back as the inline content they are.
Read dotted variable paths like $plan.price and $items.0
A variable may continue as a dotted path in text and in attribute values:
{% $plan.price %}, {$user.name}, {[$items.0, $a.b.c]}. Each segment is a name
or an array index, and Markdown.Variable.name keeps the path exactly as written, so
stringify round-trips it unchanged.
plugin/variables fills a path one segment at a time, reading only own properties
of objects and numeric indexes of arrays. A path that runs off its data is a missing
variable, and the failure names the full path (No value for $plan.price).
$a.b[0], $a.b(), a trailing dot or an empty segment are not variables.
Add headings, links, typography, embeds and lint plugins
Five new entry points under @sdxc/markdown/plugin/, each a visitor factory for
Markdown.walk that hands back untouched nodes as the same object:
headings: GitHub-compatible heading ids, numbered -1, -2 when repeated, keeping and
reserving every id an author wrote; tableOfContents() reads them back nested by level.
links: resolves relative hrefs and srcs of links, images and allowlisted elements
against a base URL, with a rewrite hook run on every URL.
typography: curly quotes decided across a whole paragraph, en and em dashes, and
ellipses, in text nodes only; code, kbd, samp and var elements keep their ASCII.
embeds: a URL alone on its line becomes a block tag through URL-only providers,
with youtube(), vimeo(), gist() and x() built in.
lint: lint(document) returns problems with positions for missing code languages,
skipped heading levels, repeated h1s, missing alt text, empty links, broken
#anchors and duplicate ids, plus custom rules.
Merge visitors with Markdown.compose
Markdown.compose(...visitors) returns one visitor for a single walk. Handlers for
the same node type run in the order the visitors were given, each on the node the
previous one returned, so two plugins that both handle headings — variables() and
headings(), say — each get their turn where a spread keeps only the last. A handler
that removes the node, splices it or changes its type ends the chain for that
node, and the merged visitor is asynchronous only when one of its handlers is.
@sdxc/math
Convert TeX math to MathML Core, with a markdown visitor and a component
@sdxc/math parses a practical TeX subset — fractions, roots, scripts, Greek letters
and symbols, big operators with limits, \left/\right delimiters, \text, font
commands, function names, accents, spacing and matrix/cases environments — into a
JSON tree of MathML Core elements. toMathML writes it as a <math> string with the
original TeX kept in an annotation; MathError carries the line and column.
@sdxc/math/markdown turns ```math fences and GitHub's $x$ inline form into
math tags, failing the walk on invalid TeX unless invalid: "keep", and renderMath
draws the tag for toHTML. @sdxc/math/ui provides MathFormula for direct use and
MathTag for toRemix's components option.
@sdxc/mcp
Republished because @sdxc/logger changed.
@sdxc/messaging
Send one portable message to chat, paging and webhook destinations
A message is plain JSON data (title, Markdown text, severity, fields, link
buttons, an incident key and state) that every provider renders natively and
sends with one fetch, answering a Result with a MessagingError whose code says
whether to retry, stop (gone), or fix the configuration.
Providers, each behind its own subpath: SlackWebhook, SlackBot, DiscordWebhook,
TeamsWorkflow, GoogleChatWebhook, TelegramBot, WhatsAppCloud (approved templates),
Ntfy, Pushover, PagerDuty (resolves by key), Opsgenie (closes by key) and a
Standard Webhooks signed Webhook whose render and sign a subclass can replace.
Slack bot, Discord and Telegram can edit a sent message or reply under it, and
supports() narrows those methods.
User-supplied URLs pass a host allowlist or the public-internet policy, a
redirect is never followed, answers are read within 64 KiB, and no error or log
names a webhook URL or token. MemoryDestination and the describeDestination
conformance suite cover an app's tests. Private until two apps use it.
Publish @sdxc/messaging to npm
The package is now public and ships in the daily release under the @sdxc scope.
Stop documenting SendOptions.id as Opsgenie's request id
Opsgenie's Alert API takes no client-supplied request identifier: it generates
the requestId it answers, and deduplicates alerts by alias, which comes from the
message's key. SendOptions.id is read only by the signed webhook, as its
webhook-id.
Leave markdown comments out of platform text
Send a message to a browser through Web Push
New @sdxc/messaging/web-push entry with a BrowserPush destination, built from
a WebPush sender and one browser subscription from @sdxc/web-push.
It sends a small JSON payload for the app's service worker to draw: title, a
plain-text body holding the text and fields, the first link as url, the
key as tag, severity and timestamp. The text is cut so the payload always
fits one push. The key is also the push Topic, so an offline browser receives
only the latest message about it, and critical messages go out with high
urgency. Web Push failures map to MessagingError codes: an unsubscribed browser
is gone, a bad subscription is invalid-destination, unusable VAPID keys are
unauthorized.
Install @sdxc/web-push only when sending browser push
@sdxc/web-push is now an optional peer dependency instead of a dependency, so
an app that never imports @sdxc/messaging/web-push no longer installs the Web
Push, JWT and crypto stack. Apps using BrowserPush add @sdxc/web-push
themselves. The @sdxc/crypto dependency is gone too.
Write the text of markdown HTML elements and tags that open with a comment
@sdxc/newsletter
Add vendor-neutral newsletter lists with Buttondown and Kit providers
One contract for a newsletter's subscriber list — subscribe, find, list, tags,
update, unsubscribe — answering every call as a Result with a NewsletterError
whose code is normalized (invalid_address and suppressed are the refusals a
visitor can act on). Subscribing an address the list already holds, in any
status, succeeds with created: false and leaves the record untouched.
@sdxc/newsletter/buttondown pins Buttondown's API version 2026-04-01 and
verifies X-Buttondown-Signature deliveries.
@sdxc/newsletter/kit subscribes through a Kit form, resolves tag names to
ids, pages by cursor and verifies timestamped X-Kit-Signature deliveries,
accepting any rotated secret.
@sdxc/newsletter/memory implements the whole contract in memory, with
seeding, scripted faults and signed deliveries for app tests.
NewsletterWebhook verifies a delivery, skips event ids a ReplayStore has
seen, and answers 503 when a handler throws so the platform redelivers.
@sdxc/newsletter/middleware publishes the provider as context.newsletter,
and @sdxc/newsletter/conformance holds any provider to the contract.
Take the visitor IP as an IP from @sdxc/ip
SubscribeInput.ipAddress?: string | null is now ip?: IP | null, the
type ctx.ip already carries, so a provider only ever sends a valid address
in its canonical spelling. MemoryNewsletter.ipAddress(email) is renamed
ip(email) and answers the recorded IP.
Accept the result of IP.parse as the visitor IP
SubscribeInput.ip takes an IP or the Result<IP, IP.Error> that
IP.parse answers, so a caller passes IP.parse(header) without unwrapping
it. A failed parse records no address rather than refusing the sign-up.
Credit a campaign through @sdxc/attribution's toCampaign
The README gains a pattern passing toCampaign(touch, url) as attribution
and toMetadata as metadata, and ADR-114 shows the same call in place of a
hand-written mapping of a touch.
Publish @sdxc/newsletter to npm
The package is now public and ships in the daily release under the @sdxc scope.
@sdxc/no-www-middleware
Redirect www. hostnames to the apex domain with noWWW()
@sdxc/outbound
Republished because @sdxc/doh changed.
@sdxc/pagination
Republished because @sdxc/crypto changed.
@sdxc/passkey
Republished because @sdxc/crypto changed.
@sdxc/password-policy
Republished because @sdxc/crypto changed.
@sdxc/qr
Add a QR Code encoder with SVG path data and a remix/component renderer
A new package for drawing QR codes on server-rendered pages. encodeQr(data, options)
encodes text or bytes as a QR Code Model 2 symbol and answers a Result: it splits text
into numeric, alphanumeric and UTF-8 byte segments with the fewest bits, picks the smallest
version that holds them, raises the error correction level while that version still fits,
and chooses the mask with the lowest penalty. level, minVersion, maxVersion, mask
and boostLevel override each choice; a too-long error reports the bits needed and
available. The symbol exposes isDark(x, y), which answers false past the edge.
svgPath(symbol, { margin }) returns the d and viewBox for one SVG path, and
QrCode from @sdxc/qr/component renders it as a labelled <svg role="img"> in fixed
dark-on-light colors that hold under dark themes and forced colors. The main entry point
depends only on @sdxc/result and runs in Workers, Bun, Node and the browser.
Breaking: Encode through QR.encode
QR.encode(data, options) replaces encodeQr, with the same options and the same
Result<QrSymbol, QrError>. Replace each encodeQr(...) call with QR.encode(...) and
import QR from @sdxc/qr.
Breaking: Build SVG path data through QR.toSVGPath
QR.toSVGPath(symbol, { margin }) replaces the standalone svgPath export, with the same
options and the same { d, viewBox, size } result. Replace each svgPath(...) call with
QR.toSVGPath(...).
Breaking: Return a QR instance from QR.encode
QR.encode now answers Result<QR, QrError>, where the QR instance carries version,
level, mask, size, isDark(x, y) and toSVGPath({ margin }). The QrSymbol type and
the static QR.toSVGPath are gone: type an encoded value as QR, and replace
QR.toSVGPath(symbol, options) with symbol.toSVGPath(options). QrCode's symbol prop
takes the instance.
Breaking: Render QrCode from serializable path data
QrCode now takes path, the plain { d, viewBox, size } object qr.toSVGPath() returns,
in place of the symbol instance, so its props survive serialization into a hydrated
component. The margin prop is gone: pass it to toSVGPath({ margin }) instead. Replace
<QrCode symbol={qr} margin={2} … /> with <QrCode path={qr.toSVGPath({ margin: 2 })} … />.
Breaking: Move QrCode to @sdxc/qr/ui
The remix/component renderer now lives at @sdxc/qr/ui, the subpath every package uses
for its UI. Replace import { QrCode } from "@sdxc/qr/component" with
import { QrCode } from "@sdxc/qr/ui".
Breaking: Narrow QR.encode failures to QrTooLongError and QrOptionsError
QR.encode now fails with QrTooLongError or QrOptionsError, both subclasses of
QrError, so checking error.code === "too-long" narrows the error and error.bits is
always present: drop the non-null assertion on bits. instanceof QrError still matches
every failure.
@sdxc/rate-limit
Key a budget on a client's network with addressKey
addressKey(ip) widens IPv6 to its /64, keeps IPv4 whole, and sends a missing address to the shared "unknown" bucket. It takes any parsed address with network({ v4, v6 }), such as the IP from @sdxc/get-client-ip.
@sdxc/rdap
Add an RDAP client for domain registration data
New package. new RDAP({ cache, userAgent }) finds a domain's registry
through the IANA bootstrap file and rdap.domain(name) answers its expiry,
registration and last-changed dates, EPP statuses, registrar (name, IANA
id, abuse email), nameservers and DNSSEC flag as plain camelCase data.
Every request goes through @sdxc/outbound, so a redirect cannot reach a
private address. The bootstrap file is cached, refreshed after
bootstrapTtl, and an expired copy is served when IANA is down. A lookup
makes one request chain and never retries: failures are an RDAPError
with a code, retryable and, for a 429, retryAfter in milliseconds.
{ related: true } also asks the registrar's server on thin registries
such as .com.
@sdxc/saml
Republished because @sdxc/crypto changed.
@sdxc/sample
Republished because @sdxc/crypto changed.
@sdxc/search
Republished because @sdxc/pagination changed.
@sdxc/security-headers
Republished because @sdxc/crypto changed.
@sdxc/seo
Leave campaign parameters and click identifiers out of canonical URLs
seo.canonical removes utm_* parameters and click identifiers such as gclid and fbclid (the
list @sdxc/attribution keeps) before building the canonical URL, so a page reached from any
campaign link names its clean URL and search engines consolidate on one address. Every other
query parameter is kept verbatim.
@sdxc/spam
Republished because @sdxc/doh changed.
@sdxc/spec
Click a control whose centre sits below the viewport's edge
browser.click and browser.click_selector click an element's centre. A control
straddling the bottom of the viewport has its centre off the visible page, so
the click landed on the document instead and a form button never submitted,
with no error. Such a control is now scrolled to the middle of the viewport
before the click. A control whose centre is already visible is clicked in
place, and the page keeps its scroll position.
Point a missed lookup at the field that reaches a role-less control
A password input carries a label but exposes no ARIA role, so a lookup like
textbox "Password" can never reach it. The miss used to list only other
textboxes, which gave no hint why the labelled field wasn't found. A lookup
that matches nothing now also reports any role-less control carrying that name
and the field lookup that reaches it, in html and browser alike: That name
labels a control with no role, reached as field "password".
The README's sign-in example now fills the password by field, and it documents
how a click treats a control at the viewport's edge.
Click controls a scrolling container clips
browser.click scrolled its target into view only when the target's centre sat outside
the viewport. A control inside a modal taller than the window can have its centre on
screen yet clipped by the modal's own scroll box, so the click landed on the page
behind it. A click now hit-tests that point and scrolls the control into the middle
of every scrolling ancestor whenever the point does not reach it.
@sdxc/trace-context
Republished because @sdxc/crypto changed.
@sdxc/ui
Add keymap(), key-combo helpers, ShortcutList and an Announcer hold
keymap()/bindKeymap() bind page-wide shortcuts that stand down in fields, IME composition and foreign dialogs; parseKeyCombo/matchesKeyCombo/keyComboGlyphs read one combo spelling for both matching and the printed hint, with mod as Command on Apple keyboards and Control elsewhere; ShortcutList renders a shortcuts panel's key list; new Announcer({ hold }) moves past each message on its own. hotkey(): ctrl and cmd now name only their own key instead of acting as aliases for mod.
@sdxc/user-agent
Tell a crawler, preview fetcher or script from a browser with isBot
isBot(header) answers whether a User-Agent names automated software: search crawlers,
link-preview fetchers (facebookexternalhit, Slackbot, WhatsApp and the like), uptime
monitors, headless browsers and HTTP libraries. An empty header counts as a bot, since
every browser sends one.
@sdxc/web-push
Send Web Push notifications with VAPID signing and subscription checks
New package. WebPush encrypts a payload for one browser subscription (RFC 8291,
aes128gcm), signs an RFC 8292 VAPID token per push service origin and caches it for
twelve hours, and sends one POST, answering a Result whose WebPushError code says
what to do with the stored subscription: gone to delete it, unauthorized to fix
the sender's keys, rate-limited/unavailable/timeout/network to retry.
Malformed subscriptions, bad VAPID keys, invalid options and payloads over 3,993
bytes are refused before any request. SUBSCRIPTION_SCHEMA applies the same checks
at registration: a public https: endpoint, a P-256 point on the curve and a 16-byte
auth secret. previous keeps rotated-out key pairs signing for the subscriptions
made under them.
@sdxc/web-push/browser adds subscribe() and isSupported(): it asks for
permission inside the caller's click, reuses a subscription made under the page's
key and replaces one made under another.
State that no push provider account is needed
The README named Firebase where it meant Chrome's push service, which read like a dependency. It now says each browser picks its vendor's push service and the sender is identified only by its own VAPID key pair.
@sdxc/webhooks
Republished because @sdxc/crypto changed.
@sdxc/webmention
Republished because @sdxc/outbound changed.
@sdxc/websub
Republished because @sdxc/crypto changed.
@sdxc/well-known
Read and write NodeInfo 2.0/2.1 and its discovery links
@sdxc/well-known/nodeinfo adds two formats: nodeInfoLinks, the
/.well-known/nodeinfo document pointing at a server's NodeInfo, and
nodeInfo, the document itself. Both work with respond like the other
well-known documents. Reading accepts 2.0 and 2.1 and keeps protocols and
services the schema does not register; writing always produces 2.1.
@sdxc/workers-cache
Republished because @sdxc/logger changed.
@sdxc/zip
Add a streaming ZIP writer with CRC-32
A new package for downloads that bundle several files. new Zip() collects entries with
zip.add(path, source, { modified, comment }), where the source is a string (written as
UTF-8), a Uint8Array or a ReadableStream<Uint8Array>, and answers a Result: a name
that is empty, absolute, holds a backslash, a control character or an empty, . or ..
segment, or repeats one already added, fails with invalid-entry; the 65,536th entry fails
with too-large. zip.stream() writes the entries in order as a ReadableStream ready for
a Response, and zip.bytes() collects it into a Result<Uint8Array, ZipError>.
Every entry is stored uncompressed, with its CRC-32 and sizes in the local header, so every
unarchiver and streaming reader opens the archive; text-heavy archives are three to four
times the size a compressed one would be. A stream entry is read whole when the archive
reaches it, and a source that errors fails the output with source-failed, carrying the
source's error as cause. Timestamps default to 1980-01-01, so the same entries produce
the same bytes. crc32(bytes, previous?) is exported for other formats that need it.
@sdxc/zone-file
Read and write RFC 1035 zone files
New package. parse(text, { origin }) reads the whole master-file grammar
— $ORIGIN, $TTL, $INCLUDE through an include option, parentheses,
blank owners, escaped names, BIND TTL units, any class and any type — and
returns the records beside every entry it could not use, each with its line
and a reason. Its only failure is input past maxBytes.
stringify(zone, { relative }) writes records back, absolute by default or
relative to the origin, and parse(stringify(zone)) yields the same records.
The package also owns the RDATA presentation codec: parseRecordData and
formatRecordData, now with typed PTR and DNAME, canonical escaped names,
and BIND units in SOA timers.
Pin the public surface a namespace import reaches
The README's normalize example sorts a copy with spread and sort, which every
supported runtime has.
Keep a CREATE TRIGGER body in one D1 statement
The D1 mock split scripts and checked prepared statements on every top-level
semicolon, so a trigger's body was cut at its first inner statement and a
migration declaring a trigger failed against the mock while D1 applies it.
Semicolons inside a CREATE TRIGGER ... BEGIN ... END body (CASE blocks
included) now stay with the trigger, and an unclosed quote, comment or body
is reported with the line it opened on.
@sdxc/distill
Read a page's excerpt and summarize pages without an article
Every distilled article now carries an excerpt: the summary the page shares links under (og:description, description, twitter:description), else its first paragraph of prose, cut at the last whole word within EXCERPT_LENGTH (300) characters.
summaryFrom(source, url) answers the title, excerpt and canonical address of any page, including landing and video pages that carry no article, so a link can be shown with a headline and a line of text.
@sdxc/http
Declare UTF-8 on text, HTML, CSS, JavaScript, XML and Markdown responses
The text response builders sent a bare MIME type, so a client fell back to its own default
encoding and showed non-ASCII text as mojibake ("Xalambrí" read as "XalambrÃ" in a
text/plain llms.txt). A string body is always sent as UTF-8, so each now declares
charset=utf-8, as csv() already did.
@sdxc/search
Add @sdxc/search for FTS5 and LIKE search over app-declared tables
A new private package. parseQuery turns search box text into terms (phrases,
exclusions, prefix rules, length and term limits) and never lets user text
reach FTS5 as syntax or LIKE as a wildcard. defineSearch describes a table the
app already declares, with per-column weights and an optional FTS5 table, and
its query() is an OffsetQuery and KeysetQuery that @sdxc/pagination pages,
ranked by bm25() or by weighted LIKE hits. predicate() embeds the match in an
app's own statement, reindex() fills an index in idempotent batches, and
highlight()/excerpt() (also under @sdxc/search/query, free of database code)
return segments to render as <mark>. The README carries the recommended
contentless-delete FTS5 schema and triggers; the package creates no tables.
Recommend triggers that keep the index current through an upsert
The recommended FTS5 triggers wrote with INSERT OR REPLACE. A trigger's
statements take the conflict policy of the statement that fired it, so an
upsert (INSERT … ON CONFLICT DO UPDATE) on the source table turned that
write into a plain insert: the row's new terms were indexed beside its old
ones, and a search kept finding text the row no longer held. Checked against
SQLite 3.53 and against D1 inside workerd.
The insert and update triggers in the README's Storage section now delete the
row's rowid from the index and then insert it, which holds under every
conflict policy and stays idempotent beside a batched reindex. An app that
copied the earlier triggers should replace them in a new migration and run
reindex from the start.
Show search over the table that already holds the text
The README's examples searched a dedicated post_search table, which read as if
the package needed one. They now define the search on an ordinary articles
table, say that LIKE needs no schema change at all, state FTS5's two
requirements (searched columns on one row, an integer key the rowid mirrors),
and describe an integer column or a search document table only as the way to
fit a table that meets neither. Tests and the schema fixture follow the README.
Publish @sdxc/search to npm
The package is now public. Its README is written for npm readers: installation
with its published companions, short usage for parsing, LIKE and FTS5 search
and highlighting, the API, and patterns for storing an FTS5 index, reindexing
from a job and narrowing a list's own order. The schema fixture the tests share
moved out of src so it never ships.
Read a Lucene-style query syntax, with fields, filters and OR
parseQuery now reads uppercase OR (joining the terms on each side), NOT and AND,
a leading +, and declared field:value and filter:value qualifiers, falling back
to plain AND wherever an operator cannot apply, so no input is a syntax error.
A ParsedQuery is now clauses (OR alternatives that must match, or one excluded
term) and filters (exact values for the caller to apply as where), replacing
the flat terms array. defineSearch columns take a field name, listed in
search.fields; scoped terms compile to FTS5 column filters or a single LIKE
column, a filter-only query matches every row not excluded with rank 0, and
highlight/excerpt take the field they render. See ADR-117.
@sdxc/ui
Mark search matches inside text with Highlight
<Highlight segments={[{ text, match }]} /> renders text split where a query matched, each
match a native <mark> tinted through a semantic color role (brand by default). The mark
keeps the surrounding text's color and weight, so a match inside a link still reads as the
link, and its tint carries across line breaks. The segments are plain { text, match }
objects, so any matcher can produce them, and every stretch stays escaped text.
Draw the theme's focus ring on keyboard focus by default
The reset now gives any element in keyboard focus the theme's ring (2px of
--ui-ring, 2px offset) in its base layer, so a plain <summary>, link or control
that no component styles shows the same ring as the components do instead of
the browser's default. Component styles still take precedence.
Show a loaded avatar picture instead of its fallback initials
An Avatar or ImagePlaceholder fallback hid itself behind an unbroken image with
display: none, which competed with its own display: flex. Every utility lands in a cascade
layer declared in the order a page first uses it, so on a page that used the centering
utility after the hiding rule, the initials covered every loaded picture. The fallback now
stands down through visibility, which no other rule on it sets.
Add retry delay schedules
createBackoff answers how long to wait after the Nth failure, counting
from 1: exponential, linear or constant growth from a base, or a
hand-written table of steps, with an optional ceiling, free attempts and
jitter (a ±fraction or "full"). Jitter draws from an injectable Random,
so a test passing a seeded stream asserts exact delays. Options are
validated once and delay/at never fail.
Read Retry-After as seconds or an HTTP date
The Retry-After pattern answered NaN for a header written as a date; it now
reads both forms and treats anything else as no answer.
@sdxc/billing
Republished because @sdxc/api-client changed.
@sdxc/bracket-params
Republished because @sdxc/result changed.
@sdxc/cache
Republished because @sdxc/duration changed.
@sdxc/captcha
Pass only a parsed client address to the provider
The middleware's default remoteIp now reads CF-Connecting-IP through
@sdxc/get-client-ip, so the provider receives the address in canonical
text, and no address at all when the header is not one.
@sdxc/cron
Draw the fuzz corpus from @sdxc/random
The corpus generator replaces its hand-written mulberry32 source and
between helper with a seeded createRandom stream. The corpus is still
fixed by CORPUS_SEED, though the expressions it draws are new.
@sdxc/crypto
Republished because @sdxc/result changed.
@sdxc/csv
Republished because @sdxc/result changed.
@sdxc/dates
Republished because @sdxc/duration changed.
@sdxc/distill
Breaking: Fetch through @sdxc/outbound and remove the ./retrieve export
@sdxc/distill/retrieve is gone; use @sdxc/outbound's checkUrl, follow and readText for a bounded fetch on its own. addressable and distill now also refuse URLs carrying credentials and the reserved names .internal, .intranet, .lan, .corp, .private, home.arpa, .test, .invalid and .example. A caller's signal is now combined with timeoutMs rather than replacing it, so the deadline always applies.
@sdxc/doh
Republished because @sdxc/result changed.
@sdxc/duration
Republished because @sdxc/result changed.
@sdxc/email-address
Republished because @sdxc/doh changed.
@sdxc/expression
Add a typed condition language with dialects and custom operators
createLanguage defines a dialect once: the built-in operators it keeps, the
operators it adds with defineOperator, and how it spells a reference to a
shared condition. The result carries a Standard Schema for the JSON form,
compile (validation, v-flag patterns, memoized references with cycle
detection) and a pure evaluate. A missing field is false for every operator
but exists, and no comparison coerces across types.
Parse and print expressions in a text form
Every language gains parse and stringify. The text form writes and/or/not
with not over and over or, infix comparisons, and call syntax for every
other operator, extensions and references included; values are JSON
literals. parse validates what it builds and reports failures with a line
and column, and stringify prints canonical text that parses back to the
same JSON.
@sdxc/feed
Refuse feed URLs and redirects that leave the public internet
Every URL a fetch or discovery asks, including each redirect hop, must now be HTTP(S) with no credentials and point to a public host. A private address, a reserved name such as localhost or .local, or a name with no dot is refused as a FeedFetchError before a request goes out. Pass hosts: "any" to fetch from your own network on purpose. Requests no longer send credentials, and the reported url is now the normalized URL.
@sdxc/flags
Republished because @sdxc/jobs changed.
@sdxc/flags-engine
Evaluate targeting conditions with @sdxc/expression
Conditions are now the flagConditions dialect: every built-in, semver, and
references spelled segment. Stored flag sets parse exactly as before, and
flagConditions is exported so an editor can compile and evaluate a rule
the way parseFlagSet does.
Edit a targeting condition as text in the preview pattern
@sdxc/get-client-ip
Breaking: Answer a parsed IP and publish it as ctx.ip
getClientIP(request) now answers an IP from @sdxc/ip instead of the
raw header text, and null when CF-Connecting-IP is missing or is not
one address, so a malformed header can no longer become a rate limit key
or a stored address. Call .toString() for the canonical text, or
.network({ v4: 32, v6: 64 }).toString() to key a limit on the client's
network.
The new @sdxc/get-client-ip/middleware default export parses the
header once per request and publishes it as ctx.ip: IP | null, with
ClientIP as its context key.
Log the address on the request's wide event
@sdxc/highlight
Republished because @sdxc/markdown changed.
@sdxc/honeypot
Republished because @sdxc/crypto changed.
@sdxc/hostname
Republished because @sdxc/api-client changed.
@sdxc/html
Republished because @sdxc/result changed.
@sdxc/http
Republished because @sdxc/crypto changed.
@sdxc/i18n
Republished because @sdxc/logger changed.
@sdxc/icalendar
Republished because @sdxc/dates changed.
@sdxc/idempotency
Republished because @sdxc/crypto changed.
@sdxc/ip
Add IPv4 and IPv6 address and range value objects
A new package for reading, classifying and keying IP addresses.
IP.parse(text) answers a Result<IP, IP.Error>, accepting a bracketed
IPv6 host and only canonical dotted-decimal IPv4. An IP reports its
classification against one table of the IANA IPv4 and IPv6
special-purpose registries, isPublic, the embeddedIPv4 inside an
IPv4-mapped, NAT64 or 6to4 address (which classification judges by),
network({ v4, v6 }) for a rate limit key, value equals, and RFC 5952
canonical text through toString() and toJSON().
IP.Range.parse("10.0.0.0/8") gives a network with contains, refusing
a range whose address has host bits set.
@sdxc/jobs
Hold a retry past 12 hours for the longest Cloudflare Queues allows
A retry delay longer than the platform holds a message, such as a backoff
ceiling plus jitter or a remote Retry-After, now waits 12 hours instead of
being passed through as a delay the queue cannot honor.
@sdxc/jsdoc
Read a header written directly above an import as the module's comment
An import carries no documentation of its own, so a file whose header sits on the line
above its first import now reports that header as the module's comment instead of
dropping it.
Keep a class's generics and heritage when its namespace is declared first
A class merged with a namespace written above it reported no type parameters, no
extends and no implements; the merged symbol now carries the class's own.
@sdxc/json-feed
Republished because @sdxc/result changed.
@sdxc/json-schema
Republished because @sdxc/result changed.
@sdxc/jwt
Republished because @sdxc/duration changed.
@sdxc/logger
Draw the sampling decision from @sdxc/random
The tail sampler draws against rate from a Web Crypto stream instead of
Math.random, and its tests run on a seeded stream.
Accept a condition as the sampling keep exemption
Sample.Options.keep takes a condition in the @sdxc/expression JSON form as
well as a function, so an exemption can come from configuration. It compiles
once at createLogger, reads a namespaced field by its dotted path, and a
condition that does not compile keeps every log.
@sdxc/mail
Republished because @sdxc/crypto changed.
@sdxc/markdown
Republished because @sdxc/result changed.
@sdxc/mcp
Republished because @sdxc/json-schema changed.
@sdxc/merge-patch
Republished because @sdxc/problem changed.
@sdxc/messageformat
Republished because @sdxc/result changed.
@sdxc/microformats
Republished because @sdxc/html changed.
@sdxc/micropub
Republished because @sdxc/microformats changed.
@sdxc/openapi
Republished because @sdxc/json-schema changed.
@sdxc/opml
Republished because @sdxc/result changed.
@sdxc/outbound
Check, follow and read URLs a stranger chose
checkUrl refuses a URL before any request: a scheme other than HTTP(S), embedded
credentials, a disallowed port, a non-public address literal or a reserved name.
follow walks the redirect chain by hand, checking every hop with the same policy,
releasing each redirect's body, and holding the chain and the body read after it to
one deadline; resolve: true also refuses a hop whose DNS answers are not public.
readText, readBytes and limitBody cap any Request or Response, whatever
runtime produced it. Every failure is an OutboundError with a code, the url it
concerns, and whether a retry can help.
Keep the response URL on a body bound to a deadline or cap
follow and limitBody hand back a response with a new body, which used to leave response.url empty, so a failed read reported "the body" instead of the URL. The response now keeps the URL it was fetched from.
@sdxc/pagination
Republished because @sdxc/crypto changed.
@sdxc/passkey
Republished because @sdxc/crypto changed.
@sdxc/password-policy
Republished because @sdxc/crypto changed.
@sdxc/problem
Republished because @sdxc/result changed.
@sdxc/random
Add seeded and system random streams with resumable state
A new package for drawing random values. createRandom(seed) opens a
seeded stream that replays the same sequence on any machine, derives
independent child streams by label, and snapshots its position with
state() so restoreRandom resumes it exactly. systemRandom() draws
from crypto.getRandomValues for jitter and sampling, systemSeed()
gives a fresh seed to log, and RANDOM_STATE_SCHEMA validates a stored
snapshot. Every stream offers next, int, float, bool, pick and
shuffle.
Breaking: Move RANDOM_STATE_SCHEMA to @sdxc/random/schema
The main entry point now has no dependencies, so a library can accept a
Random without installing remix. Import RANDOM_STATE_SCHEMA from
@sdxc/random/schema; remix is an optional peer dependency needed only
there.
Report a fuzz seed in the suite name and refuse a bad save without throwing
@sdxc/rate-limit
Key anonymous limits on the client's parsed network
The examples read CF-Connecting-IP through @sdxc/get-client-ip and key on
the address's /64 for IPv6, so a malformed header shares the unknown
bucket and an IPv6 client cannot mint budgets by rotating addresses.
@sdxc/result
Accept a function of the attempt as retry's delay
retry's delay takes milliseconds or (attempt) => number, where
attempt counts failures from 1. A function delay ignores backoff, so a
schedule with a ceiling and jitter, such as one from @sdxc/backoff,
plugs in without @sdxc/result depending on it.
@sdxc/rss
Republished because @sdxc/result changed.
@sdxc/saml
Republished because @sdxc/crypto changed.
@sdxc/sample
Breaking: Draw from @sdxc/random and drop createRandom and systemSeed
createRandom, systemSeed, Random and Seed are no longer exported;
import them from @sdxc/random, which this package now depends on. The
generator and seed hashing are unchanged, so every seed produces the
values it produced before. createSample({ seed }) takes a seed or an
open SeededRandom.
Report a run's seed in the suite name
@sdxc/scim
Republished because @sdxc/result changed.
@sdxc/security-headers
Republished because @sdxc/crypto changed.
@sdxc/semver
Republished because @sdxc/result changed.
@sdxc/session-storage-kv
Republished because @sdxc/duration changed.
@sdxc/sitemap
Republished because @sdxc/result changed.
@sdxc/spam
Republished because @sdxc/doh changed.
@sdxc/spec
Draw seeds and streams from @sdxc/random
Plugins receive a SeededRandom as context.random, and workers
re-exports Random, Seed and SeededRandom from @sdxc/random. Run
ids draw their suffix from Web Crypto instead of Math.random. Seeded
values are unchanged.
Document context.random for plugin authors
@sdxc/structured-fields
Republished because @sdxc/result changed.
@sdxc/trace-context
Republished because @sdxc/crypto changed.
@sdxc/validate
Republished because @sdxc/result changed.
@sdxc/webhooks
Republished because @sdxc/crypto changed.
@sdxc/webmention
Fetch sources and endpoints through @sdxc/outbound
The package no longer depends on @sdxc/distill. Every source, endpoint and redirect hop must now be HTTP(S) with no credentials and outside the reserved names (.internal, .test, .example, home.arpa and the like), as well as the loopback, .local, address-literal and single-label refusals it already had. WebmentionFetchError.retryable follows the shared rule: a timeout or a body that breaks off can be retried, while an overlong redirect chain, an oversized body and a refused host are final.
@sdxc/websub
Cap delivery bodies with @sdxc/outbound
Signed deliveries are read through the shared bounded reader. A delivery past maxBytes is still refused as too-large, including one that declares a length over the cap, and a body that breaks off is still a mismatch.
Find elements inside a display: contents wrapper in the browser
A wrapper styled display: contents draws no box of its own, so the browser reported it as unrendered and every lookup treated what it holds as hidden. Headings, form fields and modals inside such a wrapper are now addressable.
Start long-lived programs with cli.start and run them in a chosen directory
cli.start launches a program and returns while it keeps running, so a setup hook can boot a dev server; cli.output reads what it printed and asserts with contains inside eventually; cli.stop ends it and reports its exit code and output. Anything still running stops when the run ends, and stopping signals the whole process group. cli.run and cli.start take in <directory> to run outside the workspace, gated by --allow-host-fs.
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/atom
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/auth
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/billing
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/bracket-params
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/cache
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/captcha
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/catch-response-middleware
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/cloudflare-mocks
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/cloudflare-pricing
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/cron
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/crypto
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/csv
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/data-table-d1
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/data-table-sqlstorage
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/dates
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/distill
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/doh
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/duration
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/email-address
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/feed
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/flags
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/flags-engine
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/get-client-ip
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/highlight
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/honeypot
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/hostname
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/html
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/http
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/i18n
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/icalendar
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/icons
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/idempotency
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/jobs
Enqueue examples carry a complete payload
Both examples passed a partial payload for a job whose schema needs more
fields, so copying one produced code that fails the type check the examples
are there to advertise.
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/jsdoc
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/json-feed
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/json-schema
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/jwt
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/lazy-route
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/location
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/logger
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/mail
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/markdown
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/mcp
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/merge-patch
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/messageformat
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/microformats
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/micropub
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/openapi
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/opml
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/pagination
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/passkey
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/password-policy
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/problem
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/rate-limit
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/response
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/result
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/robots
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/rss
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/saml
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/sample
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/scim
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/security-headers
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/semver
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/seo
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/server-timing
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/session-storage-kv
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/sitemap
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/spam
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/spec
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/strings
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/structured-fields
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/trace-context
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/trailing-slash-middleware
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/typeid
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/types
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/u
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/ui
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/user-agent
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/uuid
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/validate
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/webhooks
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/webmention
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/websub
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/well-known
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/workers-cache
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/xml
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
@sdxc/yaml
Update Remix to 3.0.0
Remix 3 is stable. Every workspace now pins remix@3.0.0, and
@remix-run/data-schema moves to ^1.0.0.
The component runtime moved from remix/ui to remix/component, along with
its subpaths (remix/component/server, remix/component/test, the JSX
runtimes), so every import and every jsxImportSource now points there.
The headless primitives (anchor, combobox, listbox, tabs) are no
longer part of remix. They ship in the standalone @remix-run/ui package,
pinned at 0.12.1, which @sdxc/ui and the sdxc app now depend on directly.
Renew a month-end subscription on the next month's last day
The memory provider advanced a billing period with setUTCMonth, so a subscription
bought on January 31st renewed on March 3rd, and a yearly one bought on February 29th
renewed on March 1st. Month and year periods now clamp to the end of the target month.
@sdxc/bracket-params
Read and write nested query strings and form data with bracket syntax
parse(source, schema) reads bracket keys (filter[status][]=open, items[0][quantity]=2)
from a query string, URLSearchParams, URL, @sdxc/locationLocation or FormData into
nested objects and arrays, validates them against a synchronous Standard Schema, and returns a
Result. Files in a form arrive as values unchanged. Depth and entry-count limits fail the parse
rather than truncating it.
stringify(value) writes a nested object back as a query string and toFormData(value) as a
form, files included, in the form parse reads. fieldName(path) writes one path as its field
name, for naming inputs and placing a schema issue on the input it belongs to.
Make the package public
Follow the public package README structure
Lead with the smallest example, give each export one or two sentences, list every exported type, show the URLSearchParams calls stringify replaces, and add a pattern that places each schema issue on the input it belongs to.
@sdxc/cron
Resolve schedule wall clocks through @sdxc/dates
@sdxc/dates
Add month and quarter boundaries, datetime-local values, Unix seconds and zone validation
startOfMonth, endOfMonth, startOfQuarter, endOfQuarter and addMonths work on a
stated zone's calendar; addMonths keeps the wall-clock time and clamps to the target
month's last day, so January 31st plus one month is February 28th or 29th.
daysInMonth and, on @sdxc/dates/zone, shiftCalendarMonth do the same on plain
calendar days.
toDateTimeLocal and parseDateTimeLocal convert between an instant and an
<input type="datetime-local"> value read in the reader's zone; parsing reports an
InvalidDateTimeLocalError for a value naming a day or time that does not exist.
toUnixSeconds and fromUnixSeconds convert to and from whole epoch seconds, as JWT
iat and exp claims carry them.
isValidTimeZone checks an untrusted zone name before any zone-taking function throws
Intl's RangeError on it.
Resolve a repeated wall-clock hour east of UTC to its earlier instant
instantFromParts returned the later of the two instants a fall-back hour names in
zones at or east of UTC, so Madrid's 02:30 on 2026-10-25 read as 01:30Z instead of
00:30Z. Every zone now resolves a repeated hour to its first occurrence, which also
corrects addMonths and parseDateTimeLocal landing on such an hour.
@sdxc/flags
Republished because @sdxc/jobs changed.
@sdxc/flags-engine
Republished because @sdxc/flags changed.
@sdxc/icalendar
Republished because @sdxc/dates changed.
@sdxc/jobs
Republished because @sdxc/cron changed.
@sdxc/jwt
Read issuedAt and notBefore as the dates their claims name
The iat and nbf claims hold seconds since the epoch, and the two getters passed them
straight to new Date(), which reads milliseconds, so a token issued in 2026 reported an
issue date in January 1970. Both now convert the seconds the way expiresAt already did,
so they read back the date their setters wrote.
@sdxc/sample
Republished because @sdxc/dates changed.
@sdxc/spec
Republished because @sdxc/sample changed.
@sdxc/ui
Compile in a Cloudflare Worker, whose runtime types redeclare Element
A Worker's generated runtime types declare a global Element of their own, HTMLRewriter's,
whose append, prepend, before and after take string, stream or Response content. The
declaration merges into the DOM's Element and hides the node-taking methods it inherits
from ParentNode and ChildNode, so an app type-checking @sdxc/ui alongside those types
failed in the select's mirrorSelectedOption mixin. The mixin now copies the selected
option's nodes with appendChild, which the Workers types leave alone, and the package
type-checks against the same Element declaration, so a call that only compiles against
the DOM fails here rather than in an app.
Hide the mobile nav drawer while it is closed
Sidebar.MobileNav laid its <dialog> out as flex whether or not it was
open, which overrode the browser's hiding of a closed dialog. A closed
drawer stayed rendered just off the left edge, and its shadow showed as a
grey band down the side of the page. The drawer now lays out only while
open, and still slides in and out as before.
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/auth
Republished because @sdxc/idempotency changed.
@sdxc/billing
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/captcha
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/csv
Read and write RFC 4180 CSV, with a streaming writer
parse reads text into records keyed by the header row, or into rows of
fields, and returns every field as a string so rows are typed by the
caller's schema. It accepts CRLF, LF and CR, drops a leading BOM, skips
blank lines, and fails with a line number on an unterminated quote, text
after a closing quote, a ragged record or a duplicate header.
stringify writes objects in a declared column order under a header, or
arrays of cells as bare records. streamify writes the same text as a
UTF-8 byte stream while an iterable or async iterable yields rows, for
downloads too large to hold as one string. Both quote only what RFC 4180
requires, accept ,, ; or tab as the delimiter, can prefix a BOM for
Excel, and neutralize string cells a spreadsheet would run as formulas.
Make the package public
Its README is written for npm, it carries an MIT license, and it is no
longer private, so the daily release publishes it under a dated version
once its first bootstrap publish exists on npm.
@sdxc/distill
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/email-address
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/flags
Republished because @sdxc/jobs changed.
@sdxc/flags-engine
Republished because @sdxc/flags changed.
@sdxc/highlight
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/honeypot
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/hostname
Republished because @sdxc/api-client changed.
@sdxc/http
Stream CSV responses as UTF-8 and encode download filenames per RFC 8187
csv() takes a ReadableStream<Uint8Array> as well as a string and sends
text/csv; charset=utf-8, so a CSV writer's stream can be the body of a
download without buffering it.
The new attachment(filename) builds a Content-Disposition value with an
ASCII filename fallback and an RFC 8187 filename* for names outside
ASCII. file() uses it, so a quote in a download's name no longer breaks
the header and accented or non-Latin names reach the browser intact.
@sdxc/idempotency
Republished because @sdxc/problem changed.
@sdxc/jobs
Add a router middleware publishing ctx.jobs for enqueuing from route handlers
@sdxc/jobs/router exports jobEnqueuer(queue), a remix/router middleware that
publishes ctx.jobs (and the Jobs context key) with enqueue and enqueueMany. It
writes through the queue alone, so the dispatcher, its middleware and every job handler
stay out of the request path's module graph. Both methods take what the dispatcher's own
take, raise the backend's JobQueueError, and carry the request's trace on each message.
@sdxc/json-schema
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/mail
Republished because @sdxc/highlight changed.
@sdxc/mcp
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
Breaking: Declare tool schemas with @sdxc/json-schema
A tool's input and output are now @sdxc/json-schema schemas whose parse yields
an object, replacing the hand-written JSON Schema literal. The same schema is
published in tools/list (input side, named schemas inline, no $schema), parses
every tools/call, and types ctx.input as its parse output, so defaults,
transforms, refinements and coercion all apply. tool() throws at declaration
when a schema has no JSON Schema form or its root is not an object.
Arguments keep the model-friendly rules: unknown keys are dropped, every issue is
reported at once, and null counts as absent for a property whose schema does not
accept it. Issue messages now use data-schema's wording (limit: Expected integer),
and a missing required argument reads Required.
Breaking: ObjectSchema, PropertySchema, FromSchema, FromObjectSchema and the
other subset types are removed in favour of ToolSchema; Tool.inputSchema is now
Tool.input; validateArguments takes the tool instead of a schema.
@sdxc/merge-patch
Republished because @sdxc/problem changed.
@sdxc/openapi
Republished because @sdxc/json-schema changed.
@sdxc/passkey
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/password-policy
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/problem
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/saml
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/security-headers
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/spam
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/trace-context
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
@sdxc/webmention
Republished because @sdxc/distill changed.
@sdxc/well-known
Shorten the package description
The description npm and the documentation site show now fits in three lines, keeping what the package does and dropping the detail its README covers.
Add @sdxc/captcha, provider-neutral CAPTCHA verification
A Captcha interface every provider implements, with Turnstile, hCaptcha and reCAPTCHA (v2 and v3, with a minimum score) classes and a remix/ui widget for each. The captcha() router middleware reads the provider's form field, verifies it, publishes the outcome as ctx.captcha and answers a failure with a 403 unless onFailure decides otherwise; it can also hold a verification to an expected action and hostname. Failures use shared codes (missing-token, rejected, expired, low-score, unavailable, action-mismatch, hostname-mismatch) with the provider's own codes kept alongside. MemoryCaptcha lets a test queue passes and failures, fix a token's answer and inspect every call.
Publish @sdxc/captcha to npm
The package is public: it ships in the daily release under the @sdxc scope.
Upgrade remix to 3.0.0-rc.4
@sdxc/catch-response-middleware
Upgrade remix to 3.0.0-rc.4
@sdxc/cloudflare-mocks
Upgrade remix to 3.0.0-rc.4
@sdxc/cloudflare-pricing
Add @sdxc/cloudflare-pricing, Cloudflare list prices per service
One module per service (workers, durable-objects, d1, kv, queues, analytics-engine, email-service, r2) holds each meter's Workers Paid price as Cloudflare publishes it, the monthly included allowance and the Free plan limit, plus the docs URL the prices were taken from and the date they were verified. centsPerUnit() derives the per-unit cost in cents, and centsPerGbDay() accepts only GB-month storage meters, so a storage price cannot be converted at the wrong scale.
Publish @sdxc/cloudflare-pricing to npm
The package is public: it ships in the daily release under the @sdxc scope.
@sdxc/data-table-d1
Upgrade remix to 3.0.0-rc.4
@sdxc/data-table-sqlstorage
Upgrade remix to 3.0.0-rc.4
@sdxc/doh
Upgrade remix to 3.0.0-rc.4
@sdxc/email-address
Add @sdxc/email-address, parsing, disposable-domain and mail-server checks
parseEmailAddress() validates a dot-atom address within RFC 5321 length limits, NFKC-normalizes it and ASCII-encodes an international domain, returning the address as entered and a canonical form for comparisons. Separate entry points check a bundled disposable-domain list (disposable-email-domains, CC0-1.0), whether a domain can receive mail over DNS over HTTPS (null MX, implicit MX fallback, NXDOMAIN and resolver failures told apart), role accounts such as admin@, and likely typos of large providers.
Keep the disposable-domain list out of the type declarations
DISPOSABLE_DOMAINS is declared as string, so its declaration file no longer repeats the whole list as a string-literal type (585 B instead of 140 kB), and the refresh script writes the same annotation.
Publish @sdxc/email-address to npm
The package is public: it ships in the daily release under the @sdxc scope.
@sdxc/flags
Upgrade remix to 3.0.0-rc.4
@sdxc/flags-engine
Upgrade remix to 3.0.0-rc.4
@sdxc/highlight
Republished because @sdxc/markdown changed.
@sdxc/honeypot
Add honeypot form fields that refuse bot submissions before the handler
New public package. Honeypot issues a random trap field name and an HMAC-signed token recording
when the form was rendered and which field is the trap, and verifies them: a filled trap, a
missing or forged token, and the optional minSeconds and maxAge limits each fail with a code.
A list of secrets signs with the first and verifies with all, so rotation keeps open forms valid.
The honeypot() middleware verifies on the route that accepts the form and publishes ctx.honeypot
with the signed render time; HoneypotFields renders the token and a trap kept off-screen, inert,
out of the tab order and ignored by autofill.
Write the success-answer example's onFailure as a method with early returns
Publish the honeypot on ctx.honeypot and verify only submissions
The middleware now publishes its Honeypot as ctx.honeypot (and HoneypotKey) on every request, so
the handler that renders a form issues fields without declaring a context property of its own.
It verifies only on methods other than GET, HEAD and OPTIONS, so one installation covers a route
that renders a form and accepts it.
Breaking: the verification moved from ctx.honeypot to ctx.honeypotOutcome, and its context key
from HoneypotKey to HoneypotOutcomeKey.
Upgrade remix to 3.0.0-rc.4
@sdxc/hostname
Upgrade remix to 3.0.0-rc.4
@sdxc/http
Upgrade remix to 3.0.0-rc.4
@sdxc/i18n
Upgrade remix to 3.0.0-rc.4
@sdxc/icons
Upgrade remix to 3.0.0-rc.4
@sdxc/idempotency
Upgrade remix to 3.0.0-rc.4
@sdxc/jobs
Upgrade remix to 3.0.0-rc.4
@sdxc/json-schema
Upgrade remix to 3.0.0-rc.4
@sdxc/lazy-route
Upgrade remix to 3.0.0-rc.4
@sdxc/logger
Upgrade remix to 3.0.0-rc.4
@sdxc/mail
Upgrade remix to 3.0.0-rc.4
@sdxc/markdown
Upgrade remix to 3.0.0-rc.4
@sdxc/mcp
Upgrade remix to 3.0.0-rc.4
@sdxc/merge-patch
Upgrade remix to 3.0.0-rc.4
@sdxc/microformats
Upgrade remix to 3.0.0-rc.4
@sdxc/micropub
Upgrade remix to 3.0.0-rc.4
@sdxc/openapi
Upgrade remix to 3.0.0-rc.4
@sdxc/pagination
Upgrade remix to 3.0.0-rc.4
@sdxc/passkey
Upgrade remix to 3.0.0-rc.4
@sdxc/password-policy
Add @sdxc/password-policy, password acceptance checks
checkPassword() applies the NIST SP 800-63B checks: length in code points after NFKC (15 by default, 8 when a second factor is required), a bundled list of common passwords (SecLists' copy of the NCSC top 100,000, MIT), the account's identifiers and caller-supplied denied terms, and, when enabled, the Have I Been Pwned range API, which receives only a five-character SHA-1 prefix. checkPasswordHistory() refuses a password matching one of the account's stored hashes. Every refusal is a PasswordPolicyError whose issue names the rule, and a lookup that could not run is reported apart from a refusal, so the caller decides whether to fail open.
Keep the common-password list out of the type declarations
COMMON_PASSWORDS and COMMON_PASSWORDS_NOTICE are declared as string, so the declaration file no longer repeats the whole list as a string-literal type (under 1 kB instead of 502 kB), and the refresh script writes the same annotation.
Publish @sdxc/password-policy to npm
The package is public: it ships in the daily release under the @sdxc scope.
@sdxc/problem
Upgrade remix to 3.0.0-rc.4
@sdxc/rate-limit
Upgrade remix to 3.0.0-rc.4
@sdxc/scim
Upgrade remix to 3.0.0-rc.4
@sdxc/security-headers
Upgrade remix to 3.0.0-rc.4
@sdxc/seo
Pass JSON-LD through unsafeHTML for remix rc.4
Upgrade remix to 3.0.0-rc.4
@sdxc/session-storage-kv
Upgrade remix to 3.0.0-rc.4
@sdxc/spam
Add a spam filter that scores submissions and explains its verdicts
New public package. createSpamFilter adds the weighted signals of every check into a ham, unsure
or spam verdict and keeps each signal as a reason. Local rules run first; remote checks run in
parallel under a timeout only while the score is below the spam threshold; escalation checks run
only in the unsure band. A check that fails or times out adds nothing and is listed in failures.
Ships default rules for timing, link count and syntax, link targets, Unicode obfuscation, contact
bait, shouting, script mismatch and author names, plus author-email, StopForumSpam, DNS link
blocklists, Akismet, a trainable naive Bayes classifier with memory and data-table stores, a
Workers AI escalation check, and a scripted MemoryCheck for tests.
Show refusing bots with a honeypot before scoring
The README now pairs the filter with @sdxc/honeypot: the middleware refuses a filled trap or a
forged token before any check runs, and its signed render time feeds the timing rule.
Read the honeypot's render time from ctx.honeypotOutcome
Upgrade remix to 3.0.0-rc.4
@sdxc/structured-fields
Upgrade remix to 3.0.0-rc.4
@sdxc/trace-context
Upgrade remix to 3.0.0-rc.4
@sdxc/trailing-slash-middleware
Add @sdxc/trailing-slash-middleware, one canonical trailing-slash form per path
trailingSlash() redirects every path to one form: without a trailing slash by default, or with one under { mode: "always" }, where a path whose last segment contains a dot (/robots.txt) is treated as a file and left alone. The root path never redirects, a run of trailing slashes resolves in one hop, and the query string is kept. Redirects are 308, so a non-GET request is repeated with its method and body.
Publish @sdxc/trailing-slash-middleware to npm
The package is public: it ships in the daily release under the @sdxc scope.
Upgrade remix to 3.0.0-rc.4
@sdxc/u
Upgrade remix to 3.0.0-rc.4
@sdxc/ui
Apply the theme's sans font stack at the document root
--ui-font-sans was defined but nothing ever applied it anywhere, so any
page relying on the reset alone (no explicit u.font() call on its root)
rendered in the browser's own default font instead. The reset now sets
it once on html/:host, at zero specificity, so any element's own
explicit font-family (u.font(), a component's mono/serif override)
still wins as before.
Keep an open modal Dialog fixed to the viewport
The panel carried position: relative, which beat the user agent's
dialog:modal { position: fixed }. An element in the top layer whose position is
static or relative resolves to absolute, so with no positioned ancestor the
panel was laid out against the document and drifted by the scroll offset — a
dialog opened on a scrolled page sat above the viewport and scrolled away.
Gates a fixed override on :modal, emitted after the relative rule so the
generated layer order resolves in its favour. The flow-state relative stays,
since a non-modal dialog needs it as the containing block Dialog.Close pins to.
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Carry the running invocation's trace on every request
APIClient.fetch() now writes the W3C Trace Context headers of the running invocation
into every request: traceparent, naming that invocation's span as the parent, and
tracestate when upstream sent vendor entries. Injection runs before before(), so a
subclass can still read, replace or delete the headers, and a traceparent passed in
init is kept. Outside a traced invocation nothing is added, so existing clients send
exactly what they sent before.
A subclass narrows what it forwards with the new propagateTrace field: "traceparent"
for a service that should not receive upstream vendor state, "none" for one that should
see no trace at all. It defaults to "all".
@sdxc/auth
Revoke a linked identity's refresh token at the provider on unlink
Adds RelyingParty.revoke() (RFC 7009 revocation, packages/auth), reusing
the token endpoint's own client-authentication pattern and the
already-established AuthErrorCode.RevocationFailed. unlinkIdentity now
surrenders an OIDC identity's stored refresh token at the provider before
dropping the local row, best-effort: a provider that publishes no
revocation endpoint, refuses the call, or is unreachable never blocks the
local unlink, since the tenant's own directory row is the source of truth
for whether the identity is linked. The outcome is recorded on the
identity.unlinked audit event as providerRevoked.
Export managementProblems, the management API's problem catalog
The management API's RFC 9457 problem types are now declared once, as a
@sdxc/problem catalog exported from @sdxc/auth/management-client, with one
stable title per type. ManagementProblem is decoded through it: a missing
title or type takes its RFC default and status comes from the status line.
ManagementProblemDetail is now an alias of ProblemIssue.
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Read an OAuth-only issuer from its RFC 8414 metadata
Issuer takes discovery: "oauth" to read /.well-known/oauth-authorization-server
instead of the OpenID Connect discovery document. For an issuer carrying a path, the
suffix is inserted before the path as RFC 8414 requires
(https://as.example/tenant reads https://as.example/.well-known/oauth-authorization-server/tenant).
The default stays "openid", so existing issuers read the same document as before, and
Issuer.for keeps one instance per discovery kind.
Write and read WWW-Authenticate Bearer challenges
@sdxc/auth/bearer-challenge writes the challenge a bearer-token API answers a refusal
with and reads it back on the client. stringify takes the RFC 6750 §3 parameters
(realm, scope, error, error_description, error_uri) plus RFC 9728 §5.1's
resource_metadata, quoting and escaping every value. parse reads a header that may list
several schemes (Basic realm="x", Bearer error="invalid_token") and returns the Bearer
challenges as a Result, with unknown parameters kept in extensions and a malformed
header reported as a ChallengeParseError.
Publish RFC 9728 protected resource metadata and discover APIs from it
ResourceServer takes a resource identifier. With it, metadataUrl says where the
API's metadata lives, metadata() builds the document to serve (naming the issuer as the
authorization server), and challenge() writes the WWW-Authenticate value for a
refusal with the resource_metadata pointer and an optional realm. A server given a
resource and no audience accepts tokens bound to that resource; existing
audience-only servers behave as before.
@sdxc/auth/protected-resource is the client side: ProtectedResource.discover(url) and
ProtectedResource.fromChallenge(response, url) fetch the metadata and hold it to the
resource asked about (exact match by default, match: "prefix" to accept a parent
path), issuer() hands out the Issuer for a listed authorization server through RFC 8414
with an OpenID Connect fallback, and requiredScopes(response) reads the scopes a 403
asks for.
In @sdxc/auth/remix/schemes, bearerScheme's rejection now carries the server's
challenge, and bearerFailure(api) is a requireAuth({ onFailure }) handler that answers
a request with no token with a 401 pointing at the metadata.
Discover the management API's token endpoint from its URL
ManagementClient.discover(api, credentials) reads the API's RFC 9728
protected-resource metadata, then the listed authorization server's RFC 8414
metadata, and returns a client whose service client is granted tokens at the
token endpoint found there.
Issuer.Metadata's authorization_endpoint is now optional: RFC 8414 lets a
server answering only client credentials leave it out, and such a document
now passes discovery. authorizationEndpoint() fails with
endpoint_unsupported for a server that publishes none.
Send the management client's updates as JSON Merge Patch
updateTenantSubject and updateTenantClient send
application/merge-patch+json. updateTenantClient takes any subset of the
client record, so a caller names only what changes, and now sends PATCH,
the method the management API answers on, where it used to send PUT.
UpdateTenantSubjectInput's attributes are typed as attribute values, where
null removes the attribute.
Send an Idempotency-Key from the management client's create calls
createTenantSubject, registerTenantClient, rotateTenantClientSecret and
inviteTenantMember take an optional { idempotencyKey }, sent as the
Idempotency-Key header's quoted sf-string, so a caller retrying an
operation with the same key gets the first attempt's response instead of a
second resource. managementProblems gains the four Idempotency-Key refusals
(missing, invalid, in use, reused).
Describe the management problem catalog's extensions as JSON Schema
validationFailed's extension schema implements Standard JSON Schema beside
validating, so an OpenAPI document built from managementProblems describes
the errors member every validation failure carries instead of failing to
convert the entry.
Call the management API's real routes for secret rotation, secret revocation and session revocation
ManagementClient called several routes the management API never serves, so
those methods always failed against a real server. Each now calls the route
the server maps:
rotateTenantClientSecret: POST /clients/:clientId/rotate-secret (was POST /clients/:clientId/secrets/rotate)
revokeTenantClientSecret: POST /clients/:clientId/secrets/:secretId/revoke (was DELETE /clients/:clientId/secrets/:secretId)
revokeTenantSubjectSession: DELETE /subjects/:subjectId/sessions/:sessionId?reason=… (was POST …/sessions/:sessionId/revoke with a JSON body)
revokeTenantGrant: POST /subjects/:subjectId/grants/:clientId/revoke (was DELETE /subjects/:subjectId/grants/:clientId)
verifyTenantSubjectIdentifier: POST /subjects/identifiers/verify (was POST /identifiers/verify)
revokeAllTenantSubjectSessions: input.reason is now required, since the server rejects a body without one
A route-table test now asserts every tenant-scoped method's HTTP method and
path against the server's route patterns.
Drop the unused @sdxc/result from robots and declare idempotency and merge-patch in auth
@sdxc/robots never imported @sdxc/result, so installing it pulled in a package it does not use. @sdxc/auth declares @sdxc/idempotency and @sdxc/merge-patch so its management client can reuse their Idempotency-Key and merge-patch definitions.
Take the Idempotency-Key problems and header format from @sdxc/idempotency
The management client and its problem catalog kept private copies of the four Idempotency-Key refusals, the header serializer and the merge-patch media type. They now come from @sdxc/idempotency and @sdxc/merge-patch, so the slugs, titles and header encoding match every other API using those packages. The public API is unchanged; a key the header cannot carry still fails with the same ManagementError, now with the serializer's error as its cause. inviteTenantMember's documentation now points to the server's separate email invitation endpoint.
@sdxc/billing
Republished because @sdxc/api-client changed.
@sdxc/crypto
Import/export foundation — hash recognition, run tracking, pre-hashed import (ADR-037 pass 1)
password.recognizes() exposes the platform's own hash-format test as a
standalone predicate, separate from verify() (needs a plaintext) and
needsRehash() (conflates foreign with merely stale) — the exact "would this
platform accept this stored value" check a bulk import needs, built on the
same parser verify/needsRehash already use internally.
tenant_import_runs is a new control-plane table tracking one bulk-import
run's progress: which source file it reads, which report it writes failures
to, its running counts, and a cursor position so a job that paces itself
across many separate invocations (rather than one long-running call) always
knows where the previous tick left off. TenantImportRun follows the same
active-record model shape as this session's own AttackSignalAlert.
importPasswordHash writes an already-hashed password directly to a subject's
row with no plaintext ever seen on this path, skipping every plaintext-only
policy check (length, common-password, reuse) that has nothing to check an
imported hash against, while still refusing anything password.recognizes()
doesn't accept. An imported row participates in the existing upgrade-on-login
mechanism automatically, since signInWithPassword already calls needsRehash
on whatever hash it finds with no regard for how the row was written.
Foundation only — no job, RPC method, R2 wiring, or storage-ceiling logic
yet; those build on this in later passes.
@sdxc/dates
Publish the zone math as @sdxc/dates/zone
The wall-clock conversions every calendar operation is built on are now importable from @sdxc/dates/zone: zonedParts, instantFromParts, offsetMsAt, utcFromParts, the calendar-day helpers and DAY_MS. instantFromParts resolves a repeated hour to its earlier instant and reads a skipped one with the offset before the gap, which is the rule RFC 5545 sets for local times, so a calendar format reader can use it directly.
@sdxc/distill
Refuse everything when robots.txt is unreachable
fetchRobots now answers Distill.Robots, a status beside the source to pass as
options.robots, and reads the response the way RFC 9309 does: a 2xx is found,
any 4xx is missing and permits everything, and a 5xx, a network failure or a
chain that cannot be followed is unreachable and yields a document disallowing
every path. The status lets a caller cache an unreachable answer briefly
instead of refusing the origin for a full cache period.
Export the bounded retrieval as @sdxc/distill/retrieve
The fetch that distill runs every page through is now importable on its own: addressable and isAddressableHost refuse a non-HTTP(S) URL or a private host before any request, follow walks a redirect chain re-checking every hop and answers the last response whatever its status, retrieve answers only a 2xx, readWithin reads a body within a byte cap, and release cancels a body left unread. Any client fetching a URL a stranger chose, such as a Webmention receiver or sender, gets the same bounds distill applies.
Declare the new standards packages where the apps adopt them
Apps and packages now list the standards packages (SCIM, merge patch, idempotency, OpenAPI, JSON Schema, DoH, security headers, trace context, well-known, WebSub, robots, microformats, Webmention, structured fields, iCalendar) they are about to adopt. @sdxc/scim no longer depends on @sdxc/problem, and @sdxc/icalendar no longer depends on remix; neither imported them.
Breaking: Take the robots.txt decision from @sdxc/robots
options.robots now takes the RobotsFetch.Outcome that fetchRobots from
@sdxc/robots/fetch answers, and distill evaluates it with isAllowedBy. The
package's own fetchRobots, isAllowed, productToken, robotsUrl and the
Distill.Robots type are removed; import them from @sdxc/robots instead.
Behavior changes that come with the RFC 9309 parser:
an origin answering its robots.txt with 429 now refuses every path until the
outcome expires, where it used to permit everything like any other 4xx
mayCache reads X-Robots-Tag per agent, so a noarchive scoped to another
crawler no longer stops the article being kept
rules match after percent-encoding normalization, and /robots.txt is always allowed
@sdxc/doh
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Resolve DNS records over DoH with typed answers and failures
New package. resolve(name, type, options) queries a DNS-over-HTTPS JSON
resolver (Cloudflare by default, Google, or a custom { url, format })
with the global fetch and returns a Result. Records are typed per query
type (A, AAAA, CNAME, TXT with joined text, MX, NS, CAA, SOA, SRV, and
raw data for any other type); the answer also carries the CNAME chain,
the smallest TTL, the AD and TC flags, and records whose data did not
parse. NXDOMAIN (NameNotFoundError, with the SOA negative TTL), SERVFAIL
(ServerFailureError), other response codes (ResponseCodeError) and
network, timeout, non-2xx or malformed responses (TransportError) are
distinct failure classes, while a name with no records of the type is a
success with none.
parseRecordData reads presentation-format RDATA, including RFC 3597
generic data, for callers holding zone-file records. verifyTxtRecord
matches a verification token even when split into several
character-strings or escaped, and checkCname follows an alias chain to a
target; both read NXDOMAIN as not verified.
Make the package public
@sdxc/doh now publishes to npm. It resolves names through a DNS over HTTPS JSON resolver (Cloudflare by default, Google, or your own), returns records typed per query type, tells NXDOMAIN, SERVFAIL and transport failures apart by class, and checks TXT and CNAME records for domain verification.
@sdxc/feed
Pair a hub with its topic through Feed.selectSubscription
Feed.selectSubscription(header, document) returns { hub, topic, source }: the hub chosen exactly as Feed.selectHub chooses it, and the rel=self declared in the same place as that hub, falling back to the document's when the Link header named a hub alone. topic is null when neither declares one. A subscriber no longer pairs a header-advertised hub with a topic only the document declared, which could subscribe under the wrong topic. Feed.selectHub is unchanged.
@sdxc/flags
Republished because @sdxc/jobs changed.
@sdxc/flags-engine
Republished because @sdxc/flags changed.
@sdxc/highlight
Republished because @sdxc/markdown changed.
@sdxc/hostname
Republished because @sdxc/api-client changed.
@sdxc/http
Republished because @sdxc/crypto changed.
@sdxc/i18n
Breaking: Translate MessageFormat 2 messages without i18next
Messages are Unicode MessageFormat 2. createI18n builds a synchronous per-language translator; the middleware publishes context.intl in place of context.i18next and takes resources directly; IntlProvider, setIntl and Trans take an I18n, and Trans renders MF2 markup ({#name}…{/name}) into components. TFunction remains as a deprecated alias of Translate.
Drop the remix-i18next lineage from the README
Breaking: Make createTranslator synchronous and remove the TFunction alias
A Translator now returns its Translation directly instead of a Promise; drop the await at call sites. The deprecated TFunction type is gone; type a t parameter with Translate, typed by a bundle (Translate<typeof en>) or untyped.
Stringify a part's unknown value without a lint suppression
bun typecheck reports the type-aware rule even with its disable comment in
place; typing the value as unknown states the intent and clears the warning.
@sdxc/icalendar
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Read and write iCalendar with recurrence expansion and zones
@sdxc/icalendar parses and writes RFC 5545 calendars: typed VEVENT, VALARM and VTIMEZONE over a generic component and property layer, so VTODO, VJOURNAL, VFREEBUSY and X- properties survive a round trip verbatim. parse and parseAll fail on structural errors with their line and report missing UID/DTSTAMP or unreadable values as warnings; stringify folds at 75 octets without splitting a character, escapes TEXT, caret-encodes parameters (RFC 6868) and writes the RFC 7986 feed fields with their X-WR- aliases. toInstant, utc and calendarResponse (a text/calendar response, optionally a download) complete the entry point.
@sdxc/icalendar/rrule reads and writes RRULE values and expands an event's recurrence set (DTSTART, RRULE, RDATE minus EXDATE) into the occurrences overlapping a window, always bounded by that window and a limit; every example in RFC 5545 §3.8.5.3 is part of the test suite. @sdxc/icalendar/timezone builds a VTIMEZONE for an IANA zone from Intl, one observance per offset change in a span, and TZIDs resolve through a calendar's own VTIMEZONE rules before Intl.
Declare the new standards packages where the apps adopt them
Apps and packages now list the standards packages (SCIM, merge patch, idempotency, OpenAPI, JSON Schema, DoH, security headers, trace context, well-known, WebSub, robots, microformats, Webmention, structured fields, iCalendar) they are about to adopt. @sdxc/scim no longer depends on @sdxc/problem, and @sdxc/icalendar no longer depends on remix; neither imported them.
Build and read iTIP invitations, cancellations and replies
The new @sdxc/icalendar/itip subpath implements RFC 5546 scheduling for events: request invites attendees (defaulting unanswered ones to PARTSTAT=NEEDS-ACTION with RSVP), cancel cancels the whole event or uninvites some attendees with SEQUENCE bumped by one, reply answers for one attendee echoing the request's UID, SEQUENCE and RECURRENCE-ID, and readReply reads each attendee's PARTSTAT from a REPLY. nextSequence applies the §2.1.4 rule for when a revision bumps SEQUENCE, and calendarPart returns the { method, content, filename? } shape a mailer sends as a text/calendar; method=… part.
The reader no longer warns about a VEVENT without DTSTART in a REPLY, CANCEL, REFRESH or DECLINECOUNTER, which RFC 5546 lets omit it.
Make the package public
@sdxc/icalendar now publishes to npm. It reads and writes RFC 5545 calendars with typed events, alarms and time zones over a lossless generic component layer, parses, writes and expands recurrence rules within a bounded window, builds VTIMEZONEs from Intl, serves text/calendar responses for feeds and downloads, and builds and reads RFC 5546 iTIP requests, cancellations and replies.
@sdxc/idempotency
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Replay Idempotency-Key requests and refuse conflicting reuse
@sdxc/idempotency implements the IETF Idempotency-Key draft on the server. The
idempotency() middleware (./middleware) runs the first POST or PATCH carrying a key once,
stores its outcome, and answers every retry with that stored response. It refuses a missing key
(400, when required), a malformed one (400), a retry while the first request still runs (409
with Retry-After), and a key reused with a different payload (422), all as problem details
built from the app's own catalog through IDEMPOTENCY_PROBLEM_ENTRIES.
Records live behind the IdempotencyStore contract. ./data-table claims a key with a single
conditional upsert, so exactly one of two concurrent requests wins on D1 and on Durable Object
SQLite without a transaction; it ships the table definition, IDEMPOTENCY_KEYS_SCHEMA_SQL for
the host's migration, and purgeExpired for a scheduled sweep. ./memory is an in-process
store for tests. ./client mints keys (generateIdempotencyKey, deriveIdempotencyKey) and
sets the header on a RequestInit or Request without replacing a key the caller already set.
Make the package public
@sdxc/idempotency now publishes to npm. Its router middleware runs a POST or PATCH once per Idempotency-Key, replays the stored response to every retry, and refuses a key reused with a different payload or still in flight. It ships an atomic remix/data-table store, an in-memory store, and client helpers that mint, derive and attach keys.
@sdxc/jobs
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Carry the enqueuing invocation's trace to the job that runs it
Every message now carries the W3C Trace Context of the invocation that enqueued it:
enqueue(), enqueueMany() and messageBody() add traceparent (and tracestate when
upstream sent vendor entries) to the envelope whenever a trace is bound. The job that runs
the message continues that trace with a span of its own, exposed as ctx.trace, bound for
the whole run, and stamped on the job's log as trace_id, span_id, parent_span_id and
trace_flags, so a request and the jobs it caused share one trace_id.
A cron tick and a queue batch each start a root trace and stamp it on their own log; every
message one tick enqueues carries the tick's trace. An envelope without a trace, or with
an invalid one, runs under a new root, so messages written by an earlier deploy dispatch
unchanged, and a consumer from an earlier deploy ignores the new members.
JobContextInit gains an optional trace, defaulting to the current trace or a new root.
Tests that compare a tick's enqueued envelopes by exact equality now see a traceparent
member beside job.
@sdxc/jsdoc
Add @sdxc/jsdoc, JSDoc read into a JSON documentation model
extract(source, options) reads one file's text into a DocModule: the header
comment, every exported symbol with its signature and members, and the exports
it forwards to other modules. It is a pure function of the string it is given —
no file system, no imports followed, no type checker — so the caller chooses
which files a documentation site covers and the same input always produces the
same output.
Types are reported as the annotations their authors wrote, and a JavaScript
file's @param {T} and @returns {T} tags fill the same fields. A barrel's
export … from lines arrive as reExports for the caller to resolve.
parseComment, findTag, findTags and inlineLinks are exported on their
own for anything that needs one comment rather than a whole module.
Keep the value half of a merged symbol and its static members
A namespace and the function it names merge into one symbol, and the merge kept
the namespace's kind and comment. The function's description and examples were
dropped, which is the documentation a caller reads. The merged node now takes the
value's kind and comment, and the namespace contributes the types declared inside
it.
Static property assignments were not captured at all, being expression statements
rather than declarations. They now attach as children of the exported symbol they
extend, so the parts a component composes from are documented alongside it. An
assignment whose owner is not exported is still ignored.
Match {@link} tags wrapped across lines
Make the package public
Rewrite the README as an npm landing page, drop private: true, and
mark it public in the root package table.
@sdxc/json-schema
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Build data-schema schemas that describe themselves as JSON Schema 2020-12
@sdxc/json-schema offers the remix/data-schema combinators under the same names and
signatures. Each validates by delegating to data-schema, so behavior is identical, and also
carries the JSON Schema 2020-12 keywords that describe what it accepts. Every schema implements
Standard JSON Schema (~standard.jsonSchema).
toJSONSchema(schema, { direction, refs }) converts any Standard JSON Schema into a
standalone document, collecting schemas named with meta({ id }) under $defs; a nested
schema that cannot describe itself fails with the path where it sits
withJSONSchema(schema, json) pairs a schema built with data-schema directly with a
hand-written JSON Schema
lazy(get, { id }) documents recursion through $ref, variant emits oneOf with an
OpenAPI discriminator, and transform(fn, output) describes both sides
./checks adds keyword-carrying minLength, maxLength, min, max, email, url,
pattern, minItems and maxItems; ./coerce documents the text a query string may carry
Nest any data-schema schema that implements Standard JSON Schema
Combinators now accept a DescribedSchema as a nested schema: any remix/data-schema
schema that also implements Standard JSON Schema, not only schemas built by this package. A
schema that carries its own ~standard.jsonSchema converter, such as a shared extension
schema from another package, composes into s.object({ ... }) and is described through its
converter.
Make the package public
@sdxc/json-schema now publishes to npm. Its schema builders take the same arguments as remix/data-schema and validate identically, and every schema also describes itself as JSON Schema 2020-12 through Standard JSON Schema, with checks and coercions that document their keywords. @sdxc/openapi, which builds its documents from these schemas, depends on it.
@sdxc/jwt
Type JWK.toJSON entries with the kty every published key carries
JWK.toJSON now returns JWK.PublishedKeySet, whose entries type kty as a string
rather than optional, so its output is accepted wherever a JWK Set with required
kty is expected.
Describe JWK.PublishedKey by the member it guarantees
@sdxc/mail
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Write one-click unsubscribe and List-Id headers from message options
Messages and Email classes accept unsubscribe ({ url, mailto?, oneClick? }) and list ({ id, name? }). The mailer writes List-Unsubscribe, List-Unsubscribe-Post: List-Unsubscribe=One-Click and List-Id from them, and fails the send with a MailError when the URL is not https:, the mailto names no address, the list id is not an RFC 2919 list-id, or the same header is also set by hand. NormalizedMessage carries both options (or null). Messages that set neither option are unchanged.
The new @sdxc/mail/unsubscribe subpath serves the receiving endpoint: signUnsubscribeToken and verifyUnsubscribeToken sign opaque subject and list ids with HMAC-SHA-256 into one URL path segment, with no expiry unless expiresAt is given and a purpose prefix for key separation, and isOneClickUnsubscribe tells the mailbox provider's RFC 8058 POST from a person's form submission.
Send a text/calendar part for calendar invitations
A message or email now takes calendar: { method, content, filename? }. The MIME builder writes it as the last, most preferred, multipart/alternative part with Content-Type: text/calendar; method=<method>; charset=UTF-8, which is what makes Gmail, Outlook and Apple Mail show an iTIP invitation with accept and decline buttons. Setting filename also attaches the calendar as application/ics inside multipart/mixed.
The Cloudflare transport, whose binding has no alternative-part field, sends the calendar as one attachment typed text/calendar; method=… (named by filename or invite.ics). A method that is not a token, or a filename with quotes, slashes or non-ASCII characters, fails the send with a MailError.
@sdxc/markdown
Stop a raw block gaining a blank line on every write
A raw HTML block kept the newline its source ended on, and the block separator adds
its own, so writing a document back put a blank line after every raw block that the
document before it did not have. Reading and writing a file therefore never settled:
each pass grew the gap, and a corpus checked against the repository's own formatter
failed on any document opening a custom block tag.
The newline is dropped where the block is written, since the separator is what
supplies whatever follows it.
@sdxc/merge-patch
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Apply, diff and read RFC 7396 JSON merge patches
New package. apply(target, patch) merges a patch per RFC 7396 without
mutating either input; diff(source, target) returns the smallest patch
between two values, and fails with UnrepresentableChangeError (carrying
a JSON Pointer) when the target holds a literal null a merge patch cannot
write. parse/stringify read and write patch documents, MEDIA_TYPE names
application/merge-patch+json, and MergePatchOf<T> types the patches valid
for a resource. applyValidated(target, patch, schema) applies a patch and
validates the result with a Standard Schema, so one schema serves create
and update.
The ./request entry point checks a Request's media type before reading
its body (isMergePatch, readMergePatch with alsoAccept for endpoints that
keep taking application/json), and mergePatchProblem answers a refusal
with a 415 carrying Accept-Patch or a 400. Every RFC 7396 Appendix A
example runs as a test.
Make the package public
@sdxc/merge-patch now publishes to npm. It applies and diffs RFC 7396 JSON Merge Patch documents, validates a patched resource against a Standard Schema, types the patches a resource accepts with MergePatchOf, and reads application/merge-patch+json requests, answering refusals as problem documents.
@sdxc/messageformat
Add @sdxc/messageformat, a Unicode MessageFormat 2 ponyfill of Intl.MessageFormat
Parses and formats MF2 messages through the API the TC39 Intl.MessageFormat proposal defines (format, formatToParts, custom functions), with :string, :number and :integer built in, verified against the MessageFormat working group's conformance suite.
@sdxc/microformats
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Parse pages into canonical microformats2 JSON and read it back
parse(source, baseUrl) and fromDocument(tree, baseUrl) run the microformats2
parsing algorithm over the tree @sdxc/html builds: h-* roots, p-/u-/dt-/e-
properties, nested items with their value, children, implied name/photo/url,
the value-class pattern for dates, rels and rel-urls, and URL resolution
honoring <base href>. Classic roots (hentry, hfeed, vcard, hreview, hnews and
the rest of the specification's table) are read when no mf2 root is present,
unless backcompat: false.
stringify and parseJSON write and read the canonical JSON with its wire name
rel-urls (relUrls in code). ITEM_SCHEMA validates one mf2 item, the shape of a
Micropub JSON create body, filling the value of { html } content and of a
nested item written without one. findItem and values look up items and read
property values as strings.
The official microformats test suite (CC0) is vendored under
docs/vendor/microformats-tests and runs fixture by fixture; each departure is
named with its reason.
Read IndieWeb vocabularies and write microformats from remix/ui
@sdxc/microformats/vocabulary reads an item as a typed Entry, Card or Feed
(readEntry, readCard, readFeed), or through any Standard Schema with
single-valued properties unwrapped (readItem). A response property holding a
nested h-cite or a bare URL both become a Cite, and dt-* values carry the
instant they name. It also runs the IndieWeb living algorithms: authorOf
(entry, then feed, then rel=author on a permalink, ending at { url } when
another page must be fetched), representativeCard, postType (Post Type
Discovery with bookmark) and responseTo, which finds the entry replying to,
liking, reposting, bookmarking or mentioning a URL.
@sdxc/microformats/ui gives remix/ui templates typed class names: mf() is a
mixin that appends microformats tokens beside css() in mix and reaches through
components forwarding mix, classes() returns the same tokens as a string, and
MicroTime renders a <time> with a dt-* class and an ISO datetime. A misspelled
or mistyped class name (p-in-reply-to, a classic hentry) fails to compile.
Make the package public
@sdxc/microformats now publishes to npm. It parses HTML (classic microformats included) into canonical microformats2 JSON, reads and writes that JSON, validates a single item, gives typed views of h-entry, h-card, h-feed and h-cite with the IndieWeb authorship, representative h-card, Post Type Discovery and response algorithms, and provides typed class-name mixins for remix/ui templates.
Open the entry module with its header comment
Two type imports sat above the module's JSDoc header, which every module in the repo opens with.
@sdxc/micropub
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Read Micropub requests into typed operations and answer them
parseOperation decodes a form-encoded, multipart or JSON POST into a typed create,
update (replace, add, and delete by property or by value), delete or undelete, and
returns the access token from the Authorization header or the form's access_token.
Forms are reshaped into the JSON shape first and every create's values pass
ITEM_SCHEMA from @sdxc/microformats, so both encodings yield the same operation;
mp-slug, mp-syndicate-to and post-status arrive as typed commands. parseQuery reads
q=config, q=source, q=syndicate-to and q=category, passing any other query through.
requiredScopes names the scopes that authorize an operation, and created, accepted,
updated, deleted, error, config, syndicateTo, source and categories build the
responses the specification defines. @sdxc/micropub/media reads a media endpoint
upload's file part, checked for size and type, and answers it with uploaded.
Every example of the W3C Recommendation and every micropub.rocks server test is
covered by the test suite.
Make the package public
@sdxc/micropub now publishes to npm. It decodes Micropub POSTs (form-encoded, multipart and JSON) into typed create, update, delete and undelete operations and GETs into typed queries, returns the access token from wherever it was sent, names the scopes each operation needs, builds every response the specification defines, and reads and answers media endpoint uploads.
@sdxc/openapi
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Build, serve and check OpenAPI 3.1 documents from typed operations
@sdxc/openapi describes an API from the declarations its handlers already run.
defineOperation(name, route, spec) binds a route-map route to its params, query, body,
responses, problem names and security; operation.parse(request, params) parses all three
inputs into typed values, failing with an OperationInputError that names the part and
carries the schema's issues. A params schema must name exactly the pattern's variables,
at compile time and at build time
createDocument(options).add(...operations).build() assembles the document: :param
becomes {param}, named schemas hoist into components.schemas, a problem catalog becomes
a response per entry, and problems sharing a status merge with oneOf. scopes() lists
every required scope per scheme
parse and stringify read and write documents as JSON or YAML
./security builds bearer, API key, OAuth 2.0 and OpenID Connect schemes
./router serves the document as JSON or YAML with a strong ETag and 304 revalidation,
building it on the first request
./testing checks responses against the document: checkResponse reports undocumented
operations, statuses, media types and problem types, missing headers and body mismatches,
and createConformanceRecorder collects them across a router's exchanges and lists the
declared statuses no test produced
Make the package public
@sdxc/openapi now publishes to npm. It binds a route to the schemas of its params, query and body, its responses, problem types and security, parses requests through that declaration, assembles an OpenAPI 3.1 document from the same operations, serves it as JSON or YAML with ETag revalidation, and checks responses against it in tests.
@sdxc/pagination
Republished because @sdxc/crypto changed.
@sdxc/passkey
Republished because @sdxc/crypto changed.
@sdxc/problem
Add @sdxc/problem, RFC 9457 problem details and catalogs
Build a problem+json Response from a status alone or a full document,
and read one back into a Result with the RFC's defaults, the status
line winning over the body, and extensions validated by a Standard
Schema. defineProblems declares an API's problem types once and gives
a typed builder per type plus a parser that names the entry a response
belongs to. validationProblem and issuesFrom turn schema issues into a
422 with JSON Pointer errors.
List each catalog entry's extensions schema and describe ISSUES_SCHEMA as JSON Schema
entries() now includes extensions, the schema an entry was declared with, on the
entries that have one, so a tool rendering an error reference or an OpenAPI document can
describe each problem type's extension members. Entries without a schema are listed as before.
ISSUES_SCHEMA also implements Standard JSON Schema (~standard.jsonSchema), describing
the errors extension's pointer, code and message members. It validates exactly as
before and stays a remix/data-schema schema.
@sdxc/rate-limit
Declare the new standards packages where the apps adopt them
Apps and packages now list the standards packages (SCIM, merge patch, idempotency, OpenAPI, JSON Schema, DoH, security headers, trace context, well-known, WebSub, robots, microformats, Webmention, structured fields, iCalendar) they are about to adopt. @sdxc/scim no longer depends on @sdxc/problem, and @sdxc/icalendar no longer depends on remix; neither imported them.
Write the RateLimit fields as RFC 9651 structured fields
rateLimitHeaders now serializes RateLimit (a Dictionary) and RateLimit-Policy (an Item with a w parameter) through @sdxc/structured-fields, so quoting and number rules come from one checked implementation. Output for every existing policy is byte-for-byte the same; the fields still follow draft-ietf-httpapi-ratelimit-headers-07.
A field holding an Integer beyond 15 digits, which RFC 9651 cannot represent, is now left out instead of being written as an invalid value.
@sdxc/robots
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Parse, write, evaluate and fetch robots.txt per RFC 9309, and read robots directives
@sdxc/robots parses any text as robots.txt without failing, keeping groups, sitemaps, Crawl-delay, typed Content-Signal records and any other record, and stringify writes a document that parses back to itself. isAllowed picks the agent's groups by product token (merging every group that names it, falling back to *), normalizes percent-encoding in both pattern and path, and applies the longest matching rule with * and $ wildcards, Allow winning ties and /robots.txt always allowed. crawlDelay, productToken and robotsUrl complete the root export.
@sdxc/robots/fetch retrieves an origin's robots.txt with RFC 9309's status rules: a 2xx is parsed, a 4xx other than 429 allows everything, and a 5xx, 429, network failure, timeout or a chain past five redirects disallows everything. Each outcome is plain data carrying the lifetime a cache should give it (24 hours, or 1 hour for an unreachable origin), and isAllowedBy evaluates it.
@sdxc/robots/directives reads and writes X-Robots-Tag and robots meta values: bot-scoped sets, max-snippet, max-image-preview, max-video-preview and unavailable_after, with unknown directives kept. directivesFor merges a response's headers into the most restrictive set for one bot.
Make the package public
@sdxc/robots now publishes to npm. It parses, writes and evaluates robots.txt per RFC 9309, fetches an origin's file and turns every HTTP outcome into the decision the RFC assigns it, and reads and writes the per-page robots meta tag and X-Robots-Tag directives. The published build leaves out the conformance fixtures ported from Google's robots.txt test suite.
Drop the unused @sdxc/result from robots and declare idempotency and merge-patch in auth
@sdxc/robots never imported @sdxc/result, so installing it pulled in a package it does not use. @sdxc/auth declares @sdxc/idempotency and @sdxc/merge-patch so its management client can reuse their Idempotency-Key and merge-patch definitions.
@sdxc/saml
Breaking: Stop publishing the test fixtures
@sdxc/saml/testing is removed; build keys and assertions in your own tests.
@sdxc/sample
Split strings into code points with Array.from
Same code-point split as the spread it replaces, without the
no-misused-spread suppression that bun typecheck ignores.
@sdxc/scim
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Parse, filter, patch and describe SCIM 2.0 resources
@sdxc/scim holds the standard half of a SCIM 2.0 service provider (RFC 7643
and RFC 7644), as plain functions over plain data and Response objects:
"@sdxc/scim": User, Group and Enterprise User types; parseUser with typed,
schema-validated extensions and parseGroup (attribute names matched
case-insensitively, null read as unassigned); userResource/groupResource;
weak entity-tag versions and If-Match/If-None-Match checks; list queries
and search bodies with the RFC's clamping; ListResponse, the SCIM error
document, application/scim+json responses; attribute projection.
"@sdxc/scim/filter": the complete RFC 7644 filter grammar parsed to an AST,
written back to text, and compiled to a predicate that honors caseExact,
date-time instants and multi-valued matching, restricted by an allow list.
"@sdxc/scim/data-table": a filter translated to a remix/data-table
predicate, failing with UntranslatableFilterError when only in-memory
evaluation is faithful.
"@sdxc/scim/patch": PatchOp parsing and all-or-nothing application,
including the shapes Okta and Entra ID send.
"@sdxc/scim/discovery": RFC 7643 attribute definitions and the
ServiceProviderConfig, ResourceTypes and Schemas documents.
Declare the new standards packages where the apps adopt them
Apps and packages now list the standards packages (SCIM, merge patch, idempotency, OpenAPI, JSON Schema, DoH, security headers, trace context, well-known, WebSub, robots, microformats, Webmention, structured fields, iCalendar) they are about to adopt. @sdxc/scim no longer depends on @sdxc/problem, and @sdxc/icalendar no longer depends on remix; neither imported them.
Make the package public
@sdxc/scim now publishes to npm. It reads and writes SCIM 2.0 User, Group and Enterprise User resources, parses and evaluates the complete filter grammar (and translates filters into remix/data-table predicates), applies PATCH operations, reads list queries, projects attributes, and builds the SCIM error, list and discovery documents.
@sdxc/security-headers
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Apply typed CSP, Permissions-Policy and security header policies with a per-request nonce
A policy set is one typed object covering Content-Security-Policy (enforced and
Report-Only), Strict-Transport-Security, Referrer-Policy, Permissions-Policy,
COOP, COEP (and its Report-Only variant), CORP, nosniff and Reporting-Endpoints.
entries and apply turn it into headers, deriving X-Frame-Options from
frameAncestors and writing HSTS only on https: requests; a header the response
set itself wins.
./csp writes CSP Level 3 directives with keywords, nonces and hashes quoted,
substitutes a "nonce" placeholder (writing 'none' for a list left empty),
parses a header holding several policies, and merges an override where null
removes a directive. ./permissions-policy writes and reads the header through
the RFC 9651 serializer. ./reports reads CSP violation reports in both the
Reporting API and the legacy application/csp-report formats.
./middleware exposes securityHeaders(policy), which publishes
ctx.securityHeaders with a nonce generated on first read (a response that
never reads it advertises none), and securityHeadersOverride(patch) for a
route's own exceptions. Rendering <ImportMap nonce={ctx.securityHeaders.nonce}>
carries the nonce to the import maps the remix/ui client runtime appends.
Lock @sdxc/idempotency's dependencies and drop unused ones
Records the dependencies @sdxc/idempotency declared, and removes remix from
@sdxc/websub and @sdxc/http from @sdxc/security-headers, which neither imports.
Make the package public
@sdxc/security-headers now publishes to npm. It models Content-Security-Policy, Permissions-Policy, Strict-Transport-Security, Referrer-Policy, the cross-origin policies and Reporting-Endpoints as one typed policy, writes them with a per-response CSP nonce from router middleware, parses CSP and Permissions-Policy back, and reads CSP violation reports in both formats.
@sdxc/seo
Declare the new standards packages where the apps adopt them
Apps and packages now list the standards packages (SCIM, merge patch, idempotency, OpenAPI, JSON Schema, DoH, security headers, trace context, well-known, WebSub, robots, microformats, Webmention, structured fields, iCalendar) they are about to adopt. @sdxc/scim no longer depends on @sdxc/problem, and @sdxc/icalendar no longer depends on remix; neither imported them.
Write robots meta content through @sdxc/robots
robotsDirectives (behind seo.robotsTag) now delegates to @sdxc/robots' stringifyDirectives with explicit defaults, so the robots meta tag and X-Robots-Tag share one grammar. The emitted content is byte-for-byte the same: "index, follow", "noindex, follow", "index, nofollow" or "noindex, nofollow".
@sdxc/server-timing
Escape quotes and backslashes in a timing description
A description containing " or \ ended the quoted desc parameter early and made the
whole Server-Timing header unparseable. Both characters are now backslash-escaped, so any
description reaches the browser intact.
@sdxc/spec
Republished because @sdxc/sample changed.
@sdxc/structured-fields
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Parse and serialize RFC 9651 structured field values
parse(text, type) reads a List, Dictionary or Item into a plain value model and
returns a Result that never carries a partial value, as RFC 9651 requires.
stringify(value, type) writes the canonical text, enforcing the Integer and Decimal
ranges, the String and Token character sets, the key grammar and whole-second Dates,
and reports the path to any value with no representation. Token, Decimal and
DisplayString keep the types a JavaScript primitive cannot tell apart through a round
trip.
getField and setField read and write a field on Headers: an absent field reads
as null, and an empty List or Dictionary deletes the field. Passing a synchronous
Standard Schema as the last argument to parse or getField returns the schema's
typed output or a ValidationError.
The httpwg structured-field-tests suite is vendored and runs in full.
Declare a field's shape with sf.* data-schema helpers
@sdxc/structured-fields/schema exports sf, a catalog of remix/data-schema
schemas over the Structured Field model: integer, decimal, token (optionally
narrowed to a list of literals), displayString, bytes and date for bare items,
and item, value and innerList for members. They unwrap Token, Decimal and
DisplayString to primitives, compose with s.object, s.array, s.union and checks,
and report issues at their path inside the field, so
getField(headers, "Priority", "dictionary", schema) returns typed values.
Document the API and record how the package was built
The README covers parse, stringify, getField, setField, the bare item
wrappers, the error classes and the sf.* schema helpers, with patterns for
Cache-Status, Idempotency-Key and writing only the members a caller has.
ADR-079 is accepted, and its notes record where the build differs from the
proposal: ValidationError is re-exported from remix/data-schema, base64 uses the
platform's atob/btoa, and schema arguments are typed SF.SyncSchema<Output> so
remix/data-schema's own schemas are accepted and an async schema is a type error.
Make the package public
@sdxc/structured-fields now publishes to npm. It parses and serializes RFC 9651 structured HTTP field values (Lists, Dictionaries and Items), reads and writes them on Headers, and validates them into typed values through remix/data-schema builders. @sdxc/idempotency and @sdxc/security-headers, which read and write their fields through it, depend on it.
@sdxc/trace-context
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Parse, bind and propagate W3C Trace Context
A new package for W3C Trace Context. ./traceparent and ./tracestate parse and write
both headers to the specification: future versions read by the version-00 rules, version
ff and all-zero ids refused with a code naming which, the Level 2 random-trace-id flag,
the tracestate key and value grammar, the 32-entry cap, duplicate keys, the move-left rule
for TraceState.set(), and truncation that drops entries over 128 characters first.
The root export binds a TraceContext to the running invocation: startTrace(),
continueTrace(), extract() from incoming headers (never failing, restarting on an
invalid parent), inject() into outgoing ones, withTrace() for forwarding a request to a
Durable Object, toTraceParent() for RPC arguments, currentTrace() / runWithTrace(),
and traceFields(), the OpenTelemetry-named fields a wide event carries.
./middleware exports trace(), which continues or starts the request's trace, publishes
it as ctx.trace, binds it for currentTrace() and stamps the request's log. Mount it
directly after log(logger).
Make the package public
@sdxc/trace-context now publishes to npm. It parses and writes the W3C traceparent and tracestate headers, binds one trace to each invocation, and provides a router middleware that continues the caller's trace and stamps its ids on the request's log. @sdxc/jobs and @sdxc/api-client, which propagate the trace, depend on it.
@sdxc/ui
Render a path-less Form issue instead of dropping it silently
Form.Issue.path is documented as optional — "omitted for a form-level
issue" — but groupIssuesByField only ever grouped issues that named a
field, and nothing else in Form read the rest. A server-side refusal
decided before any single field was at fault (auth-saas's own
addIdentifier/setPassword failures, and its newer Turnstile refusals
on sign-up and reset) genuinely refused the request at 400, but the
message explaining why never reached the page: every field-level
component only ever asks Form.Context for its own field's issues, and
a path-less issue was never stored anywhere a lookup could find it.
Form now separates path-less issues from the ones grouped by field,
renders them as its own leading Alert when there are any, and exposes
them through Form.Context.getFormIssues() too, for a caller that wants
to render them somewhere other than Form's own default slot. No call
site needs to change: every existing { message } issue with no path,
in auth-saas or anywhere else this component is used, starts rendering
without touching whoever passed it in.
Add a hover step between each tone's border and its strong one
Every tone gains --ui-{tone}-border-hover, one shade along from the resting
--ui-{tone}-border. The strong weight the contract reserves for focus, validity
and the high-contrast promotion is several steps away, so a control that darkened
its border on hover had to jump the whole distance and read as a state change
rather than as a nudge. High contrast promotes the new step alongside the resting
one, so the two never invert.
Draw a button's border as the hairline every other control uses
Buttons were the only bordered controls in the library at 2px, and their outline
variants rested on the strong border weight, so an outline button beside a field
carried an edge several shades darker and twice as thick. All four now draw a 1px
hairline, step to the hover weight under the pointer, and state their row measure
outright instead of inheriting it from the border they happened to have — which is
what kept them aligned with a field before, and stopped as soon as the border
changed. A glyph inside one is measured against the label beside it rather than at
whatever size an icon set drew it.
Show a field's focus as a ring standing off it
A field promoted its border to the strong weight on focus and sat a ring flush
against it, and the two read as one thick slab — the field looked like it had
changed shape rather than taken focus. Focus is now drawn the way every button in
the library draws it, as a ring standing off the control, with the border stepping
only to its hover weight so nothing jumps. Hovering steps the border to that same
weight instead of jumping to the strong one.
The rule suppressing the platform's own outline is scoped to pointer focus alone.
It is a shorthand, and from a later cascade layer it was resetting the keyboard
ring's colour, width and style together — leaving a field with no visible focus at
all.
Keep a customized select showing the option it has selected
A customized select renders its current value into <selectedcontent>, which the
browser fills and a re-render empties — so the trigger went blank after the first
update. mirrorSelectedOption() puts the selected option's content back whenever
the slot arrives empty, and Select.Value carries it.
value and defaultValue are now rejected by the prop type. A <select> takes
its selection from the option carrying selected and reads neither attribute, so
passing one went unread and the field quietly showed its first option instead.
Focus and hover follow the field treatment: a ring standing off the control, and a
border stepping to its hover weight.
Join a group's controls into one shape
A group left every child fully rounded and drew a ring around the whole cluster on
focus, so a row of controls read as separate boxes that lit up together. The
cluster now keeps the rounding on its own outer corners and collapses the seam two
controls share, and focus is shown by whichever control holds it — a ring around
the group says one of them is focused without saying which. The focused control is
raised so its ring crosses the seam rather than being painted over by its
neighbour.
Reveal a tree branch when it opens
An open branch stayed empty: the collapsed block-size: 0 and the open auto were
written as a value and an override, and the override landed in an earlier cascade
layer than the value it was meant to beat. They are now selectors that exclude each
other, so layer order cannot decide it.
A leaf now clears the same gutter its siblings' expand controls occupy, so files at
one depth line up with the folders beside them instead of sitting where their
parent's name starts. treeKeys() drives the native [open] state rather than
tracking its own.
Let a tooltip open
A popover in hint mode was hidden outright while it was not open, which the CSS
reveal a tooltip relies on had no way past — so a tooltip never appeared. Hint mode
is now exempt from that rule, leaving the surface free to be revealed by the
hover-driven styling it carries.
Give a search field one clear control, sized and placed to its row
A search field drew its own clear control beside the one the platform renders, so a
field with text in it showed two crosses side by side. The platform's is now
suppressed and SearchField.Clear is the single control, centred on the field's own
axis rather than hanging off the text baseline. It carries the plain, quiet chrome a
control inside a field wants instead of a full button's hover fill.
clearField() hides the control while the field is empty and shows it once there
is something to clear, so the field is not permanently offering an action that would
do nothing.
Choose a day or a row by pointer, not only by key
Both behaviours moved the active cell from the keyboard and left a click to do
nothing, so a calendar or a grid list built on them answered arrow keys but not the
pointer — the two inputs disagreed about what was selected. A press now moves the
active cell the same way a key does, and the tests cover both paths.
Keep a table's sort indicator square
The three sort indicators were squashed to roughly 13 by 14 by the header cell they
sit in, which read as a broken glyph rather than a direction. They hold their
measure now.
Align a sidebar's gutters and stack a menu item holding a sub-menu
The sidebar's inline gutters did not match each other or the block ones, leaving a
wide band of empty space down the leading edge that the trailing edge had nothing to
answer. Every gutter is now the same measure.
A menu item holding a sub-menu laid its rows out as one line, so a nested list ran
along beside its parent's label instead of under it. An item with a sub-menu now
stacks and stretches; one without keeps the centred row it had.
Keep a hover card reachable across the gap to its trigger
The card rests off its trigger's edge, and a pointer travelling between the two left
both, so the card closed before it could be reached and nothing inside it was ever
clickable. The card's hit area now reaches back across that offset, and the pair
reads as one surface for as long as the pointer is on either.
An open card takes pointer events through an important declaration, because the
resting state's own rule can land in a later cascade layer than the open one.
Show which row the keyboard is on in a listbox
Walking a listbox with the arrow keys moved something invisible: nothing marked the
row the next Enter would land on, so the choice was only visible once it had been
made. The row the keyboard is on now carries a tint, stopping short of a row that is
already selected so it does not lose the stronger fill while being walked past.
ArrowUp at the top of the list wraps to the last row, which it did not do while
ArrowDown wrapped to the first.
Follow a message to its end as it streams in
The log followed new messages but not a message growing in place, so text arriving a
word at a time scrolled out of view under the reader. Character-level changes now
count as growth, and a pinned log follows them without animating each step — a
smooth scroll per word never finishes before the next arrives.
The jump-to-latest control listens from the frame rather than from the node it is
drawn into, so it survives the log re-rendering underneath it, and it carries an
opaque surface of its own so it stays legible over the conversation it points at.
Show a grid list's selection and hold its glyphs to one measure
A selected row was tinted with a colour the same lightness as the list behind it, so
a selection was invisible — the count said two rows were selected and nothing on
screen agreed. It now carries a tint well clear of the surface, and the pointer
states are written to exclude the selected one so hovering a selected row cannot
repaint it as unselected.
A glyph leading a row was a flex item free to shrink, so every row squeezed its icon
by however much that row's own text overran and no two came out the same width.
Show the active row in a command palette and centre its empty state
The active row was tinted with a colour the same lightness as the panel behind it,
so walking the list with the arrow keys moved a cursor nobody could see. It now
carries a tint clear of the surface, with the pointer states written to exclude it.
The list spent its block padding even with every row filtered out, so that padding
stacked above the empty-state message with nothing to balance it below and the
message read as pushed down. It spends that padding only when it has a row to space.
A glyph anywhere in a row is held to the row's own text measure.
Draw a keyboard hint as the key it names, inline with its sentence
A hint was plain muted text, so a shortcut written mid-sentence read as prose rather
than as a key. It is drawn as a cap now: tinted, bordered, and held to a measure that
reads beside the row's own text whether it carries one glyph or a chord.
It centres that glyph without composing the centring pattern, which brings a block
display along with it — every cap stood on its own line and stretched to the width of
whatever held it, breaking the sentence apart.
Breaking: Leave the calendar to the platform in DatePicker and DateRangePicker
Both components shipped a trigger and a popover calendar alongside a native date
field, so the field offered the browser's picker and the trigger offered a composed
one — two calendars on one control, writing to the same value and disagreeing about
what it was. Suppressing the platform's proved browser-dependent and unreliable, so
the composed one goes instead: the field is the whole control, and its picker,
keyboard handling and locale all come from the browser and work before any script
loads.
BREAKING CHANGE: DatePicker.Button, DatePicker.Dialog, DateRangePicker.Button
and DateRangePicker.Dialog are removed, along with their prop types. Calendar
and RangeCalendar remain as standalone components.
DatePicker.Group keeps its place and does more: it joins two date fields into one
control, collapsing the seam they share, showing focus on the field that holds it,
and drawing validity once around the pair rather than twice at the seam — a range is
one value, and half of one is what makes it invalid.
Draw a side drawer against the full edge it docks to
A drawer docked left or right pinned both block insets and stopped there, and a
<dialog> sizes to its content, so the panel sat at the top of the viewport at
whatever height its contents came to rather than filling the edge. Each placement
now gives the edge it docks to a depth and tells the other axis to fill — which the
top and bottom placements already did.
Widen a dialog to the form it usually carries
A dialog capped at 28rem left a 400px column once its padding was taken, which a
field, its help text and a row of actions do not read well in. It is now 32rem, the
measure AlertDialog had already widened to for a title and one sentence — so the
general surface was narrower than the specialised one built on it. AlertDialog
inherits that measure now rather than restating it, and the two cannot drift apart.
Draw a drop indicator only at the gap the drop lands in
The bar painted the same colour whether or not it was the target, because the rule
meant to colour the active one landed in an earlier cascade layer than the resting
value it was overriding — so a list carrying one bar per gap showed a permanent rule
in every gap and nothing changed while a drag was in flight. The two states are now
selectors that exclude each other, the resting bar paints nothing while keeping its
place in the layout, and the active one fades in.
Lay out an empty state's actions as a row
The action slot was a bare block, so two buttons sat flush against each other with
nothing between them. It is a centred row now, gapped and wrapping, since two
buttons side by side outgrow a narrow panel.
Stop a disabled disclosure from toggling, and inset its panel
A row marked aria-disabled was dimmed and fully operable — a <summary> has no
disabled, and the component left blocking the toggle to the consumer. It now
leaves the tab order and stops taking pointer events, which is the whole of what
disabled would do and holds before any script runs.
The panel had no padding at all while the trigger above it was inset, so a section's
content ran to the frame's edge while its label sat well inside. It takes the
trigger's inset and clears the lower edge. Accordion.Content releases that inline
inset, since an accordion row runs edge to edge the way its trigger does.
A trigger's indicator glyph is measured against the label beside it, and the section
turns it over while it is open — the rule Accordion already had and Disclosure
did not.
Fill a colour picker's trigger with the swatch it previews
The trigger centred nothing and passed its size to the swatch as a mix, which the
swatch's own size rule outranked — so the preview sat at its default measure in a
corner of the button with slack on two sides. The size now reaches the swatch
through the measure the swatch itself reads. Hover steps the preview's edge one
shade darker instead of laying a second ring outside an edge it already draws, and
the group leaves focus to whichever control holds it.
A circular wheel held its measure on one axis and shrank on the other as a flex
item, which is an ellipse. A slider insisted on a 10rem floor, which does not make a
track usable inside a narrower panel — it makes the panel overflow and the track run
off the edge.
Move a carousel to the slide a control names
--ui-goto measured the target slide through offsetLeft, which reports a distance
from whichever ancestor happens to be positioned — usually the page — so every dot
scrolled by however far the carousel sat from that ancestor rather than to the slide
it named. The target is measured against the viewport's own box now, and given as a
position rather than a distance so a command arriving while another is still
animating retargets instead of compounding a stale delta.
A slide no longer forces the scroll to stop at it. scroll-snap-stop: always clamps
every scroll to a single snap point, programmatic ones included, so no control could
move more than one slide however far it asked to go.
carouselControls() marks the --ui-goto invoker naming the slide in view, so a
row of dots reads as a position rather than as identical buttons.
Sit a bubble's reactions on the line its text sits on
The reaction row was pulled up by a negative margin into the last line of the
message it belongs to, and inset barely at all while the content beside it was inset
well inside the frame — so the chips crowded the text and hugged the bubble's edge.
It takes the content's inset and clears the frame's lower edge.
The frame no longer declares its own containment, which was scoping container
queries written against the conversation column to each bubble instead.
Centre a calendar day in the cell that holds it
A day sat hard against the top of its cell, so the selected range's fill ran through
the middle of the numbers rather than around them. Table cells centre their content
through alignment now, and a row laid out as a flex box centres it the other way —
the two are written together and each answers one case, since a flex box here would
take every day out of its row and stack the month into a column.
Centre an overlay arrow's point under the trigger
The host spans the whole edge it attaches to, and the glyph sat wherever the box
put it, so the point landed away from the trigger the surface hangs off. The glyph
is centred inside that host now, which is what puts the point under the trigger. A
side placement sits past the surface's own inline edge, where there is no space to
grow into, so its glyph is sized from its own content instead.
Give each engine its own rule for a meter's fill and scope a slider's orientation
A vendor pseudo-element an engine does not recognise invalidates every selector
written beside it, so naming Chrome's, Safari's and Firefox's meter fills in one
list left every engine with no fill at all. Each engine gets a rule of its own.
A slider matched its vertical rules on the orientation attribute alone, which
answers to any ancestor that happens to carry one — a scroll viewport, a toolbar —
and laid a horizontal slider out as a vertical one. The rules are scoped to the
slider's own slot.
Hold a menu row's glyph to the row's own text measure
A glyph in a row was drawn at whatever size the icon set gave it and was free to
shrink, so it neither matched the text beside it nor stayed put while a long label
wrapped.
Let a gated loop settle visible on a host carrying its own content
A gated loop rests hidden outside its gate, which suits an element that exists only
as a loading cue and leaves one carrying content of its own blank once the loop
settles — an attachment's title vanished the moment its upload finished. shimmer()
takes outsideGate, and Attachment.Title asks to stay visible.
Open a card written as content alone with its own top padding
The body meets whatever sits above it with no gap, because a header already carries
that space — so a card written as content alone started hard against its own top
edge. It takes that padding back when it is the first thing in the card.
Let an item row wrap so its actions can take a line
Wrapping was asked for under the row's own container query, which can never apply —
a container query cannot change the layout of the container it measures. The row
held nowrap while its actions claimed a full line, leaving the content with
nothing. Wrapping is allowed at every width, and the actions claiming that line is
what decides whether it happens.
Stand a placeholder's fallback down once the image loads
Both layers fill the host and the fallback is written after the image, so it covered
a picture that had loaded fine. It stands down while an image is present and
unbroken, and takes over once the image reports that it failed.
Drop the inline chip padding from a fenced block's code
A fenced block's code is an inline box, so the chip padding carried over from
inline code applied at the start of the box alone and indented the block's first
line past every line under it. The block's padding is the surrounding pre's.
Keep a context menu open after the press that asked for it
The menu opened and closed again in the same gesture. A popover="auto" surface is
dismissed by a press beginning outside it, and the press asking for the menu began
before the menu existed — so the browser paired that pointerdown with the pointerup
still to come and read the pair as a click away. A pointer's menu now opens on the
release, leaving the surface to the next press rather than the one that summoned it.
A menu asked for from the keyboard reports no button and has no release to wait for,
so it opens where it stands.
Copy what a field holds, not the markup around it
The mixin read its target's text content, and a form control keeps what it shows in
its value and has no text of its own — so the pairing a copy button is most often
written for, a read-only field beside a button, copied an empty string. An input or
a textarea is read from its value.
Watch a hotkey on the document its host was inserted into
The combination was registered on the global document as the mixin was set up, which
runs wherever the mixin is evaluated — including where there is no document to watch.
It is registered from the host's insertion instead, on that host's own document, so
the mixin stays with the one document it belongs to and is inert until it has one.
Accept a schema whose input is not already a string
validate() typed its schema as taking a string, so a schema that parses a field's
value into something else — a number, a date, a union — would not type-check against
a field whose value is always a string. The input type is open now; what a schema
produces is still its own.
Close the mobile nav drawer with a press outside it
The drawer is a modal dialog, which closes on Escape and nothing else, and it renders
no control of its own — so on a touch device, where there is no Escape to press, it
opened and could not be dismissed. A press outside it now closes it, which is the
gesture a drawer is dismissed with. A consumer wanting the drawer held open passes
its own closedby.
Keep the sidebar's header and footer opaque
Both slots were transparent, so a rail that holds one of them against the
viewport showed the scrolling nav straight through it. Each slot now paints
the background it inherits, which is the rail's own while it sits in the
docked rail and the drawer's while it sits in the drawer, so the row reads
the same either way and nothing passes behind it in view.
@sdxc/user-agent
Request middleware and predicate helpers
Reading the user agent was every caller's own job: parse the header, then
match on the parsed shape. Both halves now live in the package.
userAgent() publishes the parsed agent as ctx.userAgent, declaring the
RequestContext augmentation from an imported module so installing the
middleware is all a project needs to have the property typed. Its key carries
an all-null default, so a surface reached before the middleware runs reads the
same keys rather than throwing.
isApplePlatform, isAndroid, isMobile, isTablet, isDesktop and
isTouch each take a parsed agent, a request context, or nothing — reading the
current request through the async context in the last case, and answering
against the unknown agent outside a request so a script or a test gets an
answer rather than an exception.
@sdxc/validate
Read any +json media type as a JSON body
validate() now reads a Request body as JSON when its Content-Type is
application/json or carries the RFC 6839 +json structured-syntax suffix,
such as application/merge-patch+json or application/problem+json. The
media type is compared case-insensitively with parameters ignored.
Previously a merge patch request was refused with "Unsupported
content-type".
@sdxc/webhooks
Republished because @sdxc/crypto changed.
@sdxc/webmention
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Receive, verify, discover and send Webmentions
@sdxc/webmention/receiver reads an endpoint request from already-parsed form data, checks it against an app-supplied accepts predicate and answers 202 or 400 without fetching anything; verify then fetches the source under bounds and reports it as linked (with a sanitized, display-ready mention read from its microformats), gone or unlinked, or as a fetch error saying whether a retry can help. @sdxc/webmention/discover finds a page's endpoint from its Link header or markup, passing all 23 webmention.rocks discovery tests, refuses endpoints on private hosts, and writes the values that advertise your own. @sdxc/webmention/sender lists an entry's outbound links, plans which targets an update or delete notifies (removed links included), and delivers one mention.
Make the package public
@sdxc/webmention now publishes to npm. It reads and answers a Webmention endpoint's request, verifies a source under bounded fetches and summarizes it from its microformats, discovers a target's endpoint and advertises your own, and plans and sends the mentions a post's links call for. The published build leaves out the webmention.rocks discovery fixtures.
@sdxc/websub
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Subscribe to WebSub hubs, verify deliveries and ping hubs as a publisher
@sdxc/websub/subscriber builds and sends subscribe and unsubscribe requests (https: hubs only, secrets under 200 bytes), reads the hub's verification of intent for subscribe, unsubscribe and denied, and answers it with acknowledge, refuse or gone (410, which ends the hub's retries). verifyDelivery checks X-Hub-Signature over the raw body for sha1, sha256, sha384 and sha512 in constant time, reading at most 1 MiB by default and reporting why a delivery was refused while the caller answers received() either way. renewalAt computes when to resubscribe from the lease the hub granted.
@sdxc/websub/publisher writes the Link header that advertises a topic's hubs and sends the hub.mode=publish ping public hubs accept, one hub.url per changed topic. The root export holds the shared SignatureAlgorithm type and the WebSubRequestError, WebSubVerificationError and WebSubSignatureError classes.
Lock @sdxc/idempotency's dependencies and drop unused ones
Records the dependencies @sdxc/idempotency declared, and removes remix from
@sdxc/websub and @sdxc/http from @sdxc/security-headers, which neither imports.
Make the package public
@sdxc/websub now publishes to npm. It builds and sends WebSub subscription requests, answers a hub's intent verification, verifies signed deliveries in constant time, schedules lease renewal, and on the publisher side advertises hubs in a Link header and pings them.
@sdxc/well-known
Scaffold the workspaces ADR-079 to ADR-095 introduce
Creates the sixteen private packages with their workspace dependencies, and wires
@sdxc/trace-context into api-client and jobs, @sdxc/well-known into auth and
@sdxc/crypto into mail, so the packages can be built in parallel without
contending over the lockfile.
Read, write and serve the documents under /.well-known/
Adds typed readers and writers for security.txt (RFC 9116), WebFinger (RFC 7033), OAuth
authorization server metadata (RFC 8414), OpenID Connect provider metadata, OAuth protected
resource metadata (RFC 9728), JWK Sets, passkey endpoints and the change-password redirect,
one subpath each. Fields are camelCase and URL-typed; every parse returns a Result whose
WellKnownParseError lists each issue with a JSON Pointer or line number. Discovery parsers
check the published issuer or resource against the one requested, and jwks.stringify
refuses private key material.
wellKnownUrl builds a document's URL with the placement its specification fixes, respond()
answers with the media type, a cache policy, an ETag, CORS where required and a 304 for a
current copy, and the wellKnown() middleware mounts several names on a router. The document
subpaths depend only on @sdxc/result, @remix-run/data-schema and @standard-schema/spec.
Let @sdxc/well-known type-check JWK output in its tests
Make the package public
@sdxc/well-known now publishes to npm. It reads and writes the documents served under /.well-known/ (security.txt, WebFinger, OAuth authorization server and protected resource metadata, OpenID Connect discovery, JWKS, change-password and passkey endpoints), answers them as cacheable responses, and mounts several on a router. @sdxc/auth, which reads discovery documents through it, depends on it.
Accept interface-typed keys in a JWK Set
Jwk lists the members RFC 7517, RFC 7518 and RFC 8037 register instead of an index
signature, so a key typed by an interface, such as the output of JWK.toJSON, can be
passed to stringify. Unregistered members still pass through at runtime.
Write REQUIRED metadata lists even when they are empty
stringify dropped every empty list, so an RFC 8414 document with responseTypesSupported: [] omitted response_types_supported, and an OpenID provider with an empty subject_types_supported or id_token_signing_alg_values_supported omitted those. Each is REQUIRED, and parse refuses a document missing one, so stringify produced output its own reader rejected. Members the specifications mark REQUIRED are now always written; optional empty lists are still left out.
@sdxc/workers-cache
Declare the new standards packages where the apps adopt them
Apps and packages now list the standards packages (SCIM, merge patch, idempotency, OpenAPI, JSON Schema, DoH, security headers, trace context, well-known, WebSub, robots, microformats, Webmention, structured fields, iCalendar) they are about to adopt. @sdxc/scim no longer depends on @sdxc/problem, and @sdxc/icalendar no longer depends on remix; neither imported them.
Read RFC 9211 Cache-Status hops with cacheHops
cacheHops(response) parses the standard Cache-Status field through @sdxc/structured-fields and returns one CacheHop per cache the response passed through, origin side first, with hit, fwd, fwdStatus, ttl, stored, collapsed, key and detail as that cache sent them. It sits beside cacheStatus, which keeps reading Cloudflare's cf-cache-status. An absent or invalid field reads as an empty list, as RFC 9211 and RFC 9651 have recipients ignore an invalid field.
Support a non-JWT access token in RelyingParty
OAuth2 states no shape for an access token at all — RFC 9068 is this
package's own issuer's choice, not a rule every issuer follows — so a
third-party provider's access token is commonly an opaque string, not a
JWT. RelyingParty.callback and AuthSession.accessToken both assumed
otherwise, unconditionally and uncaught: decoding a real Google, Microsoft,
GitLab, LinkedIn or Apple access token this way throws JWTInvalid, since
none of them issue one that decodes as a JWT for the scopes an ordinary
sign-in requests.
AccessToken.tryDecode(raw) answers the decoded token or null instead of
throwing, for a caller that doesn't already know it's holding a JWT.
decode and verify stay strict, since a caller naming either already knows
what it has (this package's own resource-server and service-client roles,
reading a token this package minted for itself).
Grant.accessToken and AuthSession#accessToken are now AccessToken | null.
Grant gains accessTokenRaw (the token exactly as the issuer answered it,
whatever its shape) and expiresAt (from the token response's own
expires_in, seconds since the epoch) — both answer the same way whether or
not the access token happens to be a JWT, so a caller that only needs to
hold the token and know when it expires never has to touch the decoded
form. AuthSession's own memoization was fixed alongside this: null now
means "decoded and absent," not "not yet decoded," so an opaque access
token doesn't re-attempt decoding on every read.
Updates auth-saas's connection-sign-in.ts (ADR-027) to use the new,
non-throwing path: the try/catch that previously turned a JWTInvalid crash
into a clean refusal is gone, since there's nothing to catch anymore, and
the sealed connection identity's token expiry now reads grant.expiresAt
rather than reaching for a JWT claim that may not exist. Real sign-in
against every catalog provider — Google, Apple, Microsoft, GitLab and
LinkedIn's real, opaque access tokens included — no longer depends on the
provider happening to issue a JWT.
Tenant-scoped management API surface on ManagementClient
Extends ManagementClient with a parallel, tenant-scoped surface for a
multi-tenant provider's own management API — auth-saas's, whose design names
this exact class, configured with a baseUrl and resources for the API's own
origin, as its administrative role. The existing single-tenant
fetchSubjectById/Subject/SUBJECT_SCHEMA is untouched.
Every new method calls one of three shared helpers instead of repeating
fetch/parse boilerplate: #send (token, request, non-2xx classification),
#decode (JSON body against a schema), #call and #page (the whole-response
and keyset-list wrappers over both). A non-2xx response declaring
application/problem+json decodes into a new ManagementProblem carrying every
RFC 9457 field (type, title, status, detail, instance, errors); anything
else falls back to the existing flat ManagementError. Options gains
apiVersion, sent as X-API-Version on every call, and apiVersionReceived
echoes back what the response carried.
Covers subjects (create, read, update, block, unblock, delete, add/verify/
remove identifier), credentials and sessions (list, revoke one or all,
revoke a passkey, force a password reset, reset a second factor), clients
(list, register, update, rotate/revoke secret, disable, delete), grants
(list, revoke), audit events (a filtered page), and tenants/members/domains
(read, list/invite/change-role/remove a member, list/attach a domain, read
its verification, update the MFA policy) — every wire shape cross-checked
against the real operation it fronts rather than guessed, catching a few
real mismatches along the way: verifying an identifier takes no subject id
(the ticket alone resolves it), grants and their revocation are
subject-scoped rather than tenant-wide, and membership/domain listing
answers a plain array since neither is paginated server-side.
Deliberately not built, because nothing on the other side exists to call:
listing subjects, defining a scope or assigning a role, API keys, webhook
endpoints, and import/export runs.
Exports parseLinkHeader/serializeLinkHeader/LinkValue from
@sdxc/pagination's public entry (previously internal to link.ts) so this
package can read a keyset list's Link header without a second RFC 8288
implementation; @sdxc/auth takes it as a new dependency.
@sdxc/billing
Republished because @sdxc/crypto changed.
@sdxc/crypto
TOTP second factor and recovery codes, mechanism (ADR-026 pass 1)
The tenant-object side of a second factor, independent of the mailbox that
already recovers a password: enrolment, activation, recovery codes, removal,
an administrator reset, and trusted devices. Nothing yet demands this factor
during sign-in or at the authorization endpoint — that's a second pass, once
this lands.
database/totp.ts holds five tables (totp_enrolments, totp_factors,
totp_claims, recovery_codes, trusted_devices) and the operations over them.
beginTotpEnrolment mints and seals a secret, answering the otpauth:// URI and
setup key once — nothing afterwards ever returns the secret again.
activateTotpFactor spends the enrolment unconditionally (a wrong code is a
failed setup, not a retryable one) and only on a verified code writes the
factor and mints ten recovery codes, replacing any prior factor and clearing
every trusted device, since a second authenticator is a second scan of the
same QR code rather than a second credential. Recovery codes are single-use,
found by digest the way a session token already is; regenerating replaces
the whole set rather than leaving a half-old one nobody can reason about.
removeTotpFactor requires proof first and refuses outright under a tenant
policy of required. resetSecondFactor is the administrator path: strips
everything, revokes every session, marks the subject as owing a fresh
enrolment, and answers the address to notify — mailing it is left to a
Worker-side caller, since a tenant object has no mail client of its own.
The secret is sealed at rest under an AES-GCM key imported once per isolate
and cached, the same lazy-import pattern the DAU cap's own enforcement read
already uses. Adds a Base32 codec to @sdxc/crypto (mirroring its existing
Base64/Base64Url/Hex classes) since recovery codes need the same alphabet
TOTP secrets already use and nothing exported it.
The replay guard (totp_claims) and the two flows that actually demand this
factor mid-sign-in — completeSecondFactor and the authorization endpoint's
step-up outcome — are the next pass's job; this one only builds what they'll
call.
@sdxc/feed
Republished because @sdxc/atom changed.
@sdxc/http
Republished because @sdxc/crypto changed.
@sdxc/opml
Republished because @sdxc/xml changed.
@sdxc/pagination
Tenant-scoped management API surface on ManagementClient
Extends ManagementClient with a parallel, tenant-scoped surface for a
multi-tenant provider's own management API — auth-saas's, whose design names
this exact class, configured with a baseUrl and resources for the API's own
origin, as its administrative role. The existing single-tenant
fetchSubjectById/Subject/SUBJECT_SCHEMA is untouched.
Every new method calls one of three shared helpers instead of repeating
fetch/parse boilerplate: #send (token, request, non-2xx classification),
#decode (JSON body against a schema), #call and #page (the whole-response
and keyset-list wrappers over both). A non-2xx response declaring
application/problem+json decodes into a new ManagementProblem carrying every
RFC 9457 field (type, title, status, detail, instance, errors); anything
else falls back to the existing flat ManagementError. Options gains
apiVersion, sent as X-API-Version on every call, and apiVersionReceived
echoes back what the response carried.
Covers subjects (create, read, update, block, unblock, delete, add/verify/
remove identifier), credentials and sessions (list, revoke one or all,
revoke a passkey, force a password reset, reset a second factor), clients
(list, register, update, rotate/revoke secret, disable, delete), grants
(list, revoke), audit events (a filtered page), and tenants/members/domains
(read, list/invite/change-role/remove a member, list/attach a domain, read
its verification, update the MFA policy) — every wire shape cross-checked
against the real operation it fronts rather than guessed, catching a few
real mismatches along the way: verifying an identifier takes no subject id
(the ticket alone resolves it), grants and their revocation are
subject-scoped rather than tenant-wide, and membership/domain listing
answers a plain array since neither is paginated server-side.
Deliberately not built, because nothing on the other side exists to call:
listing subjects, defining a scope or assigning a role, API keys, webhook
endpoints, and import/export runs.
Exports parseLinkHeader/serializeLinkHeader/LinkValue from
@sdxc/pagination's public entry (previously internal to link.ts) so this
package can read a keyset list's Link header without a second RFC 8288
implementation; @sdxc/auth takes it as a new dependency.
@sdxc/passkey
Add @sdxc/passkey, WebAuthn for the browser and the server
Two entry points over one implementation of WebAuthn Level 3.
@sdxc/passkey/client reduces a ceremony to one call: Passkey.register,
.authenticate and .autofill take the server's JSON options verbatim and
return the response as JSON, reporting every outcome as a Result so a
dismissed prompt is a value to branch on rather than an exception to catch.
Only one ceremony is ever open, so an autofill prompt and a button no longer
cancel each other by accident.
@sdxc/passkey/server is a stateless RelyingParty: register() and
authenticate() hand back the challenge to persist alongside the options to
send, and the matching verify* call takes the response — or the Request
carrying it — and returns the row to store. Each refusal is its own error
class, so a caller can tell a replayed challenge from a failed signature.
Verification runs on WebCrypto alone, so the same code holds on Workers, Node
and Deno. Ceremonies are checked against challenge, origin, relying party id,
user presence and, when required, user verification; assertions additionally
against the stored key and a signature counter that has to advance.
Safe by default: a ceremony run inside a cross-origin frame is refused unless
allowFramed is set, a credential must use an algorithm the relying party
offered, and an attestation statement is either verified or refused. A none
attestation must carry no statement; a packed self-attestation is verified
against the credential's own key, which proves possession at enrollment.
A statement carrying a certificate chain is refused rather than accepted
unchecked, because a chain means nothing without trust anchors this package
does not ship.
Tests drive both ceremonies with a software authenticator built on WebCrypto,
emitting real CBOR and real DER, and cover the refusals each check produces.
@sdxc/rss
Republished because @sdxc/xml changed.
@sdxc/saml
SAML 2.0 service provider on Web Crypto
Verifies what an identity provider posts, builds the request that asked for it, and reads and writes the metadata the two sides exchange — with no DOM and no Node crypto, so one implementation serves every runtime.
The shape of the API is the security property. An XML signature covers whatever its reference resolves to, and a reader then goes looking for an assertion by name; every wrapping attack is a document where those are not the same element. So there is no parseResponse, the tree is never returned, and the Assertion constructor is not exported: a verification answers with an assertion built from the element the signature covered, and that is the only place claims are readable from.
verifyResponse takes every option and defaults none, so a call that forgets the audience does not typecheck and the replay check is always present. Exclusive canonicalization stays unexported beside the verifier, since publishing it would hand a caller the two primitives whose recombination is the attack. SHA-1, inclusive canonicalization, XPath transforms, whole-document references and a second signature are each refused by name, so a tenant reads which part of a provider's configuration to change.
Publish to npm
Drops the private flag, so the next dated release ships the package. The README is rewritten for a reader who can reach only what npm serves: installation, the calls in order of size, every export, and the patterns they combine on.
@sdxc/saml/testing is now a surface of its own, exporting the fixture builders an integration test needs — a response built and signed as a provider builds one, and an assertion encrypted as a provider encrypts one. buildResponse answers plain tree data and signDocument signs whatever it is handed, so a test can plant a second assertion beside the signed one, or give two elements one id, and still be signing genuinely.
@sdxc/sample
Republished because @sdxc/crypto changed.
@sdxc/sitemap
Republished because @sdxc/xml changed.
@sdxc/spec
Republished because @sdxc/sample changed.
@sdxc/typeid
Republished because @sdxc/uuid changed.
@sdxc/user-agent
Read a User-Agent string into browser, engine, OS and device
One parse(userAgent) answers with the browser and the version it reports, the
rendering engine behind it, the operating system in its own numbering, and the
device type, vendor and model. Each name is a string union, so a switch over
one is exhaustive and an editor lists the options.
The read is total: anything the rules do not recognize — a crawler, a script, an
empty header — comes back as null in that field rather than as an error, since
every string is a legal User-Agent and there is nothing to recover from.
@sdxc/uuid
Add generateUUIDv7, use it for control-plane ids
ADR-003 states control-plane ids are "TypeIDs over UUIDv7... they
sort by creation because the UUID behind them does," but @sdxc/uuid
only ever exported generateUUID (crypto.randomUUID(), version 4 —
random in every position, including when it was created). Every
control-plane model (customer/tenant/domain/membership) called that
one, so none of the ids actually sorted by creation despite the ADR's
explicit claim and the schema's PRIMARY KEY (id) ordering depending on
it.
Adds generateUUIDv7 (RFC 9562 §5.7: 48-bit millisecond timestamp,
74 random bits) to @sdxc/uuid and switches the four control-plane
models to it. generateUUID stays for ids that must not reveal their
creation time, such as ADR-006's subject ids.
@sdxc/webhooks
Republished because @sdxc/crypto changed.
@sdxc/xml
Parse with the source's own whitespace preserved
XML.parse takes an options object whose whitespace mode decides whether whitespace-only text and CDATA reach the tree. The collapsing default is unchanged, so traversal still steps over indentation; preserve keeps every run, which a caller digesting a document needs, since a byte of indentation changes the hash.
Join byte runs without a local helper
Every protocol framing a record — a header, an info string, a length
prefix — concatenates bytes, and each caller writing that loop again is
another place the offset arithmetic can be wrong.
Parts come in as BinaryLike, so a label spelled as text joins the
binary around it and the caller keeps no TextEncoder of its own.
@sdxc/distill
Rename @sdxc/readability to say what it does
Readability is the name of a measurement — how hard a text is to read —
and this package does not measure anything. It finds the article in a
page and throws the furniture away, which is what distilling is, and
what Chrome's own reader mode has been called all along.
extract and extractFrom become distill and distillFrom, and the
error and namespace names follow them. The "extracted" outcome keeps
its spelling: it is a value the article cache has already written, and
renaming it would expire live entries to no purpose.
Publish distill
It was marked private, so the bootstrap filtered it out before it ever
looked at npm. Nothing holds it back: it reaches only public packages,
and finding the article in a page is useful well outside the reader that
needed it first.
It gains the license file every published package carries.
Write the README for npm rather than for the repo
A published README is read by somebody who can reach only the one page
npm serves them. It gains how to install it, how versions are numbered
and what depending on one promises, and the license and author every
other published package states.
The tips become two patterns that run: caching what comes back, and
deciding the article was worth fetching. Related Packages goes, having
described a shelf the reader cannot see.
@sdxc/feed
Bound what a fetch will read and follow
A feed address comes from whoever pasted it, so every fetch is untrusted network
input. Two bounds were missing: a publisher serving a gigabyte could exhaust an
isolate's memory before the parser saw a byte of it, and a redirect chain could
spend a caller's whole budget without ever answering.
The body is now read off a stream and refused the moment it passes the cap, and
a Content-Length already past it is refused before a single read. Redirects are
walked here rather than by the runtime, counted, and each Location resolved
against the URL it came from — which also makes the address a response finally
came from a fact this package tracked rather than one the caller infers.
Both bounds belong here rather than in a caller, because every caller wants
them and a cap applied by one is a cap the next one forgets. A refusal carries
its own error type, so a caller can tell a document it declined to read from an
origin it could not reach.
Expose the links a document and its response declare
One list folding an Atom link element, an RSS atom:link, a JSON Feed's
hubs and the response's Link header, so a caller asking which hub a feed
names asks once. selectHub ranks the header over the document and takes
only an https one.
@sdxc/html
Extract an article from a page
Scores a document's blocks to find the one that carries the article,
serializes it back to markup, and reads the metadata a page declares
about itself. Sanitization moves into @sdxc/html, where the parser it
needs already lives.
Sanitize against an allowlist that names every element's attributes
No attribute is global: each element states the ones it may keep and the
schemes each URL among them may use. A style attribute is named nowhere,
so a publisher's positioning and background images are gone before any
policy has to refuse them.
Rename @sdxc/readability to say what it does
Readability is the name of a measurement — how hard a text is to read —
and this package does not measure anything. It finds the article in a
page and throws the furniture away, which is what distilling is, and
what Chrome's own reader mode has been called all along.
extract and extractFrom become distill and distillFrom, and the
error and namespace names follow them. The "extracted" outcome keeps
its spelling: it is a value the article cache has already written, and
renaming it would expire live entries to no purpose.
@sdxc/http
Republished because @sdxc/crypto changed.
@sdxc/mcp
Let a resource live under a scheme of its own
The route matcher takes http and https, so a reader:// address could not
be expressed at all. It is carried as the host of an https address while
matching and restored when the href is built, which leaves the template a
client reads unchanged.
@sdxc/opml
Read and write the folder a feed sits in
An outline nested under another carries its nearest enclosing folder on
read, and a document written back groups each folder's feeds under one
outline with the unfiled ones after them.
Publish opml
It was marked private, which is why the bootstrap answered that there was
nothing else to publish: the filter drops a private package before npm is
ever asked about it. It reaches only public packages, and a subscription
list is a format other people read and write too.
Refuse the transactions the platform refuses
A Durable Object rejects BEGIN, COMMIT, ROLLBACK, SAVEPOINT and RELEASE, and
offers atomicity through coalescing every write a turn makes instead. The mock
ran all of them, being plain SQLite, so code that could not execute passed its
tests — which is how a broken transaction reached a running app.
The mock now throws the runtime's own message, matching on each statement's
leading keyword past comments and quoted text so a migration naming a column
"begin" still runs. The driver no longer emits SQL the platform rejects: the
token-based protocol cannot be bridged to the synchronous transactionSync the
platform offers, so it refuses rather than handing out a scope that silently
never rolls back, and it stops advertising savepoints and transactional DDL.
Both READMEs document what a Durable Object actually gives, and where the
turn-scoped guarantee ends.
@sdxc/crypto
Stop calling scrypt a Web Crypto primitive
Password hashing reaches for node:crypto, because scrypt has no Web Crypto
equivalent — which the README states plainly and the description contradicted.
The description and the package table now carry the exception too.
@sdxc/data-table-sqlstorage
Refuse the transactions the platform refuses
A Durable Object rejects BEGIN, COMMIT, ROLLBACK, SAVEPOINT and RELEASE, and
offers atomicity through coalescing every write a turn makes instead. The mock
ran all of them, being plain SQLite, so code that could not execute passed its
tests — which is how a broken transaction reached a running app.
The mock now throws the runtime's own message, matching on each statement's
leading keyword past comments and quoted text so a migration naming a column
"begin" still runs. The driver no longer emits SQL the platform rejects: the
token-based protocol cannot be bridged to the synchronous transactionSync the
platform offers, so it refuses rather than handing out a scope that silently
never rolls back, and it stops advertising savepoints and transactional DDL.
Both READMEs document what a Durable Object actually gives, and where the
turn-scoped guarantee ends.
Split a script on terminators, not on every semicolon
executeScript cut on every ;, so one inside a string literal, a quoted
identifier, a line comment or a block comment corrupted the script. A migration
adding a trigger half-applied, since a trigger body's own semicolons ended the
statement early — at deploy time, against a real database, with an error that
named neither the migration nor the cause.
The scanner tracks quoting, both comment forms and trigger bodies, where CASE
nests and END unnests, so a body's semicolons stay inert. A trigger's BEGIN is
therefore never read as the transaction control this driver refuses.
An unterminated literal, identifier, comment or trigger body now throws before
anything runs, naming the problem and the line it opened on, rather than
applying whichever prefix happened to parse.
@sdxc/feed
Read JSON Feed alongside RSS and Atom
Text that opens a JSON object is parsed as JSON Feed and normalized into the
same shape, so a reader handed a feed.json URL needs to know nothing new. Items
gain contentText, which holds a plain-text body as plain text, and discovery
follows application/feed+json links, preferring them over application/json.
@sdxc/flags
Correct what ready() returns
The README claimed ready() and shutdown() both answer with a Result, but
ready() is declared Promise<void> — as the Flags interface printed a few
lines above it already showed. setProvider initializes the provider it
registers and hands its caller that outcome, so ready() has nothing left to
report and awaits the same memoized answer.
@sdxc/flags-engine
Republished because @sdxc/flags changed.
@sdxc/html
Name fetch in the package description
HTML.fetch is a first-class export that performs the HTTP call itself, but the
description covered parsing alone. The README heading already said "fetch or
parse"; the description and the package table now agree with it.
@sdxc/http
Republished because @sdxc/crypto changed.
@sdxc/jobs
Republished because @sdxc/validate changed.
@sdxc/json-feed
Read and write JSON Feed 1.1 documents
A builder and parser for the JSON syndication format, named as the format names
its own fields. Extension objects round-trip untouched, a parsed 1.0 document
writes back out as 1.0, and reading is lenient the way the format asks: a field
typed the wrong way is skipped, and only an item without an id is discarded.
@sdxc/lazy-route
Cover a stand-in inside a controller
A route map whose actions live in different modules can name a loader per
action, and createController() takes those as readily as a plain object does,
keeping the route map's typing on each one. The chain still runs in order: the
controller's own middleware answers before any action's module is imported.
@sdxc/pagination
Republished because @sdxc/crypto changed.
@sdxc/rate-limit
Give every README example the key it requires
key has no default, and the README says so, but the login and fail-closed
examples both omitted it and would not have typechecked. Both surfaces are
anonymous, so they key on the connecting address the way the earlier example in
the same README does.
@sdxc/sample
Republished because @sdxc/crypto changed.
@sdxc/spec
Correct the workers entry point's capability list
src/workers.ts exports seven plugin factories and its own header comment lists
all seven; the README named four. The createHttpPlugin example also imported
from /workers while the prose around it described the root entry, which both
entries export.
@sdxc/validate
Rewrite the README for the package it documents
Two behaviors were missing. input also takes any JSON value, not only a plain
object, and a schema that validates the raw FormData/URLSearchParams source
rather than a flattened object — remix/data-schema/form-data's object() —
has its rejection retried against that source, so it passes through the same
call. A reader working from the README alone would not know either worked.
It was also the last README still written in the internal style, against a guide
that asks a published package for the npm reader's version: no route module
paths or other vocabulary that means nothing outside a checkout, exports
described in a sentence each instead of Parameters/Returns scaffolding, and the
Versioning, License and Author trailer every sibling carries.
Implement the OpenFeature specification (ADR-059)
Add @sdxc/flags, an implementation of the OpenFeature specification v0.9.0 for
the dynamic-context paradigm, so a behavior can change without a deploy and the
flag system stays a constructor argument.
The evaluation API is createFlags() rather than a global singleton, which is the
specification's own Requirement 1.8 and keeps a Worker isolate from sharing flag
state across concurrent requests. Nothing on the evaluation path throws: a
failed evaluation answers with the default value it was handed and carries the
reason and error code on its detailed form, so a provider outage is
distinguishable from a flag being off. Object flags take a schema and are
validated rather than cast.
Two providers ship. NoopProvider answers defaults, and InMemoryProvider is a
real provider with lifecycle and events that the specification's own Gherkin
suites evaluate against. A conformance suite exports from /conformance so a
provider written anywhere runs the same assertions as the two in the box.
Compliance is a ledger rather than a claim: a test over the vendored
specification.json asserts every MUST-class requirement is either covered by a
test named for it or declined with the condition that excuses it, so a
specification bump fails with the list of new requirements.
Both middleware subpaths publish one client to a shared context key, so a job
handler reads ctx.flags exactly as a route handler does.
No app adopts the package yet; that waits on a provider against a real flag
system.
Declare the jobs peer as a workspace range
The peer was pinned to * because the release pipeline rewrote dependencies
alone, so a workspace: range in peerDependencies reached the manifest check
and failed the publish. Peers pin the same as dependencies now, so the range is
written the way every other workspace range in the repo is and resolves to the
dated version at publish time.
@sdxc/flags-engine
Add the flag evaluation engine (ADR-060)
Decides what a flag is worth. @sdxc/flags shipped the API an application
evaluates through and the Provider contract a flag system implements, but
nothing that resolves a real flag; this is the half that holds the rules,
reads the context a request arrives with, and works out which variant a
subject gets.
A flag is variants, an optional default variant, and an ordered rule list
where the first match wins. Conditions are a typed union rather than an
expression language, so an editor completes the operators and a write can be
validated against the same schema the engine parses with. Every operator
compares within one type, and a field the caller did not send matches nothing
but exists.
A split buckets on MurmurHash3 of the subject, scaled onto the weights' own
sum, so a percentage means the same thing here as in the reference engine: the
same subject lands in the same arm on every request and in every isolate, and
two flags at one percentage cover different subjects unless they share a seed.
Evaluation is pure and synchronous, which is what lets a provider, an HTTP
endpoint and an admin preview call one function. It never throws and never
logs. Every reason the specification names has exactly one cause here, so a
consumer reading reason alone tells a flag that is off from a flag system
that is broken.
Definitions arrive through FlagStore, one method answering with the whole
set. An in-memory store and a Cloudflare KV store ship, and an application
wanting a row per flag writes that store against its own schema and runs the
same conformance suite the two shipped ones do. Parsing is per flag, so a
mistyped rule fails the flag someone just edited and leaves the rest resolving.
EngineProvider is the adapter onto @sdxc/flags, and it is the only module
here that knows OpenFeature.
@sdxc/highlight
Republished because @sdxc/markdown changed.
@sdxc/html
Republished because @sdxc/result changed.
@sdxc/http
Republished because @sdxc/crypto changed.
@sdxc/jobs
Breaking: Let the Cloudflare worker own its dead-letter queue
deadLetterQueue and onInvalid were dispatcher options, but neither meant
anything to a backend that is pulled rather than pushed: one is matched against
the queue name a batch arrived on, which only a push backend reports, and the
other exists because this platform reaches a dead-letter queue by exhausting
retries rather than by being asked, so a refused body has to be written there.
Both move to cloudflare.worker(dispatcher, options), the consume side that
already knows which queue a batch came from. The dispatcher keeps what is its
own: it still answers dead-letter for a message it refuses, and still records
a dead-lettered batch as a job log that ended dead_letter. It is now told that
a batch is dead-lettered instead of deciding it from a name, and apply may
return a promise, since forwarding a body is a write that must land before the
message is acked.
The { invalid: … } envelope becomes the contract it always was, at
@sdxc/jobs/queue: the adapter writes it, the dispatcher reads it back.
@sdxc/jwt
Republished because @sdxc/duration changed.
@sdxc/mail
Republished because @sdxc/highlight changed.
@sdxc/markdown
Republished because @sdxc/result changed.
@sdxc/mcp
Republished because @sdxc/result changed.
@sdxc/pagination
Republished because @sdxc/crypto changed.
@sdxc/rate-limit
Republished because @sdxc/duration changed.
@sdxc/result
Republished because @sdxc/types changed.
@sdxc/rss
Republished because @sdxc/result changed.
@sdxc/sample
Republished because @sdxc/crypto changed.
@sdxc/semver
Add SemVer 2.0.0 parsing, ordering and comparisons
Answers the version questions this repository kept asking in two private
copies: whether one version stands in a named relation to another, and which
of a list of versions is the newest.
parse() is the single grammar gate, accepting SemVer 2.0.0 plus the leading
v a git tag or a user agent carries, and reporting anything else as a
Result failure naming the text.
compare() is total, so a list whose entries come straight from a registry
sorts in one call: text that is not a version ranks below every version and
ties with other such text, collecting those entries at the front.
satisfies() covers the eight comparisons =, !=, <, <=, >, >=,
~ and ^ without the range grammar. A prerelease takes part by precedence
alone, so 1.2.4-rc.1 satisfies ^ 1.2.3; a release channel is expressed by
comparing against the prerelease itself.
@sdxc/session-storage-kv
Republished because @sdxc/duration changed.
@sdxc/sitemap
Republished because @sdxc/result changed.
@sdxc/spec
Read a browser assertion's grammar before spawning the CLI
browser.cookie, text, url, path, title, query and fragment
parsed their assertion inside observeValue, after the agent-browser
call, so a malformed call reported a missing binary instead of the
grammar mistake wherever the CLI is not installed.
@sdxc/types
Add JSONPrimitive, the scalar leaf of JSONValue
Names the half of a JSON boundary that holds no other value, so an API that
compares, indexes or keys by what it is handed can say so in its signature
instead of taking JSONValue and rejecting structures at runtime.
JSONValue is now written in terms of it, which keeps the two in step: a
primitive is a value by construction rather than by a union that repeats the
four scalars in both places.
Make the package public, with a README written for npm
@sdxc/billing
Make the package public, with a README written for npm
Write out the exported context key type
The declaration emit cannot name ContextKey, which remix/router returns from
createContextKey but does not re-export, so the publish build failed with
TS2883. ContextKey is structural, so the annotation writes its shape out.
@sdxc/cache
Make the package public, with a README written for npm
Declare the result dependency its sources import
The index, both adapters and the conformance entry import @sdxc/result, which the
manifest omitted. An installed consumer would have failed to resolve it.
@sdxc/cloudflare-mocks
Make the package public, with a README written for npm
@sdxc/data-table-d1
Make the package public, with a README written for npm
@sdxc/data-table-sqlstorage
Make the package public, with a README written for npm
Corrects the documented default for savepoints, which the driver enables.
@sdxc/get-client-ip
Make the package public, with a README written for npm
@sdxc/highlight
Paint a parsed markdown document through a walk visitor
@sdxc/highlight/markdown exports highlight, a Markdown.walk visitor holding
one code handler, so a document paints in the pass that walks it. The handler
resolves the language the block names, tokenizes its body, and returns a copy of
the node carrying both; a block naming no language, as an indented one never does,
is painted as plain.
The tokens field belongs here rather than to the format: the entry declares it on
Markdown.Code through module augmentation, so @sdxc/markdown has no dependency
on this package and no field of its own that knows fences can be painted.
Visitors are values and merge by spread, so one walk can paint and rewrite at once.
Every handler is synchronous, which keeps a painting pass inside a render path free
of an await.
@sdxc/highlight/markdoc is removed with the parser it adapted to, and the Markdoc
dependency goes with it.
Make the package public, with a README written for npm
Drop the unused remix dependency
Nothing under src imports remix, so the dependency only added install weight for a
consumer.
@sdxc/hostname
Make the package public, with a README written for npm
Build requests through @sdxc/api-client
The client held its own header, URL-joining and request helpers. It now composes an
APIClient that carries the zone token in its before hook. The public API is unchanged.
@sdxc/http
Make the package public, with a README written for npm
The previous description named Request factories the package does not export, and the
status-code and content-type references omitted roughly thirty real exports.
@sdxc/icons
Point the related-packages row at the markdown renderer entry
Make the package public, with a README written for npm
Scope the package tsconfig to src
The release build compiles a package with src as the rootDir, so the codegen
script the include pattern reached failed the build with TS6059. The script
keeps its coverage under its own tsconfig in the directory it lives in.
@sdxc/mail
Render a markdown document the caller already parsed
@sdxc/mail/markdown's Markdown component takes a document rather than a
source string, so a caller holding a parsed document pays for no parser at all and
the same document can render as a page and as an email.
Conversion is a switch on node.type the compiler proves exhaustive, which
replaces the shape-sniffing the untyped tree needed. That reach extends the
coverage an inbox gets: strikethrough, alerts, tables, footnotes, thematic breaks
and inline code all render now, and a code block arrives already painted when the
caller ran the highlighter.
Raw HTML renders as escaped text, so markup an author did not vet never reaches an
inbox. The package no longer depends on a markdown parser of any kind.
Make the package public, with a README written for npm
@sdxc/markdown
Parse and write GitHub Flavored Markdown over a typed AST
@sdxc/markdown reads and writes markdown itself, over a first-party AST. Every
node is a plain JSON-serializable object with a type discriminator and a
position, so a parsed document caches in KV, travels in a payload, diffs in a
test, and narrows in the compiler where content used to arrive as unknown.
Markdown.parse reads the frontmatter block and the body in one traversal, and
Markdown.frontmatter stops after the block so an index over a hundred posts
reads a hundred titles without parsing a hundred bodies. Markdown.stringify
writes a document back, normalized, so a round trip is idempotent and the output
is a fixed point of the repository's formatter. Markdown.walk is the one
transform mechanism: a visitor keyed by node type, which can be asynchronous, and
which turns a handler's throw into a failure carrying the node's position.
The dialect is everything in CommonMark plus GFM's tables, task lists,
strikethrough and literal autolinks, plus GitHub's alerts and footnotes. Two
additions sit on top: {% key="value" %} annotations that decorate a block, and
registered elements whose children parse as markdown rather than as text.
Four entry points, each named for what it produces. The root is the format;
/plain gives text, /html gives static HTML carrying md- classes to style,
and /remix gives remix/ui nodes. @sdxc/markdown/server and
@sdxc/markdown/client are gone, and so is MarkdownView — a view calls
toRemix and owns the markup around it. The class is a namespace now: its
constructor is private and every operation is static, so per-app configuration is
an options object the app hoists rather than an instance it builds.
Conformance is asserted as a floor that can only rise: 648 of 652 CommonMark
examples and 658 of 672 GFM ones, the remainder being the divergences ADR-058
records. The format entry weighs 66.2 KB minified against the 181.1 KB of the
entry it replaces.
Make the package public, with a README written for npm
Corrects a schema example that called a checks helper the schema package does not
export.
@sdxc/mcp
Make the package public, with a README written for npm
Write out the exported context key types
The declaration emit cannot name ContextKey, which remix/router returns from
createContextKey but does not re-export, so the publish build failed with
TS2883. ContextKey is structural, so the annotations write its shape out.
@sdxc/pagination
Make the package public, with a README written for npm
@sdxc/response
Make the package public, with a README written for npm
@sdxc/seo
Make the package public, with a README written for npm
@sdxc/server-timing
Make the package public, with a README written for npm
@sdxc/session-storage-kv
Make the package public, with a README written for npm
Corrects the session middleware example, which named a signature the middleware does
not take.
@sdxc/strings
Make the package public, with a README written for npm
@sdxc/typeid
Make the package public, with a README written for npm
Correct the UUID and suffix in the documented examples
The encode, decode and fromUUID examples paired a UUID with a suffix that is not its
encoding, in both directions. They now use the TypeID specification's own vector.
@sdxc/u
Make the package public, with a README written for npm
Name the mixin type the exported functions return
The declaration emit wrote the return type of the two functions that return a
raw() mixin as a relative path into the u package source, which the release
build rejects as reaching outside dist/. The type ships from the u entrypoint
now, and the functions that return one write it out.
@sdxc/ui
Make the package public, with a README written for npm
The previous README documented three exports that do not exist, the wrong theme
variable contract and an invented radius scale; all three are corrected against the
source.
Name the mixin type the exported functions return
The declaration emit wrote the return type of the two functions that return a
raw() mixin as a relative path into the u package source, which the release
build rejects as reaching outside dist/. The type ships from the u entrypoint
now, and the functions that return one write it out.
@sdxc/uuid
Make the package public, with a README written for npm
@sdxc/webhooks
Make the package public, with a README written for npm
@sdxc/workers-cache
Make the package public, with a README written for npm
Corrects the documented purge return type, selector field names and policy value.
@sdxc/yaml
Make the package public, with a README written for npm
Query a served page by role and accessible name
Parse a response body into a document, then address it by role and
accessible name, by field name, by table position or by definition term —
no browser, and the answers describe the page as served rather than the
page after hydration.
Names match exactly on the whitespace-normalized accessible name, several
matches is a failure carrying every candidate with its position, and
visibility is markup-level: hidden, aria-hidden, a <template> and an
inline display/visibility declaration hide an element, while a
stylesheet stays unread.
Fetch a page, and let every match scope its own lookups
HTML.fetch asks for text/html, parses the body when that is what
arrived, and reports a rejected request, an error status or another
content type as an HTMLFetchError naming what came back — so a login
redirect or a JSON error page is reported rather than parsed.
Every match now carries the same five lookups over its own subtree, so a
caller narrows to a form or a panel and reads inside it, where a name only
has to be unique within that section. A scoped miss names what the scope
holds.
Make the package public
Removes private, adds the description and the license, and marks the row
in the root package table, so the daily release publishes @sdxc/html.
Let a flow read the page it just fetched
html, str and spec join the namespaces a flow may use, so a check can
assert on the markup a server returned, compose a value into a request, and
give each run an identity no earlier run produced. All three compute from their
arguments or from the run's own identity, so none reaches the network and none
needs a grant or a place in the request budget.
@sdxc/html describes the nodes it handles in a vocabulary of its own rather
than through the ambient DOM globals. The package ships TypeScript, so a
consumer compiles it under the consumer's global scope, and a Worker's
generated types declare an Element of their own for HTMLRewriter that merges
with the DOM's. A declaration file compiles the package under exactly those
hostile globals, so the next consumer to differ finds out here.
@sdxc/sitemap
Read the protocol the package already writes
Sitemap.parse takes a parsed XML document and Sitemap.fetch retrieves one,
both answering with the same instance append builds, so a consumer that wants
the list of pages a site publishes reads it through one import instead of
rediscovering which root elements count, that <loc> is absolute, that
<lastmod> is W3C Datetime and that <priority> is a closed range.
The root element decides whether a sitemap arrived, which is also the content
check: a not-found template served under a 200 fails naming the root it found,
rather than arriving as an empty entry set. A row that carries no usable <loc>
is skipped and the document is kept, and a <lastmod>, <changefreq> or
<priority> the protocol refuses leaves that field undefined, so a bad field
costs a caller the field rather than the other 49,999 rows.
A <sitemapindex> reads into the same class under a kind of "index", and
toString() writes back the document the instance carries, so an index that is
read, filtered and re-serialized stays an index.
Make the package public
Removes private, adds the description, and marks the row in the root package
table, so the daily release publishes @sdxc/sitemap. Both packages it depends
on are already public.
Rewrites the README for the npm landing page it becomes: a stranger reaching only
what npm serves gets the installation line, the two directions as focused
examples, the parsing rules the package owns, and every export. The Remix
controller walkthrough, the repository links and the tips are gone, and the
patterns that stayed are written to stand on their own.
@sdxc/spec
Implement ADR-018, what a real browser E2E suite needs
Commands absorb fixtures, so fixture leaves the language and the keyword
stays reserved to name its replacement. A bare identifier handed to a tool now
resolves against the tool's descriptor rather than always becoming a word, and
the zero-argument rule holds in every expression position, so an identity value
composes where a spec actually writes it.
str.format gives the language string composition as a tool; spec.run_id,
spec.attempt and spec.nonce give a suite the one value that must not
reproduce across runs, while every sample draw stays deterministic. html
reads a served page, and shares one addressing vocabulary with browser so a
document is addressed the same way whether or not a browser is needed.
Named bases resolve relative targets, db takes its own grant and named
connections, and the runner gains setup/teardown, skip, retries with a
flaky count, and an artifacts directory.
Three of the ADR's capability questions are answered against the real tools, and
two of them came back needing compensation: agent-browser fill moves no range
input and fires no change, so browser.fill drives one itself, and a closed
<dialog> is hidden by a stylesheet markup cannot see, so a browser lookup
reads visibility from the rendered page.
Record what ADR-018 settled across the spec ADR suite
ADR-018 §7 answers the question ADR-008 left open — how execution environments
are defined and selected — with the bases key, on "name", and a composition
with ADR-007 that keeps configuration from ever implying authority. Both sides
now say so.
ADR-007 gains the db family and the host-fs grant a tool now demands, ADR-013
gains the two config keys that resolve without a grant, ADR-010's absolute-URL
and snapshot-ref decisions are marked superseded, ADR-012's DATABASE_URL
gating likewise, and ADR-017 records that the zero-argument reading now holds in
every expression position. Every original decision stands as the record.
teardown, a successful setup, and --artifacts gain the acceptance coverage
they lacked, and the addressing vocabulary is exported so a third-party plugin
can spread the parameter fragments the plugin guide tells it to.
Follow the spec language through ADR-018
The flow checker walks a spec's AST to derive the hosts a run may reach, so it
tracked two language changes. fixture-call is gone with the construct, and a
string literal inside an array literal is reachable now, which a URL sitting in
one needs or the run is denied at a host the spec plainly names.
Let a flow read the page it just fetched
html, str and spec join the namespaces a flow may use, so a check can
assert on the markup a server returned, compose a value into a request, and
give each run an identity no earlier run produced. All three compute from their
arguments or from the run's own identity, so none reaches the network and none
needs a grant or a place in the request budget.
@sdxc/html describes the nodes it handles in a vocabulary of its own rather
than through the ambient DOM globals. The package ships TypeScript, so a
consumer compiles it under the consumer's global scope, and a Worker's
generated types declare an Element of their own for HTMLRewriter that merges
with the DOM's. A declaration file compiles the package under exactly those
hostile globals, so the next consumer to differ finds out here.
Read one document once however many times a test asks
A test asserts many times over one response, and parsing is the expensive part
of answering, so re-reading the markup per assertion made a page's size cost
what the assertions multiplied it to. The plugin keeps the few documents it
most recently parsed, keyed by the source that produced them; a lookup never
mutates a document, so callers share one safely.
This matters most where flows are other people's: an uptime check spends one
request from its budget and could spend the CPU of twenty parses.
Hold one parsed document, not several
A parsed document runs about twenty-five times the size of its source, so
holding four of them could raise a run's peak memory above what a 128 MB
isolate has — while holding one never does: the alternative parses the same
markup again, which allocates the same document anyway. One entry keeps the
whole win for the case that matters, a test asserting many times over one
response, and costs nothing in the worst case.
Let a host cap how much of a response body http reads
A parsed document runs about twenty-five times the size of its source, so one
oversized body can exhaust a 128 MB isolate. createHttpPlugin now takes the
most bytes it will read: a declared content-length past the cap is refused
before a byte arrives, and anything else is counted as it streams and cancelled
the moment it passes. Measuring a body already read would come too late, since
the memory is spent by then.
The cap is set where the plugin is constructed, so it is the host's policy and
no spec can raise it. spec run sets none. An uptime flow reads at most a
mebibyte, which covers every page a server renders and leaves the isolate room
to parse it.
The refusal carries its own error type, so a host recognising it reads a field
rather than the wording of a message it does not own.
Cache through @sdxc/cache
The three issuers construct WorkerKVCache in place of Cache.KVStore. The blog's MCP
cache holds one instance for both its helpers, and its JSON.stringify/JSON.parse
bracketing goes with the unchecked casts it existed to make: cached() hands its loader
straight to fetch, and the tool middleware reads a CallToolResult as one.
packages/auth asserts Issuer.CacheStore against the Cache interface itself rather than a
concrete store, which is the claim that actually matters.
Breaking: Issuer.CacheStore answers with a Result
The cache tier a shared Issuer and ServiceClient read through now returns
Result<_, Error> from all three methods, following @sdxc/cache. The error is Error rather
than a store's own type, so a store answering with a narrower one still satisfies it and
this package depends on no cache.
No observable behavior changes: a store that fails costs a read of the provider, and a
document that cannot be fetched still throws the AuthError it always did, rethrown from
the failure's cause.
Breaking: Open the package for publishing, with a keyed login limit
The OAuth 2.0 and OpenID Connect client is published to npm as @sdxc/auth, with a
LICENSE.md and a README written for a reader who can reach only the npm page. Every
package it depends on is published alongside it: @sdxc/catch-response-middleware,
@sdxc/location, @sdxc/logger and @sdxc/rate-limit, over the already-published
@sdxc/crypto, @sdxc/duration, @sdxc/jwt and @sdxc/result.
RelyingParty.Options.rateLimit is now a RateLimit, pairing the adapter with a
required key(request). It read a Cloudflare header before, which is the one place the
client stopped being runtime-neutral: on any other runtime every attempt collapsed into
a single shared budget. Only the app knows what a login budget belongs to — the
connecting address where the platform reports one, a tenant, a submitted username — so
it now says. ServiceClient keeps a bare adapter, since it counts against its own
client id.
Upgrade Remix to 3.0.0-rc.2
The router now answers a method mismatch with 405 and an Allow header
instead of falling through to the default handler, so the HEAD probes
against POST-only routes assert 405 and the cross-origin POST to
/api/subjects/:subjectId reads as a method refusal.
@sdxc/catch-response-middleware
State the throw redirect affordance directly
Open the package for publishing
The middleware that turns a thrown Response into the request's response is published
to npm as @sdxc/catch-response-middleware. Its only dependency is remix itself, and
its README is rewritten for a reader who can reach only the npm page.
Upgrade Remix to 3.0.0-rc.2
The router now answers a method mismatch with 405 and an Allow header
instead of falling through to the default handler, so the HEAD probes
against POST-only routes assert 405 and the cross-origin POST to
/api/subjects/:subjectId reads as a method refusal.
@sdxc/cron
Open the package for publishing
Cron schedules, their zone-aware occurrences and their descriptors are published to npm
as @sdxc/cron. It reaches only @sdxc/duration and @sdxc/result, both already in the
release set, so the set grows by one.
Its README gains an installation section, and its cross-package links point at npm rather
than at repository paths, which resolve to nothing for a reader who arrived at the package
page.
@sdxc/crypto
Republished because @sdxc/result changed.
@sdxc/dates
Republished because @sdxc/duration changed.
@sdxc/duration
Republished because @sdxc/result changed.
@sdxc/feed
Open the package for publishing
@sdxc/i18n
Upgrade Remix to 3.0.0-rc.2
The router now answers a method mismatch with 405 and an Allow header
instead of falling through to the default handler, so the HEAD probes
against POST-only routes assert 405 and the cross-origin POST to
/api/subjects/:subjectId reads as a method refusal.
@sdxc/jobs
Breaking: Run over a queue backend of your choosing
The package read as platform-neutral — nothing in src/ imported a binding — but it
was not: the lifecycle ended a delivery by calling ack() and retry() on a Cloudflare
message, the dispatcher was entered through a MessageBatch, and cron existed only
because the platform fired scheduled with an expression to match. ADR-054 records the
design; this is it.
The lifecycle now decides an ending and answers with a Settlement for someone else to
apply, so deliver() and deliverBatch() name no platform and every backend becomes a
translation outside that seam. deliverBatch takes an apply callback rather than
answering with an array, because a batch settles each delivery as that one finishes and
one job crashing must still leave its batch mates acked. JobQueue is the port both
adapters implement: @sdxc/jobs/cloudflare for Queues, @sdxc/jobs/memory for tests and
for anything running without a platform, and @sdxc/jobs/conformance is the suite that
says what a queue is, so a third adapter can prove itself.
A message now carries { job, body } instead of the job's name mixed into the payload as
type. A backend that wants to index, count or route by job can, and input stops being
restricted to object schemas. Deliveries are read in both shapes for one deploy, so
messages enqueued by the one before it still run; the fallback comes out next.
Reporting leaves the lifecycle. onEnd(ctx, status) runs once an ending is decided and
before the delivery is settled — the barrier a report that must reach a service needs —
and whatever it throws is recorded as job.hook_failed rather than sinking work that
succeeded. That replaces an instanceof branch deciding on the app's behalf which
reporting failures were worth a redelivery. The ping itself is @sdxc/jobs/uptime, a
client answering with a Result, wired to nothing.
monitorId becomes meta, unconstrained and inferred as written, and ctx.of(job)
reads a delivery as one job — its parsed input and its meta, or null for another job's
delivery — which is what gives a dispatcher-level hook the types a handler already has.
BREAKING CHANGE: createJobDispatcher takes queue rather than send; dispatcher.queue
and dispatcher.scheduled become deliverBatch and tick, reached through
cloudflare.worker(dispatcher); job() takes meta rather than monitorId; the uptime
option and ctx.monitorId are gone; and the wire format carries an envelope.
Upgrade Remix to 3.0.0-rc.2
The router now answers a method mismatch with 405 and an Allow header
instead of falling through to the default handler, so the HEAD probes
against POST-only routes assert 405 and the cross-origin POST to
/api/subjects/:subjectId reads as a method refusal.
@sdxc/jwt
Republished because @sdxc/duration changed.
@sdxc/lazy-route
Upgrade Remix to 3.0.0-rc.2
The router now answers a method mismatch with 405 and an Allow header
instead of falling through to the default handler, so the HEAD probes
against POST-only routes assert 405 and the cross-origin POST to
/api/subjects/:subjectId reads as a method refusal.
@sdxc/location
Build URLs with typed route helpers in a Remix v3 action
Open the package for publishing
The Location class and its safe-redirect helpers are published to npm as
@sdxc/location. It has no dependencies of its own, and its README is rewritten for a
reader who can reach only the npm page.
@sdxc/logger
Open the package for publishing
The wide-event logger and its router middleware are published to npm as @sdxc/logger.
Its README is rewritten for a reader who can reach only the npm page.
The exported CurrentLog context key now states its type. remix/router re-exports
createContextKey without the ContextKey type it returns, so the inferred type could
not be named in a declaration file and the publish build failed with TS2883. Neither
bun run typecheck nor the tests catch that, because neither emits declarations.
Declare remix as an optional peer
remix moves from a dependency to an optional peer, matching what @sdxc/auth settled
on. Only the ./middleware export reaches remix/router at runtime, so a consumer of
the logger alone no longer installs a Remix release candidate to get it, and one that
does use the middleware states the version it is on.
It stays a dev dependency, so the package's own tests and typecheck resolve it exactly as
before.
Upgrade Remix to 3.0.0-rc.2
The router now answers a method mismatch with 405 and an Allow header
instead of falling through to the default handler, so the HEAD probes
against POST-only routes assert 405 and the cross-origin POST to
/api/subjects/:subjectId reads as a method refusal.
@sdxc/rate-limit
Breaking: Require a key, and answer denials from this package
key is now required on every registration. There is no default, because what a budget
belongs to is the policy: too broad a key lets one caller spend another's budget, and a
key the caller controls lets it mint fresh ones. The old default read a Cloudflare
header, which quietly collapsed every caller into one bucket on any other runtime.
tooManyRequests(decision, window, body?, init?) replaces the borrowed JSON helper and
is exported. It fixes the status and writes the quota fields the decision supports, and
adds no media type of its own, so a limited page answers HTML where a limited API
answers JSON. A closed failure policy still refuses with a 429 carrying no quota
fields, since an outage made no decision to report.
Both changes drop a dependency: the package now needs only @sdxc/duration,
@sdxc/logger and @sdxc/result. It is published to npm as @sdxc/rate-limit.
BREAKING CHANGE: rateLimit({ ... }) requires key; pass the derivation the endpoint
should count against, returning one shared bucket for a caller it cannot identify.
Upgrade Remix to 3.0.0-rc.2
The router now answers a method mismatch with 405 and an Allow header
instead of falling through to the default handler, so the HEAD probes
against POST-only routes assert 405 and the cross-origin POST to
/api/subjects/:subjectId reads as a method refusal.
@sdxc/result
Republished because @sdxc/types changed.
@sdxc/rss
Open the package for publishing
@sdxc/sample
Republished because @sdxc/crypto changed.
@sdxc/spec
Republished because @sdxc/duration changed.
@sdxc/types
Add JSONSerialized, the shape a value reads back as
Types the read side of a JSON boundary in terms of what was written, instead of
widening to JSONValue and casting back: it applies toJSON, drops a property JSON
cannot write, writes an unwritable array element as null, and keeps a tuple's length.
It describes the shape rather than the value, so a cycle, NaN, and an inherited
property remain the caller's business.
Add a cache contract with memory and Worker KV adapters
Four methods over string keys, with the value's type taken per call, so one instance
serves a namespace whatever mix of types goes into it. Values are constrained to
JSONSerializable and read back as JSONSerialized<T>, so a hit and a miss answer with
the same type and a Date is typed as the string it serializes to.
MemoryCache holds serialized text against an injectable clock, so a test caches without
a KV namespace and expires an entry without waiting for one. WorkerKVCache defers a put
to waitUntil when given one, answering from the instance until it lands, so a write is
readable as soon as it resolves and two writes to one key land in order.
Both run the same conformance suite from @sdxc/cache/conformance, the KV one twice --
awaiting each write and deferring it -- so the two modes are held to answering
identically. A store that cannot answer reads as a miss and warns on the invocation's
log; what a loader throws and a value JSON cannot write reach the caller.
@sdxc/validate
Validate inside Remix v3 actions and controllers
Open the package for publishing
Standard Schema validation is published to npm as @sdxc/validate. It reaches only
@sdxc/result and @sdxc/types, both already in the release set.
Its installation section now names the package itself before the schema library installed
alongside it, and its cross-package links point at npm rather than at repository paths.
Upgrade Remix to 3.0.0-rc.2
The router now answers a method mismatch with 405 and an Allow header
instead of falling through to the default handler, so the HEAD probes
against POST-only routes assert 405 and the cross-origin POST to
/api/subjects/:subjectId reads as a method refusal.
Defer a route's module until a request reaches it
lazy(() => import("./bookmarks")) maps a route without importing its
controller, so a cold start loads only the modules the routes it actually
serves need. The stand-in keeps the module's own type, so params, request
context and route/module mismatches are still checked at the map call.
Works for both handler shapes, since the router picks between them from the
map target rather than the module: a single route reads handler, a route
map reads actions. The middleware an action or controller declares is
assembled after the module loads and runs ahead of the handler, in the order
the router would have run it.
Validating a controller's actions against its route map moves from startup
to the first request to that route, since the actions are not there any
earlier. See ADR-049.
Take guards to run ahead of the module's own
A stand-in is an object rather than a function, so it cannot be the
handler of an outer action object. A composition root that declares a
route group's guards at the map call had no way to keep them there.
lazy(load, middleware) runs those guards before whatever the module
declares. They are typed as middleware with no context transform, so a
middleware that publishes a context value is rejected: the loaded handler's
type is the module's own and cannot grow to know a value declared at the
map call.
Publish to npm
Drops private: true, which is what makes a package public, and adds the
metadata the guard requires of one: a description, a LICENSE.md, and the ✅
row in the root README package table.
The README is rewritten to the public-package structure. It had been written
for a reader inside the monorepo, with app-relative controller paths and a
Tips section; an npm reader can open none of that, so the examples now use
generic subjects and the sections follow Installation / Usage / API /
Patterns / Versioning.
No internal dependencies, so nothing else has to open to ship it.
Rewrite the README for npm readers
Adds installation and license sections, expands each wrapper into the raw
WebCrypto call it stands in for, and drops the repository links and the
unpublished package the reference pointed at.
Explain the dated release versioning
States that a version is its publish date, that any release may change an
export, and that a dependent should pin one exact date.
Hash passwords with scrypt
password.hash now derives with scrypt through node:crypto at ln=15, r=8,
p=3 — 32 MiB of scratch memory — and writes $scrypt$ln=15,r=8,p=3$<salt>$<key>.
scrypt is memory-hard, so an attacker pays for memory as well as time, which an
iteration count alone never buys.
Hashes in the previous $pbkdf2-sha256$ format no longer verify: verify
returns UnsupportedAlgorithmError for them and needsRehash reports true, so a
stored value from an earlier release has to be reset.
Password hashing is the one part of this package that reaches past Web Crypto,
which has no memory-hard derivation on any runtime. Node, Bun and Cloudflare
Workers each implement node:crypto scrypt natively and produce identical bytes
for the same parameters.
@sdxc/dates
Rewrite the README for npm readers
Adds installation and license sections and expands the formatters into the
Intl calls they wrap. Corrects a stale endOfDay output and the range the
day-bounded query pattern describes, which is closed rather than half-open.
Explain the dated release versioning
States that a version is its publish date, that any release may change an
export, and that a dependent should pin one exact date.
@sdxc/duration
Rewrite the README for npm readers
Adds installation and license sections, shows the millisecond arithmetic
toMs and toSeconds replace, and documents that an amount may be zero or
negative.
Explain the dated release versioning
States that a version is its publish date, that any release may change an
export, and that a dependent should pin one exact date.
@sdxc/i18n
Publish the package to npm
The package drops private: true and gains the description npm renders on
its page, so a release run builds it and ships it as @sdxc/i18n.
Rewrite the README for npm readers
Adds installation and license sections, names which export comes from which
of the three entry points, and gives every pattern its own imports so each
one stands alone.
Explain the dated release versioning
States that a version is its publish date, that any release may change an
export, and that a dependent should pin one exact date.
@sdxc/jwt
Rewrite the README for npm readers
Adds installation, versioning, license and author sections, documents the
KeyStorage contract so a stranger can implement it, and drops the repository
links and the unpublished package the reference pointed at.
@sdxc/result
Rewrite the README for npm readers
Adds installation, versioning, license and author sections and expands each
helper into the code it replaces. Corrects RetryError, which is returned
inside a Failure rather than thrown, and drops the section that imported an
unpublished package.
@sdxc/sample
Rewrite the README for npm readers
Adds installation, versioning, license and author sections and compresses the
fifteen namespaces to a description and a method list each. Corrects the
PersonRecord field list and two generated example outputs against the source.
@sdxc/spec
Rewrite the README for npm readers
Replaces the checkout-local CLI instructions with what an installed consumer
runs, and adds installation, versioning, license and author sections. Keeps
the language, capability and permission references, and states that the
command runs on Bun.
@sdxc/types
Rewrite the README for npm readers
Adds installation, versioning, license and author sections, replaces the
internal examples with generic ones, and shows each type beside the longhand
it stands in for. Documents JSONValue as a generic bound, which keeps the
caller's shape while rejecting what JSON cannot carry.
Add JSONSerializable for the write side of a JSON boundary
JSONValue names what JSON.parse hands back, so it rejects a Date — the round
trip returns a string. That left no type for the other direction, where an
object standing in for itself through toJSON is exactly what stringify accepts.
JSONSerializable adds that branch and nothing else, so an API takes it where a
value is written and keeps JSONValue where one is read back.
Splits the package into one module per type, each with its own header and a
type-level test beside it. Those tests assert through expectTypeOf, so the
typecheck is what enforces them.