Skip to content

Commit 214cfbb

Browse files
committed
refactor(metadata-protocol): import the E0 modules in the order the rolled-up .d.ts keeps
The module import order in protocol.ts decides the declaration order of the published index.d.ts; this order keeps it equal to the base's. Claude-Session: https://claude.ai/code/session_01ADHkmR4MjTzeUv5x6tNkbk Co-authored-by: Claude <noreply@anthropic.com>
1 parent 299f4c2 commit 214cfbb

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

‎packages/metadata-protocol/src/protocol.ts‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,8 @@ import { withRefusalAudit } from './protocol-refusal-audit.js';
455455
// [#28665] The null-master rows a `controlled_by_parent` detail stops serving, counted into the finding that makes its master required.
456456
import { withNullMasterRowCounts } from './protocol-destructive-null-master.js';
457457
// [#25467 E0] The module preamble that stood here moved, verbatim, into the themed
458-
// `protocol-*.ts` modules below. What this file exported from it, it still exports.
458+
// `protocol-*.ts` modules below. What this file exported from it, it still exports;
459+
// the module order below is the order the rolled-up `.d.ts` keeps their declarations in.
459460
import {
460461
HAND_CRAFTED_SCHEMAS,
461462
TYPE_TO_FORM,
@@ -595,15 +596,6 @@ export {
595596
toRowApiError,
596597
} from './protocol-client-failures.js';
597598
export type { BatchDataLoopOutcome, BatchDataRowResult } from './protocol-client-failures.js';
598-
import {
599-
destructiveChangeRemedy,
600-
detectDestructiveObjectChanges,
601-
diffShallow,
602-
specValidationFindings,
603-
} from './protocol-write-face.js';
604-
import type { MetadataWriteFace } from './protocol-write-face.js';
605-
export { specValidationFindings } from './protocol-write-face.js';
606-
export type { MetadataWriteFace } from './protocol-write-face.js';
607599
import {
608600
RESERVED_LIST_QUERY_PARAMS,
609601
assertQueryParamArity,
@@ -631,6 +623,15 @@ export {
631623
export type { StoredMetadataSearchSchema } from './protocol-list-query-params.js';
632624
import { SERVICE_CONFIG } from './protocol-discovery-services.js';
633625
import { collectCompositeKeyHeadHits, collectReferenceHits } from './protocol-reference-hits.js';
626+
import {
627+
destructiveChangeRemedy,
628+
detectDestructiveObjectChanges,
629+
diffShallow,
630+
specValidationFindings,
631+
} from './protocol-write-face.js';
632+
import type { MetadataWriteFace } from './protocol-write-face.js';
633+
export { specValidationFindings } from './protocol-write-face.js';
634+
export type { MetadataWriteFace } from './protocol-write-face.js';
634635
import type {
635636
DeletePackageRequest,
636637
DeletePackageResponse,

0 commit comments

Comments
 (0)