@nanokajs/core 1.13.1 → 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 +6 -0
- package/README.md +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ 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
|
+
|
|
8
14
|
## [1.13.1] — 2026-07-15
|
|
9
15
|
|
|
10
16
|
### 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,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+.
|
|
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
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": "
|
|
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": {
|