kaze 2.2.1 → 2.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab4d236e7d08529caaafe2924edaab3a90cb9742fe5dcf916cb6e188bf453d38
4
- data.tar.gz: 57eb011f2173bf00a346195b91d0620777f173be7acf22d97b97cf94b803e6bf
3
+ metadata.gz: 7bdb0ded92c3176be5aba67ef459554947f6bce1c82dae4b56c9a9a7969704e5
4
+ data.tar.gz: 3a978050558e562fb8e420a0ca6a2d135710c56afcbb8b303f75499ddd65b9c4
5
5
  SHA512:
6
- metadata.gz: af68391e4cce4dace60eb32e614b55c6ea4fe3fc6cd52f7a1c3ff614a4e9b2b5c295d31dada55c57f001ddb850f5cdfc4251c337de4176425162532f941343c2
7
- data.tar.gz: 0611eeedb28e33537e0d09f85dfdbb1010caad5ef3409ca9bd84ee7b1fddf69197343ffa416c2ca003ddd496849e606bdb76632cf0f909d0dd023dd86a9fecf1
6
+ metadata.gz: 742dc4ff5567a8b36c87816cee5b864af906b4bf5e303ebddee6cdf862a96e87b4d7d86cce936311a2e5c77e548c593d76326f9963279112c285dfcb97a0c4d5
7
+ data.tar.gz: f8ed8a9b95c527d945c9cd8cfaf715c532114657a8c2fc38533142bcc624159bdde0212aafbd3f02ed8a153b511ee907d496076f2c4a2d94843dcfc6be3dc923
data/CHANGELOG.md CHANGED
@@ -6,6 +6,71 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.3.0] - 2026-11-30
10
+
11
+ ### Changed
12
+
13
+ - The Vue stub moves to `@vueuse/core` 15, `^12.8.2` → `^15.1.0` ([#69](https://github.com/cuonggt/kaze/pull/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.
14
+
15
+ 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`.
16
+
17
+ `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.
18
+
19
+ `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.
20
+
21
+ 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.
22
+
23
+ - Both Inertia stubs take their dependency bumps, no majors among them ([#65](https://github.com/cuonggt/kaze/pull/65), [#66](https://github.com/cuonggt/kaze/pull/66)).
24
+
25
+ | package | from | to |
26
+ |---|---|---|
27
+ | vite | ^8.3.4 | ^8.4.0 |
28
+ | axios | ^1.6.4 | ^1.21.1 |
29
+ | lucide-react, @lucide/vue | ^1.61.0 | ^1.81.0 |
30
+ | @types/node | ^26.6.5 | ^26.6.11 |
31
+ | tailwind-merge | ^3.7.0 | ^3.7.1 |
32
+ | @types/react | ^19.3.0 | ^19.3.3 |
33
+ | vue | ^3.5.44 | ^3.5.46 |
34
+
35
+ 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.
36
+
37
+ 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.
38
+
39
+ ### Documentation
40
+
41
+ - The README names a Node prerequisite for the first time ([#70](https://github.com/cuonggt/kaze/pull/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.
42
+
43
+ ### Internal
44
+
45
+ - `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](https://github.com/cuonggt/kaze/pull/25) until [#30](https://github.com/cuonggt/kaze/pull/30) put it back to 5, with nothing recorded at the time to say why.
46
+
47
+ 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.
48
+
49
+ [#28](https://github.com/cuonggt/kaze/pull/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](https://github.com/cuonggt/kaze/pull/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.
50
+
51
+ `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.
52
+
53
+ 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.
54
+
55
+ - 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.
56
+
57
+ 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.
58
+
59
+ 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.
60
+
61
+ - 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.
62
+
63
+ 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.
64
+
65
+ 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.
66
+
67
+ - 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](https://github.com/cuonggt/kaze/pull/62), [#64](https://github.com/cuonggt/kaze/pull/64)). `Gemfile.lock` is not shipped and development dependencies are not installed by `gem install kaze`, so this reaches contributors and CI only.
68
+
69
+ - 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](https://github.com/cuonggt/kaze/pull/65) and [#66](https://github.com/cuonggt/kaze/pull/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.
70
+
71
+ `pnpm-workspace.yaml` is new, and is what makes the refresh possible. The lockfile has carried importers for `.` and both stub directories since [#22](https://github.com/cuonggt/kaze/pull/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.
72
+
73
+
9
74
  ## [2.2.1] - 2026-10-27
10
75
 
11
76
  ### Added
@@ -277,7 +342,8 @@ Together these take a freshly scaffolded Inertia application from seven npm advi
277
342
 
278
343
  Releases before 1.0.0 are not catalogued here. See the [tags](https://github.com/cuonggt/kaze/tags) for their history.
279
344
 
280
- [Unreleased]: https://github.com/cuonggt/kaze/compare/v2.2.1...HEAD
345
+ [Unreleased]: https://github.com/cuonggt/kaze/compare/v2.3.0...HEAD
346
+ [2.3.0]: https://github.com/cuonggt/kaze/compare/v2.2.1...v2.3.0
281
347
  [2.2.1]: https://github.com/cuonggt/kaze/compare/v2.2.0...v2.2.1
282
348
  [2.2.0]: https://github.com/cuonggt/kaze/compare/v2.1.1...v2.2.0
283
349
  [2.1.1]: https://github.com/cuonggt/kaze/compare/v2.1.0...v2.1.1
data/README.md CHANGED
@@ -37,6 +37,14 @@ gem install kaze
37
37
 
38
38
  Kaze is tested against Rails 8.1 on Ruby 3.4. Rails 8.0 is not supported: ActiveSupport 8.0 passes a `quirks_mode:` option to `JSON.generate` that the `json` gem removed in version 3, which breaks session cookies and `js-routes` in any application built on it. The incompatibility is fixed in Rails 8.1.
39
39
 
40
+ The two Inertia stacks also need [Node](https://nodejs.org), since `kaze install` runs a package install and a Vite build for them — with pnpm or yarn when your application already has that lockfile, and npm otherwise. mise installs it alongside Ruby:
41
+
42
+ ```
43
+ mise use -g node@22
44
+ ```
45
+
46
+ Vite 8 asks for Node `^20.19.0 || >=22.12.0` in both stacks, and the Vue stack narrows that further: its `@vueuse/core` 15 requires `>=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 — it carries no npm dependencies, and Kaze builds its CSS with `tailwindcss-rails`.
47
+
40
48
  Then, you may create a new Rails application:
41
49
 
42
50
  ```
data/lib/kaze/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kaze
2
- VERSION = '2.2.1'
2
+ VERSION = '2.3.0'
3
3
  end
@@ -16,20 +16,20 @@
16
16
  "@radix-ui/react-separator": "^1.1.2",
17
17
  "@radix-ui/react-slot": "^1.2.3",
18
18
  "@radix-ui/react-tooltip": "^1.1.8",
19
- "@types/node": "^26.6.5",
20
- "@types/react": "^19.3.0",
19
+ "@types/node": "^26.6.11",
20
+ "@types/react": "^19.3.3",
21
21
  "@types/react-dom": "^19.3.0",
22
22
  "@vitejs/plugin-react": "^6.1.2",
23
- "axios": "^1.6.4",
23
+ "axios": "^1.21.1",
24
24
  "class-variance-authority": "^0.7.1",
25
25
  "clsx": "^2.1.1",
26
- "lucide-react": "^1.61.0",
26
+ "lucide-react": "^1.81.0",
27
27
  "react": "^19.3.1",
28
28
  "react-dom": "^19.3.1",
29
- "tailwind-merge": "^3.7.0",
29
+ "tailwind-merge": "^3.7.1",
30
30
  "tw-animate-css": "^1.4.0",
31
31
  "typescript": "^7.0.2",
32
- "vite": "^8.3.4",
32
+ "vite": "^8.4.0",
33
33
  "vite-plugin-rails": "^0.6.0"
34
34
  }
35
35
  }
@@ -8,20 +8,20 @@
8
8
  "devDependencies": {
9
9
  "@headlessui/vue": "^1.7.23",
10
10
  "@inertiajs/vue3": "^3.9.1",
11
- "@lucide/vue": "^1.61.0",
12
- "@types/node": "^26.6.5",
11
+ "@lucide/vue": "^1.81.0",
12
+ "@types/node": "^26.6.11",
13
13
  "@vitejs/plugin-vue": "^6.0.10",
14
- "@vueuse/core": "^12.8.2",
15
- "axios": "^1.6.4",
14
+ "@vueuse/core": "^15.1.0",
15
+ "axios": "^1.21.1",
16
16
  "class-variance-authority": "^0.7.1",
17
17
  "clsx": "^2.1.1",
18
18
  "reka-ui": "^2.11.0",
19
- "tailwind-merge": "^3.7.0",
19
+ "tailwind-merge": "^3.7.1",
20
20
  "tw-animate-css": "^1.4.0",
21
21
  "typescript": "^5.9.3",
22
- "vite": "^8.3.4",
22
+ "vite": "^8.4.0",
23
23
  "vite-plugin-rails": "^0.6.0",
24
- "vue": "^3.5.44",
24
+ "vue": "^3.5.46",
25
25
  "vue-tsc": "^3.3.13"
26
26
  }
27
27
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaze
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cuong Giang
@@ -43,14 +43,14 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '5.0'
46
+ version: '6.1'
47
47
  type: :development
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '5.0'
53
+ version: '6.1'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: railties
56
56
  requirement: !ruby/object:Gem::Requirement