create-daloy 1.5.1 → 1.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-daloy",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Scaffold a new DaloyJS project. Run with `pnpm create daloy`, `npm create daloy@latest`, `yarn create daloy`, or `bun create daloy`.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/sbom.cdx.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "bomFormat": "CycloneDX",
3
3
  "specVersion": "1.5",
4
- "serialNumber": "urn:uuid:781b1190-7ce9-589c-b41e-a60c96214149",
4
+ "serialNumber": "urn:uuid:8ab5ff06-fa21-5658-87b2-705f29de6892",
5
5
  "version": 1,
6
6
  "metadata": {
7
- "timestamp": "2026-10-02T08:26:12.380Z",
7
+ "timestamp": "2026-10-04T10:03:00.327Z",
8
8
  "tools": [
9
9
  {
10
10
  "vendor": "DaloyJS",
11
11
  "name": "daloy-generate-sbom",
12
- "version": "1.5.1"
12
+ "version": "1.5.2"
13
13
  }
14
14
  ],
15
15
  "authors": [],
16
16
  "component": {
17
17
  "type": "library",
18
- "bom-ref": "pkg:npm/create-daloy@1.5.1",
18
+ "bom-ref": "pkg:npm/create-daloy@1.5.2",
19
19
  "name": "create-daloy",
20
- "version": "1.5.1",
20
+ "version": "1.5.2",
21
21
  "description": "Scaffold a new DaloyJS project. Run with `pnpm create daloy`, `npm create daloy@latest`, `yarn create daloy`, or `bun create daloy`.",
22
- "purl": "pkg:npm/create-daloy@1.5.1",
22
+ "purl": "pkg:npm/create-daloy@1.5.2",
23
23
  "licenses": [
24
24
  {
25
25
  "license": {
@@ -42,9 +42,9 @@
42
42
  }
43
43
  ],
44
44
  "swid": {
45
- "tagId": "swidtag-create-daloy-1.5.1",
45
+ "tagId": "swidtag-create-daloy-1.5.2",
46
46
  "name": "create-daloy",
47
- "version": "1.5.1",
47
+ "version": "1.5.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/create-daloy@1.5.1",
56
+ "ref": "pkg:npm/create-daloy@1.5.2",
57
57
  "dependsOn": []
58
58
  }
59
59
  ]
package/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": "create-daloy-1.5.1",
6
- "documentNamespace": "https://github.com/daloyjs/daloy/sbom/create-daloy-1.5.1-781b1190-7ce9-589c-b41e-a60c96214149",
5
+ "name": "create-daloy-1.5.2",
6
+ "documentNamespace": "https://github.com/daloyjs/daloy/sbom/create-daloy-1.5.2-8ab5ff06-fa21-5658-87b2-705f29de6892",
7
7
  "creationInfo": {
8
- "created": "2026-10-02T08:26:12.380Z",
8
+ "created": "2026-10-04T10:03:00.327Z",
9
9
  "creators": [
10
10
  "Tool: daloy-generate-sbom",
11
11
  "Organization: DaloyJS"
@@ -16,7 +16,7 @@
16
16
  {
17
17
  "SPDXID": "SPDXRef-Package-create-daloy",
18
18
  "name": "create-daloy",
19
- "versionInfo": "1.5.1",
19
+ "versionInfo": "1.5.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/create-daloy@1.5.1"
30
+ "referenceLocator": "pkg:npm/create-daloy@1.5.2"
31
31
  }
32
32
  ]
33
33
  }
@@ -19,7 +19,7 @@
19
19
  "hooks:install": "git config core.hooksPath .githooks"
20
20
  },
21
21
  "dependencies": {
22
- "@daloyjs/core": "^1.5.1",
22
+ "@daloyjs/core": "^1.5.2",
23
23
  "zod": "^4.4.3"
24
24
  },
25
25
  "devDependencies": {
@@ -16,7 +16,7 @@
16
16
  "hooks:install": "git config core.hooksPath .githooks"
17
17
  },
18
18
  "dependencies": {
19
- "@daloyjs/core": "^1.5.1",
19
+ "@daloyjs/core": "^1.5.2",
20
20
  "zod": "^4.4.3"
21
21
  },
22
22
  "devDependencies": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "my-daloy-deno-app",
3
3
  "tasks": {
4
- "dev": "deno run --allow-net --allow-env=PORT,DENO_ENV,TRUST_PROXY_HOPS,PUBLIC_URL --watch src/main.ts",
4
+ "dev": "DENO_ENV=development deno run --allow-net --allow-env=PORT,DENO_ENV,TRUST_PROXY_HOPS,PUBLIC_URL --watch src/main.ts",
5
5
  "start": "deno run --allow-net --allow-env=PORT,DENO_ENV,TRUST_PROXY_HOPS,PUBLIC_URL src/main.ts",
6
6
  "typecheck": "deno check src/ tests/ scripts/",
7
7
  "test": "deno test --allow-net --allow-env tests/",
@@ -10,11 +10,11 @@
10
10
  "hooks:install": "git config core.hooksPath .githooks"
11
11
  },
12
12
  "imports": {
13
- "@daloyjs/core": "jsr:@daloyjs/daloy@^1.5.0",
14
- "@daloyjs/core/banner": "jsr:@daloyjs/daloy@^1.5.0/banner",
15
- "@daloyjs/core/contract": "jsr:@daloyjs/daloy@^1.5.0/contract",
16
- "@daloyjs/core/deno": "jsr:@daloyjs/daloy@^1.5.0/deno",
17
- "@daloyjs/core/openapi": "jsr:@daloyjs/daloy@^1.5.0/openapi",
13
+ "@daloyjs/core": "jsr:@daloyjs/daloy@^1.5.1",
14
+ "@daloyjs/core/banner": "jsr:@daloyjs/daloy@^1.5.1/banner",
15
+ "@daloyjs/core/contract": "jsr:@daloyjs/daloy@^1.5.1/contract",
16
+ "@daloyjs/core/deno": "jsr:@daloyjs/daloy@^1.5.1/deno",
17
+ "@daloyjs/core/openapi": "jsr:@daloyjs/daloy@^1.5.1/openapi",
18
18
  "zod": "npm:zod@^4.4.3"
19
19
  },
20
20
  "compilerOptions": {
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "version": "5",
3
3
  "specifiers": {
4
- "jsr:@daloyjs/daloy@^1.5.0": "1.5.0",
4
+ "jsr:@daloyjs/daloy@^1.5.1": "1.5.1",
5
5
  "jsr:@std/assert@1": "1.0.19",
6
6
  "jsr:@std/internal@^1.0.12": "1.0.14",
7
7
  "npm:zod@^4.4.3": "4.4.3"
8
8
  },
9
9
  "jsr": {
10
- "@daloyjs/daloy@1.5.0": {
11
- "integrity": "4246b2396e03d80d89ea0ff6807b0e42f17248ffcba4c8ccac1aa0b94d98229b"
10
+ "@daloyjs/daloy@1.5.1": {
11
+ "integrity": "f1039c3eeec47a45309560ab2e482ce1fda928f17fe7ebd177ea91498a86c25b"
12
12
  },
13
13
  "@std/assert@1.0.19": {
14
14
  "integrity": "eaada96ee120cb980bc47e040f82814d786fe8162ecc53c91d8df60b8755991e",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "workspace": {
29
29
  "dependencies": [
30
- "jsr:@daloyjs/daloy@^1.5.0",
30
+ "jsr:@daloyjs/daloy@^1.5.1",
31
31
  "npm:zod@^4.4.3"
32
32
  ]
33
33
  }
@@ -9,10 +9,14 @@ import { App, NotFoundError, rateLimit, requestId, secureHeaders } from "@daloyj
9
9
  * as a side effect.
10
10
  */
11
11
  export function buildApp(): App {
12
+ const denoEnv = Deno.env.get("DENO_ENV");
12
13
  const app = new App({
13
14
  bodyLimitBytes: 1024 * 1024,
14
15
  requestTimeoutMs: 5_000,
15
- production: Deno.env.get("DENO_ENV") === "production",
16
+ production: denoEnv === "production",
17
+ // 5xx error detail (the thrown message) is sent to clients only when
18
+ // DENO_ENV=development, which the `dev` task sets; otherwise it's redacted.
19
+ ...(denoEnv === "development" ? { env: "development" as const } : {}),
16
20
  // Reverse-proxy posture. When the app runs behind a trusted edge proxy
17
21
  // (Railway, Render, Fly, Heroku, a single nginx / load balancer), set the
18
22
  // TRUST_PROXY_HOPS env var to the number of proxy hops in front of it — a
@@ -20,7 +20,7 @@
20
20
  "hooks:install": "git config core.hooksPath .githooks"
21
21
  },
22
22
  "dependencies": {
23
- "@daloyjs/core": "^1.5.1",
23
+ "@daloyjs/core": "^1.5.2",
24
24
  "zod": "^4.4.3"
25
25
  },
26
26
  "devDependencies": {
@@ -16,7 +16,7 @@
16
16
  "hooks:install": "git config core.hooksPath .githooks"
17
17
  },
18
18
  "dependencies": {
19
- "@daloyjs/core": "^1.5.1",
19
+ "@daloyjs/core": "^1.5.2",
20
20
  "zod": "^4.4.3"
21
21
  },
22
22
  "devDependencies": {
@@ -10,6 +10,10 @@
10
10
  import { serve } from "@daloyjs/core/node";
11
11
  import { app } from "../api/index.ts";
12
12
 
13
+ // 5xx error detail is shown only on a positive development signal; an unset
14
+ // NODE_ENV redacts it, so default it here for the local server only.
15
+ process.env.NODE_ENV ||= "development";
16
+
13
17
  const port = Number(process.env.PORT ?? 3000);
14
18
  serve(app, { port });
15
19
  // eslint-disable-next-line no-console