@sdxc/kit 2026.10.21 → 2026.10.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -4
- package/changelog.jsonl +86 -0
- package/config.schema.json +154 -0
- package/dist/architecture/complexity.d.ts +73 -0
- package/dist/architecture/complexity.js +185 -0
- package/dist/architecture/crap.d.ts +62 -0
- package/dist/architecture/crap.js +121 -0
- package/dist/architecture/graph.d.ts +55 -0
- package/dist/architecture/graph.js +194 -0
- package/dist/architecture/layers.d.ts +29 -0
- package/dist/architecture/layers.js +81 -0
- package/dist/architecture/mermaid.d.ts +20 -0
- package/dist/architecture/mermaid.js +51 -0
- package/dist/cli.js +9 -0
- package/dist/commands/create.js +4 -3
- package/dist/commands/deploy.js +10 -9
- package/dist/commands/destroy.d.ts +1 -1
- package/dist/commands/diagram.d.ts +17 -0
- package/dist/commands/diagram.js +45 -0
- package/dist/commands/fix.d.ts +69 -0
- package/dist/commands/fix.js +102 -0
- package/dist/commands/make.d.ts +71 -2
- package/dist/commands/make.js +46 -0
- package/dist/commands/run.d.ts +15 -11
- package/dist/commands/run.js +21 -16
- package/dist/commands/scaffold.d.ts +1 -1
- package/dist/commands/setup.d.ts +26 -0
- package/dist/commands/setup.js +33 -0
- package/dist/config.d.ts +52 -0
- package/dist/config.js +88 -1
- package/dist/contract.d.ts +52 -3
- package/dist/contract.js +124 -2
- package/dist/dependencies.js +7 -1
- package/dist/deploy/plan.d.ts +5 -0
- package/dist/deploy/plan.js +10 -0
- package/dist/destroy.js +13 -6
- package/dist/diagram.d.ts +32 -0
- package/dist/diagram.js +47 -0
- package/dist/doctor/checks.d.ts +2 -1
- package/dist/doctor/checks.js +24 -1
- package/dist/doctor/complexity.d.ts +13 -0
- package/dist/doctor/complexity.js +52 -0
- package/dist/doctor/crap.d.ts +14 -0
- package/dist/doctor/crap.js +67 -0
- package/dist/doctor/dependencies.d.ts +13 -0
- package/dist/doctor/dependencies.js +42 -0
- package/dist/doctor/duplication.d.ts +19 -0
- package/dist/doctor/duplication.js +106 -0
- package/dist/doctor/fan-out.d.ts +12 -0
- package/dist/doctor/fan-out.js +42 -0
- package/dist/doctor/feature-scatter.d.ts +15 -0
- package/dist/doctor/feature-scatter.js +84 -0
- package/dist/doctor/module-size.d.ts +13 -0
- package/dist/doctor/module-size.js +50 -0
- package/dist/doctor/mutation.d.ts +20 -0
- package/dist/doctor/mutation.js +97 -0
- package/dist/doctor/orphans.d.ts +13 -0
- package/dist/doctor/orphans.js +50 -0
- package/dist/doctor/project.js +8 -5
- package/dist/doctor/result-throws.d.ts +17 -0
- package/dist/doctor/result-throws.js +72 -0
- package/dist/doctor/test-ratio.d.ts +12 -0
- package/dist/doctor/test-ratio.js +31 -0
- package/dist/fix/commands.d.ts +37 -0
- package/dist/fix/commands.js +63 -0
- package/dist/fix/emails.d.ts +21 -0
- package/dist/fix/emails.js +159 -0
- package/dist/fix/env.d.ts +29 -0
- package/dist/fix/env.js +58 -0
- package/dist/fix/index.d.ts +11 -0
- package/dist/fix/index.js +11 -0
- package/dist/fix/models.d.ts +20 -0
- package/dist/fix/models.js +95 -0
- package/dist/lock.js +12 -2
- package/dist/make/binding.d.ts +42 -0
- package/dist/make/binding.js +237 -0
- package/dist/make/imports.js +7 -5
- package/dist/make/schema-diff.js +8 -1
- package/dist/models.js +7 -7
- package/dist/routes/modules.js +8 -5
- package/dist/routes/parse.js +8 -7
- package/dist/routes/routers.js +9 -5
- package/dist/setup/auth.d.ts +12 -0
- package/dist/setup/auth.js +209 -0
- package/dist/setup/billing.d.ts +11 -0
- package/dist/setup/billing.js +116 -0
- package/dist/setup/catalog.d.ts +25 -0
- package/dist/setup/catalog.js +34 -0
- package/dist/setup/credit.d.ts +13 -0
- package/dist/setup/credit.js +21 -0
- package/dist/setup/flags.d.ts +11 -0
- package/dist/setup/flags.js +62 -0
- package/dist/setup/index.d.ts +25 -0
- package/dist/setup/index.js +53 -0
- package/dist/setup/plan.d.ts +38 -0
- package/dist/setup/plan.js +62 -0
- package/dist/testing.js +3 -3
- package/dist/ui/layout.js +1 -1
- package/dist/ui/registry.d.ts +2 -2
- package/dist/upgrade/project.d.ts +2 -2
- package/dist/upgrade/prompt.js +7 -5
- package/package.json +10 -7
- package/registry/ui/attachment.json +2 -2
- package/templates/app/AGENTS.md +14 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ sdxc upgrade # move to the latest release and print a pr
|
|
|
30
30
|
sdxc doctor # report release drift, missing secrets and app-layout slips
|
|
31
31
|
sdxc routes --json # every route, its controller and middleware, for an agent
|
|
32
32
|
sdxc routes -g posts --method post # narrow it, as rails routes does; --unused, -c, -E too
|
|
33
|
-
sdxc run users find ada@example.com # run the
|
|
33
|
+
sdxc run users find ada@example.com # run the project's command line (run.entry)
|
|
34
34
|
sdxc deploy # build, then the app's db migrate --remote and deploy
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -65,7 +65,7 @@ Every `@sdxc/*` package versions as the UTC date it was published, and a daily r
|
|
|
65
65
|
| `sdxc initializers` | Lists the initializers, their exports and the factories that build them |
|
|
66
66
|
| `sdxc notes` | Lists the `TODO`, `FIXME`, `HACK` and `OPTIMIZE` comments in the app's code |
|
|
67
67
|
| `sdxc stats` | Counts lines of code per kind of code, and the code to test ratio |
|
|
68
|
-
| `sdxc run` | Runs the
|
|
68
|
+
| `sdxc run` | Runs the project's command line (`run.entry`, default `bootstrap/cli.ts`) |
|
|
69
69
|
| `sdxc doctor` | Lints the project: release drift, secrets, migrations, layout, JSDoc and its own checks |
|
|
70
70
|
| `sdxc ui` | Copies `@sdxc/ui` components into the project and points imports at the copies |
|
|
71
71
|
| `sdxc upgrade` | Moves the `@sdxc/*` packages and `remix` to a release and prints the prompt |
|
|
@@ -104,7 +104,7 @@ Remove a file sdxc make wrote, its test, its pairing .spec, its mapping and its
|
|
|
104
104
|
|
|
105
105
|
#### `sdxc doctor`
|
|
106
106
|
|
|
107
|
-
Lint release drift, secrets, migrations, app layout and project checks
|
|
107
|
+
Lint release drift, secrets, migrations, app layout, complexity and project checks
|
|
108
108
|
|
|
109
109
|
| Flag | Does |
|
|
110
110
|
| ---------------- | ------------------------------------- |
|
|
@@ -112,6 +112,38 @@ Lint release drift, secrets, migrations, app layout and project checks
|
|
|
112
112
|
| `--only <check>` | Run only the named checks |
|
|
113
113
|
| `--skip <check>` | Leave out the named checks |
|
|
114
114
|
|
|
115
|
+
#### `sdxc fix`
|
|
116
|
+
|
|
117
|
+
Apply doctor repairs the kit can make safely
|
|
118
|
+
|
|
119
|
+
| Flag | Does |
|
|
120
|
+
| ----------- | ---------------------------------------------- |
|
|
121
|
+
| `--dry-run` | Print what would be written and change nothing |
|
|
122
|
+
|
|
123
|
+
#### `sdxc fix env`
|
|
124
|
+
|
|
125
|
+
Append missing bindings.secret() keys to .env.example
|
|
126
|
+
|
|
127
|
+
| Flag | Does |
|
|
128
|
+
| ----------- | ---------------------------------------------- |
|
|
129
|
+
| `--dry-run` | Print what would be written and change nothing |
|
|
130
|
+
|
|
131
|
+
#### `sdxc fix models`
|
|
132
|
+
|
|
133
|
+
Register unmapped createModel modules in app/models/index.ts
|
|
134
|
+
|
|
135
|
+
| Flag | Does |
|
|
136
|
+
| ----------- | ---------------------------------------------- |
|
|
137
|
+
| `--dry-run` | Print what would be written and change nothing |
|
|
138
|
+
|
|
139
|
+
#### `sdxc fix emails`
|
|
140
|
+
|
|
141
|
+
Map unmapped emails in app/initializers/mail.ts
|
|
142
|
+
|
|
143
|
+
| Flag | Does |
|
|
144
|
+
| ----------- | ---------------------------------------------- |
|
|
145
|
+
| `--dry-run` | Print what would be written and change nothing |
|
|
146
|
+
|
|
115
147
|
#### `sdxc init`
|
|
116
148
|
|
|
117
149
|
Write .config/sdxc.jsonc with every default spelled out
|
|
@@ -293,6 +325,35 @@ The test make writes beside a file, for an existing file without one
|
|
|
293
325
|
|
|
294
326
|
Copy the built-in stubs into make.stubs to edit
|
|
295
327
|
|
|
328
|
+
#### `sdxc make secret <NAME>`
|
|
329
|
+
|
|
330
|
+
Declare a bindings.secret() in cloudflare.config.ts and append .env.example
|
|
331
|
+
|
|
332
|
+
| Flag | Does |
|
|
333
|
+
| ----------- | ------------------------------------------------------------------------------------------- |
|
|
334
|
+
| `--dry-run` | Print what would be written and change nothing |
|
|
335
|
+
| `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
|
|
336
|
+
|
|
337
|
+
#### `sdxc make binding <kind> <NAME>`
|
|
338
|
+
|
|
339
|
+
Declare a Cloudflare binding in cloudflare.config.ts
|
|
340
|
+
|
|
341
|
+
| Flag | Does |
|
|
342
|
+
| ----------- | ------------------------------------------------------------------------------------------- |
|
|
343
|
+
| `--dry-run` | Print what would be written and change nothing |
|
|
344
|
+
| `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
|
|
345
|
+
|
|
346
|
+
#### `sdxc make do <name>`
|
|
347
|
+
|
|
348
|
+
Write a Durable Object class, re-export it from bootstrap/worker.ts, and declare its binding
|
|
349
|
+
|
|
350
|
+
| Flag | Does |
|
|
351
|
+
| ------------------ | ------------------------------------------------------------------------------------------- |
|
|
352
|
+
| `--role <role>` | app/models when it owns stored state, app/services otherwise (default: service) |
|
|
353
|
+
| `--binding <NAME>` | The env binding key (default: derived from the class name) |
|
|
354
|
+
| `--dry-run` | Print what would be written and change nothing |
|
|
355
|
+
| `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
|
|
356
|
+
|
|
296
357
|
#### `sdxc middleware`
|
|
297
358
|
|
|
298
359
|
Print each router's global middleware and every chain in app/http/middleware
|
|
@@ -336,7 +397,7 @@ Print every route with its controller and the middleware that runs for it
|
|
|
336
397
|
|
|
337
398
|
#### `sdxc run [command...]`
|
|
338
399
|
|
|
339
|
-
Run the project's own command line, bootstrap/cli.ts
|
|
400
|
+
Run the project's own command line (run.entry, default bootstrap/cli.ts)
|
|
340
401
|
|
|
341
402
|
#### `sdxc scaffold <name> [field[:type][?]...]`
|
|
342
403
|
|
|
@@ -361,6 +422,16 @@ List the scheduled jobs, their next runs and the Worker triggers that fire them
|
|
|
361
422
|
| -------- | -------------------------- |
|
|
362
423
|
| `--json` | Print the schedule as JSON |
|
|
363
424
|
|
|
425
|
+
#### `sdxc setup [feature]`
|
|
426
|
+
|
|
427
|
+
Install a multi-file feature (auth, billing, flags); lists known features with no name
|
|
428
|
+
|
|
429
|
+
| Flag | Does |
|
|
430
|
+
| ----------------------- | ------------------------------------------------------------------ |
|
|
431
|
+
| `--provider <provider>` | Backend for features that vary (auth: r3-auth; billing: polar) |
|
|
432
|
+
| `-y, --yes` | Write the plan; without it the plan is printed and nothing changes |
|
|
433
|
+
| `--dry-run` | Print what would be written and change nothing |
|
|
434
|
+
|
|
364
435
|
#### `sdxc stats`
|
|
365
436
|
|
|
366
437
|
Count lines of code per kind of code the app layout names, and the test ratio
|
|
@@ -369,6 +440,15 @@ Count lines of code per kind of code the app layout names, and the test ratio
|
|
|
369
440
|
| -------- | ------------------------ |
|
|
370
441
|
| `--json` | Print the counts as JSON |
|
|
371
442
|
|
|
443
|
+
#### `sdxc diagram`
|
|
444
|
+
|
|
445
|
+
Draw the project's layer architecture as Mermaid, or as SVG through @sdxc/diagram
|
|
446
|
+
|
|
447
|
+
| Flag | Does |
|
|
448
|
+
| -------------- | ---------------------------------------------------------------------------------- |
|
|
449
|
+
| `--json` | Print the import graph as JSON instead of Mermaid |
|
|
450
|
+
| `--svg <path>` | Write an SVG drawing to this path (relative to the project root) via @sdxc/diagram |
|
|
451
|
+
|
|
372
452
|
#### `sdxc ui list`
|
|
373
453
|
|
|
374
454
|
Every component, marking copies that are edited or behind
|
package/changelog.jsonl
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
{"release":"2026.9.7","package":"@sdxc/auth","type":"feat","breaking":false,"title":"Take the classes off Remix, with the wiring under remix/","body":"The relying party, resource server, and session read a Request plus one\nAuthSession.Store seam a remix/session Session satisfies as it is, so the\nprotocol classes run under any router. What was rp.scheme and api.scheme\nbecomes rp.renew and api.verifyRequest, and the Remix wiring moves to\n@sdxc/auth/remix/{context,schemes,authorization}: contextOf(ctx) hands a\nroute's context to the three flow methods, sessionScheme and bearerScheme\nbuild the middleware schemes, and createAuthorization moves whole.\n\nValidation reads @remix-run/data-schema directly and remix becomes an\noptional peer dependency. Every consumer is on the adapters; the\nblog-engine call sites landed with the previous commit. ADR-048 records\nthe split."}
|
|
20
20
|
{"release":"2026.9.7","package":"@sdxc/billing","type":"feat","breaking":false,"title":"Record webhook deliveries on the invocation's log","body":"The endpoint writes through @sdxc/logger's currentLog() instead of reading a duck-typed\ncontext.logger: the event type and whether it was handled become fields, a replay or an\nunreadable body warns, and a handler that threw fails the log while the delivery is\nstill acknowledged. The logger option and the WebhookLogger interface are gone (ADR-033)."}
|
|
21
21
|
{"release":"2026.9.7","package":"@sdxc/feed","type":"feat","breaking":false,"title":"Add one feed API over RSS and Atom","body":"A reader is handed a URL by someone who neither knows nor cares which format is\nbehind it. This sniffs the root element, parses with the matching package, and\nnormalizes both into one shape, so a consumer never branches on format.\n\nIt depends on the two parsers rather than re-implementing either. `RSS.fromXML`\nis already the parse-from-an-already-parsed-document seam, so the XML is parsed\nonce and handed to whichever backend the sniff picked, and the RSS package needs\nno change at all.\n\nIt also owns the two capabilities that belong to fetching rather than to either\nformat, and so could live in neither. `fetch` sends stored validators as\npreconditions and reports a 304 through a union discriminated on `notModified`,\nso an unchanged feed costs no parse and no write — and it pointedly sets no cache\ndirective, since asking an origin for a fresh copy is exactly what would stop it\nanswering 304. `discover` follows a page's `<link rel=\"alternate\">` to the feed\nit advertises, resolving against any declared base, and answers from one request\nwhen the URL is already a feed.\n\nSniffing reads the root element, never `Content-Type`: feeds are served as\n`text/xml`, `application/octet-stream` and worse, so the header is not evidence.\nDiscovery accepts only the two syndication media types, because `text/xml` and\n`application/xml` appear on sitemaps and stylesheets.\n\nDates are normalized to `Date`, and an unparseable one reads as absent rather\nthan as an invalid date a consumer has to test for. Nothing is sanitized:\n`contentHtml` holds what the publisher wrote, and escaping it belongs to whatever\nrenders it.\n\nSee docs/adr/ADR-052-feed-facade-package.md"}
|
|
22
|
+
{"release":"2026.9.7","package":"@sdxc/iife","type":"chore","breaking":false,"title":"Drop the arrays and iife helpers","body":"Neither package was ever imported: no file in the repository's history has\ndepended on either, and the two full app rewrites reached for native syntax\nat every opportunity instead. Their exports lose to the expressions they\nwrap, so there is nothing to migrate."}
|
|
22
23
|
{"release":"2026.9.7","package":"@sdxc/jobs","type":"feat","breaking":false,"title":"Record each cron trigger, queue batch, and job run as a wide event","body":"The dispatcher takes the worker's logger and opens a cron log per trigger (with\njobs.enqueued), a queue log per batch (with per-ending jobs.* counters), and a job log\nper message carrying job.name, job.id, job.attempts, job.batch_size, job.ending, and\nthe outcome the ending implies. Refused and dead-lettered messages are job logs too, so\none query over kind: job covers every delivery that did not end well. Handlers read the\njob's log as ctx.log; ctx.logger stays until every handler has moved (ADR-033)."}
|
|
23
24
|
{"release":"2026.9.7","package":"@sdxc/jobs","type":"refactor","breaking":false,"title":"Drop the batched logger now every handler writes to ctx.log","body":"The job context carried a BatchedLogger alongside the log while handlers moved over.\nEvery handler in every app now writes fields and notes to ctx.log, so the shim, its\ninit.logger option, and the per-run flush go away."}
|
|
24
25
|
{"release":"2026.9.7","package":"@sdxc/lazy-route","type":"feat","breaking":false,"title":"Defer a route's module until a request reaches it","body":"`lazy(() => import(\"./bookmarks\"))` maps a route without importing its\ncontroller, so a cold start loads only the modules the routes it actually\nserves need. The stand-in keeps the module's own type, so params, request\ncontext and route/module mismatches are still checked at the map call.\n\nWorks for both handler shapes, since the router picks between them from the\nmap target rather than the module: a single route reads `handler`, a route\nmap reads `actions`. The middleware an action or controller declares is\nassembled after the module loads and runs ahead of the handler, in the order\nthe router would have run it.\n\nValidating a controller's actions against its route map moves from startup\nto the first request to that route, since the actions are not there any\nearlier. See ADR-049."}
|
|
@@ -501,6 +502,7 @@
|
|
|
501
502
|
{"release":"2026.10.2","package":"@sdxc/icalendar","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
502
503
|
{"release":"2026.10.2","package":"@sdxc/icons","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
503
504
|
{"release":"2026.10.2","package":"@sdxc/idempotency","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
505
|
+
{"release":"2026.10.2","package":"@sdxc/iife","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
504
506
|
{"release":"2026.10.2","package":"@sdxc/ip","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
505
507
|
{"release":"2026.10.2","package":"@sdxc/jobs","type":"docs","breaking":false,"title":"Enqueue examples carry a complete payload","body":"Both examples passed a partial payload for a job whose schema needs more\nfields, so copying one produced code that fails the type check the examples\nare there to advertise."}
|
|
506
508
|
{"release":"2026.10.2","package":"@sdxc/jobs","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
@@ -1174,3 +1176,87 @@
|
|
|
1174
1176
|
{"release":"2026.10.21","package":"@sdxc/spec","type":"refactor","breaking":false,"title":"Drop the ADR citation from the Browser Run module comment","body":"The module header already states that the binding is injected so this\npackage never owns the remote browser service. No API change."}
|
|
1175
1177
|
{"release":"2026.10.21","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Animate the Sidebar's collapse in both directions","body":"Before, collapsing a `Sidebar` with `collapsible=\"offcanvas\"` or `\"icon\"`\nleft it at full width: the collapse rules lost to the rail's own size, so\n`inline-size` and the slide-out transform never applied and nothing animated.\nNow the rail shrinks and slides out together when collapsing and back in when\nexpanding, using its existing 200ms transition.\n\nConsumers who worked around it, for example with a negative\n`margin-inline-start` on the collapsed rail, should remove that override, or\nthe rail will be offset twice."}
|
|
1176
1178
|
{"release":"2026.10.21","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Set long-form Typeset body copy at 18px and 20px","body":"`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.\n\nNo 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:\n\n```tsx\nimport { css } from \"remix/component\";\nimport { Typeset } from \"@sdxc/ui\";\n\n<Typeset mix={css({ \"--ui-typeset-size\": \"1rem\" })}>{article}</Typeset>\n```"}
|
|
1179
|
+
{"release":"2026.10.23","package":"@sdxc/billing","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1180
|
+
{"release":"2026.10.23","package":"@sdxc/billing","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1181
|
+
{"release":"2026.10.23","package":"@sdxc/cli","type":"fix","breaking":false,"title":"Satisfy Oxlint shape rules without API changes","body":"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."}
|
|
1182
|
+
{"release":"2026.10.23","package":"@sdxc/cli","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1183
|
+
{"release":"2026.10.23","package":"@sdxc/cli","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1184
|
+
{"release":"2026.10.23","package":"@sdxc/cli","type":"fix","breaking":false,"title":"Print ExecError stderr on command failure","body":"A failed child kept its stderr on the error while the run only printed\nthe exit summary, so CI saw \"exited with 1\" without wrangler or cf's\nauthentication lines. Failure output now includes that stderr.\n\n```ts\n// before: stderr was only \"bunx wrangler … exited with 1\"\n// after: that line, then wrangler's Authentication error body\n```"}
|
|
1185
|
+
{"release":"2026.10.23","package":"@sdxc/codemod","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1186
|
+
{"release":"2026.10.23","package":"@sdxc/codemod","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1187
|
+
{"release":"2026.10.23","package":"@sdxc/cron","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1188
|
+
{"release":"2026.10.23","package":"@sdxc/crypto","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1189
|
+
{"release":"2026.10.23","package":"@sdxc/crypto","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1190
|
+
{"release":"2026.10.23","package":"@sdxc/data-model","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1191
|
+
{"release":"2026.10.23","package":"@sdxc/data-model","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1192
|
+
{"release":"2026.10.23","package":"@sdxc/diagram","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1193
|
+
{"release":"2026.10.23","package":"@sdxc/diagram","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1194
|
+
{"release":"2026.10.23","package":"@sdxc/epub","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1195
|
+
{"release":"2026.10.23","package":"@sdxc/epub","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1196
|
+
{"release":"2026.10.23","package":"@sdxc/feed","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1197
|
+
{"release":"2026.10.23","package":"@sdxc/feed","type":"fix","breaking":false,"title":"Restore author-list typing after nested-ternary rewrite","body":"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."}
|
|
1198
|
+
{"release":"2026.10.23","package":"@sdxc/feed","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1199
|
+
{"release":"2026.10.23","package":"@sdxc/flags","type":"fix","breaking":false,"title":"Satisfy Oxlint shape rules without API changes","body":"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."}
|
|
1200
|
+
{"release":"2026.10.23","package":"@sdxc/flags","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1201
|
+
{"release":"2026.10.23","package":"@sdxc/flags","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1202
|
+
{"release":"2026.10.23","package":"@sdxc/html","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1203
|
+
{"release":"2026.10.23","package":"@sdxc/html","type":"fix","breaking":false,"title":"Type selected option list in embeddedValue","body":"Callers are unaffected. The nested-ternary rewrite left `chosen` as an implicit any[]; it is typed as the option NodeList result so `.map` typechecks."}
|
|
1204
|
+
{"release":"2026.10.23","package":"@sdxc/html","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1205
|
+
{"release":"2026.10.23","package":"@sdxc/iife","type":"feat","breaking":false,"title":"Restore the expression control-flow helper","body":"Import `{ iife }` from `@sdxc/iife` and wrap short statement-only branches\nthat compute one value: `let x = iife(() => { if (a) return b; return c; })`,\nor `await iife(async () => …)` when the callback is async. Prefer that over an\nouter mutable `let` filled by `if`/`else` when rewriting nested ternaries\n(ADR-171, ADR-172)."}
|
|
1206
|
+
{"release":"2026.10.23","package":"@sdxc/json-schema","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1207
|
+
{"release":"2026.10.23","package":"@sdxc/json-schema","type":"fix","breaking":false,"title":"Type nullable schema type list","body":"Callers are unaffected. The nested-ternary rewrite left `types` as an implicit any[]; it is annotated as `JSONSchema.TypeName[]` so `withNull` typechecks."}
|
|
1208
|
+
{"release":"2026.10.23","package":"@sdxc/json-schema","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1209
|
+
{"release":"2026.10.23","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Let sdxc run start a configurable entry module","body":"Projects set run.entry in .config/sdxc.jsonc (default bootstrap/cli.ts)\nso a non-app repo can point sdxc run at cli/index.ts without inventing\na bootstrap/ tree. sdxc deploy uses the same entry. Schema and README\nreference regenerated.\n\nConsumers: leave the default for apps; set \"run\": { \"entry\": \"cli/index.ts\" }\nin .config/sdxc.jsonc when the command line lives elsewhere."}
|
|
1210
|
+
{"release":"2026.10.23","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Add setup, fix, and binding generators with project author credit","body":"`sdxc setup` installs auth, billing and flags from a printed plan (`-y` writes);\n`sdxc fix` repairs commands, `.env.example` secrets, models and emails; `make\nsecret` / `make binding` / `make do` declare Worker bindings. Setup-written\nfiles close their module JSDoc with `@author` / `@copyright` from the project's\n`package.json` author or git `user.name`, the same path `make` stubs use.\n\n```\nsdxc setup auth -y\nsdxc fix env\nsdxc make binding kv CACHE\n```\n\nConsumers must act only to fill the secrets a plan names and map new routes."}
|
|
1211
|
+
{"release":"2026.10.23","package":"@sdxc/kit","type":"fix","breaking":false,"title":"Sync README reference and help snapshot with new commands","body":"Adding setup, fix, and make secret/binding/do left the README command\nreference and the --help snapshot behind the contract. Regenerate with\n`bun run kit:reference` and list the new top-level commands in the help\ntest so CI matches what `createSDXC()` describes.\n\nNo consumer action; docs and test expectations only."}
|
|
1212
|
+
{"release":"2026.10.23","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Add architecture diagram and clean-code doctor checks","body":"`sdxc diagram` prints a Mermaid flowchart of app-layout layer imports\n(and optional SVG via `@sdxc/diagram` / `--json` for agents).\n\n`sdxc doctor` gains `complexity`, `module-size`, `dependencies` and\n`crap` checks — project-level metrics oxlint does not cover. Defaults\n(cyclomatic 4, module 200 lines, CRAP 12) live under\n`doctor.complexity` and are tuned for agent-written code.\n\n```bash\nsdxc diagram\nsdxc diagram --svg architecture.svg\nsdxc doctor --only complexity,dependencies,crap\n```\n\nConfigure thresholds in `.config/sdxc.jsonc` under `doctor.complexity`."}
|
|
1213
|
+
{"release":"2026.10.23","package":"@sdxc/kit","type":"fix","breaking":false,"title":"Give each doctor check its own config group","body":"Split the shared `doctor.complexity` object so `complexity`,\n`module-size` and `crap` each read a sibling group\n(`doctor.complexity`, `doctor.moduleSize`, `doctor.crap`), matching\n`doctor.migrations`. There is no shared clean-code config bucket.\n\n```jsonc\n{\n \"doctor\": {\n \"complexity\": { \"max\": 4 },\n \"moduleSize\": { \"maxLines\": 200 },\n \"crap\": { \"max\": 12, \"coverage\": \"coverage/coverage-final.json\" }\n }\n}\n```"}
|
|
1214
|
+
{"release":"2026.10.23","package":"@sdxc/kit","type":"fix","breaking":false,"title":"Satisfy Oxlint shape rules without API changes","body":"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."}
|
|
1215
|
+
{"release":"2026.10.23","package":"@sdxc/kit","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1216
|
+
{"release":"2026.10.23","package":"@sdxc/kit","type":"fix","breaking":false,"title":"Flatten doctor positive-integer schema nesting","body":"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."}
|
|
1217
|
+
{"release":"2026.10.23","package":"@sdxc/kit","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1218
|
+
{"release":"2026.10.23","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Add fan-out, orphans, duplication and related doctor checks","body":"`sdxc doctor` now warns on fan-out, orphan modules, feature-folder\nscatter, duplicated blocks, bare `throw`, low test/code ratio, and\nsurviving mutants (skip without a report). Each threshold lives under\nits own `doctor.*` group (`testRatio`, `fanOut`, `duplication`,\n`mutation`). ADR-173."}
|
|
1219
|
+
{"release":"2026.10.23","package":"@sdxc/kit","type":"docs","breaking":false,"title":"Drop ADR citation from feature-scatter module comment","body":"Comments state the contract on their own terms; ADR numbers belong under\ndocs/adr/, not in JSDoc."}
|
|
1220
|
+
{"release":"2026.10.23","package":"@sdxc/kit","type":"fix","breaking":false,"title":"Format doctor config leaves under nested-call ceiling","body":"Rebase left packages/kit/src/config.ts unformatted, which failed CI\nbun check. Extract NON_NEGATIVE_INTEGER, INTEGER_AT_LEAST_TWO and\nNON_NEGATIVE_NUMBER beside POSITIVE_INTEGER so the new doctor leaves\nstay under unicorn/max-nested-calls after formatting."}
|
|
1221
|
+
{"release":"2026.10.23","package":"@sdxc/kit","type":"fix","breaking":false,"title":"Surface migrate child stderr when deploy listing fails","body":"`sdxc deploy` wrapped a failed `db migrate --remote --pending` with only\nthe ExecError message, dropping the child's stderr. The failure now\nincludes that detail so a missing D1 permission shows wrangler/cf's\nreason in the deploy log.\n\nBefore: Listing pending migrations … exited with 1\nAfter: the same line plus the child's Authentication error (or similar)\nstderr. No consumer action required beyond reading the clearer log."}
|
|
1222
|
+
{"release":"2026.10.23","package":"@sdxc/mail","type":"fix","breaking":false,"title":"Satisfy Oxlint shape rules without API changes","body":"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."}
|
|
1223
|
+
{"release":"2026.10.23","package":"@sdxc/mail","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1224
|
+
{"release":"2026.10.23","package":"@sdxc/mail","type":"fix","breaking":false,"title":"Narrow failed-preview subject for empty-state title","body":"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."}
|
|
1225
|
+
{"release":"2026.10.23","package":"@sdxc/mail","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1226
|
+
{"release":"2026.10.23","package":"@sdxc/markdown","type":"fix","breaking":false,"title":"Satisfy Oxlint shape rules without API changes","body":"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."}
|
|
1227
|
+
{"release":"2026.10.23","package":"@sdxc/markdown","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1228
|
+
{"release":"2026.10.23","package":"@sdxc/markdown","type":"fix","breaking":false,"title":"Type emphasis nodes before insertAfter","body":"Callers are unaffected. The nested-ternary rewrite widened the emphasis local so `insertAfter` rejected it; the local is typed as Emphasis | Strong | Strikethrough again."}
|
|
1229
|
+
{"release":"2026.10.23","package":"@sdxc/markdown","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1230
|
+
{"release":"2026.10.23","package":"@sdxc/math","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1231
|
+
{"release":"2026.10.23","package":"@sdxc/math","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1232
|
+
{"release":"2026.10.23","package":"@sdxc/messageformat","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1233
|
+
{"release":"2026.10.23","package":"@sdxc/messageformat","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1234
|
+
{"release":"2026.10.23","package":"@sdxc/messaging","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1235
|
+
{"release":"2026.10.23","package":"@sdxc/messaging","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1236
|
+
{"release":"2026.10.23","package":"@sdxc/microformats","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1237
|
+
{"release":"2026.10.23","package":"@sdxc/microformats","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1238
|
+
{"release":"2026.10.23","package":"@sdxc/newsletter","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1239
|
+
{"release":"2026.10.23","package":"@sdxc/newsletter","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1240
|
+
{"release":"2026.10.23","package":"@sdxc/openapi","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1241
|
+
{"release":"2026.10.23","package":"@sdxc/openapi","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1242
|
+
{"release":"2026.10.23","package":"@sdxc/opml","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1243
|
+
{"release":"2026.10.23","package":"@sdxc/png","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1244
|
+
{"release":"2026.10.23","package":"@sdxc/png","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1245
|
+
{"release":"2026.10.23","package":"@sdxc/qr","type":"fix","breaking":false,"title":"Satisfy Oxlint shape rules without API changes","body":"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."}
|
|
1246
|
+
{"release":"2026.10.23","package":"@sdxc/qr","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1247
|
+
{"release":"2026.10.23","package":"@sdxc/qr","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1248
|
+
{"release":"2026.10.23","package":"@sdxc/raster","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1249
|
+
{"release":"2026.10.23","package":"@sdxc/raster","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1250
|
+
{"release":"2026.10.23","package":"@sdxc/sample","type":"fix","breaking":false,"title":"Satisfy Oxlint shape rules without API changes","body":"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."}
|
|
1251
|
+
{"release":"2026.10.23","package":"@sdxc/scim","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1252
|
+
{"release":"2026.10.23","package":"@sdxc/scim","type":"fix","breaking":false,"title":"Type multi-valued patch incoming values","body":"Callers are unaffected. The nested-ternary rewrite left `incoming` as an implicit any[]; it is annotated as `unknown[]` so filter and iteration typecheck."}
|
|
1253
|
+
{"release":"2026.10.23","package":"@sdxc/scim","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1254
|
+
{"release":"2026.10.23","package":"@sdxc/spec","type":"fix","breaking":false,"title":"Satisfy Oxlint shape rules without API changes","body":"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."}
|
|
1255
|
+
{"release":"2026.10.23","package":"@sdxc/spec","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1256
|
+
{"release":"2026.10.23","package":"@sdxc/spec","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1257
|
+
{"release":"2026.10.23","package":"@sdxc/u","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1258
|
+
{"release":"2026.10.23","package":"@sdxc/u","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
|
1259
|
+
{"release":"2026.10.23","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Satisfy Oxlint shape rules without API changes","body":"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."}
|
|
1260
|
+
{"release":"2026.10.23","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Rewrite nested ternaries for eslint/no-nested-ternary","body":"No consumer effect: nested `? :` chains are rewritten to `if`/`else` or named locals so `eslint/no-nested-ternary` can stay denied without suppressions."}
|
|
1261
|
+
{"release":"2026.10.23","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Narrow Attachment.Trigger inferred role","body":"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."}
|
|
1262
|
+
{"release":"2026.10.23","package":"@sdxc/ui","type":"refactor","breaking":false,"title":"Prefer iife for expression-shaped branches","body":"Call sites that used an outer `let` filled by `if`/`else` after the nested-ternary\nrewrite now use `iife` so the binding stays an expression. Consumers take\n`@sdxc/iife` as a workspace dependency; runtime behavior is unchanged."}
|
package/config.schema.json
CHANGED
|
@@ -112,6 +112,123 @@
|
|
|
112
112
|
"default": {
|
|
113
113
|
"accept": []
|
|
114
114
|
}
|
|
115
|
+
},
|
|
116
|
+
"complexity": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {
|
|
119
|
+
"max": {
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"minimum": 1,
|
|
122
|
+
"default": 4,
|
|
123
|
+
"description": "Maximum cyclomatic complexity per function; the complexity check warns above it"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"additionalProperties": false,
|
|
127
|
+
"default": {
|
|
128
|
+
"max": 4
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"moduleSize": {
|
|
132
|
+
"type": "object",
|
|
133
|
+
"properties": {
|
|
134
|
+
"maxLines": {
|
|
135
|
+
"type": "integer",
|
|
136
|
+
"minimum": 1,
|
|
137
|
+
"default": 200,
|
|
138
|
+
"description": "Maximum code lines per module; the module-size check warns above it"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"default": {
|
|
143
|
+
"maxLines": 200
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"crap": {
|
|
147
|
+
"type": "object",
|
|
148
|
+
"properties": {
|
|
149
|
+
"max": {
|
|
150
|
+
"type": "integer",
|
|
151
|
+
"minimum": 1,
|
|
152
|
+
"default": 12,
|
|
153
|
+
"description": "Maximum CRAP score per function; the crap check warns above it"
|
|
154
|
+
},
|
|
155
|
+
"coverage": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"default": "coverage/coverage-final.json",
|
|
158
|
+
"description": "Istanbul coverage-final.json the crap check reads, relative to the project root"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"additionalProperties": false,
|
|
162
|
+
"default": {
|
|
163
|
+
"max": 12,
|
|
164
|
+
"coverage": "coverage/coverage-final.json"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"testRatio": {
|
|
168
|
+
"type": "object",
|
|
169
|
+
"properties": {
|
|
170
|
+
"min": {
|
|
171
|
+
"type": "number",
|
|
172
|
+
"minimum": 0,
|
|
173
|
+
"default": 0.3,
|
|
174
|
+
"description": "Minimum tests/code ratio from sdxc stats; the test-ratio check warns below it"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"additionalProperties": false,
|
|
178
|
+
"default": {
|
|
179
|
+
"min": 0.3
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"fanOut": {
|
|
183
|
+
"type": "object",
|
|
184
|
+
"properties": {
|
|
185
|
+
"max": {
|
|
186
|
+
"type": "integer",
|
|
187
|
+
"minimum": 1,
|
|
188
|
+
"default": 15,
|
|
189
|
+
"description": "Maximum distinct modules one file may import; the fan-out check warns above it"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"additionalProperties": false,
|
|
193
|
+
"default": {
|
|
194
|
+
"max": 15
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"duplication": {
|
|
198
|
+
"type": "object",
|
|
199
|
+
"properties": {
|
|
200
|
+
"minLines": {
|
|
201
|
+
"type": "integer",
|
|
202
|
+
"minimum": 2,
|
|
203
|
+
"default": 8,
|
|
204
|
+
"description": "Minimum consecutive code lines that count as a duplicated block"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"additionalProperties": false,
|
|
208
|
+
"default": {
|
|
209
|
+
"minLines": 8
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"mutation": {
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"report": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"default": "reports/mutation/mutation.json",
|
|
218
|
+
"description": "Mutation report JSON the mutation check reads, relative to the project root"
|
|
219
|
+
},
|
|
220
|
+
"maxSurvived": {
|
|
221
|
+
"type": "integer",
|
|
222
|
+
"minimum": 0,
|
|
223
|
+
"default": 0,
|
|
224
|
+
"description": "Maximum surviving mutants the mutation check allows"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"additionalProperties": false,
|
|
228
|
+
"default": {
|
|
229
|
+
"report": "reports/mutation/mutation.json",
|
|
230
|
+
"maxSurvived": 0
|
|
231
|
+
}
|
|
115
232
|
}
|
|
116
233
|
},
|
|
117
234
|
"additionalProperties": false,
|
|
@@ -119,9 +236,46 @@
|
|
|
119
236
|
"checks": ".config/sdxc/checks",
|
|
120
237
|
"migrations": {
|
|
121
238
|
"accept": []
|
|
239
|
+
},
|
|
240
|
+
"complexity": {
|
|
241
|
+
"max": 4
|
|
242
|
+
},
|
|
243
|
+
"moduleSize": {
|
|
244
|
+
"maxLines": 200
|
|
245
|
+
},
|
|
246
|
+
"crap": {
|
|
247
|
+
"max": 12,
|
|
248
|
+
"coverage": "coverage/coverage-final.json"
|
|
249
|
+
},
|
|
250
|
+
"testRatio": {
|
|
251
|
+
"min": 0.3
|
|
252
|
+
},
|
|
253
|
+
"fanOut": {
|
|
254
|
+
"max": 15
|
|
255
|
+
},
|
|
256
|
+
"duplication": {
|
|
257
|
+
"minLines": 8
|
|
258
|
+
},
|
|
259
|
+
"mutation": {
|
|
260
|
+
"report": "reports/mutation/mutation.json",
|
|
261
|
+
"maxSurvived": 0
|
|
122
262
|
}
|
|
123
263
|
}
|
|
124
264
|
},
|
|
265
|
+
"run": {
|
|
266
|
+
"type": "object",
|
|
267
|
+
"properties": {
|
|
268
|
+
"entry": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"default": "bootstrap/cli.ts",
|
|
271
|
+
"description": "Module `sdxc run` starts, relative to the project root; apps keep the default"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"additionalProperties": false,
|
|
275
|
+
"default": {
|
|
276
|
+
"entry": "bootstrap/cli.ts"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
125
279
|
"format": {
|
|
126
280
|
"type": "array",
|
|
127
281
|
"items": {
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cyclomatic complexity per function, from an oxc AST walk: each decision point adds one to a
|
|
3
|
+
* base of one, so a straight-line function scores 1 and an `if` raises it to 2. Doctor and CRAP
|
|
4
|
+
* both read this so the same function never gets two answers.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
/** One function (or method) and the cyclomatic complexity of its body. */
|
|
10
|
+
export interface FunctionComplexity {
|
|
11
|
+
/** Human-readable name: `name`, `Class.method`, or `(anonymous)`. */
|
|
12
|
+
name: string;
|
|
13
|
+
/** 1-based line the function starts on. */
|
|
14
|
+
line: number;
|
|
15
|
+
/** McCabe cyclomatic complexity of the function body. */
|
|
16
|
+
complexity: number;
|
|
17
|
+
}
|
|
18
|
+
/** A node the walker recognises as holding a nested AST. */
|
|
19
|
+
interface AstNode {
|
|
20
|
+
type: string;
|
|
21
|
+
start?: number;
|
|
22
|
+
end?: number;
|
|
23
|
+
name?: string;
|
|
24
|
+
key?: AstNode | null;
|
|
25
|
+
id?: AstNode | null;
|
|
26
|
+
value?: AstNode | null;
|
|
27
|
+
body?: AstNode | AstNode[] | null;
|
|
28
|
+
params?: AstNode[];
|
|
29
|
+
operator?: string;
|
|
30
|
+
test?: AstNode | null;
|
|
31
|
+
consequent?: AstNode | null;
|
|
32
|
+
alternate?: AstNode | null;
|
|
33
|
+
expression?: AstNode | null;
|
|
34
|
+
callee?: AstNode | null;
|
|
35
|
+
object?: AstNode | null;
|
|
36
|
+
property?: AstNode | null;
|
|
37
|
+
left?: AstNode | null;
|
|
38
|
+
right?: AstNode | null;
|
|
39
|
+
argument?: AstNode | null;
|
|
40
|
+
arguments?: AstNode[];
|
|
41
|
+
elements?: Array<AstNode | null>;
|
|
42
|
+
properties?: AstNode[];
|
|
43
|
+
declarations?: AstNode[];
|
|
44
|
+
init?: AstNode | null;
|
|
45
|
+
update?: AstNode | null;
|
|
46
|
+
discriminant?: AstNode | null;
|
|
47
|
+
cases?: AstNode[];
|
|
48
|
+
block?: AstNode | null;
|
|
49
|
+
handler?: AstNode | null;
|
|
50
|
+
finalizer?: AstNode | null;
|
|
51
|
+
superClass?: AstNode | null;
|
|
52
|
+
declaration?: AstNode | null;
|
|
53
|
+
specifiers?: AstNode[];
|
|
54
|
+
source?: AstNode | null;
|
|
55
|
+
kind?: string;
|
|
56
|
+
static?: boolean;
|
|
57
|
+
computed?: boolean;
|
|
58
|
+
[key: string]: unknown;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Every function in `source` with its cyclomatic complexity. A file oxc cannot parse yields an
|
|
62
|
+
* empty list so the type checker, not doctor, names the syntax error.
|
|
63
|
+
*
|
|
64
|
+
* @param filename - Path reported for language detection (`.ts` / `.tsx`).
|
|
65
|
+
* @param source - Module text.
|
|
66
|
+
*/
|
|
67
|
+
export declare function measureComplexity(filename: string, source: string): FunctionComplexity[];
|
|
68
|
+
/**
|
|
69
|
+
* McCabe complexity of `node`'s own body: nested functions contribute their entry edge only
|
|
70
|
+
* through separate records, not through this count.
|
|
71
|
+
*/
|
|
72
|
+
export declare function complexityOf(node: AstNode): number;
|
|
73
|
+
export {};
|