@ultimat3/cli 31.3.0 → 31.4.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 +29 -29
- package/src/cmd-doctor.ts +12 -316
- package/src/doctor-database.ts +121 -0
- package/src/doctor-port.ts +88 -0
- package/src/doctor-probe.ts +148 -0
- package/src/framework-schema.ts +4 -2
- package/src/guard-sources.ts +32 -11
- package/src/templates/guard-bare-error.ts +1 -1
- package/src/templates/guard-error-declared.ts +51 -5
- package/src/templates/guard-image-dimensions.ts +3 -2
- package/src/templates/guard-local-binding.ts +74 -0
- package/src/templates/guard-native-confirm.ts +16 -1
- package/src/templates/guard-raw-fetch.ts +11 -3
- package/src/templates/guard-raw-interval.ts +8 -1
- package/src/templates/guard-raw-motion.ts +20 -4
- package/src/templates/guard-semantic-interactive.ts +20 -2
- package/src/templates/guard-undeclared-custom-property.ts +34 -10
- package/src/templates/guard-undefined-style-class.ts +34 -7
- package/src/templates/guard-untranslated-string.ts +5 -4
- package/src/templates/guard-unzoned-date.ts +14 -1
- package/src/templates/scaffold-auth.ts +7 -10
- package/src/templates/scaffold-claude-agents.ts +1 -1
- package/src/templates/scaffold-claude-commands.ts +1 -1
- package/src/templates/scaffold-docs.ts +1 -1
- package/src/templates/scaffold-domain-package.ts +1 -1
- package/src/templates/slice-foundation.ts +1 -1
- package/wiki/Actions.md +3 -2
- package/wiki/Agents.md +1 -1
- package/wiki/Building-Your-Own-Base.md +1 -1
- package/wiki/Interface-Rules.md +3 -3
- package/wiki/MCP-And-AI.md +1 -1
- package/wiki/Stability.md +6 -5
- package/wiki/Upgrading.md +11 -10
|
@@ -67,6 +67,14 @@ const ROLE = /(?<![\\w-])role\\s*=\\s*["']([a-z]+)["']/;
|
|
|
67
67
|
const TABINDEX = /(?<![\\w-])tab[Ii]ndex\\s*=/;
|
|
68
68
|
const KEYS = /(?<![\\w-])onKey(?:Down|Up|Press)\\s*=/;
|
|
69
69
|
|
|
70
|
+
/**
|
|
71
|
+
* An option an \`aria-activedescendant\` combobox manages: focus stays on the input, which answers
|
|
72
|
+
* the keys, so the option is \`tabIndex={-1}\` with a pointer handler and nothing more — the WAI-ARIA
|
|
73
|
+
* combobox pattern, complete as written. \`option\` only: no other role is exempted by this shape.
|
|
74
|
+
*/
|
|
75
|
+
const MANAGED = /(?<![\\w-])role\\s*=\\s*["']option["']/;
|
|
76
|
+
const UNFOCUSED = /(?<![\\w-])tab[Ii]ndex\\s*=\\s*(?:\\{\\s*-1\\s*\\}|["']-1["'])/;
|
|
77
|
+
|
|
70
78
|
export interface SourceFile {
|
|
71
79
|
/** App-root-relative POSIX path, so the finding names the file an author opens. */
|
|
72
80
|
readonly path: string;
|
|
@@ -134,6 +142,7 @@ export function semanticInteractive(files: readonly SourceFile[]): readonly Find
|
|
|
134
142
|
// guide asks for — a deliberate widget, written by someone who read the obligation. This
|
|
135
143
|
// rule is about the incomplete ones, so all three present is the one shape it passes over.
|
|
136
144
|
if (ROLE.test(tag.attrs) && TABINDEX.test(tag.attrs) && KEYS.test(tag.attrs)) continue;
|
|
145
|
+
if (MANAGED.test(tag.attrs) && UNFOCUSED.test(tag.attrs)) continue;
|
|
137
146
|
const at = \`\${file.path}:\${lineOf(text, tag.index)}\`;
|
|
138
147
|
const role = ROLE.exec(tag.attrs)?.[1] ?? '';
|
|
139
148
|
const native = NATIVE.get(role);
|
|
@@ -170,8 +179,9 @@ export const guard: Guard = {
|
|
|
170
179
|
// \`{apps/web,packages/ui}/**/*.tsx\` each match ZERO files, where \`apps/*/{site,app}/**/*.tsx\`
|
|
171
180
|
// matches 17 — so folding these into one line silently turns the guard off, which is worse than
|
|
172
181
|
// the hole it closes. A LEADING group is fine and the stylesheet guards here rely on it:
|
|
173
|
-
// \`{apps,packages}/**/*.scss\` matches all 15.
|
|
174
|
-
|
|
182
|
+
// \`{apps,packages}/**/*.scss\` matches all 15. \`shared/\` is read too: a component there renders
|
|
183
|
+
// on every page that imports it, and leaving it out was a directory the rule never saw.
|
|
184
|
+
for (const pattern of ['apps/*/{site,app,shared}/**/*.tsx', 'packages/*/src/**/*.tsx']) {
|
|
175
185
|
// The run's ONE read: every guard asking for these two globs shares the walk.
|
|
176
186
|
for (const file of await sources.files(pattern)) {
|
|
177
187
|
if (/\\.test\\.tsx?$/.test(file.path)) continue;
|
|
@@ -221,6 +231,14 @@ unitTest('a role with a tab stop and a key handler is a deliberate widget', () =
|
|
|
221
231
|
expect(semanticInteractive(file(widget))).toEqual([]);
|
|
222
232
|
});
|
|
223
233
|
|
|
234
|
+
// The WAI-ARIA combobox: focus stays on the input, which answers the keys for its options.
|
|
235
|
+
unitTest('a managed option is silent; one with a tab stop is not', () => {
|
|
236
|
+
const managed = '<div role="option" tabIndex={-1} onMouseDown={pick}>A</div>';
|
|
237
|
+
expect(semanticInteractive(file(managed))).toEqual([]);
|
|
238
|
+
const focusable = '<div role="option" onMouseDown={pick}>A</div>';
|
|
239
|
+
expect(semanticInteractive(file(focusable))).toHaveLength(1);
|
|
240
|
+
});
|
|
241
|
+
|
|
224
242
|
unitTest('data-role is not role, and a live region is not a control', () => {
|
|
225
243
|
expect(semanticInteractive(file('<p data-role="status" role="status">Saved</p>'))).toEqual([]);
|
|
226
244
|
});
|
|
@@ -18,8 +18,9 @@ const source =
|
|
|
18
18
|
// Read from the COMPILED sheets, so \`tokens.space(7)\` — a step the scale does not have — is the
|
|
19
19
|
// \`var(--space-7)\` it compiles to. Declared means: set by any stylesheet in the app (the global
|
|
20
20
|
// one emits every token), or named in a \`.ts\`/\`.tsx\` file, where an inline \`style\` sets it. A
|
|
21
|
-
// \`var(--x, fallback)\` declares its own answer and is never reported.
|
|
22
|
-
// compile
|
|
21
|
+
// \`var(--x, fallback)\` declares its own answer and is never reported. A sheet that fails to
|
|
22
|
+
// compile is itself a finding, and while one does no read is judged: its declarations are unknown,
|
|
23
|
+
// and a rule that read nothing never passes.
|
|
23
24
|
|
|
24
25
|
import type { Finding, Guard } from '@ultimat3/cli';
|
|
25
26
|
|
|
@@ -31,7 +32,10 @@ export interface CompiledSheet {
|
|
|
31
32
|
readonly path: string;
|
|
32
33
|
/** The source, to find the line a compiled \`var()\` came from. */
|
|
33
34
|
readonly scss: string;
|
|
34
|
-
|
|
35
|
+
/** \`undefined\` when the sheet does not compile. */
|
|
36
|
+
readonly css: string | undefined;
|
|
37
|
+
/** The compiler's first line, when it does not. */
|
|
38
|
+
readonly error?: string | undefined;
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
const DECLARED = /(--[A-Za-z_][\\w-]*)\\s*:/g;
|
|
@@ -84,9 +88,20 @@ export function undeclaredCustomProperties(
|
|
|
84
88
|
sheets: readonly CompiledSheet[],
|
|
85
89
|
sources: readonly string[],
|
|
86
90
|
): readonly Finding[] {
|
|
91
|
+
// One sheet that does not compile and the declared set is incomplete: every read of what it
|
|
92
|
+
// declares would be reported. The broken sheet is the finding; the reads wait for its repair.
|
|
93
|
+
const broken = sheets.filter((sheet) => sheet.css === undefined);
|
|
94
|
+
if (broken.length > 0) {
|
|
95
|
+
return broken.map((sheet) => ({
|
|
96
|
+
code: CODE,
|
|
97
|
+
cause: \`\${sheet.path} does not compile\${sheet.error === undefined ? '' : \`: \${sheet.error}\`} — so the custom properties it declares are unknown and no var() read in this app was checked\`,
|
|
98
|
+
fix: \`repair the Sass in \${sheet.path}\${sheet.error === undefined ? " — x build --target static prints the compiler's error for a sheet a page uses —" : ' at the error the cause quotes,'} then: x verify\`,
|
|
99
|
+
at: sheet.path,
|
|
100
|
+
}));
|
|
101
|
+
}
|
|
87
102
|
const declared = new Set<string>();
|
|
88
103
|
for (const sheet of sheets) {
|
|
89
|
-
for (const match of sheet.css.matchAll(DECLARED)) declared.add(match[1] ?? '');
|
|
104
|
+
for (const match of (sheet.css ?? '').matchAll(DECLARED)) declared.add(match[1] ?? '');
|
|
90
105
|
}
|
|
91
106
|
for (const source of sources) {
|
|
92
107
|
for (const match of source.matchAll(NAMED)) declared.add(match[0]);
|
|
@@ -95,7 +110,7 @@ export function undeclaredCustomProperties(
|
|
|
95
110
|
const findings: Finding[] = [];
|
|
96
111
|
for (const sheet of sheets) {
|
|
97
112
|
const reported = new Set<string>();
|
|
98
|
-
for (const match of sheet.css.matchAll(READ)) {
|
|
113
|
+
for (const match of (sheet.css ?? '').matchAll(READ)) {
|
|
99
114
|
const name = match[1] ?? '';
|
|
100
115
|
if (declared.has(name) || reported.has(name)) continue;
|
|
101
116
|
reported.add(name);
|
|
@@ -123,11 +138,9 @@ export const guard: Guard = {
|
|
|
123
138
|
// A partial is \`@use\`d into the sheets that are compiled here; alone it is not a stylesheet.
|
|
124
139
|
if ((file.path.split('/').pop() ?? '').startsWith('_')) continue;
|
|
125
140
|
const compiled = await sources.compiled(file.path);
|
|
126
|
-
//
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if (compiled === undefined) return [];
|
|
130
|
-
sheets.push({ path: file.path, scss: file.text, css: compiled.css });
|
|
141
|
+
// \`compileError\` is optional on \`GuardSources\`: an older CLI reports the sheet without it.
|
|
142
|
+
const error = compiled === undefined ? await sources.compileError?.(file.path) : undefined;
|
|
143
|
+
sheets.push({ path: file.path, scss: file.text, css: compiled?.css, error });
|
|
131
144
|
}
|
|
132
145
|
const code = await sources.files('{apps,packages}/**/*.{ts,tsx}');
|
|
133
146
|
return undeclaredCustomProperties(
|
|
@@ -203,6 +216,17 @@ unitTest('a property an inline style can set is declared', () => {
|
|
|
203
216
|
expect(check('.bar { width: var(--fill); }', '.bar{width:var(--fill)}', [tsx])).toEqual([]);
|
|
204
217
|
});
|
|
205
218
|
|
|
219
|
+
unitTest('a sheet that does not compile is the finding, and no read is judged while it is', () => {
|
|
220
|
+
const broken = { path: 'apps/web/shared/broken.scss', scss: ':root { --x: ; ', css: undefined };
|
|
221
|
+
const findings = undeclaredCustomProperties(
|
|
222
|
+
[GLOBAL, broken, sheet('', '.a{color:var(--x)}')],
|
|
223
|
+
[],
|
|
224
|
+
);
|
|
225
|
+
expect(findings.map((finding) => finding.at)).toEqual(['apps/web/shared/broken.scss']);
|
|
226
|
+
const quoted = undeclaredCustomProperties([{ ...broken, error: 'Error: expected "}".' }], []);
|
|
227
|
+
expect(quoted[0]?.cause).toContain('does not compile: Error: expected "}".');
|
|
228
|
+
});
|
|
229
|
+
|
|
206
230
|
unitTest('a read with a fallback declares its own answer', () => {
|
|
207
231
|
expect(check('.a { color: var(--maybe, inherit); }', '.a{color:var(--maybe, inherit)}')).toEqual(
|
|
208
232
|
[],
|
|
@@ -17,7 +17,8 @@ const source =
|
|
|
17
17
|
//
|
|
18
18
|
// Read from the COMPILED sheet, so a class a mixin generates or \`&-suffix\` nests is one, and a
|
|
19
19
|
// class inside \`:global()\` is not. A computed member (\`styles[name]\`) is out of scope: its key is
|
|
20
|
-
// only known when the component runs. A sheet that does not compile is
|
|
20
|
+
// only known when the component runs. A sheet that does not compile, or is not there, is a finding
|
|
21
|
+
// at its import: no read off it can be checked, and a rule that read nothing never passes.
|
|
21
22
|
|
|
22
23
|
import type { Finding, Guard } from '@ultimat3/cli';
|
|
23
24
|
|
|
@@ -30,8 +31,13 @@ export interface MarkupFile {
|
|
|
30
31
|
readonly tsx: string;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
/**
|
|
34
|
-
|
|
34
|
+
/**
|
|
35
|
+
* The classes a stylesheet compiles, by app-root-relative path; \`{ error }\` with the compiler's
|
|
36
|
+
* first line when it does not, \`undefined\` when there is no line to give.
|
|
37
|
+
*/
|
|
38
|
+
export type CompiledClasses = (
|
|
39
|
+
sheet: string,
|
|
40
|
+
) => Promise<readonly string[] | { readonly error: string } | undefined>;
|
|
35
41
|
|
|
36
42
|
const blank = (text: string): string => text.replaceAll(/[^\\n]/g, ' ');
|
|
37
43
|
|
|
@@ -80,7 +86,17 @@ export async function undefinedStyleClasses(
|
|
|
80
86
|
const binding = imported[1] ?? '';
|
|
81
87
|
const sheet = resolve(file.path, imported[2] ?? '');
|
|
82
88
|
const declared = await classesOf(sheet);
|
|
83
|
-
if (declared === undefined)
|
|
89
|
+
if (declared === undefined || 'error' in declared) {
|
|
90
|
+
const at = \`\${file.path}:\${lineOf(tsx, imported.index)}\`;
|
|
91
|
+
const said = declared === undefined ? '' : \`: \${declared.error}\`;
|
|
92
|
+
findings.push({
|
|
93
|
+
code: CODE,
|
|
94
|
+
cause: \`\${at} imports \${sheet}, which does not compile\${said} — no class read off \${binding} was checked, and each may render as nothing\`,
|
|
95
|
+
fix: \`repair the Sass in \${sheet}\${said === '' ? " (x build --target static prints the compiler's error)" : ' at the error the cause quotes'}, or correct the import at \${at}, then: x verify\`,
|
|
96
|
+
at,
|
|
97
|
+
});
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
84
100
|
// \`styles.hero\` and \`styles['hero-title']\` — a static key either way. \`styles[name]\` has no
|
|
85
101
|
// quote after the bracket and is not matched. A path is not a read: \`'./shell.module.scss'\`
|
|
86
102
|
// holds \`shell.module\`, so a name that follows a slash, a quote or a dash is skipped.
|
|
@@ -118,7 +134,10 @@ export const guard: Guard = {
|
|
|
118
134
|
markup.map((file) => ({ path: file.path, tsx: file.text })),
|
|
119
135
|
async (sheet) => {
|
|
120
136
|
const compiled = await sources.compiled(sheet);
|
|
121
|
-
|
|
137
|
+
if (compiled !== undefined) return Object.keys(compiled.classes);
|
|
138
|
+
// \`compileError\` is optional on \`GuardSources\`: an older CLI reports the sheet without it.
|
|
139
|
+
const error = await sources.compileError?.(sheet);
|
|
140
|
+
return error === undefined ? undefined : { error };
|
|
122
141
|
},
|
|
123
142
|
);
|
|
124
143
|
},
|
|
@@ -202,9 +221,17 @@ unitTest('a computed key, a comment and another object are out of scope', async
|
|
|
202
221
|
for (const body of silent) expect(await check(body)).toEqual([]);
|
|
203
222
|
});
|
|
204
223
|
|
|
205
|
-
unitTest(
|
|
224
|
+
unitTest('a sheet that does not compile is refused at its import, once', async () => {
|
|
206
225
|
const imports = "import styles from './broken.module.scss';";
|
|
207
|
-
|
|
226
|
+
const findings = await check('export const Page = () => <h1 class={styles.any} />;', imports);
|
|
227
|
+
expect(findings.map((finding) => finding.at)).toEqual(['apps/web/site/page.tsx:1']);
|
|
228
|
+
expect(findings[0]?.cause).toContain('apps/web/site/broken.module.scss, which does not compile');
|
|
229
|
+
// With the compiler's line to give, the finding quotes it.
|
|
230
|
+
const quoted = await undefinedStyleClasses(
|
|
231
|
+
page('export const Page = () => <h1 class={styles.any} />;'),
|
|
232
|
+
async () => ({ error: 'Error: expected "}".' }),
|
|
233
|
+
);
|
|
234
|
+
expect(quoted[0]?.cause).toContain('which does not compile: Error: expected "}".');
|
|
208
235
|
});
|
|
209
236
|
`;
|
|
210
237
|
|
|
@@ -108,16 +108,17 @@ export const guard: Guard = {
|
|
|
108
108
|
const files: SourceFile[] = [];
|
|
109
109
|
// Every rendered surface: an app's \`site/\` and \`app/\`, and the shared components under
|
|
110
110
|
// \`packages/*/src\` — \`x new\` scaffolds a \`packages/ui\` whose components render to a user, so
|
|
111
|
-
// a hardcoded string there used to be green. \`
|
|
112
|
-
//
|
|
111
|
+
// a hardcoded string there used to be green. \`shared/\` holds the components both surfaces
|
|
112
|
+
// import, so it renders too; \`api/\` renders nothing; \`packages/*/dist\` is a build output.
|
|
113
113
|
//
|
|
114
114
|
// TWO globs, and the rule is that a brace ALTERNATIVE may not contain a \`/\`. Measured on Bun
|
|
115
115
|
// 1.4.0 against \`examples/dummy\`: \`{apps/*/{site,app},packages/*/src}/**/*.tsx\` and
|
|
116
116
|
// \`{apps/web,packages/ui}/**/*.tsx\` each match ZERO files, where \`apps/*/{site,app}/**/*.tsx\`
|
|
117
117
|
// matches 17 — so folding these into one line silently turns the guard off, which is worse than
|
|
118
118
|
// the hole it closes. A LEADING group is fine and the stylesheet guards here rely on it:
|
|
119
|
-
// \`{apps,packages}/**/*.scss\` matches all 15.
|
|
120
|
-
|
|
119
|
+
// \`{apps,packages}/**/*.scss\` matches all 15. \`shared/\` is read too: a component there renders
|
|
120
|
+
// on every page that imports it, and leaving it out was a directory the rule never saw.
|
|
121
|
+
for (const pattern of ['apps/*/{site,app,shared}/**/*.tsx', 'packages/*/src/**/*.tsx']) {
|
|
121
122
|
// The run's ONE read: every guard asking for these two globs shares the walk.
|
|
122
123
|
for (const file of await sources.files(pattern)) {
|
|
123
124
|
if (/\\.test\\.tsx?$/.test(file.path)) continue;
|
|
@@ -40,6 +40,9 @@ const FORMATTER =
|
|
|
40
40
|
*/
|
|
41
41
|
const ZONED = /\\btimeZone\\s*[:,}]|(['"])timeZone\\1\\s*:/;
|
|
42
42
|
|
|
43
|
+
/** What follows a formatter's \`)\` when it only reports its options — the host zone among them. */
|
|
44
|
+
const RESOLVED = /^\\s*\\.\\s*resolvedOptions\\s*\\(/;
|
|
45
|
+
|
|
43
46
|
/**
|
|
44
47
|
* The zoned call that replaces a formatter with no zone option. A \`Map\`, not an object: an
|
|
45
48
|
* object literal's prototype answers \`toLocaleString\`, and the bare call would read as one.
|
|
@@ -93,7 +96,11 @@ export function unzonedDates(files: readonly SourceFile[]): readonly Finding[] {
|
|
|
93
96
|
const text = blank(file.source);
|
|
94
97
|
for (const match of text.matchAll(FORMATTER)) {
|
|
95
98
|
const open = match.index + match[0].length - 1;
|
|
96
|
-
|
|
99
|
+
const args = argumentsOf(text, open);
|
|
100
|
+
if (ZONED.test(args)) continue;
|
|
101
|
+
// \`Intl.DateTimeFormat().resolvedOptions()\` READS the host's zone and formats nothing: it is
|
|
102
|
+
// how a browser learns which zone to pass. Only a formatter that goes on to format is a date.
|
|
103
|
+
if (RESOLVED.test(text.slice(open + args.length + 2))) continue;
|
|
97
104
|
const line = lineOf(text, match.index);
|
|
98
105
|
// The bare \`.toLocaleString(\` is ALSO \`Number.prototype.toLocaleString\`, and a regex cannot
|
|
99
106
|
// tell a count from a date. The match stands — a date formatted this way is the defect this
|
|
@@ -193,6 +200,12 @@ unitTest('toDateString and toTimeString name the zoned call', () => {
|
|
|
193
200
|
expect(time[0]?.fix).toContain('toLocaleTimeString(locale');
|
|
194
201
|
});
|
|
195
202
|
|
|
203
|
+
unitTest('reading the host zone through resolvedOptions() formats no date', () => {
|
|
204
|
+
const read = 'const zone = Intl.DateTimeFormat().resolvedOptions().timeZone;';
|
|
205
|
+
expect(unzonedDates(file(read))).toEqual([]);
|
|
206
|
+
expect(unzonedDates(file("Intl.DateTimeFormat('en').formatToParts(at);"))).toHaveLength(1);
|
|
207
|
+
});
|
|
208
|
+
|
|
196
209
|
unitTest('a commented-out call is a note, not a call', () => {
|
|
197
210
|
expect(unzonedDates(file("// at.toLocaleDateString('en-US');"))).toEqual([]);
|
|
198
211
|
});
|
|
@@ -117,16 +117,13 @@ export const authModule =
|
|
|
117
117
|
// creates one.
|
|
118
118
|
import { type Auth, defineAuth, postgresAuthAdapter } from '@ultimat3/auth';
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
// Built at import, and safe to be: the boot scan imports this module before the database and the
|
|
121
|
+
// host's shared lockout limiter are installed, and both are read where they are used — the adapter
|
|
122
|
+
// asks for \`db()\` per call, \`defineAuth\` for the installed limiter on its first attempt.
|
|
123
|
+
const auth = defineAuth({ adapter: postgresAuthAdapter() });
|
|
121
124
|
|
|
122
|
-
/**
|
|
123
|
-
|
|
124
|
-
* the host's shared lockout limiter are installed, and \`defineAuth\` reads both.
|
|
125
|
-
*/
|
|
126
|
-
export const appAuth = (): Auth => {
|
|
127
|
-
built ??= defineAuth({ adapter: postgresAuthAdapter() });
|
|
128
|
-
return built;
|
|
129
|
-
};
|
|
125
|
+
/** This app's \`Auth\`: the one instance every sign-in, session and api-key check runs through. */
|
|
126
|
+
export const appAuth = (): Auth => auth;
|
|
130
127
|
`;
|
|
131
128
|
|
|
132
129
|
const authenticatorModule =
|
|
@@ -157,7 +154,7 @@ export interface SessionRequest extends HeaderRequest {
|
|
|
157
154
|
}
|
|
158
155
|
|
|
159
156
|
export interface SessionAuthenticatorOptions {
|
|
160
|
-
/** The app's \`Auth\`, asked for per request so
|
|
157
|
+
/** The app's \`Auth\`, asked for per request so a test can hand in its own. */
|
|
161
158
|
readonly auth: () => Auth;
|
|
162
159
|
/** Whether a request with no session is the development viewer rather than anonymous. */
|
|
163
160
|
readonly development: boolean;
|
|
@@ -100,7 +100,7 @@ renders. A change outside that set is a collision — report it, do not make it.
|
|
|
100
100
|
| Generate, then edit | \`bunx x g <kind> <name> --feature <slice>\` for every one of them — a hand-written primitive is missing from every registry that projects it |
|
|
101
101
|
| One authz object | the policy decides; a route or a UI that re-checks is a second answer that will drift |
|
|
102
102
|
| Data through the repo | an action calls \`repo.ts\`, never the database |
|
|
103
|
-
| Errors are instructions | never \`throw new Error\` — declare each code once with \`defineError({ code, title, status, cause, fix })\` from \`@ultimat3/core\`: a stable \`X_SCREAMING_SNAKE\` code, a cause and a \`fix:\` a caller can actually run. \`guards/error-declared.ts\` refuses a handwritten \`UltimateError\` subclass |
|
|
103
|
+
| Errors are instructions | never \`throw new Error\` — declare each code once with \`defineError({ code, title, status, cause, fix })\` from \`@ultimat3/core/page\`: a stable \`X_SCREAMING_SNAKE\` code, a cause and a \`fix:\` a caller can actually run. \`guards/error-declared.ts\` refuses a handwritten \`UltimateError\` subclass |
|
|
104
104
|
| Jobs run at least once | a handler must be idempotent — an upsert or a statement whose second run changes nothing, never \`count + 1\` |
|
|
105
105
|
| Tasks name a time zone | a cron schedule with an ambient zone is a different time twice a year |
|
|
106
106
|
| No \`any\` | \`unknown\` plus a schema parse |
|
|
@@ -105,7 +105,7 @@ While you iterate, narrow the *feedback*, not the gate:
|
|
|
105
105
|
|
|
106
106
|
## 5. Hard rules
|
|
107
107
|
|
|
108
|
-
Never a bare \`throw new Error\` — declare each code once with \`defineError\` from \`@ultimat3/core\`:
|
|
108
|
+
Never a bare \`throw new Error\` — declare each code once with \`defineError\` from \`@ultimat3/core/page\`:
|
|
109
109
|
a stable code, a title, a status, a cause and a runnable \`fix:\`.
|
|
110
110
|
No \`any\`; use \`unknown\` and parse. Named exports only. \`import type\` for types.
|
|
111
111
|
Tests next to the source as \`<file>.test.ts\`, failure case first — a test that cannot fail is not a
|
|
@@ -47,7 +47,7 @@ queries, jobs, MCP tools, published operations and tests it touches, each with p
|
|
|
47
47
|
| Vendors | a server \`fetch(\` carries a \`signal\` in its own options — better, it is \`outbound()\` from \`@ultimat3/core/outbound\`: a deadline, the caller's signal, safe-only retry | \`guards/raw-fetch.ts\` |
|
|
48
48
|
| Polling | an island re-reads on a timer with \`visibleInterval(run, ms)\` from \`@ultimat3/core/page\` — no call while the tab is hidden, none after a lost session — never a bare \`setInterval(\`; a \`// why:\` on the line admits a tick that is not a read | \`guards/raw-interval.ts\` |
|
|
49
49
|
| Confirmation | a destructive act asks through \`ConfirmDialog\` from \`@ultimat3/ui\` — Cancel focused, a native post, stays open on a refusal — never \`confirm(\`; a \`// why:\` on the line admits a call that is not that question | \`guards/native-confirm.ts\` |
|
|
50
|
-
| Errors | never \`throw new Error\` — declare each code once, \`defineError({ code, title, status, cause, fix })\` from \`@ultimat3/core\`, and throw its class; never a handwritten \`UltimateError\` subclass | \`guards/bare-error.ts\`, \`guards/error-declared.ts\` |
|
|
50
|
+
| Errors | never \`throw new Error\` — declare each code once, \`defineError({ code, title, status, cause, fix })\` from \`@ultimat3/core/page\`, and throw its class; never a handwritten \`UltimateError\` subclass | \`guards/bare-error.ts\`, \`guards/error-declared.ts\` |
|
|
51
51
|
| Money | \`{ minor, currency }\`, never a float — \`money()\` on the column | the type: \`price: 19.99\` is TS2322, \`number\` is not \`MoneyInput\` |
|
|
52
52
|
| Time | store UTC, format with an explicit IANA time zone | \`guards/unzoned-date.ts\` |
|
|
53
53
|
| Strings | every user-facing string goes through \`t()\` | \`guards/untranslated-string.ts\` |
|
|
@@ -18,7 +18,7 @@ const domainIndex = (
|
|
|
18
18
|
): string => `// Pure types and constants. No I/O of any kind: no fs, no network, no database, no env reads.
|
|
19
19
|
// \`Money\` is @ultimat3/schema's, re-exported and never restated: one declaration of
|
|
20
20
|
// { minor, currency } is what makes an entity column, a form field and this module the same type.
|
|
21
|
-
import { defineError } from '@ultimat3/core';
|
|
21
|
+
import { defineError } from '@ultimat3/core/page';
|
|
22
22
|
import type { MoneyValue as Money } from '@ultimat3/schema';
|
|
23
23
|
|
|
24
24
|
export type { MoneyValue as Money } from '@ultimat3/schema';
|
|
@@ -38,7 +38,7 @@ const errorsSource = (feature: NameSet): string => {
|
|
|
38
38
|
return `// The ${feature.kebab} feature's X_* codes. Never throw a bare Error: an agent reading the failure
|
|
39
39
|
// needs the code, the cause and the exact command that fixes it.
|
|
40
40
|
|
|
41
|
-
import { defineError } from '@ultimat3/core';
|
|
41
|
+
import { defineError } from '@ultimat3/core/page';
|
|
42
42
|
|
|
43
43
|
// One declaration: the title, the 404 a response answers, and the class a service throws. No
|
|
44
44
|
// \`docs:\` — it resolves from the code's registered descriptor, so the link has one home.
|
package/wiki/Actions.md
CHANGED
|
@@ -249,11 +249,12 @@ X_ACTION_POLICY_MISSING: action registered without a policy
|
|
|
249
249
|
|
|
250
250
|
Every code carries the same `{ code, cause, fix, docs }` in the terminal, the dev overlay, the HTTP body, `--json`, and the MCP tool error. Full list: [Error codes](Error-Codes).
|
|
251
251
|
|
|
252
|
-
A handler's OWN refusals are app codes, each declared once with `defineError` from
|
|
252
|
+
A handler's OWN refusals are app codes, each declared once with `defineError` from
|
|
253
|
+
`@ultimat3/core/page` (the barrel carries the framework's titles into every island that throws one)
|
|
253
254
|
— the title, the status the HTTP projection answers and the class `handle` throws:
|
|
254
255
|
|
|
255
256
|
```ts
|
|
256
|
-
import { defineError } from '@ultimat3/core';
|
|
257
|
+
import { defineError } from '@ultimat3/core/page';
|
|
257
258
|
|
|
258
259
|
export const PostNotFound = defineError<string>({
|
|
259
260
|
code: 'X_POST_NOT_FOUND',
|
package/wiki/Agents.md
CHANGED
|
@@ -195,7 +195,7 @@ No new run outcome and no deferred tool. The call is a `tool_result` flagged `is
|
|
|
195
195
|
|
|
196
196
|
```ts
|
|
197
197
|
import { inProcessTool } from '@ultimat3/ai';
|
|
198
|
-
import { defineError } from '@ultimat3/core';
|
|
198
|
+
import { defineError } from '@ultimat3/core/page';
|
|
199
199
|
import { t } from '@ultimat3/schema';
|
|
200
200
|
|
|
201
201
|
declare function loadDoc(id: string): Promise<{ id: string; body: string } | undefined>;
|
|
@@ -130,7 +130,7 @@ Both will bite. Both are the app's job, one line each.
|
|
|
130
130
|
|
|
131
131
|
A primitive is wrapped; an error code is not. Declare each code at its own call site with
|
|
132
132
|
`defineError({ code: 'X_INVOICE_NOT_FOUND', title, status: 404, cause, fix })` from
|
|
133
|
-
`@ultimat3/core` — the title, the HTTP status and the class in one call. The `errors` step and the
|
|
133
|
+
`@ultimat3/core/page` — the title, the HTTP status and the class in one call. The `errors` step and the
|
|
134
134
|
manifest read the `code:` literal where it is written, so a factory that takes the code as a
|
|
135
135
|
parameter hides it (`X_ERROR_CODE_UNRESOLVED`). A family of codes is a prefix (`X_BILLING_*`),
|
|
136
136
|
never a base class: `guards/error-declared.ts` refuses `extends UltimateError`, and
|
package/wiki/Interface-Rules.md
CHANGED
|
@@ -245,7 +245,7 @@ them: [Testing](Testing#seeing-what-you-built).
|
|
|
245
245
|
|
|
246
246
|
## Stylesheets
|
|
247
247
|
|
|
248
|
-
Biome does not read `.scss`. These seven guards are the only thing that does. `As of 2026-
|
|
248
|
+
Biome does not read `.scss`. These seven guards are the only thing that does. `As of 2026-11`.
|
|
249
249
|
|
|
250
250
|
| Rule | Refused by | The `fix:` it names |
|
|
251
251
|
|---|---|---|
|
|
@@ -253,9 +253,10 @@ Biome does not read `.scss`. These seven guards are the only thing that does. `A
|
|
|
253
253
|
| A viewport query names a rung of the one ladder | `guards/raw-breakpoint.ts` — `@media` with a `width` feature | `@include tokens.respond-to(md)` / `respond-down(md)` / `respond-between(md, lg)` |
|
|
254
254
|
| A layer is a name | `guards/raw-z-index.ts` — a number in `z-index` | `z-index: tokens.z(dropdown)`; behind its own stacking context, `calc(-1 * #{tokens.z(raised)})` |
|
|
255
255
|
| Elevation comes off the themed shadow scale | `guards/raw-shadow.ts` — a hand-written length in `box-shadow`, `text-shadow` or `drop-shadow()` | `box-shadow: tokens.shadow('sm')`, or `@include tokens.surface` |
|
|
256
|
-
| One tempo | `guards/raw-motion.ts` — a duration or `cubic-bezier()` literal in `transition*` / `animation
|
|
256
|
+
| One tempo | `guards/raw-motion.ts` — a duration or `cubic-bezier()` literal in `transition*` / `animation*`, or assigned to a custom property (`--ease: cubic-bezier(…)`) | `transition: opacity tokens.duration(fast) tokens.easing(out)`; in a custom property, interpolated: `--ease: #{tokens.easing(out)}` |
|
|
257
257
|
| A class a component reads is a class its sheet compiles | `guards/undefined-style-class.ts` — `styles.x` / `styles['x-y']` against the COMPILED `.module.scss` | the nearest class the sheet declares, or the rule to add |
|
|
258
258
|
| A custom property a sheet reads is one the app declares | `guards/undeclared-custom-property.ts` — `var(--x)` in the compiled CSS with no declaration anywhere and no fallback | the steps the scale really has: `tokens.space(7)` → `0 \| 1 \| 2 \| …` |
|
|
259
|
+
| A guard that reads compiled sheets never passes by reading nothing | `guards/undeclared-custom-property.ts` and `guards/undefined-style-class.ts` — a sheet that does not compile, or an imported one that does not exist, is a finding quoting the compiler's first line; while one is broken, no `var()` read is judged | repair the Sass at the error quoted |
|
|
259
260
|
|
|
260
261
|
| Not a finding | Why |
|
|
261
262
|
|---|---|
|
|
@@ -266,7 +267,6 @@ Biome does not read `.scss`. These seven guards are the only thing that does. `A
|
|
|
266
267
|
| `linear`, `ease`, `0s`, `calc(#{tokens.duration(slower)} * 2)` | a keyword, a zero, a multiple of a token |
|
|
267
268
|
| `styles[name]` | a computed key is only known when the component runs |
|
|
268
269
|
| `var(--x, fallback)`; a property a `.ts`/`.tsx` file names | it declares its own answer; an inline `style` sets it |
|
|
269
|
-
| a sheet that does not compile | the build's refusal (`X_PRERENDER_FAILED`), not a guard's |
|
|
270
270
|
|
|
271
271
|
## Data access
|
|
272
272
|
|
package/wiki/MCP-And-AI.md
CHANGED
|
@@ -241,7 +241,7 @@ verdict a production problem document gives. The developer audience keeps both.
|
|
|
241
241
|
same two fields, plus `docs` — declared once with `defineError`:
|
|
242
242
|
|
|
243
243
|
```ts
|
|
244
|
-
import { defineError } from '@ultimat3/core';
|
|
244
|
+
import { defineError } from '@ultimat3/core/page';
|
|
245
245
|
|
|
246
246
|
export const RefundWindowClosed = defineError<{ readonly ageDays: number }>({
|
|
247
247
|
code: 'X_REFUND_WINDOW_CLOSED',
|
package/wiki/Stability.md
CHANGED
|
@@ -40,13 +40,13 @@ Never "stable forever": a covered surface can change, in a scheduled major, with
|
|
|
40
40
|
|
|
41
41
|
| Release | When | Branch | npm dist-tag |
|
|
42
42
|
|---|---|---|---|
|
|
43
|
-
| major | at most once per 90 days from v31, counted from the previous major's `
|
|
43
|
+
| major | at most once per 90 days from v31, counted from the heading date of the previous major's `docs/changelog/<major>.0.0.md` | `next`, merged into `main` when the window opens | `latest` |
|
|
44
44
|
| minor | weekly, when something shipped | `main` | `latest` |
|
|
45
45
|
| patch to the current major | as needed | `main` | `latest` |
|
|
46
46
|
| patch to the previous major | security fixes only, until 6 months after its successor shipped | `release/<major>.x` | `maint-<major>` |
|
|
47
47
|
| prerelease of the next major — **planned, nothing ships one yet** | `release-tag.yml` cuts only `X.Y.Z` release commits, so no workflow publishes from `next` | `next` | `next` (`scripts/dist-tag.ts` already names it) |
|
|
48
48
|
|
|
49
|
-
**v31 is the stable line**, dated 2026-11-10 by
|
|
49
|
+
**v31 is the stable line**, dated 2026-11-10 by the heading of `docs/changelog/31.0.0.md`. It was the exception that starts the clock: it carried every break queued before the promise bound anyone (74, [Upgrading](Upgrading#30x--3100-entry-by-entry)), and `scripts/release.ts` does not refuse it (`WINDOW_OPENS_AT_MAJOR` in `scripts/lib/major-window.ts`). From it on, a `BREAKING —` entry waits on `next` and a removal ships its deprecation minor first.
|
|
50
50
|
|
|
51
51
|
Ruling 2026-11-09: the clock moved from v30 to v31. v30 shipped 2026-11-07 while only our own apps ran Ultimate in production, so the window protected no one yet; v31 carries the breaks of plan 101-final-hardening-before-v31, and the window protects adopters from there.
|
|
52
52
|
|
|
@@ -58,7 +58,7 @@ Ruling 2026-11-09: the clock moved from v30 to v31. v30 shipped 2026-11-07 while
|
|
|
58
58
|
| the previous major | security fixes, as patches on `release/<major>.x` | 6 months after the current major's `## X.0.0` date |
|
|
59
59
|
| anything older | none | [Upgrading](Upgrading), one major per `x upgrade` run |
|
|
60
60
|
|
|
61
|
-
**Convention, not enforced:** `release/<major>.x` is cut by hand at each major and kept at that major's newest minor; no script cuts
|
|
61
|
+
**Convention, not enforced:** `release/<major>.x` is cut by hand at each major and kept at that major's newest minor; no script cuts it. Its name is enforced: `ci.yml` and `release-tag.yml` match exactly `release/[0-9]+.x`, and `scripts/release.ts --bump` refuses any other `release/*` branch (`X_RELEASE_BRANCH_NAME`). A bump PR's own branch is `chore/release-X.Y.Z`, never `release/X.Y.Z` (#1054). Once it exists, a patch is `latest` while its major is current and `maint-<major>` once its successor ships. `scripts/dist-tag.ts` decides the tag from the registry's `latest`, and `npm publish` never runs without it.
|
|
62
62
|
|
|
63
63
|
## Deprecation
|
|
64
64
|
|
|
@@ -82,7 +82,7 @@ A security fix that cannot be made non-breaking may ship a major inside the wind
|
|
|
82
82
|
bun run scripts/release.ts --bump major --security GHSA-xxxx-xxxx-xxxx --dry-run --json
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
The advisory id (a `GHSA-…` or `CVE-…`) is recorded under the
|
|
85
|
+
The advisory id (a `GHSA-…` or `CVE-…`) is recorded under the heading of the release's `docs/changelog/<version>.md` (under `[Unreleased]` in `CHANGELOG.md` before the bump) as `> **Security exception:** \`<id>\``, and the bump commit's body carries `Security-Exception: <id>`. The same recorded line lets a removal skip its deprecation minor.
|
|
86
86
|
|
|
87
87
|
## Who decides
|
|
88
88
|
|
|
@@ -95,5 +95,6 @@ The maintainer bot judges whether a release is due and which kind (`.dz/briefs/r
|
|
|
95
95
|
| one major per 90 days | `scripts/release.ts --bump`, `--check`, and the gate's `boundaries` step | `X_RELEASE_MAJOR_WINDOW` |
|
|
96
96
|
| no break on `main` while the window is closed | `bun run changelog-check` and the gate, on the pull request's base branch | `X_BREAKING_ON_MAIN` |
|
|
97
97
|
| a removal was deprecated first | `bun run scripts/deprecation-window.ts` and the gate | `X_RELEASE_UNDEPRECATED_REMOVAL` |
|
|
98
|
-
| every release from 30.0.0 opens with Highlights, the Release body | `bun run changelog-check` and the gate | `X_CHANGELOG_HIGHLIGHTS_MISSING` |
|
|
98
|
+
| every release from 30.0.0 opens with Highlights, the Release body | `bun run changelog-check` and the gate, over `docs/changelog/` | `X_CHANGELOG_HIGHLIGHTS_MISSING` |
|
|
99
|
+
| a bump branch is `chore/release-X.Y.Z`; `release/*` is only `release/<major>.x` | `scripts/release.ts --bump`; `ci.yml` and `release-tag.yml` filter on `release/[0-9]+.x` (`scripts/release-tag-workflow-shape.test.ts`) | `X_RELEASE_BRANCH_NAME` |
|
|
99
100
|
| a maintenance publish never moves `latest` | `scripts/dist-tag.ts` in `release.yml`; `scripts/registry-audit.ts` audits `latest` and each `maint-*` tag | `X_REGISTRY_LATEST_DRIFT` |
|
package/wiki/Upgrading.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **From v31, one major per 90 days.** The window, what semver covers, the support window and the security exception: [Stability](Stability). A removal now ships its `@deprecated` alias for at least one minor before a major takes it, so `x upgrade` across one major names no edit a minor did not already warn about. The 30 sections below stay as they are.
|
|
6
6
|
|
|
7
|
-
**Thirty majors have shipped since 1.0.0, and this page walks all thirty** — 2.0.0's 33 entries joined it `As of 2026-08`, and `scripts/changelog-check.ts` now refuses a summary row whose section the page does not carry, which is how they were missing for six releases. [`CHANGELOG.md`](https://github.com/developerz-ai/ultimate/blob/main/CHANGELOG.md) is the source for the majors it still carries, and `git show v<tag>:CHANGELOG.md` for the ones it has archived; none ships a codemod, so every entry is a manual edit the entry itself names. **One section per major**, newest first — read the ones between your pin and your target, oldest first.
|
|
7
|
+
**Thirty majors have shipped since 1.0.0, and this page walks all thirty** — 2.0.0's 33 entries joined it `As of 2026-08`, and `scripts/changelog-check.ts` now refuses a summary row whose section the page does not carry, which is how they were missing for six releases. [`docs/changelog/`](https://github.com/developerz-ai/ultimate/tree/main/docs/changelog) — one file per release, indexed by [`CHANGELOG.md`](https://github.com/developerz-ai/ultimate/blob/main/CHANGELOG.md) — is the source for the majors it still carries, and `git show v<tag>:CHANGELOG.md` for the ones it has archived; none ships a codemod, so every entry is a manual edit the entry itself names. **One section per major**, newest first — read the ones between your pin and your target, oldest first.
|
|
8
8
|
|
|
9
9
|
| From → to | Breaking entries | Read |
|
|
10
10
|
|---|---|---|
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
| 3.0.0 → 4.0.0 | **25**, from a sweep that closed every known gap | [the `4.0.0` section](#300--400-entry-by-entry), in order |
|
|
39
39
|
| 2.0.0 → 3.0.0 | **10**, all from a five-agent bug sweep | [the `3.0.0` section](#200--300-entry-by-entry), in order |
|
|
40
40
|
| 1.x → 2.0.0 | **33** | [the `2.0.0` section](#1x--200-entry-by-entry), in order |
|
|
41
|
-
| 11.x → 20.0.0 | **47** | every major section `
|
|
41
|
+
| 11.x → 20.0.0 | **47** | every major section `docs/changelog/` still carries, oldest first |
|
|
42
42
|
|
|
43
|
-
An entry is a line `
|
|
43
|
+
An entry is a line a release file in `docs/changelog/` marks `BREAKING —`. The count is derived, never curated:
|
|
44
44
|
|
|
45
45
|
```sh
|
|
46
|
-
grep -cE '^(- \*\*|### )BREAKING —'
|
|
47
|
-
# 634 As of 2026-11-10 — every RELEASED section, which is the
|
|
48
|
-
#
|
|
46
|
+
cat docs/changelog/*.md | grep -cE '^(- \*\*|### )BREAKING —'
|
|
47
|
+
# 634 As of 2026-11-10 — every RELEASED section ([Unreleased] stays in CHANGELOG.md), which is the
|
|
48
|
+
# sum of every row above whose section docs/changelog/ still carries.
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
How that total is counted, and why `[Unreleased]` is cut: the header of [`scripts/changelog-check.ts`](https://github.com/developerz-ai/ultimate/blob/main/scripts/changelog-check.ts).
|
|
@@ -197,6 +197,7 @@ A setter still on a package's `.` barrel is `X_ADAPTER_PORT_INCOMPLETE` on the `
|
|
|
197
197
|
| `x exercise` reports `X_AUDIT_SINK_MISSING` (`X_QUERY_AUDIT_SINK_MISSING` for a query) on every `audit: true` primitive, and `x build` lists each page whose render runs one under `unmeasured`: entry 43 moved `auditSink` into `runtime.ts`, and neither pass installs `runtime.ts` | fixed in **31.2.0**: both read `apps/<app>/runtime.ts` through the boot's own loader, a memory sink standing in for the declared one so neither writes to it. On 31.0.0–31.1.0, install a memory sink at the top of `apps/web/exercise.ts` and `apps/web/prerender.ts` — `installAuditSink(memoryAuditSink())`, `installAuditSink` from `@ultimat3/core/adapter`, `memoryAuditSink` from `@ultimat3/action`; on 31.2.0, delete it |
|
|
198
198
|
| `defineFactory` (`@ultimat3/testing`, entry 40) widens a string literal in `defaults` or a trait to `string`, so an `enumerated([…])` column is TS2322 — `Type 'string' is not assignable to type '"closed" \| "open"'` | `'open' as const` on the literal. Fixed in **31.2.0**: from it, an `as const` or per-literal annotation added for this TS2322 can be deleted — kept, it is harmless |
|
|
199
199
|
| `disk('<name>')` is `X_STORAGE_DISK_UNKNOWN` for a disk your own `defineStorage({ disks: { … } })` declares, when an app module reached from `runtime.ts` makes that call: the boot installed its one-disk registry over it | fixed in **31.2.0**: the boot keeps a registry the app declared, and the app's `defineStorage()` wins over `runtime.storage`. Upgrade to it; no workaround is verified for 31.0.0–31.1.0 |
|
|
200
|
+
| `x g guard error-declared --force` (or a new `x new`) writes a guard that refuses `defineError` imported from `@ultimat3/core`, `X_ERROR_DECLARED` at the import line (`As of 2026-11`): through the barrel every island that throws an app code carried both framework titles tables, 12,019 B against 6,507 B for one declaration thrown | `import { defineError } from '@ultimat3/core/page'` — the same function. A `/* @__PURE__ */` or `"sideEffects": false` added to keep the table out is no longer needed for that |
|
|
200
201
|
|
|
201
202
|
## 29.x → 30.0.0, entry by entry
|
|
202
203
|
|
|
@@ -3202,7 +3203,7 @@ Seven breaking entries, and the first is a **runtime** refusal with no compile e
|
|
|
3202
3203
|
|
|
3203
3204
|
### Start here — the one edit
|
|
3204
3205
|
|
|
3205
|
-
Every single-label timezone name except `UTC` is refused. `isValidTimeZone` answers `false`, `canonicalTimeZone` answers `undefined`, `assertTimeZone` throws `X_TIMEZONE_INVALID` — and every `@ultimat3/time` formatter is downstream of that one call. **43 names change answer**, tabulated once under
|
|
3206
|
+
Every single-label timezone name except `UTC` is refused. `isValidTimeZone` answers `false`, `canonicalTimeZone` answers `undefined`, `assertTimeZone` throws `X_TIMEZONE_INVALID` — and every `@ultimat3/time` formatter is downstream of that one call. **43 names change answer**, tabulated once under the `6.0.0` section of `git show v6.0.0:CHANGELOG.md`; that table is the source and is deliberately not copied here.
|
|
3206
3207
|
|
|
3207
3208
|
```diff
|
|
3208
3209
|
- formatDate(at, { locale, zone: 'CET' })
|
|
@@ -3334,7 +3335,7 @@ carry.
|
|
|
3334
3335
|
|
|
3335
3336
|
## 3.0.0 → 4.0.0, entry by entry
|
|
3336
3337
|
|
|
3337
|
-
Twenty-five `BREAKING —` entries. Most are one of two shapes: a **declaration nothing read**, deleted rather than implemented, and a **surface that answered the wrong thing**, corrected. Full rationale per row in
|
|
3338
|
+
Twenty-five `BREAKING —` entries. Most are one of two shapes: a **declaration nothing read**, deleted rather than implemented, and a **surface that answered the wrong thing**, corrected. Full rationale per row in the `4.0.0` section of `git show v4.0.0:CHANGELOG.md`.
|
|
3338
3339
|
|
|
3339
3340
|
**Start here — these three change behaviour whether or not you edit anything:**
|
|
3340
3341
|
|
|
@@ -3385,7 +3386,7 @@ Twenty-five `BREAKING —` entries. Most are one of two shapes: a **declaration
|
|
|
3385
3386
|
|
|
3386
3387
|
## 2.0.0 → 3.0.0, entry by entry
|
|
3387
3388
|
|
|
3388
|
-
Ten `BREAKING —` entries, all from one bug sweep. Each was a documented surface that did nothing, or did the wrong thing; the fix is the edit named beside it. Full rationale per row in
|
|
3389
|
+
Ten `BREAKING —` entries, all from one bug sweep. Each was a documented surface that did nothing, or did the wrong thing; the fix is the edit named beside it. Full rationale per row in the `3.0.0` section of `git show v3.0.0:CHANGELOG.md`.
|
|
3389
3390
|
|
|
3390
3391
|
| Surface | The edit |
|
|
3391
3392
|
|---|---|
|
|
@@ -3404,7 +3405,7 @@ Ten `BREAKING —` entries, all from one bug sweep. Each was a documented surfac
|
|
|
3404
3405
|
|
|
3405
3406
|
## 1.x → 2.0.0, entry by entry
|
|
3406
3407
|
|
|
3407
|
-
**Thirty-three `BREAKING —` entries — the largest major this project has shipped, and the first one semver covered.** Written up here `As of 2026-08`; the page carried a row pointing at this section for six releases and never carried the section. Full rationale per entry in
|
|
3408
|
+
**Thirty-three `BREAKING —` entries — the largest major this project has shipped, and the first one semver covered.** Written up here `As of 2026-08`; the page carried a row pointing at this section for six releases and never carried the section. Full rationale per entry in the `2.0.0` section of `git show v2.0.0:CHANGELOG.md` — the numbers below are that section's own order. No codemod.
|
|
3408
3409
|
|
|
3409
3410
|
Two things are not compile errors and are the ones to read first: the **seven behaviour changes** under *Start here*, and the **one migration** every app with a `money()` column owes.
|
|
3410
3411
|
|