Skip to content

chore(deps): update dependencies (Vue 3.5.40, cookie 2, webfont 12, execa 10, magic-string 1) - #175

Merged
dadajam4 merged 13 commits into
mainfrom
chore/deps-maintenance-2026-07
Jul 28, 2026
Merged

dadajam4 merged 13 commits into
mainfrom
chore/deps-maintenance-2026-07

Conversation

@dadajam4

@dadajam4 dadajam4 commented Jul 28, 2026 •

Copy link
Copy Markdown
Owner

📝 Description

Routine dependency maintenance, plus the defects it surfaced along the way. The dependency work is split one package per commit so each can be reviewed — and reverted — on its own.

The template asks to keep a PR to one type. This one is chore at heart, but four commits are fix/feat/test: each was reached through a dependency update and would not stand alone (the vot fix is what makes Vue 3.5.40 usable at all, and the plugboy fixes are what made the output comparisons trustworthy). Splitting them out would separate a change from the evidence that justifies it. Happy to break them up if preferred.

⛳️ Current behavior

  • Vue is pinned at 3.5.38 and a batch of minor/patch updates is pending.
  • @fastkit/cookies delete() always throws RangeError: Maximum call stack size exceeded, and set() appends a duplicate Set-Cookie instead of replacing an existing one.
  • Building identical sources twice produces different output: five .css files and packages/vui-wysiwyg/package.json vary between runs, which changes the docs asset hashes and every generated HTML file.
  • The cache-control expiration tests race the wall clock and fail intermittently.

🚀 New behavior

Dependency updates

Package Notes
Vue family 3.5.38 → 3.5.40 Needs the vot fix below
cookie 1.1.1 → 2.0.1 @fastkit/cookies
webfont 11.2.26 → 12.5.0 @fastkit/icon-font-gen, plus otf support
execa 9.6.1 → 10.0.0 @fastkit/node-util, @fastkit/plugboy
magic-string 0.30.21 → 1.1.0 @fastkit/plugboy, @fastkit/vue-tiny-meta
vue-router dedupe on 5.2.0 @fastkit/vite-plugin-vui was stranded on 5.1.0
toolchain vite 8.1.5, eslint 10.8.0, tsdown 0.22.14, tiptap 3.29.0, prettier 3.9.6, vitest 4.1.10, …

The bulk update had flattened peerDependencies ranges into exact pins — 25 packages would have shipped vue: "3.5.38" instead of ^3.5.0, forcing every consumer onto one exact Vue patch. Those ranges are restored.

