@nanokajs/core 3.0.0 → 3.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/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { t } from './factories-
|
|
1
|
+
import { Field, FieldModifiers } from './index.js';
|
|
2
|
+
export { t } from './factories-DkvOdHED.js';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
@@ -19,4 +19,5 @@ interface NanokaConfig {
|
|
|
19
19
|
|
|
20
20
|
declare function defineConfig(config: NanokaConfig): NanokaConfig;
|
|
21
21
|
|
|
22
|
-
export {
|
|
22
|
+
export { defineConfig };
|
|
23
|
+
export type { NanokaConfig };
|
|
@@ -513,4 +513,5 @@ declare const t: {
|
|
|
513
513
|
}): RelationFieldBuilder<Target, FK, "belongsTo">;
|
|
514
514
|
};
|
|
515
515
|
|
|
516
|
-
export {
|
|
516
|
+
export { RelationFieldBuilder as d, t };
|
|
517
|
+
export type { Field as F, InferFieldType as I, RelationDef as R, FieldModifiers as a, FieldPolicy as b, IsRelationField as c, RelationKind as e, RelationTargetLike as f };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { D1Database } from '@cloudflare/workers-types';
|
|
2
2
|
import { A as Adapter } from './types-D2QDVyks.js';
|
|
3
|
-
import { F as Field, I as InferFieldType, b as FieldPolicy, R as RelationDef } from './factories-
|
|
4
|
-
export { a as FieldModifiers, c as IsRelationField, d as RelationFieldBuilder, e as RelationKind, f as RelationTargetLike, t } from './factories-
|
|
3
|
+
import { F as Field, I as InferFieldType, b as FieldPolicy, R as RelationDef } from './factories-DkvOdHED.js';
|
|
4
|
+
export { a as FieldModifiers, c as IsRelationField, d as RelationFieldBuilder, e as RelationKind, f as RelationTargetLike, t } from './factories-DkvOdHED.js';
|
|
5
5
|
import { Hook } from '@hono/zod-validator';
|
|
6
6
|
import { SQL } from 'drizzle-orm';
|
|
7
7
|
import { SQLiteTableWithColumns, AnySQLiteColumn } from 'drizzle-orm/sqlite-core';
|
|
@@ -724,4 +724,5 @@ interface Nanoka<E extends Env$1 = BlankEnv> extends Hono<E> {
|
|
|
724
724
|
*/
|
|
725
725
|
declare function nanoka<E extends Env$1 = BlankEnv>(adapter: Adapter): Nanoka<E>;
|
|
726
726
|
|
|
727
|
-
export { Adapter,
|
|
727
|
+
export { Adapter, Field, FieldPolicy, InferFieldType, RelationDef, d1Adapter, defineModel, nanoka, swaggerUI };
|
|
728
|
+
export type { CreateInput, FindAllOptions, FindManyOptions, FindOneOptions, HttpMethod, IdOrWhere, Model, Nanoka, NanokaModel, OpenAPIDocument, OpenAPIModelComponent, OpenAPIParamSpec, OpenAPIRequestBodySpec, OpenAPIResponseSpec, OpenAPIRouteMetadata, OpenAPISchemaObject, OpenAPISpecOptions, OpenAPIUsage, OrderBy, RelationKeys, RouteOpenAPIMetadata, RouteOpenAPIOption, RowType, SchemaOptions, Where, WithOpenAPIOption, WithOptions, WithResult };
|
package/dist/turso.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanokajs/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.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>",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@types/node": "^26.6.5",
|
|
85
85
|
"drizzle-orm": "^0.45.2",
|
|
86
86
|
"hono": "^4.13.12",
|
|
87
|
-
"tsup": "^
|
|
87
|
+
"tsup": "^9.0.0",
|
|
88
88
|
"typescript": "^5.9.3",
|
|
89
89
|
"vite": "^8.1.4",
|
|
90
90
|
"vitest": "^4.1.11",
|