Skip to content

Commit e06e1a9

Browse files
committed
docs(objectql): the registry split's headers, changeset and exception reasons cite the split's PR instead of a script path
Comments and text only; no code moves. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
1 parent 08a3d7a commit e06e1a9

15 files changed

Lines changed: 37 additions & 31 deletions

‎.changeset/33949-registry-split.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ refactor(objectql): `registry.ts` is split into section modules by codemod; a mo
77
Clause-②: no
88
Metadata-protocol: none
99

10-
`packages/objectql/src/registry.ts` (12,577 lines) is split by `scripts/codemod-split-registry.mjs`, the first pass of the `engine.ts` codemod, as ruled on #33949 (item 1, split 1 of 8). `SchemaRegistry` keeps every member's signature and docblock, and each moved method forwards in one call to a facet module (`registry-SECTION.ts`). The top-level declarations ahead of the class move whole into `registry-top-level.ts`, and `registry.ts` re-exports every one it exported by name. The script proves that every moved body and declaration is byte-identical to the base, and that `registry.ts` still exports the same names, each a value or a type as before. No behaviour changes, and nothing an importer of `@objectstack/objectql` reads changes.
10+
`packages/objectql/src/registry.ts` (12,577 lines) is split by codemod (the first pass of the `engine.ts` codemod; the script is kept in PR #34285's branch history and is not committed), as ruled on #33949 (item 1, split 1 of 8). `SchemaRegistry` keeps every member's signature and docblock, and each moved method forwards in one call to a facet module (`registry-SECTION.ts`). The top-level declarations ahead of the class move whole into `registry-top-level.ts`, and `registry.ts` re-exports every one it exported by name. The codemod's proof, recorded in PR #34285, shows that every moved body and declaration is byte-identical to the base, and that `registry.ts` still exports the same names, each a value or a type as before. No behaviour changes, and nothing an importer of `@objectstack/objectql` reads changes.

‎packages/objectql/src/registry-apps.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* `registerAppNavContribution`, `setPackageNavContributions`,
77
* `getAppNavContributions`, `applyNavContributions`, `findNavGroup`,
88
* `recordNavGroupMiss`, `getAppNavDiagnostics` moved out of `registry.ts` whole
9-
* by `scripts/codemod-split-registry.mjs`.
9+
* by the #33949 split codemod (PR #34285, kept in its branch history, not committed).
1010
*
1111
* A MOVE, not a redesign. {@link AppsFacet} is a stateless facet of `SchemaRegistry`
1212
* (ruling 6624345766): each static method of it is the body of the `SchemaRegistry`

‎packages/objectql/src/registry-bare-names.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
* `bareNameHoldersOtherThan`, `bareNameBundleAdditionMeets`,
88
* `refuseBareNameConflicts`, `recordBareNameClaims`, `forgetBareNameClaims`,
99
* `claimBareNameFunctions`, `releaseBareNameFunctions`, `sealBareNameHolders`
10-
* moved out of `registry.ts` whole by `scripts/codemod-split-registry.mjs`.
10+
* moved out of `registry.ts` whole by
11+
* the #33949 split codemod (PR #34285, kept in its branch history, not committed).
1112
*
1213
* A MOVE, not a redesign. {@link BareNamesFacet} is a stateless facet of `SchemaRegistry`
1314
* (ruling 6624345766): each static method of it is the body of the `SchemaRegistry`

‎packages/objectql/src/registry-facet-hosts.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
* when a body assigns it), so a body reads and writes the registry exactly as
1212
* the per-call literal let it.
1313
*
14-
* Written by `scripts/codemod-split-registry.mjs`; it imports types only, so it forms no
15-
* evaluation cycle and is evaluated before the class whichever module loads
16-
* first. `index.ts` re-exports nothing from this module.
14+
* Written by the #33949 split codemod (PR #34285, kept in its branch history,
15+
* not committed); it imports types only, so it forms no evaluation cycle
16+
* and is evaluated before the class whichever module loads first.
17+
* `index.ts` re-exports nothing from this module.
1718
*/
1819

1920
import type { SchemaRegistry } from './registry.js';

‎packages/objectql/src/registry-items.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* `unregisterItemsByPackage`, `replacingPackageBody`,
88
* `withdrawPackageBodyItemsNotShipped`, `withdrawPackageClaimsNotDeclared`,
99
* `getItem` moved out of `registry.ts` whole by
10-
* `scripts/codemod-split-registry.mjs`.
10+
* the #33949 split codemod (PR #34285, kept in its branch history, not committed).
1111
*
1212
* A MOVE, not a redesign. {@link ItemsFacet} is a stateless facet of `SchemaRegistry`
1313
* (ruling 6624345766): each static method of it is the body of the `SchemaRegistry`

‎packages/objectql/src/registry-namespaces-and-claims.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* `forgetSecurityCatalogClaims`, `securityCatalogNamesHeldBy`,
1313
* `environmentHeldSecurityCatalogConflicts`, `packageHeldSecurityCatalogNames`,
1414
* `securityCatalogPackageHolders` moved out of `registry.ts` whole by
15-
* `scripts/codemod-split-registry.mjs`.
15+
* the #33949 split codemod (PR #34285, kept in its branch history, not committed).
1616
*
1717
* A MOVE, not a redesign. {@link NamespacesAndClaimsFacet} is a stateless facet of `SchemaRegistry`
1818
* (ruling 6624345766): each static method of it is the body of the `SchemaRegistry`

‎packages/objectql/src/registry-object-registration.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* `materializeServedObjectOnto`, `declinedBaseLayerStamps`,
1919
* `provisionSearchCompanionOnto`, `stripProvisionedSearchCompanionFrom`,
2020
* `stripMaterializedStampsFrom` moved out of `registry.ts` whole by
21-
* `scripts/codemod-split-registry.mjs`.
21+
* the #33949 split codemod (PR #34285, kept in its branch history, not committed).
2222
*
2323
* A MOVE, not a redesign. {@link ObjectRegistrationFacet} is a stateless facet of `SchemaRegistry`
2424
* (ruling 6624345766): each static method of it is the body of the `SchemaRegistry`

‎packages/objectql/src/registry-package-addressing.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* `isPackageDisabled`, `isObjectPackageDisabled`, `isFlowOfDisabledPackage`,
1313
* `isActionWithheldByDisabledPackage`, `hasDisabledPackage`,
1414
* `getRegisteredTypes` moved out of `registry.ts` whole by
15-
* `scripts/codemod-split-registry.mjs`.
15+
* the #33949 split codemod (PR #34285, kept in its branch history, not committed).
1616
*
1717
* A MOVE, not a redesign. {@link PackageAddressingFacet} is a stateless facet of `SchemaRegistry`
1818
* (ruling 6624345766): each static method of it is the body of the `SchemaRegistry`

‎packages/objectql/src/registry-packages.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* `refuseNamespaceHolderConflicts`, `uninstallPackage`, `getPackage`,
99
* `recordResidualOwnerDependencies`, `residualOwnerDependenciesOf`,
1010
* `getAllPackages`, `enablePackage`, `disablePackage`, `updatePackageManifest`
11-
* moved out of `registry.ts` whole by `scripts/codemod-split-registry.mjs`.
11+
* moved out of `registry.ts` whole by
12+
* the #33949 split codemod (PR #34285, kept in its branch history, not committed).
1213
*
1314
* A MOVE, not a redesign. {@link PackagesFacet} is a stateless facet of `SchemaRegistry`
1415
* (ruling 6624345766): each static method of it is the body of the `SchemaRegistry`

‎packages/objectql/src/registry-picklists.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* `assertPicklistValuesDistinct`, `resolvePicklistFields`,
1515
* `resolveFieldPicklistOptions`, `unregisterPicklistExtensionsByPackage`,
1616
* `invalidate`, `invalidateAll`, `reset` moved out of `registry.ts` whole by
17-
* `scripts/codemod-split-registry.mjs`.
17+
* the #33949 split codemod (PR #34285, kept in its branch history, not committed).
1818
*
1919
* A MOVE, not a redesign. {@link PicklistsFacet} is a stateless facet of `SchemaRegistry`
2020
* (ruling 6624345766): each static method of it is the body of the `SchemaRegistry`

0 commit comments

Comments
 (0)