Fixes surfaced by the updates

  • fix(vot) — Vue 3.5.40 removed the vue peerDependency from @vue/server-renderer and made @vue/runtime-dom a plain dependency (vuejs/core#15063). vot's SSR build keeps vue external while bundling @vue/*, so server-renderer started carrying its own runtime copy — two Vue instances in one process, and the docs SSG prerender died on a null currentRenderingInstance. A vite:vot-vue-runtime-dom plugin sends that import back to vue, restoring the pre-3.5.40 topology. No consumer-side dependency needed.
  • fix(cookies) — set() and delete() called each other in a loop, so every delete() blew the stack; update() wrote a deleted key back as ''; and areCookiesEqual() compared the cookie value, so re-setting a name appended a second Set-Cookie. All three predate the cookie 2.x migration and were found by writing the package's first test suite (46 cases).
  • fix(plugboy-sass-plugin) — rollup-plugin-sass joins stylesheets in transform-completion order, which rolldown runs concurrently. CSS is now joined in the bundle's module execution order, which is already stable.
  • fix(plugboy) — exposeEntries() used an unsorted glob result, and that order became the key order of the generated exports / typesVersions.
  • test(cache-control) — the expiration tests now drive a fake clock instead of waiting on the real one.

💣 Is this a breaking change (Yes/No):

No for APIs, but three things consumers can observe:

  1. Node floor rises. webfont 12 declares engines.node >= 24.14.0 and cookie 2 declares >= 22, inherited by @fastkit/icon-font-gen and @fastkit/cookies. The repo already requires >= 24.16.0.
  2. @fastkit/cookies behaviour changes — delete() starts working, and set() stops emitting a duplicate Set-Cookie for a name that is already present.
  3. CSS rule order changes for @fastkit/vui, vui-wysiwyg, vue-stack, vue-loading and vue-scroller. Rule order is cascade order, but it was previously random per build, so any fixed order is an improvement. No rules are added, removed or rewritten.

@fastkit/icon-font-gen gains otf as a selectable format. formats still defaults to ['woff2'], so existing configurations emit exactly the same files.

📦 Release scope

60 packages: 1 minor (@fastkit/cookies), the rest patch, no major.

Most of that is not from the source changes above. tsdown 0.22.3 → 0.22.14 (rolldown 1.1.3 → 1.2.0) alters codegen and declaration printing, so packages whose sources are untouched still emit different files. Diffing every dist file against main — built twice per side, so the known non-reproducible declaration output is filtered out rather than mistaken for a change — 56 packages differ across 59 .d.mts, 26 .map, 18 .mjs and 1 .css file, all incidental. Example, from @fastkit/rules:

-  path: isArray ? Number(_path) : _path
+  const path = isArray ? Number(_path) : _path;   // …then `path`

The first pass of changesets covered only the 15 packages with deliberate changes, which would have left 42 rebuilt packages unreleased — and their output would then have ridden along unannounced in whatever release touched them next. toolchain-rebuild.md covers them, following the precedent of the tsup → tsdown migration release.

@fastkit/icon-font-gen is a patch despite adding otf. @fastkit/vite-plugin-vui declares it as a peer dependency, so a minor moves it outside the published ^0.16.x range and changesets then forces a major release of that package. Declaring minor on vite-plugin-vui does not help — changesets takes the larger of the declared and the cascaded bump. Nothing is removed or renamed and formats behaves identically unless otf is requested, so staying in range was the less disruptive trade. Happy to split otf into its own minor PR instead if you would rather keep the semver strict.

📝 Additional Information

Verification. Every commit was checked with pnpm build:force, pnpm build:docs, typecheck, test and lint. Beyond that, where a change could silently alter output:

  • Vue 3.5.40 + vot fix — 196/196 generated docs pages are byte-identical to the 3.5.39 baseline, and the SSR bundle keeps the same topology (vue external, no duplicated runtime chunks). Dev SSR verified separately.
  • cookie 2.x — serialization compared against 1.1.1 across the attribute matrix and a real Set-Cookie round-trip; identical in every case, including the TypeError paths.
  • webfont 12 — the docs icon font regenerated under 11.2.26 and 12.5.0 produces byte-identical .css, .ts and .woff2 (matching SHA-256, including the 402 kB woff2).
  • execa 10 / magic-string 1 — neither call site is reachable from this repo's own build, so both were exercised directly: runTsc()'s exact invocation shape against execa 10, and both MagicString usage shapes compared between versions (identical code and source maps).
  • Reproducibility — building four times and diffing all 370 dist files: the five unstable CSS outputs and the package.json churn are gone. Seven .d.mts files still vary; that comes from how TypeScript serializes inferred types and is left alone.
  • Flaky test — 30 consecutive runs of cache-control pass, where the previous suite failed once in 30. Runtime went from 1.14s to 0.13s.

Not included, for follow-up

  • typescript 6 → 7, @types/node 24 → 26, express 4 → 5 — each deserves its own PR. rollup-plugin-sass 1.16.0-rc.1 is a pre-release and was skipped.
  • vue is declared in 51 places; pnpm catalogs would remove that duplication and prevent the kind of drift vue-router hit here.
  • The remaining .d.mts non-determinism.

🤖 Generated with Claude Code

dadajam4 and others added 13 commits July 28, 2026 14:35
Vue 3.5.40 removed the `vue` peerDependency from @vue/server-renderer and
made @vue/runtime-dom a plain dependency instead (vuejs/core#15063). vot's
SSR build keeps `vue` external while bundling @vue/*, so server-renderer
started pulling in its own copy of the runtime, leaving two Vue instances in
one process. Rendering then failed with `resolveDirective can only be used in
render() or setup()` warnings followed by `TypeError: Cannot read properties
of null (reading 'ce')`.

Add a `vite:vot-vue-runtime-dom` plugin that redirects @vue/runtime-dom back
to `vue` during SSR resolution, restoring the topology Vue itself relied on up
to 3.5.39. `vue` re-exports every symbol server-renderer takes from
@vue/runtime-dom, so no additional dependency is needed on the consumer side.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Routine maintenance bump across the workspace (vite 8.1.5, eslint 10.8.0,
tsdown 0.22.14, tiptap 3.29.0, prettier 3.9.6, vitest 4.1.10, and others),
plus the Vue family moving from 3.5.38 to 3.5.40 in the workspace overrides.

Restore the ranges the bulk update had flattened into exact pins. Published
peerDependencies keep their deliberately loose `vue: ^3.5.0` and
`vue-router: ^4.4.0 || ^5.0.0` ranges rather than being locked to a single
patch, which would have forced every consumer onto one exact Vue release.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@fastkit/vite-plugin-vui was the only package carrying its peerDependencies
range `^4.4.0 || ^5.0.0` in devDependencies as well, so its resolution stayed
on 5.1.0 while every other package moved to 5.2.0 — two copies of a singleton
library in the workspace.

Align it with the other ten Vue packages (`devDependencies: ^5.2.0`,
`peerDependencies: ^4.4.0 || ^5.0.0`), which leaves a single vue-router in the
lockfile. The published peer range is unchanged, so vue-router 4 remains
supported for consumers.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
cookie 2 removed the `parse` / `serialize` aliases and the
`stringifySetCookie(name, value, options)` overload, leaving object mode as the
only signature and moving `encode` out of the cookie attributes into a separate
argument.

Move the call sites onto `parseCookie` / `stringifySetCookie` behind a small
`serializeCookie` helper that splits `encode` back out of `SerializeOptions`,
so the internal call shape stays unchanged. Output was checked against
cookie 1.1.1 across the attribute matrix — path/httpOnly/secure, maxAge,
sameSite (string, boolean and none), domain, expires, partitioned, priority,
custom and default encode, plus the invalid-value TypeError paths — and is
identical in every case.

The public API does not change: the re-exported `ParseOptions` and
`SerializeOptions` types are identical between cookie 1.1.1 and 2.0.1.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Follow-up to 56a10c7. vite-plugin-vui mirrored its peerDependencies ranges
into devDependencies for both `vue` and `vue-router`, and 56a10c7 moved only
vue-router onto the base form used by the other ten Vue packages. Bring `vue`
along so the package is internally consistent again.

Resolution is unaffected — the workspace overrides already rewrite the
specifier to 3.5.40 — so this only makes the declaration match reality. It also
retires the outlier the overrides comment used as its example; reword that
comment around the reason the pin is still needed, namely that the internal
@vue/* packages are never declared directly and so cannot be held together any
other way.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Add the first test suite for @fastkit/cookies, prompted by the cookie 2.x
migration in 9688456 landing without one. Writing it surfaced three defects,
all predating that migration.

- set() and delete() called each other in a loop: set() routed an empty value to
  delete(), and delete() re-entered set() with ''. Every delete() therefore died
  with RangeError: Maximum call stack size exceeded. Move the header-writing
  logic into a private write() that both entry points call, and forward options
  from set() so deleting a cookie scoped by path/domain targets the right one.
- update() finished with Object.assign(this.bucket, cookies), which wrote the
  raw value back after the loop above had already deleted the key, so a removed
  cookie reappeared in the bucket as ''. The loop already maintains the bucket.
- areCookiesEqual() compared the value, so re-setting an existing name appended
  a second Set-Cookie rather than replacing the stale one. Cookies are
  overwritten by key and attributes, so the value is now excluded. sameSite is
  normalized on both sides too, since one side is a parsed header and the other
  comes from createCookie(), which defaults it — otherwise anything set without
  an explicit sameSite still duplicated.

46 tests cover parse/get/set/delete, the re-serialize path, change events and
the serializeCookie/createCookie/areCookiesEqual helpers.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
webfont 12 added an `exports` map that only publishes the package root, so the
deep `webfont/dist/src/types/OptionsBase` import `IconFontFormat` was derived
from no longer resolves, and `OptionsBase` is not part of the public type
surface. Derive the union from the exported `webfont` function's signature
instead, which drops the dependency on webfont's internal dist layout.

webfont 12 also adds `otf` to its format union, so expose it as a selectable
format mapped to CSS `format("opentype")`. `formats` still defaults to
`['woff2']`, so nothing new is emitted unless a configuration asks for it.

Output is unchanged: regenerating the docs icon font under 11.2.26 and 12.5.0
produces byte-identical `.css`, `.ts` and `.woff2` (matching SHA-256 for all
three, including the 402 kB woff2).

webfont 12 raises its Node floor from >=12.0.0 to >=24.14.0, which consumers of
this package inherit.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Both packages depend on execa, so they move together rather than leaving two
majors installed side by side. pnpm's interactive updater collapses them into a
single row showing only @fastkit/node-util; `pnpm outdated -r execa` lists both.

No code changes were needed. All three call sites use the plain
execa(file, args, options) form and either await completion or read stdout /
stderr, so none of the removals apply: execaCommand() / execaCommandSync(), the
stdio: [..., 'ipc'] syntax, and the ChildProcess methods that moved behind
subprocess.nodeChildProcess are unused, as is the input / inputFile change.

Verified beyond the type checker, since neither call site is covered by tests:

- node-util: detectPackageManager() against the built dist returns "pnpm",
  exercising `execa(pm, ['--version'])` and the `res.stdout` string read.
- plugboy: runTsc()'s invocation is not reachable from this repo's own build
  (no workspace sets dts.inline or a function dts.compiler), so its exact shape
  — args that each embed a space, combined with shell: true and
  stdio: 'inherit' — was reproduced against execa 10 on a scratch TypeScript
  project. The shell command is assembled identically and declarations are
  emitted; a failing compile surfaces as ExecaError with exitCode 2, which is
  what runTsc's catch relies on.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Both packages depend on magic-string, so they move together rather than leaving
two majors installed. pnpm's interactive updater collapses them into a single
row showing only @fastkit/plugboy; `pnpm outdated -r magic-string` lists both.

magic-string 1.0.0 is a pure-ESM release: the CJS, UMD and IIFE builds are gone
and the declarations are generated from its TypeScript source. The API is
unchanged and `MagicString` is still the default export, and both packages
already ship ESM only, so no code changes were needed. plugboy also keeps
magic-string in `deps.neverBundle`, so it stays a runtime import — fine for an
ESM-only build.

Only append-style operations are used (appendLeft in plugboy's env plugin,
append in vue-tiny-meta's Vite plugin, each followed by toString() and
generateMap({hires: true})), so the 1.x fixes around replacement trimming and
zero-length range moves do not apply. Both call shapes were run against 0.30.21
and 1.1.0 and produce identical code and identical source maps.

Neither call site is reachable from this repo's own build — docs has
ViteVueTinyMeta commented out — so the plugboy side was additionally confirmed
through dist output: vot.mjs and vue-form-control.mjs, the two bundles the env
plugin rewrites, are unchanged, and all 132 package .mjs outputs are stable
across repeated builds.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
rollup-plugin-sass appends each stylesheet to a flat array from its `transform`
hook and joins that array as-is. rolldown runs `transform` concurrently, so the
array ended up in whatever order the transforms happened to finish: building
identical sources twice produced CSS with the rule blocks in a different order,
and that order is the cascade order. Three builds of this repo produced three
different vui.css files, which in turn changed the docs asset hashes and every
generated HTML file.

Join the collected entries in the bundle's module execution order instead, which
is already stable — the JS bundles were byte-identical across runs all along.
Every stylesheet is a module in the graph, confirmed by instrumenting the plugin,
so the order is fully determined; entries the graph does not account for keep
their collected order, after the ones that could be placed.

Only the order changes. Instrumenting the build showed, for all five affected
packages, an unchanged byte length and a set of rule blocks that is an exact
permutation of the previous output.

Verified by building four times and comparing all 370 dist files: the five CSS
outputs that used to vary (vui, vui-wysiwyg, vue-stack, vue-loading,
vue-scroller) are now stable. Seven .d.mts files still vary — that is a separate
problem in how TypeScript serializes inferred types, not addressed here.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
glob makes no ordering guarantee, and the insertion order of the entries
exposeEntries() builds becomes the key order of the generated exports and
typesVersions. Building identical sources therefore rewrote the workspace's
package.json on an arbitrary subset of builds: across seven runs of this repo it
flipped between two orderings, dirtying the working tree roughly every other
build and forcing the churn to be discarded by hand before every commit.

Sort the glob result so the generated key order is fixed. @fastkit/vui-wysiwyg is
the only workspace using exposeEntries(), and its package.json is committed here
in the new sorted order.

Verified by rebuilding five times: the file no longer changes. With this and
54cf464, the only outputs that still vary between builds are seven .d.mts
files, which come from how TypeScript serializes inferred types.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The three expiration tests raced the wall clock. Each waited `ttl * 500`ms,
asserted the entry was still cached, waited the rest of the TTL and asserted it
was gone — leaving a 1ms margin, and in memory.spec.ts and controller.spec.ts the
eviction timer was even started by an *earlier* `it`, so anything slow in between
made the first assertion fail against an already-expired entry. Running the suite
30 times reproduced a failure once.

Drive the clock instead of waiting on it:

- Move expiry into its own describe per file, self-contained, so no eviction
  timer is shared across `it` blocks. The remaining `basic operation` blocks use
  a TTL that cannot fire mid-suite (none at all for the storages, 60s for the
  controller), so they no longer race an eviction either.
- Fake only `setTimeout` / `clearTimeout` / `Date`, the APIs expiry actually
  uses. Vitest's default also fakes `setImmediate`, which would break the real
  filesystem callbacks FileCacheStorage depends on.
- Assert both sides of the boundary — still cached at `ttl - 1`ms, gone at `ttl`.

FileCacheStorage needed one extra step: its scheduled eviction unlinks the file
without the storage awaiting it, so the timer firing does not mean the file is
gone. The test now yields to the event loop until the read comes back empty,
which settles on I/O completion rather than on elapsed time.

30 consecutive runs pass, and the suite went from 1.14s to 0.13s (3.03s to 22ms
of test time). Test-only change; nothing in dist moves, so there is no changeset.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Auditing the release plan against the actual output showed 42 published packages
whose dist changes on this branch but which no changeset would have released.
The cause is the toolchain, not their sources: tsdown 0.22.3 → 0.22.14 (rolldown
1.1.3 → 1.2.0) alters codegen and declaration printing, so packages with
untouched sources still emit different files — rolldown hoists some expressions
into local bindings, and declaration output wraps lines differently.

Comparing every dist file against main, built twice per side so the known
non-reproducible declaration output could be filtered out rather than mistaken
for a change: 56 packages differ across 59 .d.mts, 26 .map, 18 .mjs and 1 .css
file, none of them functional. Add a patch changeset covering the 46 that were
not otherwise accounted for — including the handful whose dependency range was
refreshed within the same major (fs-extra, typescript-eslint, eslint-plugin-vue,
@vanilla-extract/rollup-plugin), which does not change resolution for anyone.

This follows the precedent set by the tsup → tsdown migration, where every
rebuilt package was released together so incidental output differences are
versioned explicitly instead of riding along unannounced in a later release.

Also drop @fastkit/icon-font-gen from minor to patch. It declares no breaking
change — `otf` is added and nothing is removed — but a minor moves it outside the
published `^0.16.x` range that @fastkit/vite-plugin-vui declares as a peer, and
changesets then forces a major release of that package. Declaring minor on
vite-plugin-vui does not prevent it; changesets takes the larger of the declared
and the cascaded bump. Keeping icon-font-gen in range avoids a major that no
consumer would recognise, and the changeset records why.

Release plan is now 60 packages: 1 minor (@fastkit/cookies), the rest patch, no
major.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@changeset-bot

changeset-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b8b051d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 60 packages
Name Type
@fastkit/cookies Minor
@fastkit/node-util Patch
@fastkit/plugboy Patch
@fastkit/icon-font-gen Patch
@fastkit/vue-tiny-meta Patch
@fastkit/vui-wysiwyg Patch
@fastkit/plugboy-sass-plugin Patch
@fastkit/vui Patch
@fastkit/vue-stack Patch
@fastkit/vue-loading Patch
@fastkit/vue-scroller Patch
@fastkit/async-control Patch
@fastkit/cache-control Patch
@fastkit/catcher Patch
@fastkit/color Patch
@fastkit/color-scheme Patch
@fastkit/color-scheme-gen Patch
@fastkit/eslint-config Patch
@fastkit/eslint-config-vue Patch
@fastkit/ev Patch
@fastkit/hashed-sync Patch
@fastkit/helpers Patch
@fastkit/i18n Patch
@fastkit/icon-font Patch
@fastkit/media-match Patch
@fastkit/media-match-gen Patch
@fastkit/nodepack Patch
@fastkit/object-path Patch
@fastkit/plugboy-vanilla-extract-plugin Patch
@fastkit/plugboy-vue-jsx-plugin Patch
@fastkit/plugboy-vue-plugin Patch
@fastkit/rules Patch
@fastkit/scroller Patch
@fastkit/sprite-images Patch
@fastkit/tiny-logger Patch
@fastkit/ts-tiny-meta Patch
@fastkit/universal-logger Patch
@fastkit/vanilla-extract-utils Patch
@fastkit/vite-plugin-vui Patch
@fastkit/visibility Patch
@fastkit/vot-i18n Patch
@fastkit/vue-action Patch
@fastkit/vue-app-layout Patch
@fastkit/vue-body-scroll-lock Patch
@fastkit/vue-click-outside Patch
@fastkit/vue-color-scheme Patch
@fastkit/vue-disabled-reason Patch
@fastkit/vue-form-control Patch
@fastkit/vue-i18n Patch
@fastkit/vue-keyboard Patch
@fastkit/vue-location Patch
@fastkit/vue-media-match Patch
@fastkit/vue-resize Patch
@fastkit/vue-scoped-loading Patch
@fastkit/vue-sortable Patch
@fastkit/vue-transitions Patch
@fastkit/vue-utils Patch
@fastkit/vue-visibility Patch
@fastkit/vot Patch
@fastkit/vue-page Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dadajam4
dadajam4 merged commit 05d8bb4 into main Jul 28, 2026
1 check passed
@dadajam4
dadajam4 deleted the chore/deps-maintenance-2026-07 branch July 28, 2026 13:01
dadajam4 added a commit that referenced this pull request Jul 28, 2026
…dency (#177)

* fix(vue-app-layout): declare the @fastkit/vanilla-extract-utils dependency

`src/styles/layers.css.ts` imports `@fastkit/vanilla-extract-utils`, but the
package never declared it — it resolved only through the root `node_modules`,
where the module is hoisted as a workspace-level devDependency.

That hid the import from turbo. `build` is ordered by `dependsOn: ["^build"]`,
which walks declared workspace dependencies, so turbo had no reason to build
@fastkit/vanilla-extract-utils first and the two could run concurrently. Whenever
its `dist` did not happen to exist yet, vue-app-layout failed to build with
`Could not resolve "@fastkit/vanilla-extract-utils"`.

Nothing surfaced it until now because a warm `dist` masks it. #175 changed the
lockfile, which invalidated the turbo cache, so the release run did a fully cold
build and hit the race — the "Build docs" step failed there. The import itself
dates back to #31, so this is long-standing.

Declared as a devDependency: `.css.ts` is evaluated at build time and compiles
away, and the built `dist` contains no reference to the module, so consumers
never need it.

Reproduced by removing `packages/vanilla-extract-utils/dist` and building only
@fastkit/vue-app-layout — it failed before and now builds 14 tasks in dependency
order. Also verified against CI's conditions: every `dist` plus the turbo cache
removed, then `pnpm build:docs` (52/52).

`pnpm audit:deps` did not catch this by design — it audits imports that survive
into `dist`, which is what breaks consumers. This one disappears at build time
and only breaks the build itself.

No changeset: @fastkit/vue-app-layout is already scheduled for a patch in the
pending release, and a devDependency is inert for consumers.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* docs(deps): scope root-aggregation to deps every package uses

The policy listed @fastkit/vanilla-extract-utils among the root-aggregated dev
toolchain with "do not declare it per package", which the preceding commit
contradicts. Resolve it in favour of declaring, and record why.

Root-aggregation exists to keep a dependency that every package uses out of
60-odd package.json files. It cannot express build order, and for a workspace
package that matters: turbo orders `build` by walking declared workspace
dependencies, so an undeclared one has no edge and its dist may not exist yet
when the dependent builds. @fastkit/plugboy gets away with it only because every
package builds with it, so the `build:plugboy` phase handles ordering once.

Drop @fastkit/vanilla-extract-utils from that list, note the limit of
root-aggregation in the decision guide, and add a "Workspace build-time helpers"
section covering the general case — *.css.ts helpers, ./plugboy-dts-preserve
subpaths, codegen helpers.

The file is not prettier-clean on main and `lint` does not cover docs markdown,
so it is left as-is apart from these edits rather than reformatted, to keep the
diff readable.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant