@intentius/sql-yodeler 0.11.0 → 0.11.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.
@@ -7,7 +7,7 @@
7
7
  * chant-floor.ts is the first module loaded.
8
8
  */
9
9
  /** The first chant (and sql lexicon) whose CI yodel's pipelines run on. */
10
- export declare const CHANT_CI_FLOOR = "0.124.55";
10
+ export declare const CHANT_CI_FLOOR = "0.124.57";
11
11
  /** The packages a project pins at the floor, chant and the sql lexicon, at one version as the templates pin them. */
12
12
  export declare const CHANT_PACKAGES: readonly ["@intentius/chant", "@intentius/chant-lexicon-sql"];
13
13
  /** The line that installs the floor, exact as the templates pin chant. */
@@ -7,7 +7,7 @@
7
7
  * chant-floor.ts is the first module loaded.
8
8
  */
9
9
  /** The first chant (and sql lexicon) whose CI yodel's pipelines run on. */
10
- export const CHANT_CI_FLOOR = "0.124.55";
10
+ export const CHANT_CI_FLOOR = "0.124.57";
11
11
  /** The packages a project pins at the floor, chant and the sql lexicon, at one version as the templates pin them. */
12
12
  export const CHANT_PACKAGES = ["@intentius/chant", "@intentius/chant-lexicon-sql"];
13
13
  /** The line that installs the floor, exact as the templates pin chant. */
package/dist/exit.d.ts CHANGED
@@ -6,11 +6,11 @@
6
6
  * test/exit-codes.test.ts keeps them in agreement.
7
7
  *
8
8
  * The table is chant's `CHANT_EXIT`, read from `@intentius/chant/exit-codes`
9
- * by {@link useChantExitTable} when the installed chant has it. A chant
9
+ * by {@link useChantExitTable} when the installed chant has it. Code 9 (`misplaced`, chant#4624) is read the same way. A chant
10
10
  * released before that subpath has no table to read, so yodel keeps
11
11
  * {@link FALLBACK_EXIT}, the same numbers.
12
12
  */
13
- /** chant's table, as chant#4553 set it: the fallback for a chant that does not export it. */
13
+ /** chant's table, as chant#4553 set it and chant#4624 extended it with 9: the fallback for a chant that does not export it. */
14
14
  export declare const FALLBACK_EXIT: {
15
15
  readonly done: 0;
16
16
  readonly failed: 1;
@@ -21,6 +21,7 @@ export declare const FALLBACK_EXIT: {
21
21
  readonly superseded: 6;
22
22
  readonly denied: 7;
23
23
  readonly declined: 8;
24
+ readonly misplaced: 9;
24
25
  };
25
26
  /** A name in chant's table. */
26
27
  export type ExitName = keyof typeof FALLBACK_EXIT;
@@ -42,6 +43,8 @@ export declare let EXIT_SUPERSEDED: number;
42
43
  export declare let EXIT_DENIED: number;
43
44
  /** An answer at a confirmation that does not approve. */
44
45
  export declare let EXIT_DECLINED: number;
46
+ /** A job guard refused: the job runs where it is not set to run (`chant ci check-job`). yodel itself does not return it: the guard in a generated job exits 9 before yodel starts. */
47
+ export declare let EXIT_MISPLACED: number;
45
48
  /** Each code yodel returns and what it means, one line each. */
46
49
  export declare let EXIT_CODES: ReadonlyArray<readonly [number, string]>;
47
50
  /**
package/dist/exit.js CHANGED
@@ -6,11 +6,11 @@
6
6
  * test/exit-codes.test.ts keeps them in agreement.
7
7
  *
8
8
  * The table is chant's `CHANT_EXIT`, read from `@intentius/chant/exit-codes`
9
- * by {@link useChantExitTable} when the installed chant has it. A chant
9
+ * by {@link useChantExitTable} when the installed chant has it. Code 9 (`misplaced`, chant#4624) is read the same way. A chant
10
10
  * released before that subpath has no table to read, so yodel keeps
11
11
  * {@link FALLBACK_EXIT}, the same numbers.
12
12
  */
13
- /** chant's table, as chant#4553 set it: the fallback for a chant that does not export it. */
13
+ /** chant's table, as chant#4553 set it and chant#4624 extended it with 9: the fallback for a chant that does not export it. */
14
14
  export const FALLBACK_EXIT = {
15
15
  done: 0,
16
16
  failed: 1,
@@ -21,7 +21,10 @@ export const FALLBACK_EXIT = {
21
21
  superseded: 6,
22
22
  denied: 7,
23
23
  declined: 8,
24
+ misplaced: 9,
24
25
  };
26
+ /** The names a chant table must carry for yodel to read it. */
27
+ const REQUIRED = ["done", "failed", "drift", "waiting", "moved", "held", "superseded", "denied", "declined", "misplaced"];
25
28
  /* The codes are live bindings: each starts at the fallback's number, and useChantExitTable() sets them from chant's table. */
26
29
  /** Done, or nothing to do. */
27
30
  export let EXIT_OK = FALLBACK_EXIT.done;
@@ -41,6 +44,8 @@ export let EXIT_SUPERSEDED = FALLBACK_EXIT.superseded;
41
44
  export let EXIT_DENIED = FALLBACK_EXIT.denied;
42
45
  /** An answer at a confirmation that does not approve. */
43
46
  export let EXIT_DECLINED = FALLBACK_EXIT.declined;
47
+ /** A job guard refused: the job runs where it is not set to run (`chant ci check-job`). yodel itself does not return it: the guard in a generated job exits 9 before yodel starts. */
48
+ export let EXIT_MISPLACED = FALLBACK_EXIT.misplaced;
44
49
  /** Each code yodel returns and what it means, one line each. */
45
50
  export let EXIT_CODES = exitCodes();
46
51
  function exitCodes() {
@@ -73,8 +78,7 @@ export function useChantExitTable() {
73
78
  catch {
74
79
  return "fallback";
75
80
  }
76
- const names = Object.keys(FALLBACK_EXIT);
77
- if (!table || !names.every((name) => typeof table[name] === "number"))
81
+ if (!table || !REQUIRED.every((name) => typeof table[name] === "number"))
78
82
  return "fallback";
79
83
  const code = (name) => table[name];
80
84
  EXIT_OK = code("done");
@@ -86,6 +90,7 @@ export function useChantExitTable() {
86
90
  EXIT_SUPERSEDED = code("superseded");
87
91
  EXIT_DENIED = code("denied");
88
92
  EXIT_DECLINED = code("declined");
93
+ EXIT_MISPLACED = code("misplaced");
89
94
  EXIT_CODES = exitCodes();
90
95
  return "chant";
91
96
  })();
package/dist/exit.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"exit.js","sourceRoot":"","sources":["../src/exit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,6FAA6F;AAC7F,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,CAAC;IACV,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,UAAU,EAAE,CAAC;IACb,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,CAAC;CACH,CAAC;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AC3B,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;QAC/B,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3B,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;QACzB,eAAe,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC;QACrC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC7B,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;QACjC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;QACnC,UAAU,GAAG,SAAS,EAAE,CAAC;QACzB,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC,EAAE,CAAC;IACL,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,sFAAsF;AACtF,MAAM,CAAC,MAAM,iBAAiB,GAC5B,4NAA4N,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/sql-yodeler",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Schema changes for ClickHouse and Postgres, and the ops they imply, on chant's sql lexicon",
5
5
  "keywords": [
6
6
  "clickhouse",
@@ -50,6 +50,7 @@
50
50
  "typecheck": "tsc --noEmit",
51
51
  "check": "npm run typecheck && npm run lint && npm run test",
52
52
  "claims": "npm run build && tsx scenarios/run.ts",
53
+ "harness": "npm run build && tsx scenarios/harness/run.ts",
53
54
  "release": "bash scripts/release.sh",
54
55
  "workflows": "tsx .github/src/render.ts",
55
56
  "templates:check": "tsx scripts/templates-check.ts",
@@ -59,16 +60,16 @@
59
60
  "grant": "tsx scripts/grant.ts"
60
61
  },
61
62
  "dependencies": {
62
- "@intentius/chant": "^0.124.55",
63
- "@intentius/chant-lexicon-forgejo": "^0.124.55",
64
- "@intentius/chant-lexicon-github": "^0.124.55",
65
- "@intentius/chant-lexicon-gitlab": "^0.124.55",
66
- "@intentius/chant-lexicon-sql": "^0.124.55",
63
+ "@intentius/chant": "^0.124.57",
64
+ "@intentius/chant-lexicon-forgejo": "^0.124.57",
65
+ "@intentius/chant-lexicon-github": "^0.124.57",
66
+ "@intentius/chant-lexicon-gitlab": "^0.124.57",
67
+ "@intentius/chant-lexicon-sql": "^0.124.57",
67
68
  "tsx": "^4.23.15"
68
69
  },
69
70
  "devDependencies": {
70
71
  "@eslint/js": "^10.0.1",
71
- "@intentius/chant-lexicon-docker": "^0.124.55",
72
+ "@intentius/chant-lexicon-docker": "^0.124.57",
72
73
  "@types/node": "^22.20.5",
73
74
  "@types/pg": "^8.23.1",
74
75
  "ajv": "^8.20.0",