Skip to content

v2.3.0

Latest

Choose a tag to compare

@cuonggt cuonggt released this 30 Nov 05:27
· 1 commit to master since this release

Changed

  • The Vue stub moves to @vueuse/core 15, ^12.8.2 → ^15.1.0 (#69). This is one of the two majors .github/dependabot.yml keeps out of automated pull requests, so it is the install-and-build pass that comment asks for.

    Nothing in the stub had to change. The two helpers it uses came through three majors intact. UseVModelOptions is declared exactly as 12.8.2 declared it, useVModel keeps both of its overloads and carries no deprecation marker, and the implementation still branches on passive the same way — so Components/ui/input/Input.vue and Components/ui/sidebar/SidebarProvider.vue keep it rather than moving to Vue's own defineModel.

    reactiveOmit is the one that was rewritten. The 18 reka-ui wrappers under Components/ui/ use it to forward props minus class, and 15 serves it from a proxy view over the source object rather than the reactiveComputed snapshot 12.8.2 built. The two forms those components rely on, v-bind="delegatedProps" and v-bind="{ ...delegatedProps, ...$attrs }", produce identical results on both versions — checked across key enumeration, object spread, in, a JSON round trip, multi-key and array-form omission, the predicate overload, and reactive propagation from the source.

    reka-ui carries a @vueuse/core ^14.1.0 dependency of its own, so a scaffolded application installs two copies: 15.1.0 at the top level and 14.4.0 nested under reka-ui. It installed two before this as well, 12.8.2 and 14.4.0, so the bump neither causes nor cures that. Pinning the stub to ^14 instead would collapse them into one tree, at the cost of sitting a major behind.

    The Node floor rises with it. @vueuse/core 15 declares node >= 22, where vite 8 and @vitejs/plugin-vue 6 both accept ^20.19.0 || >=22.12.0, so Node 20 no longer builds the Vue stack.

  • Both Inertia stubs take their dependency bumps, no majors among them (#65, #66).

    package from to
    vite ^8.3.4 ^8.4.0
    axios ^1.6.4 ^1.21.1
    lucide-react, @lucide/vue ^1.61.0 ^1.81.0
    @types/node ^26.6.5 ^26.6.11
    tailwind-merge ^3.7.0 ^3.7.1
    @types/react ^19.3.0 ^19.3.3
    vue ^3.5.44 ^3.5.46

    Every one of these ranges already admitted the version it moves to, and the stubs ship no lockfile, so a fresh npm install was resolving to them before this. What moves is the floor each scaffolded application records.

    The two pull requests these replace would have taken Vite the other way, ^8.3.4 down to ^6.4.5. They were opened while npm's latest for Vite was still 6.x — Dependabot follows that tag, and the stubs had gone to 8 by hand in 1.3.0. The React stub's CI caught it, because @vitejs/plugin-react 6 requires Vite 8 and npm refused to resolve the pair; the Vue stub's passed, because @vitejs/plugin-vue 6 still accepts Vite 6, so merging it would have been a silent downgrade. Recreating both once Vite 8 held the latest tag produced the bumps above instead.

Documentation

  • The README names a Node prerequisite for the first time (#70). Both Inertia stacks have always needed Node — kaze install runs a package install and a Vite build for them, with pnpm or yarn when the application already has that lockfile and npm otherwise — while the installation section spoke only of Ruby. @vueuse/core 15 is what made the floor worth stating: vite 8 and both of its plugins ask for ^20.19.0 || >=22.12.0, and vueuse narrows the Vue stack to >=22, so Vue needs Node 22.12 or newer while React is also happy on 20.19. The Hotwire stack needs no Node at all.

Internal

  • typescript stays at ^5.9.3 in the Vue stub, and the gap to the React stub's ^7.0.2 is a standing constraint rather than drift. The second major Dependabot holds back was meant to close that gap in this pass. It cannot, and the reason is already in the repository's own history: the Vue stub was on ^7.0.2, from #25 until #30 put it back to 5, with nothing recorded at the time to say why.

    TypeScript 7 is the native compiler and ships no JavaScript API — node_modules/typescript/lib holds tsc.js and a path helper, and the package exports no lib/typescript.js. @vue/compiler-sfc needs that API: vue/compiler-sfc/register-ts.js hands it () => require('typescript'), and it reaches for ts.findConfigFile and ts.sys whenever defineProps<T>() names a type imported from another package. Under 7.0.2 that call throws TypeError: ts2.findConfigFile is not a function and vite build stops with 32 errors across Button.vue, Checkbox.vue, Dialog.vue, DialogTrigger.vue and Label.vue — every component whose props extend a reka-ui type. tsc itself exits 0, so a typecheck-only run sees nothing wrong; it is the build that fails.

    #28 met this head on and worked around it, spelling the props out inline under a note reading "the SFC compiler cannot resolve types imported across packages in this build". #30 then took the other side of the trade: it deleted those hand-maintained copies in favour of defineProps<LabelProps & …>() and the rest of reka-ui's real prop types, and dropped TypeScript to 5.9.3 in the same commit to pay for them. Reinstating 7 now means undoing that — re-inlining and then maintaining the props of five primitives against upstream — which is a worse bargain than waiting. The React stub never meets any of this because .tsx compiles with its types erased and nothing needs resolving at build time. Vue 3.6 is no escape either: @vue/compiler-sfc 3.6.0-rc.17 still makes the same findConfigFile call, and 3.6 is not released.

    vue-tsc is a second, independent blocker on the same move. @volar/typescript and @volar/language-service both declare peerOptional typescript: "<7", and vue-tsc 3.3.14 aborts before doing any work, with ERR_PACKAGE_PATH_NOT_EXPORTED for typescript/lib/tsc. It is also the only thing that makes npm install print ERESOLVE overriding peer dependency twice against TypeScript 7 — dropping it leaves the install silent and 14 packages lighter, which is the shape the eventual change will take once the compiler can run. It stays because on 5.9.3 it works, and it is the only tool in the stack that typechecks a single-file component at all: tsc reads the .ts modules and the *.vue shim in app/javascript/types/vue-shims.d.ts, never a component. Its ^3.3.13 range already resolves to 3.3.14, so nothing there needed moving.

    Checked by scaffolding a Rails 8.1 application per stack the way tests.yml does. On 5.9.3 the Vue stack installs with no ERESOLVE output, vue-tsc and tsc both exit 0, vite build succeeds and the application's 60 tests pass. Swapping only typescript to ^7.0.2 leaves tsc green and breaks the build. React on 7.0.2 and hotwire both stay green throughout.

  • CI now tests an upgrade, not just an install. A Test Upgrade job per stack creates a Rails application, installs the released gem into it, writes work of the application's own beside Kaze's, upgrades with the checkout under review, and then checks every one of those files is byte for byte what it was before running the application's test suite. No version is pinned, so it never goes stale; once a release matches the checkout the job becomes the re-run case, which is how config/environments/test.rb came to be emptied.

    The fixture moved to test/support/own_work.rb and is now shared with the gem's unit tests, so the two cannot drift, and ruby test/support/own_work.rb verify . is what the job runs. Every file in it is inert on purpose: the job boots, typechecks and tests a real application, so a fixture needing a column or a JSX runtime would fail the job for reasons that have nothing to do with upgrading.

    Checked against the code 2.2.1 fixed, which is the point of it. Upgrading with 2.2.0 leaves the verify step reporting 109 bytes became 0 and exiting 1, while the upgrade command itself still exits 0 — and the test step fails separately, because an emptied test.rb stops the application booting at all. Against master both pass.

  • The gem's tests now run install and upgrade over an application that has work of its own, rather than an empty directory. A shared OWN_WORK fixture puts a couple of migrations, a model, a component, an initializer, a factory and two tests in the same directories Kaze writes to, and assert_own_work_untouched checks every one of them byte for byte afterwards.

    This is the gap behind 2.2.1. The migration rewrite emptied an application's own migrations for two years, and nothing caught it because every fixture and every upgrade test held nothing but Kaze's own files — there was no one else's work there to destroy. The same blind spot covered install_tests copying over someone's tests and enable_test_cache_store truncating a config file.

    Eight tests use it, across the three surfaces that touch files an application already had: install_migrations, install_tests and enable_test_cache_store, plus the upgrade's removable_paths and remove_paths. Each was checked by mutation: restoring both 2.2.1 defects fails four of them, wiping a test directory before copying into it fails another, and a pattern that silently matches nothing fails two more.

  • Development dependencies: minitest ~> 5.0 → ~> 6.1 in the gemspec and 5.27.0 → 6.1.0 in Gemfile.lock, railties 8.1.4 → 8.1.4.1, prettier 3.9.10 → 3.10.1 (#62, #64). Gemfile.lock is not shipped and development dependencies are not installed by gem install kaze, so this reaches contributors and CI only.

  • The root pnpm-lock.yaml catches up with the stub manifests, which clears a high follow-redirects advisory (1.16.1, patched in 1.16.2; the refreshed lockfile resolves 1.16.3). Dependabot updates the two stub package.json files but not this lockfile, so it still described axios 1.20.0 — and through it the vulnerable follow-redirects — after #65 and #66 had moved both stubs to axios ^1.21.1. Nothing shipped was affected: spec.files leaves the lockfile out, the stubs carry none of their own, and no workflow installs from it.

    pnpm-workspace.yaml is new, and is what makes the refresh possible. The lockfile has carried importers for . and both stub directories since #22, where Dependabot's own regeneration added them, but nothing in the repository ever declared that workspace — so a plain pnpm install would prune both stub importers and shrink the lockfile to prettier alone. The file states what the lockfile already assumed, and pnpm install --frozen-lockfile now passes across all three projects.