@daloyjs/core 0.34.1 → 0.34.2
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.
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Vercel now recommends the Node.js runtime over Edge for new functions. The
|
|
5
5
|
* runtime is web-standard, but the export shape differs by integration: Node
|
|
6
|
-
* `/api` functions use a default `{ fetch }` object, while Edge functions
|
|
7
|
-
*
|
|
6
|
+
* `/api` functions use a default `{ fetch }` object, while Edge functions use a
|
|
7
|
+
* bare function export. If you are hosting a DaloyJS app inside an existing
|
|
8
|
+
* Next.js app, App Router route handlers use named method exports.
|
|
8
9
|
*
|
|
9
10
|
* // Vercel Functions (`api/[...path].ts`)
|
|
10
11
|
* import { toFetchHandler } from "@daloyjs/core/vercel";
|
|
11
12
|
* export default toFetchHandler(app);
|
|
12
13
|
*
|
|
13
|
-
* // Next.js App Router (`app/api/[...slug]/route.ts`)
|
|
14
|
+
* // Optional: Next.js App Router host (`app/api/[...slug]/route.ts`)
|
|
14
15
|
* import { toRouteHandlers } from "@daloyjs/core/vercel";
|
|
15
16
|
* export const { GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD } =
|
|
16
17
|
* toRouteHandlers(app);
|
|
@@ -38,7 +39,7 @@ export declare function toFetchHandler(app: App): FetchHandler;
|
|
|
38
39
|
export declare const toEdgeHandler: typeof toWebHandler;
|
|
39
40
|
/**
|
|
40
41
|
* Build the `{ GET, POST, ... }` object expected by Next.js App Router
|
|
41
|
-
* `route.ts` files
|
|
42
|
+
* `route.ts` files when a DaloyJS app is mounted inside an existing Next app.
|
|
42
43
|
*/
|
|
43
44
|
export declare function toRouteHandlers(app: App): RouteHandlers;
|
|
44
45
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vercel.d.ts","sourceRoot":"","sources":["../../src/adapters/vercel.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"vercel.d.ts","sourceRoot":"","sources":["../../src/adapters/vercel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC,wGAAwG;AACxG,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC7D,0EAA0E;AAC1E,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,QAAA,MAAM,YAAY,uEAAwE,CAAC;AAC3F,sFAAsF;AACtF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC;AAE9E,kEAAkE;AAClE,wBAAgB,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,UAAU,CAEjD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,YAAY,CAErD;AAED,0DAA0D;AAC1D,eAAO,MAAM,aAAa,qBAAe,CAAC;AAE1C;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,aAAa,CAKvD"}
|
package/dist/adapters/vercel.js
CHANGED
|
@@ -14,7 +14,7 @@ export function toFetchHandler(app) {
|
|
|
14
14
|
export const toEdgeHandler = toWebHandler;
|
|
15
15
|
/**
|
|
16
16
|
* Build the `{ GET, POST, ... }` object expected by Next.js App Router
|
|
17
|
-
* `route.ts` files
|
|
17
|
+
* `route.ts` files when a DaloyJS app is mounted inside an existing Next app.
|
|
18
18
|
*/
|
|
19
19
|
export function toRouteHandlers(app) {
|
|
20
20
|
const handler = toWebHandler(app);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vercel.js","sourceRoot":"","sources":["../../src/adapters/vercel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vercel.js","sourceRoot":"","sources":["../../src/adapters/vercel.ts"],"names":[],"mappings":"AA6BA,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAU,CAAC;AAI3F,kEAAkE;AAClE,MAAM,UAAU,YAAY,CAAC,GAAQ;IACnC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACjC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,GAAQ;IACrC,OAAO,EAAE,KAAK,EAAE,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;AACtC,CAAC;AAED,0DAA0D;AAC1D,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;AAE1C;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,GAAQ;IACtC,MAAM,OAAO,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;IAClC,MAAM,GAAG,GAAG,EAAmB,CAAC;IAChC,KAAK,MAAM,MAAM,IAAI,YAAY;QAAE,GAAG,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;IACzD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/dist/sbom.cdx.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bomFormat": "CycloneDX",
|
|
3
3
|
"specVersion": "1.5",
|
|
4
|
-
"serialNumber": "urn:uuid:
|
|
4
|
+
"serialNumber": "urn:uuid:84b20929-3d10-58e2-9e87-0279dac97e10",
|
|
5
5
|
"version": 1,
|
|
6
6
|
"metadata": {
|
|
7
|
-
"timestamp": "2026-05-
|
|
7
|
+
"timestamp": "2026-05-23T09:06:35.455Z",
|
|
8
8
|
"tools": [
|
|
9
9
|
{
|
|
10
10
|
"vendor": "DaloyJS",
|
|
11
11
|
"name": "daloy-generate-sbom",
|
|
12
|
-
"version": "0.34.
|
|
12
|
+
"version": "0.34.2"
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"authors": [
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
],
|
|
20
20
|
"component": {
|
|
21
21
|
"type": "library",
|
|
22
|
-
"bom-ref": "pkg:npm/@daloyjs/core@0.34.
|
|
22
|
+
"bom-ref": "pkg:npm/@daloyjs/core@0.34.2",
|
|
23
23
|
"name": "@daloyjs/core",
|
|
24
|
-
"version": "0.34.
|
|
24
|
+
"version": "0.34.2",
|
|
25
25
|
"description": "DaloyJS is a runtime-portable, contract-first TypeScript web framework with built-in OpenAPI (Hey API), typed client generation, large-scale maintainability, and security-first defaults. Hono-grade portability, Elysia-grade DX, FastAPI-grade docs, Fastify-grade ops — distributed via pnpm.",
|
|
26
|
-
"purl": "pkg:npm/@daloyjs/core@0.34.
|
|
26
|
+
"purl": "pkg:npm/@daloyjs/core@0.34.2",
|
|
27
27
|
"licenses": [
|
|
28
28
|
{
|
|
29
29
|
"license": {
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
"swid": {
|
|
45
|
-
"tagId": "swidtag--daloyjs-core-0.34.
|
|
45
|
+
"tagId": "swidtag--daloyjs-core-0.34.2",
|
|
46
46
|
"name": "@daloyjs/core",
|
|
47
|
-
"version": "0.34.
|
|
47
|
+
"version": "0.34.2",
|
|
48
48
|
"tagVersion": 0,
|
|
49
49
|
"patch": false
|
|
50
50
|
}
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"components": [],
|
|
54
54
|
"dependencies": [
|
|
55
55
|
{
|
|
56
|
-
"ref": "pkg:npm/@daloyjs/core@0.34.
|
|
56
|
+
"ref": "pkg:npm/@daloyjs/core@0.34.2",
|
|
57
57
|
"dependsOn": []
|
|
58
58
|
}
|
|
59
59
|
]
|
package/dist/sbom.spdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"spdxVersion": "SPDX-2.3",
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
|
-
"name": "@daloyjs/core-0.34.
|
|
6
|
-
"documentNamespace": "https://github.com/daloyjs/daloy/sbom/@daloyjs/core-0.34.
|
|
5
|
+
"name": "@daloyjs/core-0.34.2",
|
|
6
|
+
"documentNamespace": "https://github.com/daloyjs/daloy/sbom/@daloyjs/core-0.34.2-84b20929-3d10-58e2-9e87-0279dac97e10",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-05-
|
|
8
|
+
"created": "2026-05-23T09:06:35.455Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Tool: daloy-generate-sbom",
|
|
11
11
|
"Organization: DaloyJS"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
{
|
|
17
17
|
"SPDXID": "SPDXRef-Package--daloyjs-core",
|
|
18
18
|
"name": "@daloyjs/core",
|
|
19
|
-
"versionInfo": "0.34.
|
|
19
|
+
"versionInfo": "0.34.2",
|
|
20
20
|
"downloadLocation": "https://github.com/daloyjs/daloy",
|
|
21
21
|
"filesAnalyzed": false,
|
|
22
22
|
"licenseConcluded": "MIT",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
{
|
|
28
28
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
29
29
|
"referenceType": "purl",
|
|
30
|
-
"referenceLocator": "pkg:npm/@daloyjs/core@0.34.
|
|
30
|
+
"referenceLocator": "pkg:npm/@daloyjs/core@0.34.2"
|
|
31
31
|
}
|
|
32
32
|
]
|
|
33
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daloyjs/core",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.2",
|
|
4
4
|
"description": "DaloyJS is a runtime-portable, contract-first TypeScript web framework with built-in OpenAPI (Hey API), typed client generation, large-scale maintainability, and security-first defaults. Hono-grade portability, Elysia-grade DX, FastAPI-grade docs, Fastify-grade ops — distributed via pnpm.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"@hey-api/openapi-ts": "^0.97.1",
|
|
155
155
|
"@types/node": "^25.7.0",
|
|
156
156
|
"prettier": "^3.8.3",
|
|
157
|
-
"tsx": "^4.22.
|
|
157
|
+
"tsx": "^4.22.3",
|
|
158
158
|
"typescript": "^6.0.3",
|
|
159
159
|
"zod": "^4.4.3"
|
|
160
160
|
},
|