@nanokajs/core 1.13.1 → 2.0.1

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 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.1] — 2026-10-02
9
+
10
+ ### Security
11
+
12
+ - Update Hono to 4.13.12 and Vitest to 4.1.11. Pin vulnerable development-tool dependencies (esbuild, Undici, PostCSS, nanoid, fflate, and Miniflare’s Sharp) to patched releases; update the site’s Sharp to 0.35.5. Public APIs and peer dependency ranges are unchanged.
13
+
14
+ ### Changed
15
+
16
+ - Add missing auth/scaffolder checks and site typechecking to PR CI; synchronize maintenance and development documentation. The scaffolder now recommends patched Hono releases.
17
+
18
+ ## [2.0.0] — 2026-07-18
19
+
20
+ ### Changed
21
+
22
+ - **BREAKING**: `engines.node` を `>= 20` から `>= 22` に引き上げ(`@nanokajs/core` / `@nanokajs/auth` / `create-nanoka-app` の全パッケージ)。開発ツールチェーン(wrangler 4 / vite 8)が既に Node 22+ を要求しており、宣言を実態に合わせた。ランタイム(Cloudflare Workers)への影響はなし。Node 20 環境でのローカル開発は非サポートとなる。
23
+
8
24
  ## [1.13.1] — 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 (1.12.1).** 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.
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,7 +45,7 @@ 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+. The `@nanokajs/core` library itself still declares `engines.node >= 20` — it runs on Cloudflare Workers, and the runtime surface is unchanged.
48
+ > **Node.js 22.12 or later is required for this repository’s development/test toolchain.** `wrangler` 4 declares `engines.node >= 22` (and `vite` 8 requires `>= 22.12`), so use Node 22.12+ on the Node 22 line. As of v2.0.0, `@nanokajs/core` also declares `engines.node >= 22`, raising the declared minimum for local development (the library still runs on Cloudflare Workers; the runtime surface is unchanged).
49
49
 
50
50
  Then add a `types` entry to `tsconfig.json` so `D1Database`, `Request`, `ExecutionContext`, and `crypto` resolve as ambient globals (no per-file imports needed):
51
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanokajs/core",
3
- "version": "1.13.1",
3
+ "version": "2.0.1",
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": ">=20"
26
+ "node": ">=22"
27
27
  },
28
28
  "sideEffects": false,
29
29
  "exports": {
@@ -83,11 +83,11 @@
83
83
  "@libsql/client": "^0.17.4",
84
84
  "@types/node": "^25.9.1",
85
85
  "drizzle-orm": "^0.45.2",
86
- "hono": "^4.12.22",
86
+ "hono": "^4.13.12",
87
87
  "tsup": "^8.5.1",
88
88
  "typescript": "^5.9.3",
89
89
  "vite": "^8.1.4",
90
- "vitest": "^4.1.10",
90
+ "vitest": "^4.1.11",
91
91
  "wrangler": "^4.111.0",
92
92
  "zod": "^3.25.76"
93
93
  }