Repository navigation
chore(deps): update dependencies (Vue 3.5.40, cookie 2, webfont 12, execa 10, magic-string 1) - #175
Merged
Merged
Conversation
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 detectedLatest commit: b8b051d The changes in this PR will be included in the next version bump. This PR includes changesets to release 60 packages
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
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 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
choreat heart, but four commits arefix/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
@fastkit/cookiesdelete()always throwsRangeError: Maximum call stack size exceeded, andset()appends a duplicateSet-Cookieinstead of replacing an existing one..cssfiles andpackages/vui-wysiwyg/package.jsonvary between runs, which changes the docs asset hashes and every generated HTML file.cache-controlexpiration tests race the wall clock and fail intermittently.🚀 New behavior
Dependency updates
cookie@fastkit/cookieswebfont@fastkit/icon-font-gen, plusotfsupportexeca@fastkit/node-util,@fastkit/plugboymagic-string@fastkit/plugboy,@fastkit/vue-tiny-metavue-router@fastkit/vite-plugin-vuiwas stranded on 5.1.0The bulk update had flattened
peerDependenciesranges into exact pins — 25 packages would have shippedvue: "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 thevuepeerDependency from@vue/server-rendererand made@vue/runtime-doma plain dependency (vuejs/core#15063). vot's SSR build keepsvueexternal 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 nullcurrentRenderingInstance. Avite:vot-vue-runtime-domplugin sends that import back tovue, restoring the pre-3.5.40 topology. No consumer-side dependency needed.fix(cookies)—set()anddelete()called each other in a loop, so everydelete()blew the stack;update()wrote a deleted key back as''; andareCookiesEqual()compared the cookie value, so re-setting a name appended a secondSet-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-sassjoins stylesheets intransform-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 unsortedglobresult, and that order became the key order of the generatedexports/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:
webfont12 declaresengines.node >= 24.14.0andcookie2 declares>= 22, inherited by@fastkit/icon-font-genand@fastkit/cookies. The repo already requires>= 24.16.0.@fastkit/cookiesbehaviour changes —delete()starts working, andset()stops emitting a duplicateSet-Cookiefor a name that is already present.@fastkit/vui,vui-wysiwyg,vue-stack,vue-loadingandvue-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-gengainsotfas a selectable format.formatsstill 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.
tsdown0.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 everydistfile againstmain— 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.mjsand 1.cssfile, all incidental. Example, from@fastkit/rules: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.mdcovers them, following the precedent of the tsup → tsdown migration release.@fastkit/icon-font-genis a patch despite addingotf.@fastkit/vite-plugin-vuideclares it as a peer dependency, so a minor moves it outside the published^0.16.xrange and changesets then forces a major release of that package. Declaringminoron vite-plugin-vui does not help — changesets takes the larger of the declared and the cascaded bump. Nothing is removed or renamed andformatsbehaves identically unlessotfis requested, so staying in range was the less disruptive trade. Happy to splitotfinto 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,testandlint. Beyond that, where a change could silently alter output:vueexternal, no duplicated runtime chunks). Dev SSR verified separately.Set-Cookieround-trip; identical in every case, including theTypeErrorpaths..css,.tsand.woff2(matching SHA-256, including the 402 kB woff2).runTsc()'s exact invocation shape against execa 10, and both MagicString usage shapes compared between versions (identical code and source maps).package.jsonchurn are gone. Seven.d.mtsfiles still vary; that comes from how TypeScript serializes inferred types and is left alone.cache-controlpass, where the previous suite failed once in 30. Runtime went from 1.14s to 0.13s.Not included, for follow-up
typescript6 → 7,@types/node24 → 26,express4 → 5 — each deserves its own PR.rollup-plugin-sass1.16.0-rc.1 is a pre-release and was skipped.vueis declared in 51 places; pnpm catalogs would remove that duplication and prevent the kind of driftvue-routerhit here..d.mtsnon-determinism.🤖 Generated with Claude Code