@kizunajs/cli 2.0.0-beta.8 → 2.0.0-beta.9

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/cli.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const require_route_map = require("./route-map-yRIISgnC.cjs");
2
+ const require_route_map = require("./route-map-I400Eb9_.cjs");
3
3
  let node_path = require("node:path");
4
4
  let node_fs = require("node:fs");
5
5
  let node_util = require("node:util");
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { _ as loadConfig, a as ConfigSyntaxError, c as formatStale, d as diffSnapshots, f as formatChange, h as snapshotTarget, i as readSnapshot, l as writeClients, m as snapshotPathFor, n as routeMap, o as generateConfigTypes, p as hasBreakingChange, r as diffAgainst, s as checkClients, t as formatRoutes } from "./route-map-CRWVBQGf.mjs";
2
+ import { _ as loadConfig, a as ConfigSyntaxError, c as formatStale, d as diffSnapshots, f as formatChange, h as snapshotTarget, i as readSnapshot, l as writeClients, m as snapshotPathFor, n as routeMap, o as generateConfigTypes, p as hasBreakingChange, r as diffAgainst, s as checkClients, t as formatRoutes } from "./route-map-C484dhbj.mjs";
3
3
  import { dirname, relative, resolve } from "node:path";
4
4
  import { existsSync, readFileSync, writeFileSync } from "node:fs";
5
5
  import { parseArgs } from "node:util";
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_route_map = require("./route-map-yRIISgnC.cjs");
2
+ const require_route_map = require("./route-map-I400Eb9_.cjs");
3
3
  let kizunajs_generator = require("kizunajs/generator");
4
4
  //#region src/api-notices.ts
5
5
  const readSunset = (route) => {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as loadConfig, a as ConfigSyntaxError, c as formatStale, f as formatChange, g as diffSchemas, l as writeClients, n as routeMap, o as generateConfigTypes, p as hasBreakingChange, r as diffAgainst, s as checkClients, t as formatRoutes, u as diffApis } from "./route-map-CRWVBQGf.mjs";
1
+ import { _ as loadConfig, a as ConfigSyntaxError, c as formatStale, f as formatChange, g as diffSchemas, l as writeClients, n as routeMap, o as generateConfigTypes, p as hasBreakingChange, r as diffAgainst, s as checkClients, t as formatRoutes, u as diffApis } from "./route-map-C484dhbj.mjs";
2
2
  import { createGenerator } from "kizunajs/generator";
3
3
  //#region src/api-notices.ts
4
4
  const readSunset = (route) => {
@@ -236,7 +236,7 @@ const renderSnapshot = (api) => stringify(toSnapshot(api), { lineWidth: 0 });
236
236
  */
237
237
  const snapshotPathFor = (configPath) => {
238
238
  const declared = basename(configPath).replace(/\.config\.[cm]?[jt]s$/, "").replace(/^kizuna\./, "");
239
- const name = declared === "" || declared === "kizuna" ? "diff" : `${declared}.diff`;
239
+ const name = declared === "" || declared === "kizuna" ? "snapshot" : `${declared}.snapshot`;
240
240
  return join(dirname(configPath), ".kizuna", `${name}.yaml`);
241
241
  };
242
242
  /**
@@ -244,7 +244,7 @@ const snapshotPathFor = (configPath) => {
244
244
  * `kizuna generate --check` refuses to let it go stale.
245
245
  */
246
246
  const snapshotTarget = (configPath) => ({
247
- kind: "diff",
247
+ kind: "snapshot",
248
248
  output: snapshotPathFor(configPath),
249
249
  generate: renderSnapshot
250
250
  });
@@ -736,7 +736,7 @@ const parseSnapshot = (contents, source) => {
736
736
  try {
737
737
  return parse(contents);
738
738
  } catch {
739
- throw new Error(`${source} is not a Kizuna diff file. Run \`kizuna generate\` to write one.`);
739
+ throw new Error(`${source} is not a Kizuna snapshot. Run \`kizuna generate\` to write one.`);
740
740
  }
741
741
  };
742
742
  /**
@@ -259,7 +259,7 @@ const renderSnapshot = (api) => (0, yaml.stringify)(toSnapshot(api), { lineWidth
259
259
  */
260
260
  const snapshotPathFor = (configPath) => {
261
261
  const declared = (0, node_path.basename)(configPath).replace(/\.config\.[cm]?[jt]s$/, "").replace(/^kizuna\./, "");
262
- const name = declared === "" || declared === "kizuna" ? "diff" : `${declared}.diff`;
262
+ const name = declared === "" || declared === "kizuna" ? "snapshot" : `${declared}.snapshot`;
263
263
  return (0, node_path.join)((0, node_path.dirname)(configPath), ".kizuna", `${name}.yaml`);
264
264
  };
265
265
  /**
@@ -267,7 +267,7 @@ const snapshotPathFor = (configPath) => {
267
267
  * `kizuna generate --check` refuses to let it go stale.
268
268
  */
269
269
  const snapshotTarget = (configPath) => ({
270
- kind: "diff",
270
+ kind: "snapshot",
271
271
  output: snapshotPathFor(configPath),
272
272
  generate: renderSnapshot
273
273
  });
@@ -759,7 +759,7 @@ const parseSnapshot = (contents, source) => {
759
759
  try {
760
760
  return (0, yaml.parse)(contents);
761
761
  } catch {
762
- throw new Error(`${source} is not a Kizuna diff file. Run \`kizuna generate\` to write one.`);
762
+ throw new Error(`${source} is not a Kizuna snapshot. Run \`kizuna generate\` to write one.`);
763
763
  }
764
764
  };
765
765
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizunajs/cli",
3
- "version": "2.0.0-beta.8",
3
+ "version": "2.0.0-beta.9",
4
4
  "description": "Command line tooling for Kizuna.js",
5
5
  "keywords": [
6
6
  "kizunajs",
@@ -62,14 +62,14 @@
62
62
  },
63
63
  "peerDependencies": {
64
64
  "zod": "^4.0.0",
65
- "kizunajs": "2.0.0-beta.8"
65
+ "kizunajs": "2.0.0-beta.9"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/node": "^24",
69
69
  "@types/react": "^19.2.18",
70
70
  "tsdown": "^0.21.0",
71
71
  "zod": "^4.0.0",
72
- "kizunajs": "2.0.0-beta.8"
72
+ "kizunajs": "2.0.0-beta.9"
73
73
  },
74
74
  "scripts": {
75
75
  "build": "tsdown src/index.ts src/cli.ts --format esm,cjs --dts --clean --external kizunajs --external zod --external jiti --external typescript",