Skip to content

refactor(index)!: drop schema objects and internals from the barrel - #36

Merged
TheGreatAxios merged 1 commit into
cl-9363-mailbox-drop-custom-build-and-prepare-scriptsfrom
cl-9229-mailbox-remove-schema-and-internal-constants-from-barrel
Sep 27, 2026
Merged

TheGreatAxios merged 1 commit into
cl-9363-mailbox-drop-custom-build-and-prepare-scriptsfrom
cl-9229-mailbox-remove-schema-and-internal-constants-from-barrel

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Removes principalMail, mailboxPgSchema, PrincipalMailRow, PrincipalMailInsert, expectedColumnTypes, assertExpectedColumnTypes, MESSAGE_ID_FALLBACK_DOMAIN and MAX_PENDING_SSE_EVENTS from @corbits/mailbox.
  • CHANGELOG notes the break; ARCHITECTURE no longer calls the table object a public export.

Verification

CI is green on this branch: install --frozen-lockfile, build, typecheck, tests against Postgres, and the Node consumer smoke test.

Closes CL-9229

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review: the branch went through two independent review passes, and every finding is fixed. Two findings were waived after a senior ruling: the README stays stale on #37 until #38 lands, and the default resolver has no null guard because TenantEnv guarantees tenant and principal. Build, typecheck and 171 tests pass against real Postgres.

@TheGreatAxios
TheGreatAxios force-pushed the cl-9229-mailbox-remove-schema-and-internal-constants-from-barrel branch from e5d37d8 to 4d0e656 Compare September 26, 2026 01:28
@TheGreatAxios TheGreatAxios changed the title refactor(index): drop schema objects and internals from the barrel refactor(index)!: drop schema objects and internals from the barrel Sep 26, 2026
@TheGreatAxios
TheGreatAxios added this pull request to stack #47 September 26, 2026 01:58
The drizzle table objects, their row types, the column-type check and
two internal constants are implementation details; hosts never need them
to mount or migrate the mailbox.

Closes CL-9229.
@TheGreatAxios
TheGreatAxios force-pushed the cl-9229-mailbox-remove-schema-and-internal-constants-from-barrel branch from 4d0e656 to 5a955b2 Compare September 26, 2026 02:40
@TheGreatAxios
TheGreatAxios removed this pull request from stack #47 September 26, 2026 02:40
@TheGreatAxios
TheGreatAxios changed the base branch from main to cl-9363-mailbox-drop-custom-build-and-prepare-scripts September 26, 2026 02:40
@TheGreatAxios
TheGreatAxios added this pull request to stack #50 September 26, 2026 02:40
@TheGreatAxios
TheGreatAxios merged commit 73c7b56 into main Sep 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant