create-daloy 0.7.0 → 0.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-daloy",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
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",
@@ -23,6 +23,7 @@ curl http://localhost:3000/books/1
23
23
 
24
24
  - API docs (Scalar): <http://localhost:3000/docs>
25
25
  - OpenAPI 3.1 JSON: <http://localhost:3000/openapi.json>
26
+ - OpenAPI 3.1 YAML: <http://localhost:3000/openapi.yaml>
26
27
  <!-- daloy-minimal:strip-end docs -->
27
28
 
28
29
  ## Generate OpenAPI + typed client
@@ -16,7 +16,7 @@
16
16
  "gen": "pnpm gen:openapi && pnpm gen:client"
17
17
  },
18
18
  "dependencies": {
19
- "@daloyjs/core": "^0.13.0",
19
+ "@daloyjs/core": "^0.13.1",
20
20
  "zod": "^4.4.3"
21
21
  },
22
22
  "devDependencies": {
@@ -16,6 +16,7 @@ const links: StartupBannerLink[] = [
16
16
  // daloy-minimal:strip-start docs
17
17
  { label: "API docs", url: `${url}/docs` },
18
18
  { label: "OpenAPI JSON", url: `${url}/openapi.json` },
19
+ { label: "OpenAPI YAML", url: `${url}/openapi.yaml` },
19
20
  // daloy-minimal:strip-end docs
20
21
  { label: "Health", url: `${url}/healthz` },
21
22
  ];
@@ -10,7 +10,7 @@
10
10
  "test": "node --import tsx/esm --test tests/**/*.test.ts"
11
11
  },
12
12
  "dependencies": {
13
- "@daloyjs/core": "^0.13.0",
13
+ "@daloyjs/core": "^0.13.1",
14
14
  "zod": "^4.4.3"
15
15
  },
16
16
  "devDependencies": {
@@ -22,6 +22,7 @@ curl http://localhost:3000/books/1
22
22
 
23
23
  - API docs (Scalar): <http://localhost:3000/docs>
24
24
  - OpenAPI 3.1 JSON: <http://localhost:3000/openapi.json>
25
+ - OpenAPI 3.1 YAML: <http://localhost:3000/openapi.yaml>
25
26
  <!-- daloy-minimal:strip-end docs -->
26
27
 
27
28
  ## Generate the OpenAPI spec
@@ -8,8 +8,8 @@
8
8
  "gen:openapi": "deno run --allow-net --allow-env --allow-read --allow-write scripts/dump-openapi.ts"
9
9
  },
10
10
  "imports": {
11
- "@daloyjs/core": "npm:@daloyjs/core@^0.13.0",
12
- "@daloyjs/core/": "npm:@daloyjs/core@^0.13.0/",
11
+ "@daloyjs/core": "npm:@daloyjs/core@^0.13.1",
12
+ "@daloyjs/core/": "npm:@daloyjs/core@^0.13.1/",
13
13
  "zod": "npm:zod@^4.4.3"
14
14
  },
15
15
  "compilerOptions": {
@@ -13,6 +13,7 @@ serve(app, {
13
13
  // daloy-minimal:strip-start docs
14
14
  { label: "API docs", url: `${url}/docs` },
15
15
  { label: "OpenAPI JSON", url: `${url}/openapi.json` },
16
+ { label: "OpenAPI YAML", url: `${url}/openapi.yaml` },
16
17
  // daloy-minimal:strip-end docs
17
18
  { label: "Health", url: `${url}/healthz` },
18
19
  ];
@@ -23,6 +23,7 @@ curl http://localhost:3000/books/1
23
23
 
24
24
  - API docs (Scalar): <http://localhost:3000/docs>
25
25
  - OpenAPI 3.1 JSON: <http://localhost:3000/openapi.json>
26
+ - OpenAPI 3.1 YAML: <http://localhost:3000/openapi.yaml>
26
27
 
27
28
  The spec is generated live from your routes, so it stays in sync with what is actually deployed.
28
29
  <!-- daloy-minimal:strip-end docs -->
@@ -18,7 +18,7 @@
18
18
  "audit": "pnpm audit --prod"
19
19
  },
20
20
  "dependencies": {
21
- "@daloyjs/core": "^0.13.0",
21
+ "@daloyjs/core": "^0.13.1",
22
22
  "zod": "^4.4.3"
23
23
  },
24
24
  "devDependencies": {
@@ -12,6 +12,7 @@ const links: StartupBannerLink[] = [
12
12
  // daloy-minimal:strip-start docs
13
13
  { label: "API docs", url: `${url}/docs` },
14
14
  { label: "OpenAPI JSON", url: `${url}/openapi.json` },
15
+ { label: "OpenAPI YAML", url: `${url}/openapi.yaml` },
15
16
  // daloy-minimal:strip-end docs
16
17
  { label: "Health", url: `${url}/healthz` },
17
18
  ];
@@ -23,6 +23,7 @@ curl http://localhost:3000/books/1
23
23
 
24
24
  - API docs (Scalar): <http://localhost:3000/docs>
25
25
  - OpenAPI 3.1 JSON: <http://localhost:3000/openapi.json>
26
+ - OpenAPI 3.1 YAML: <http://localhost:3000/openapi.yaml>
26
27
 
27
28
  After deploying, the same routes serve `/docs` and `/openapi.json` from your Vercel Edge URL.
28
29
  <!-- daloy-minimal:strip-end docs -->
@@ -10,7 +10,7 @@
10
10
  "test": "node --import tsx/esm --test tests/**/*.test.ts"
11
11
  },
12
12
  "dependencies": {
13
- "@daloyjs/core": "^0.13.0",
13
+ "@daloyjs/core": "^0.13.1",
14
14
  "zod": "^4.4.3"
15
15
  },
16
16
  "devDependencies": {