Skip to content

Make internal TS helpers module-private - #81

Open
Herklos wants to merge 2 commits into
masterfrom
cursor/nightly-dead-export-cleanup-737a
Open

Herklos wants to merge 2 commits into
masterfrom
cursor/nightly-dead-export-cleanup-737a

Conversation

@Herklos

@Herklos Herklos commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Knip flagged several TypeScript symbols that were exported from source files but not re-exported from package entry points. This change drops those exports so the helpers stay module-private, matching patterns already used in @drakkar.software/starfish-sharing.

Touched packages: identities (cap-mint constants and directory helpers), keyring (unused _SEAL_EPOCH export), replica (default scheduler error handler). Public package APIs are unchanged.

Ran vitest for identities, keyring, and replica (300 tests).

Open in Web Open in Cursor 

Drop export keywords from identities directory helpers and cap-mint
constants, remove the unused keyring _SEAL_EPOCH export, and keep the
replica scheduler default error handler internal. Public package entry
points are unchanged.

Co-authored-by: herklos.dev <herklos.dev@protonmail.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The identities, directory, and replica helpers were not on the package entry points, and nothing in the repo imports them. Dropping those exports is safe.

One leftover in keyring: the comment above toBytes still says the following symbol is exported for tests and cross-language checks. That symbol was _SEAL_EPOCH, which this change removes. toBytes is private and is not part of the seal format. Delete that comment.

Open in Web View Automation 

Sent by Cursor Automation: Review

Comment thread packages/ts/keyring/src/seal.ts Outdated
@Herklos Herklos self-assigned this Oct 13, 2026
Co-authored-by: herklos.dev <herklos.dev@protonmail.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The comment above toBytes is gone. The helpers stay in their modules. Package entry points are unchanged.

Open in Web View Automation 

Sent by Cursor Automation: Review

This branch has not been deployed

No deployments
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.

2 participants