You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 48ab8da
Browse filesBrowse the repository at this point in the historyBrowse files
feat(plugin-email): resolve email template names through the package-scoped resolver
An email template's name is answered by resolvePackageScopedName as a
caller with no package before the layered per-locale pick; a name two
packages hold fails the send with a 409 naming every candidate.
Claude-Session: https://claude.ai/code/session_01ADHkmR4astMzES5UkW47jW
Co-authored-by: Claude <noreply@anthropic.com>
feat: an email template's name resolves by (package, name) through the shared package-scoped resolver (ADR-0150 D3/D4)
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
Which email template a send or a render uses is now decided by `resolvePackageScopedName` from `@objectstack/objectql`, never by list order. A send names no package (`SendTemplateInput` carries none), so the loader asks as a caller with no package: the environment's own template, else the unique package holder (the email service's built-in templates rank below an app's, and a dependent package's added locale is no second holder of its base's name), else a refusal that names every candidate. Within the answer, the per-locale pick is unchanged.
11
+
12
+
Who is affected: a deployment that held one email template name in two packages from before phase 1's one-holder refusal (the cold boot warns about it as a "Bare-name conflict at boot"). Its sends were rendered from whichever package's bundle listed first; they now fail with a `409 RESOURCE_CONFLICT` naming both packages. Rename one of the two (the boot warning names the rename). First-party count of such clashes: 0. Every other name renders exactly as before, since phase 1 still refuses a new clash at install.
13
+
14
+
`@objectstack/plugin-email` now depends on `@objectstack/objectql` at runtime (it was a dev dependency).
0 commit comments