Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/19748-package-registry-docblock-cycle-edge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@objectstack/spec': patch
---

The doc comment on `InstallPackageRequestSchema`'s `enableOnInstall` key in `kernel/package-registry.zod.ts` no longer says `ManifestSchema` is declared in that file (it is declared in `kernel/manifest.zod.ts`), and its import-cycle reason now rests on the import that makes the cycle: `api/package-api.zod.ts`, which declares `PackageInstallRequestSchema`, imports `InstalledPackageSchema` from `kernel/package-registry.zod.ts` (#19748). Doc comment only; the directive against spelling `PackageInstallRequestSchema.shape.enableOnInstall` there is unchanged.
2 changes: 1 addition & 1 deletion packages/spec/src/kernel/package-registry.zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export const InstallPackageRequestSchema = lazySchema(() => z.object({
* ## ⛔ Why the reference is documentary and not `…Schema.shape.…`
*
* `PackageInstallRequestSchema` sits ABOVE this module in the import graph —
* it is built from `ManifestSchema` and `InstalledPackageSchema`, both
* its module, `src/api/package-api.zod.ts`, imports `InstalledPackageSchema`,
* declared here — so a reference from here up to it is an import cycle. It
* is not a cycle the `lazySchema` proxy absorbs: under `OS_EAGER_SCHEMAS=1`,
* the mode `gen:schema` and `check:authorable-surface` run in, the factory
Expand Down
Loading