@nanokajs/core 1.13.0 → 2.0.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.
- package/CHANGELOG.md +16 -0
- package/README.md +3 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ All notable changes to `@nanokajs/core` will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.0.0] — 2026-07-18
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **BREAKING**: `engines.node` を `>= 20` から `>= 22` に引き上げ(`@nanokajs/core` / `@nanokajs/auth` / `create-nanoka-app` の全パッケージ)。開発ツールチェーン(wrangler 4 / vite 8)が既に Node 22+ を要求しており、宣言を実態に合わせた。ランタイム(Cloudflare Workers)への影響はなし。Node 20 環境でのローカル開発は非サポートとなる。
|
|
13
|
+
|
|
14
|
+
## [1.13.1] — 2026-07-15
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- テスト/開発ツールチェーンを一括更新: `wrangler` 3.114 → 4.111、`vitest` 2.1 → 4.1、`@cloudflare/vitest-pool-workers` 0.5 → 0.18(Vite プラグイン方式 `cloudflareTest()` へ移行)。ライブラリ本体(`dist` / 公開 API / peerDependencies)に変更なし。
|
|
19
|
+
- monorepo ルートの `pnpm.overrides` から `wrangler <4` / `undici <6` の固定を解除(undici 7 / ws 8.21 / vite 8 / esbuild 0.28 系に更新され、vitest-pool-workers 経由の transitive advisory を解消)。
|
|
20
|
+
- monorepo ルートの `pnpm.overrides` に `esbuild >= 0.25.0` を追加(`drizzle-kit` → `esbuild` 0.19.12 / `@esbuild-kit/core-utils` → `esbuild` 0.18.20 が GHSA-67mh-4wv8-2f99 の対象範囲 `<= 0.24.2` に残るため。`drizzle-kit` 0.31 でも `@esbuild-kit` 経由の 0.18.20 は残るので override で恒久解消)。
|
|
21
|
+
- `create-nanoka-app` テンプレートの `wrangler` を `^3.80.0` → `^4.111.0` に更新。
|
|
22
|
+
- **開発ツールチェーンに Node.js 22 以上が必要**(`wrangler` 4 は `engines.node >= 22`、`vite` 8 は `>= 22.12`)。`create-nanoka-app` のテンプレートに `"engines": { "node": ">=22" }` を追加。`@nanokajs/core` 自体の `engines` は `>= 20` のまま(ランタイムは Cloudflare Workers であり、ライブラリ本体に変更はないため。`>= 22` への引き上げは major 判断として別途検討)。
|
|
23
|
+
|
|
8
24
|
## [1.13.0] — 2026-07-15
|
|
9
25
|
|
|
10
26
|
### Changed
|
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Targets **Cloudflare Workers + D1 (SQLite)** as first-class. Hono-compatible rou
|
|
|
17
17
|
|
|
18
18
|
## Status
|
|
19
19
|
|
|
20
|
-
**Stable (
|
|
20
|
+
**Stable (2.0.0).** Core API-boundary surface — field policies, `inputSchema` / `outputSchema`, validator presets, `t.json(zodSchema)`, field accessor API, Zod 3 / 4 support, OpenAPI component seed, `t.timestamp().defaultNow()`, mutation/findOne SQL expression and `in` operator in `where` — is stable under SemVer.
|
|
21
21
|
|
|
22
22
|
## Stable API surface (1.0)
|
|
23
23
|
|
|
@@ -45,6 +45,8 @@ pnpm add @nanokajs/core drizzle-orm zod
|
|
|
45
45
|
pnpm add -D typescript drizzle-kit @cloudflare/workers-types
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
> **Node.js 22 or later is required for the development toolchain.** `wrangler` 4 declares `engines.node >= 22` (and `vite` 8 requires `>= 22.12`), so local dev / test tooling needs Node 22+. As of v2.0.0, `@nanokajs/core` also declares `engines.node >= 22`, matching the toolchain requirement (the library still runs on Cloudflare Workers; the runtime surface is unchanged).
|
|
49
|
+
|
|
48
50
|
Then add a `types` entry to `tsconfig.json` so `D1Database`, `Request`, `ExecutionContext`, and `crypto` resolve as ambient globals (no per-file imports needed):
|
|
49
51
|
|
|
50
52
|
```jsonc
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanokajs/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Thin wrapper over Hono + Drizzle + Zod for Cloudflare Workers + D1. 80% automatic, 20% explicit.",
|
|
6
6
|
"author": "Eiichiro Iriguchi <eiichiro_iriguchi@a-1ro.dev>",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"validation"
|
|
24
24
|
],
|
|
25
25
|
"engines": {
|
|
26
|
-
"node": ">=
|
|
26
|
+
"node": ">=22"
|
|
27
27
|
},
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"exports": {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"jiti": "^2.7.0"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@cloudflare/vitest-pool-workers": "^0.5
|
|
81
|
+
"@cloudflare/vitest-pool-workers": "^0.18.5",
|
|
82
82
|
"@cloudflare/workers-types": "^4.20260523.1",
|
|
83
83
|
"@libsql/client": "^0.17.4",
|
|
84
84
|
"@types/node": "^25.9.1",
|
|
@@ -86,8 +86,9 @@
|
|
|
86
86
|
"hono": "^4.12.22",
|
|
87
87
|
"tsup": "^8.5.1",
|
|
88
88
|
"typescript": "^5.9.3",
|
|
89
|
-
"
|
|
90
|
-
"
|
|
89
|
+
"vite": "^8.1.4",
|
|
90
|
+
"vitest": "^4.1.10",
|
|
91
|
+
"wrangler": "^4.111.0",
|
|
91
92
|
"zod": "^3.25.76"
|
|
92
93
|
}
|
|
93
94
|
}
|