Skip to content

Commit 2ea4f2e

Browse files
committed
fix(cli): the scaffolded pnpm-workspace.yaml records the retired scim>better-call rule instead of advertising it
`renderPnpmWorkspaceYaml()` emitted a paragraph explaining an `@better-auth/scim>better-call` peer rule that is not in the map it annotates: the entry retired with #3653 and `init.test.ts` pins its absence. Every claim in the paragraph was also false on today's tree -- `@better-auth/scim` is pinned at exact stable 1.7.3, not held at a release candidate, and 1.7.3 peers `better-call` at exactly 1.4.0, so the 1.3.7 skew it described does not exist. Replaced with a retirement note, mirroring the shape the sibling producer (`packages/create-objectstack/src/templates/blank/ pnpm-workspace.yaml`) already ships, and dated like the neighbouring better-sqlite3 paragraph that was re-measured on 2026-09-11. Two neighbouring comments in the same file, and the sibling template's own note, still named 1.7.1 as the current pin; all three now name the measured 1.7.3 so the two scaffold paths tell a user the same thing. Claude-Session: https://claude.ai/code/session_01TSf4DV7ziu4V5j73e46b7c Co-authored-by: Claude <noreply@anthropic.com>
1 parent 396eae3 commit 2ea4f2e

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

packages/cli/src/commands/init.ts

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,11 @@ export const SCAFFOLD_BUILT_DEPENDENCIES = ['better-sqlite3', 'esbuild'];
139139
*
140140
* - RETIRED (#3653): `@better-auth/scim>better-call` — the rc.1-era scim pin
141141
* peered an exact `better-call@1.3.7` against the host's 1.4.0, and this
142-
* map declared that skew away. Stable `@better-auth/scim@1.7.1` (the pin
143-
* since #3653 landed) peers `better-call@1.4.0`, so the skew is genuinely
144-
* gone and the entry retired WITH the pin move, as its ratchet demanded.
142+
* map declared that skew away. Stable scim peers `better-call@1.4.0`, so
143+
* the skew is genuinely gone and the entry retired WITH the pin move, as
144+
* its ratchet demanded. Measured on 1.7.1 when #3653 landed; re-read
145+
* 2026-09-12 on `1.7.3`, the pin today, off the installed manifest —
146+
* `peerDependencies['better-call']` is the exact string `1.4.0`.
145147
*
146148
* - `<four>@better-auth/utils` — `@better-auth/core`, `/oauth-provider`,
147149
* `/scim` and `/sso` each peer an EXACT `@better-auth/utils@0.4.2`, while a
@@ -194,8 +196,9 @@ export const SCAFFOLD_BUILT_DEPENDENCIES = ['better-sqlite3', 'esbuild'];
194196
export const SCAFFOLD_ALLOWED_PEER_VERSIONS: Record<string, string> = {
195197
'better-auth>better-sqlite3': '13',
196198
// '@better-auth/scim>better-call' retired with the scim rc pin (#3653) —
197-
// stable 1.7.1 peers better-call@1.4.0 exactly, the copy every install
198-
// already resolves. init.test.ts pins its ABSENCE now.
199+
// stable scim peers better-call@1.4.0 exactly (re-read 2026-09-12 on the
200+
// 1.7.3 pin), the copy every install already resolves. init.test.ts pins
201+
// its ABSENCE now.
199202
'@better-auth/core>@better-auth/utils': '0.5.0',
200203
'@better-auth/oauth-provider>@better-auth/utils': '0.5.0',
201204
'@better-auth/scim>@better-auth/utils': '0.5.0',
@@ -514,10 +517,12 @@ export function renderPnpmWorkspaceYaml(
514517
'# range is stale; pinning back to 12 would just install a second,',
515518
'# unused native copy.',
516519
'#',
517-
'# @better-auth/scim (held at a release candidate deliberately) peers an',
518-
'# exact better-call 1.3.7, while better-auth itself depends on 1.4.0. A',
519-
'# better-auth plugin has to share the host\'s better-call instance, so',
520-
'# the single 1.4.0 copy is the correct resolution.',
520+
'# (The \'@better-auth/scim>better-call\' entry that used to sit here is',
521+
'# retired. The rc-era scim pin peered an exact better-call 1.3.7 against',
522+
'# better-auth\'s own 1.4.0 and this map declared that skew away; the pin',
523+
'# is a stable release now, and @better-auth/scim 1.7.3 peers an exact',
524+
'# better-call 1.4.0 — the one copy better-auth depends on. Re-measured',
525+
'# 2026-09-12 off the installed manifest: the skew is gone.)',
521526
'#',
522527
'# @better-auth/core, /oauth-provider, /scim and /sso each peer an exact',
523528
'# @better-auth/utils 0.4.2, while better-call (better-auth\'s own HTTP',

packages/create-objectstack/src/templates/blank/pnpm-workspace.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ allowBuilds:
5050
# would clear the report only by installing a second, unused native copy.
5151
#
5252
# (The '@better-auth/scim>better-call' entry that used to sit here retired
53-
# with the scim release-candidate pin — stable @better-auth/scim 1.7.1 peers
54-
# better-call 1.4.0 exactly, so the skew it declared away is gone.)
53+
# with the scim release-candidate pin — stable @better-auth/scim 1.7.3 peers
54+
# better-call 1.4.0 exactly, so the skew it declared away is gone. First
55+
# measured on 1.7.1 when the entry retired; re-read 2026-09-12 on the 1.7.3
56+
# pin, off the installed manifest.)
5557
#
5658
# @better-auth/core, @better-auth/oauth-provider, @better-auth/scim and
5759
# @better-auth/sso each peer an exact @better-auth/utils 0.4.2, while the

0 commit comments

Comments
 (0)