@memberjunction/standards 6.2.1 → 6.3.0-edge.0
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/README.md +1 -0
- package/dist/checks/migration-string-collation.d.ts +35 -0
- package/dist/checks/migration-string-collation.d.ts.map +1 -0
- package/dist/checks/migration-string-collation.js +235 -0
- package/dist/checks/migration-string-collation.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +2 -0
- package/dist/registry.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,6 +110,7 @@ Every registered standard, when it was introduced, and what this repo does with
|
|
|
110
110
|
| `naming-conventions` | 6.2.0 | MJ's inverted naming convention — [guide](https://github.com/MemberJunction/MJ/blob/next/guides/NAMING_CONVENTIONS_GUIDE.md). Public class members and the whole exported API surface are PascalCase — including the members of an exported interface, type literal or enum, and public constructor parameter properties; `private` members are camelCase. `protected` is exempt (MJ base classes declare PascalCase extension points). Framework contracts — Angular `ng*` hooks, oclif command members, base-class overrides, SCREAMING_SNAKE constants — are exempt automatically. Severity says whether a compatible fix exists: anything a `@deprecated` delegating stub can fix is an error; members of an exported data shape are a warn, since an interface has no runtime carrier for a stub (`enforceTypeMembers` opts into the type-only break). Anything tagged `@deprecated` is exempt. Marker: `case-violation-ok-legacy-back-compat`. |
|
|
111
111
|
| `migration-existence-guards` | 6.2.0 | Migration DDL is written plainly — [guide](https://github.com/MemberJunction/MJ/blob/next/guides/SCHEMA_AND_CODE_AUTHORING_GUIDE.md#migrations-are-plain-ddl). Flags `IF OBJECT_ID` / `IF COL_LENGTH` / `IF [NOT] EXISTS` over the catalog and `DROP … IF EXISTS` in the hand-written part of each versioned migration; CodeGen output below the separator is not read, nor is a CodeGen statement pasted without it (one under CodeGen's `/* SQL text to … */` header). Only migrations at or after the `FromVersion` option (a 12-digit timestamp) are read, because applied migrations cannot be edited. Marker: `mj-standards-allow: existence-guard`. |
|
|
112
112
|
| `readable-status-values` | 6.2.0 | CHECK-constrained values are written for people — [guide](https://github.com/MemberJunction/MJ/blob/next/guides/SCHEMA_AND_CODE_AUTHORING_GUIDE.md#value-lists-are-written-for-people). Flags run-together (`'OptedIn'`) and snake_case (`'OPTED_IN'`) values in `CHECK (… IN (…))` lists, in the same migrations as above. Defaults to `warn`. Proper names that are run together by design go in the `AllowedValues` option. Marker: `mj-standards-allow: status-value`. |
|
|
113
|
+
| `migration-string-collation` | 6.3.0 | New string columns declare their collation — [rule](https://github.com/MemberJunction/MJ/blob/next/migrations/CLAUDE.md#critical-migration-content-rules). Flags `NVARCHAR` / `VARCHAR` / `NCHAR` / `CHAR` columns in `CREATE TABLE` and `ALTER TABLE … ADD` without a `COLLATE` clause, or with one other than the `Collation` option (default `SQL_Latin1_General_CP1_CI_AS`), in the hand-written part of each versioned migration at or after `FromVersion`. Without one a column follows the database default, so a case-sensitive database treats it differently from the baseline's columns. The `Exempt` option names, file by file, the migrations that already broke the rule when a repo adopted it; a new migration is never covered by it, so the list does not need moving forward as migrations merge. Temporary tables and table variables are skipped. Marker: `mj-standards-allow: collation`. |
|
|
113
114
|
|
|
114
115
|
## Adding a standard
|
|
115
116
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview The migration-string-collation standard.
|
|
3
|
+
*
|
|
4
|
+
* Every string column in MJ's baseline pins `COLLATE SQL_Latin1_General_CP1_CI_AS`. A column added
|
|
5
|
+
* later without a `COLLATE` clause follows the database default instead, so on a database created
|
|
6
|
+
* case-sensitive its unique constraints accept "Coach" and "coach" as two values and its lookups
|
|
7
|
+
* stop matching the baseline columns beside it (MJ#6111). This check asks new string columns to
|
|
8
|
+
* say their collation, so a migration behaves the same on every install.
|
|
9
|
+
*
|
|
10
|
+
* @module @memberjunction/standards
|
|
11
|
+
*/
|
|
12
|
+
import type { StandardCheck } from '../types.js';
|
|
13
|
+
/** The reviewed-exception marker, on the column's line or the line above it. */
|
|
14
|
+
export declare const STRING_COLLATION_MARKER = "mj-standards-allow: collation";
|
|
15
|
+
/** One string column without a `COLLATE` clause. */
|
|
16
|
+
export interface UncollatedColumn {
|
|
17
|
+
/** 1-based line of the column definition. */
|
|
18
|
+
Line: number;
|
|
19
|
+
/** The column name as written. */
|
|
20
|
+
Column: string;
|
|
21
|
+
/** The character type as written (`NVARCHAR`, `CHAR`, …). */
|
|
22
|
+
Type: string;
|
|
23
|
+
/** Set when the column names a collation other than the expected one. */
|
|
24
|
+
DeclaredCollation?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Every `NVARCHAR`/`VARCHAR`/`NCHAR`/`CHAR` column defined in a `CREATE TABLE` or `ALTER TABLE … ADD`
|
|
28
|
+
* in `code` (comment-stripped lines) without a `COLLATE` clause, or, when `collation` is given, with
|
|
29
|
+
* a `COLLATE` naming a different collation. Temporary tables are skipped, and a table variable
|
|
30
|
+
* (`DECLARE @t TABLE (…)`) never matches, since it is not a `CREATE TABLE`.
|
|
31
|
+
*/
|
|
32
|
+
export declare function FindUncollatedStringColumns(code: readonly string[], collation?: string): UncollatedColumn[];
|
|
33
|
+
/** The registered standard. */
|
|
34
|
+
export declare const MigrationStringCollationCheck: StandardCheck;
|
|
35
|
+
//# sourceMappingURL=migration-string-collation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-string-collation.d.ts","sourceRoot":"","sources":["../../src/checks/migration-string-collation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAA6B,aAAa,EAAa,MAAM,aAAa,CAAC;AAIvF,gFAAgF;AAChF,eAAO,MAAM,uBAAuB,kCAAkC,CAAC;AAyBvE,oDAAoD;AACpD,MAAM,WAAW,gBAAgB;IAC7B,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAkGD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAa3G;AA6DD,+BAA+B;AAC/B,eAAO,MAAM,6BAA6B,EAAE,aAiB3C,CAAC"}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview The migration-string-collation standard.
|
|
3
|
+
*
|
|
4
|
+
* Every string column in MJ's baseline pins `COLLATE SQL_Latin1_General_CP1_CI_AS`. A column added
|
|
5
|
+
* later without a `COLLATE` clause follows the database default instead, so on a database created
|
|
6
|
+
* case-sensitive its unique constraints accept "Coach" and "coach" as two values and its lookups
|
|
7
|
+
* stop matching the baseline columns beside it (MJ#6111). This check asks new string columns to
|
|
8
|
+
* say their collation, so a migration behaves the same on every install.
|
|
9
|
+
*
|
|
10
|
+
* @module @memberjunction/standards
|
|
11
|
+
*/
|
|
12
|
+
import { HasMarkerNear } from '../lib/markers.js';
|
|
13
|
+
import { FindMigrations, IsCodeGenStatement, StripSqlComments } from '../lib/migrations.js';
|
|
14
|
+
/** The reviewed-exception marker, on the column's line or the line above it. */
|
|
15
|
+
export const STRING_COLLATION_MARKER = 'mj-standards-allow: collation';
|
|
16
|
+
/*
|
|
17
|
+
* A table name is one or more dot-separated parts, each `[bracketed]`, `"quoted"` or bare. A bare
|
|
18
|
+
* part cannot contain `.`, `"`, `[`, `(` or whitespace, so each character of a name belongs to exactly
|
|
19
|
+
* one part and the patterns below cannot backtrack over the same text in more than one way.
|
|
20
|
+
*/
|
|
21
|
+
/** `CREATE TABLE <name> (` — the name is captured so a `#temp` table can be skipped. */
|
|
22
|
+
const CREATE_TABLE = /\bCREATE\s+TABLE\s+((?:\[[^\]]+\]|"[^"]+"|[^\s(."[]+)(?:\s*\.\s*(?:\[[^\]]+\]|"[^"]+"|[^\s(."[]+))*)\s*\(/gi;
|
|
23
|
+
/** `ALTER TABLE <name> ADD` — `ADD CONSTRAINT …` items are filtered out per item, not here. */
|
|
24
|
+
const ALTER_TABLE_ADD = /\bALTER\s+TABLE\s+((?:\[[^\]]+\]|"[^"]+"|[^\s(."[]+)(?:\s*\.\s*(?:\[[^\]]+\]|"[^"]+"|[^\s(."[]+))*)\s+ADD\b/gi;
|
|
25
|
+
/** A column definition whose type is a character type: `<name> [N][VAR]CHAR…`, bracketed or not. */
|
|
26
|
+
const STRING_COLUMN = /^\s*(\[[^\]]+\]|"[^"]+"|[A-Za-z_@#$][\w@#$]*)\s+\[?(N?VARCHAR|N?CHAR)\]?(?![\w])/i;
|
|
27
|
+
/** Statement keywords that end an `ALTER TABLE … ADD` written without a semicolon. */
|
|
28
|
+
const STATEMENT_START = /^(?:GO|CREATE|ALTER|DROP|EXEC|EXECUTE|INSERT|UPDATE|DELETE|DECLARE|IF|BEGIN|END|PRINT|SELECT|MERGE|RETURN|SET\s+(?:XACT_ABORT|NOCOUNT|ANSI_|QUOTED_))\b/i;
|
|
29
|
+
/** A temporary table (`#t`, `##t`) is session-local and inherits tempdb's collation by design. */
|
|
30
|
+
function isTempTable(name) {
|
|
31
|
+
return /^\[?#/.test(name.trim());
|
|
32
|
+
}
|
|
33
|
+
/** Offsets of each line start, so a character offset maps back to a 1-based line number. */
|
|
34
|
+
function lineStarts(text) {
|
|
35
|
+
const starts = [0];
|
|
36
|
+
for (let i = 0; i < text.length; i++)
|
|
37
|
+
if (text[i] === '\n')
|
|
38
|
+
starts.push(i + 1);
|
|
39
|
+
return starts;
|
|
40
|
+
}
|
|
41
|
+
function lineAt(starts, offset) {
|
|
42
|
+
let lo = 0;
|
|
43
|
+
let hi = starts.length - 1;
|
|
44
|
+
while (lo < hi) {
|
|
45
|
+
const mid = (lo + hi + 1) >> 1;
|
|
46
|
+
if (starts[mid] <= offset)
|
|
47
|
+
lo = mid;
|
|
48
|
+
else
|
|
49
|
+
hi = mid - 1;
|
|
50
|
+
}
|
|
51
|
+
return lo + 1;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Top-level comma-separated items from `text[start]` until the depth drops below zero (the closing
|
|
55
|
+
* parenthesis of a `CREATE TABLE`) or, when `stopAtStatement` is set, until a `;` or a new statement
|
|
56
|
+
* at depth zero (the end of an `ALTER TABLE … ADD`). String literals and bracketed names are opaque.
|
|
57
|
+
*/
|
|
58
|
+
function splitItems(text, start, stopAtStatement) {
|
|
59
|
+
const items = [];
|
|
60
|
+
let depth = 0;
|
|
61
|
+
let itemStart = start;
|
|
62
|
+
let i = start;
|
|
63
|
+
const push = (end) => {
|
|
64
|
+
items.push({ Start: itemStart, Text: text.slice(itemStart, end) });
|
|
65
|
+
};
|
|
66
|
+
while (i < text.length) {
|
|
67
|
+
const ch = text[i];
|
|
68
|
+
if (ch === "'") {
|
|
69
|
+
const close = text.indexOf("'", i + 1);
|
|
70
|
+
if (close === -1)
|
|
71
|
+
break;
|
|
72
|
+
i = close + 1; // a doubled '' re-opens here, which pairs the same way
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
if (ch === '[') {
|
|
76
|
+
const close = text.indexOf(']', i + 1);
|
|
77
|
+
if (close === -1)
|
|
78
|
+
break;
|
|
79
|
+
i = close + 1;
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
if (ch === '(')
|
|
83
|
+
depth++;
|
|
84
|
+
else if (ch === ')') {
|
|
85
|
+
if (depth === 0) {
|
|
86
|
+
push(i);
|
|
87
|
+
return items;
|
|
88
|
+
}
|
|
89
|
+
depth--;
|
|
90
|
+
}
|
|
91
|
+
else if (depth === 0 && ch === ',') {
|
|
92
|
+
push(i);
|
|
93
|
+
itemStart = i + 1;
|
|
94
|
+
}
|
|
95
|
+
else if (stopAtStatement && depth === 0) {
|
|
96
|
+
if (ch === ';') {
|
|
97
|
+
push(i);
|
|
98
|
+
return items;
|
|
99
|
+
}
|
|
100
|
+
if (ch === '\n' && STATEMENT_START.test(text.slice(i + 1).trimStart())) {
|
|
101
|
+
push(i);
|
|
102
|
+
return items;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
i++;
|
|
106
|
+
}
|
|
107
|
+
push(i);
|
|
108
|
+
return items;
|
|
109
|
+
}
|
|
110
|
+
/** `COLLATE <name>` in a column definition; the name is captured. */
|
|
111
|
+
const COLLATE_CLAUSE = /\bCOLLATE\s+([A-Za-z0-9_]+)/i;
|
|
112
|
+
/**
|
|
113
|
+
* The string columns in one item list that carry no `COLLATE`, or (when `collation` is given) one
|
|
114
|
+
* other than `collation`.
|
|
115
|
+
*/
|
|
116
|
+
function uncollated(items, starts, collation) {
|
|
117
|
+
const found = [];
|
|
118
|
+
for (const item of items) {
|
|
119
|
+
const m = STRING_COLUMN.exec(item.Text);
|
|
120
|
+
if (!m)
|
|
121
|
+
continue;
|
|
122
|
+
const declared = COLLATE_CLAUSE.exec(item.Text);
|
|
123
|
+
if (declared && (!collation || declared[1].toLowerCase() === collation.toLowerCase()))
|
|
124
|
+
continue;
|
|
125
|
+
const lead = item.Text.search(/\S/);
|
|
126
|
+
found.push({
|
|
127
|
+
Line: lineAt(starts, item.Start + Math.max(lead, 0)),
|
|
128
|
+
Column: m[1],
|
|
129
|
+
Type: m[2].toUpperCase(),
|
|
130
|
+
...(declared ? { DeclaredCollation: declared[1] } : {}),
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return found;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Every `NVARCHAR`/`VARCHAR`/`NCHAR`/`CHAR` column defined in a `CREATE TABLE` or `ALTER TABLE … ADD`
|
|
137
|
+
* in `code` (comment-stripped lines) without a `COLLATE` clause, or, when `collation` is given, with
|
|
138
|
+
* a `COLLATE` naming a different collation. Temporary tables are skipped, and a table variable
|
|
139
|
+
* (`DECLARE @t TABLE (…)`) never matches, since it is not a `CREATE TABLE`.
|
|
140
|
+
*/
|
|
141
|
+
export function FindUncollatedStringColumns(code, collation) {
|
|
142
|
+
const text = code.join('\n');
|
|
143
|
+
const starts = lineStarts(text);
|
|
144
|
+
const found = [];
|
|
145
|
+
for (const m of text.matchAll(CREATE_TABLE)) {
|
|
146
|
+
if (isTempTable(m[1]))
|
|
147
|
+
continue;
|
|
148
|
+
found.push(...uncollated(splitItems(text, (m.index ?? 0) + m[0].length, false), starts, collation));
|
|
149
|
+
}
|
|
150
|
+
for (const m of text.matchAll(ALTER_TABLE_ADD)) {
|
|
151
|
+
if (isTempTable(m[1]))
|
|
152
|
+
continue;
|
|
153
|
+
found.push(...uncollated(splitItems(text, (m.index ?? 0) + m[0].length, true), starts, collation));
|
|
154
|
+
}
|
|
155
|
+
return found.sort((a, b) => a.Line - b.Line);
|
|
156
|
+
}
|
|
157
|
+
/** The base name of a repo-relative path, either separator. */
|
|
158
|
+
function baseName(file) {
|
|
159
|
+
return file.slice(file.replace(/\\/g, '/').lastIndexOf('/') + 1);
|
|
160
|
+
}
|
|
161
|
+
/** The `Exempt` option: migration file names (base names), lower-cased. */
|
|
162
|
+
function exemptNames(value) {
|
|
163
|
+
if (!Array.isArray(value))
|
|
164
|
+
return new Set();
|
|
165
|
+
return new Set(value.filter((v) => typeof v === 'string').map((v) => v.trim().toLowerCase()));
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Find uncollated string columns in the hand-written part of every migration at or after
|
|
169
|
+
* `FromVersion`, except the files named in `Exempt`.
|
|
170
|
+
*
|
|
171
|
+
* `Exempt` lists the migrations that already broke the rule when it was adopted. Released
|
|
172
|
+
* migrations cannot be edited, so they are named one by one instead of moving `FromVersion` past
|
|
173
|
+
* them: a moved cutoff also skips every later-merging migration with an older timestamp (a branch's
|
|
174
|
+
* migration is dated when it is written, not when it merges), while a name skips only that file.
|
|
175
|
+
*
|
|
176
|
+
* Upkeep: an uncollated migration from another branch can still merge to `next` before this list is
|
|
177
|
+
* updated. When merging `next` turns this check red on an already-merged file, add its name to
|
|
178
|
+
* `Exempt` in `.mj-standards.json` in that same merge; released migrations cannot be edited.
|
|
179
|
+
*/
|
|
180
|
+
function run(context) {
|
|
181
|
+
const fromVersion = String(context.Options['FromVersion'] ?? '');
|
|
182
|
+
const collation = String(context.Options['Collation'] ?? 'SQL_Latin1_General_CP1_CI_AS');
|
|
183
|
+
const exempt = exemptNames(context.Options['Exempt']);
|
|
184
|
+
const { Migrations, Notes } = FindMigrations(context.RepoRoot, context.Roots, fromVersion);
|
|
185
|
+
const violations = [];
|
|
186
|
+
const seen = new Set();
|
|
187
|
+
let skipped = 0;
|
|
188
|
+
for (const migration of Migrations) {
|
|
189
|
+
const name = baseName(migration.File).toLowerCase();
|
|
190
|
+
seen.add(name);
|
|
191
|
+
if (exempt.has(name)) {
|
|
192
|
+
skipped++;
|
|
193
|
+
continue;
|
|
194
|
+
}
|
|
195
|
+
const handWritten = migration.Lines.slice(0, migration.HandWrittenLineCount);
|
|
196
|
+
for (const column of FindUncollatedStringColumns(StripSqlComments(handWritten), collation)) {
|
|
197
|
+
if (HasMarkerNear(migration.Lines, column.Line, STRING_COLLATION_MARKER))
|
|
198
|
+
continue;
|
|
199
|
+
if (IsCodeGenStatement(migration.Lines, column.Line))
|
|
200
|
+
continue;
|
|
201
|
+
const fix = `Write \`${column.Column} ${column.Type}(…) COLLATE ${collation}\`, as the baseline's string columns do.`;
|
|
202
|
+
violations.push({
|
|
203
|
+
File: migration.File,
|
|
204
|
+
Line: column.Line,
|
|
205
|
+
Message: column.DeclaredCollation
|
|
206
|
+
? `${column.Type} column ${column.Column} is COLLATE ${column.DeclaredCollation}, not ${collation}. ${fix}`
|
|
207
|
+
: `${column.Type} column ${column.Column} has no COLLATE clause, so it follows the database default. ${fix}`,
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
const notes = [...Notes, `${Migrations.length - skipped} migration(s) at or after ${fromVersion || '(no cutoff)'} read, ${skipped} exempt.`];
|
|
212
|
+
const stale = [...exempt].filter((n) => !seen.has(n));
|
|
213
|
+
if (stale.length > 0)
|
|
214
|
+
notes.push(`Exempt names ${stale.length} file(s) that were not read (renamed, removed, or before FromVersion): ${stale.join(', ')}`);
|
|
215
|
+
return { Violations: violations, Notes: notes };
|
|
216
|
+
}
|
|
217
|
+
/** The registered standard. */
|
|
218
|
+
export const MigrationStringCollationCheck = {
|
|
219
|
+
Id: 'migration-string-collation',
|
|
220
|
+
Title: 'Declare the collation of every new string column',
|
|
221
|
+
Since: '6.3.0',
|
|
222
|
+
DefaultSeverity: 'error',
|
|
223
|
+
DocsUrl: 'https://github.com/MemberJunction/MJ/blob/next/migrations/CLAUDE.md#critical-migration-content-rules',
|
|
224
|
+
Description: 'Flags NVARCHAR / VARCHAR / NCHAR / CHAR columns defined in CREATE TABLE or ALTER TABLE … ADD without a COLLATE ' +
|
|
225
|
+
'clause, or with a COLLATE other than the Collation option, in the hand-written part of every versioned migration ' +
|
|
226
|
+
'at or after the FromVersion option, except the files named in the Exempt option (migrations that broke the rule ' +
|
|
227
|
+
'before it was adopted). Without one, ' +
|
|
228
|
+
'the column follows the database default, so a case-sensitive database treats it differently from every ' +
|
|
229
|
+
'baseline column. Temporary tables and table variables are not read. The expected collation is the Collation ' +
|
|
230
|
+
`option (default SQL_Latin1_General_CP1_CI_AS). Reviewed exception: "${STRING_COLLATION_MARKER}" on the line or the one above.`,
|
|
231
|
+
DefaultRoots: ['migrations'],
|
|
232
|
+
DefaultOptions: { FromVersion: '202610210000', Collation: 'SQL_Latin1_General_CP1_CI_AS', Exempt: [] },
|
|
233
|
+
Run: run,
|
|
234
|
+
};
|
|
235
|
+
//# sourceMappingURL=migration-string-collation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-string-collation.js","sourceRoot":"","sources":["../../src/checks/migration-string-collation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GA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AAuB,iCAAiC;IACnI,YAAY,EAAE,CAAC,YAAY,CAAC;IAC5B,cAAc,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,8BAA8B,EAAE,MAAM,EAAE,EAAE,EAAE;IACtG,GAAG,EAAE,GAAG;CACX,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './checks/naming-conventions.js';
|
|
|
39
39
|
export * from './checks/polymorphic-fk.js';
|
|
40
40
|
export * from './checks/migration-existence-guards.js';
|
|
41
41
|
export * from './checks/readable-status-values.js';
|
|
42
|
+
export * from './checks/migration-string-collation.js';
|
|
42
43
|
export * from './lib/migrations.js';
|
|
43
44
|
export * from './lib/markers.js';
|
|
44
45
|
export * from './lib/walk.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ export * from './checks/naming-conventions.js';
|
|
|
39
39
|
export * from './checks/polymorphic-fk.js';
|
|
40
40
|
export * from './checks/migration-existence-guards.js';
|
|
41
41
|
export * from './checks/readable-status-values.js';
|
|
42
|
+
export * from './checks/migration-string-collation.js';
|
|
42
43
|
export * from './lib/migrations.js';
|
|
43
44
|
export * from './lib/markers.js';
|
|
44
45
|
export * from './lib/walk.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
|
package/dist/registry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAQhD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EAOnD,CAAC;AAEF,yCAAyC;AACzC,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAE9D;AAED,uFAAuF;AACvF,wBAAgB,WAAW,IAAI,MAAM,EAAE,CAEtC"}
|
package/dist/registry.js
CHANGED
|
@@ -12,6 +12,7 @@ import { NamingConventionsCheck } from './checks/naming-conventions.js';
|
|
|
12
12
|
import { PolymorphicFKCheck } from './checks/polymorphic-fk.js';
|
|
13
13
|
import { MigrationExistenceGuardsCheck } from './checks/migration-existence-guards.js';
|
|
14
14
|
import { ReadableStatusValuesCheck } from './checks/readable-status-values.js';
|
|
15
|
+
import { MigrationStringCollationCheck } from './checks/migration-string-collation.js';
|
|
15
16
|
/**
|
|
16
17
|
* Every registered standard.
|
|
17
18
|
*
|
|
@@ -29,6 +30,7 @@ export const STANDARD_CHECKS = [
|
|
|
29
30
|
PolymorphicFKCheck,
|
|
30
31
|
MigrationExistenceGuardsCheck,
|
|
31
32
|
ReadableStatusValuesCheck,
|
|
33
|
+
MigrationStringCollationCheck,
|
|
32
34
|
];
|
|
33
35
|
/** Look up a check by its config key. */
|
|
34
36
|
export function GetCheck(id) {
|
package/dist/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAEvF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,eAAe,GAA6B;IACrD,aAAa;IACb,sBAAsB;IACtB,kBAAkB;IAClB,6BAA6B;IAC7B,yBAAyB;IACzB,6BAA6B;CAChC,CAAC;AAEF,yCAAyC;AACzC,MAAM,UAAU,QAAQ,CAAC,EAAU;IAC/B,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACpD,CAAC;AAED,uFAAuF;AACvF,MAAM,UAAU,WAAW;IACvB,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;AACnD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/standards",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.3.0-edge.0",
|
|
5
5
|
"description": "MemberJunction engineering standards as runnable, versioned checks — plus the scaffolding that gets a repo enforcing them. Opt-in per check; a new standard never changes an existing repo's result.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|