Commit bc5156f
fix(objectql): single-quote the shadowed package id in the [Registry] Collision warning (#12790)
* fix(objectql): single-quote the shadowed package id in the [Registry] Collision warning (#12609)
The cold-boot-order [Registry] Collision warning in
packages/objectql/src/registry.ts double-quoted the shadowed package id,
against this package's own convention (174 single-quoted vs 37 double-quoted
interpolated identifiers in operator prose, measured over non-test .ts under
packages/objectql/src — this line was one of the 37). #12563 already settled
the same ADR-0005 shadowing fact with single quotes on the automation side.
No existing pin held this message's quote character, so one is added,
asserting both the corrected spelling present and the pre-fix spelling
absent.
* predict(ablation #12609): reverting registry.ts:3050-3051 to double quotes
around ${shadowed._packageId} will:
- make `packages/objectql/src/registry.ts` contain
`is shipped by package "${shadowed._packageId}"` (double-quoted) instead of
the single-quoted spelling, confirmed present via anchored grep for the
double-quote form and absent via anchored grep for the single-quote form
(both anchored on the literal `is shipped by package ` prefix, not a bare
quote character)
- flip RED exactly the new pin
`[#12609] quotes the shadowed package id with single quotes, matching this
package's own convention` in registry-collision-order.test.ts, on both of
its assertions (`toContain("package '${PKG}'")` fails,
`not.toContain('package "${PKG}"')` fails)
- leave every OTHER test in that file GREEN, including the sibling
'COMMON COLD-BOOT ORDER — artifact first, then the sys_metadata row: warns'
test's `toContain('shadows the package value')` assertion, which is the
named positive control: it asserts the same warning fires with the same
prose around the quote, so it cannot distinguish the two spellings and
must stay green under this mutation.
Restoring via `git checkout HEAD -- packages/objectql/src/registry.ts` (HEAD
already carries the real fix, committed as 87ecd48 before this predict
commit) is predicted to reproduce that commit's blob exactly
(git hash-object match) and clear the mutation marker from the file.
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent ead7317 commit bc5156f
3 files changed
Lines changed: 70 additions & 1 deletion
File tree
- .changeset
- packages/objectql/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
102 | 122 | | |
103 | 123 | | |
104 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3048 | 3048 | | |
3049 | 3049 | | |
3050 | 3050 | | |
3051 | | - | |
| 3051 | + | |
3052 | 3052 | | |
3053 | 3053 | | |
3054 | 3054 | | |
| |||
0 commit comments