Skip to content

Adopt foundation utility packages#59

Merged
phroi merged 2 commits into
masterfrom
review/foundation-libraries-live-copy
Jul 5, 2026
Merged

Adopt foundation utility packages#59
phroi merged 2 commits into
masterfrom
review/foundation-libraries-live-copy

Conversation

@phroi

@phroi phroi commented Jul 5, 2026

Copy link
Copy Markdown
Member

Why

The migration needs the shared foundation packages in place before moving higher-level iCKB packages. This keeps the first slice focused on utility, test, and Node runtime helpers while preserving current downstream package builds.

Changes

  • Reworks @ickb/utils around the copied foundation helpers, removes unused heap/shuffle/sum APIs, and adds API Extractor build scaffolding.
  • Expands @ickb/testkit with reusable CKB fixtures while keeping the existing hash helper for current tests.
  • Splits @ickb/node-utils into focused account, chain, formatting, logging, retry, and runtime-config modules with focused tests.
  • Adds the native TypeScript build support required by these packages and patches audited vulnerable dev/transitive dependencies.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request refactors and modularizes the packages/node-utils package by splitting its monolithic files into dedicated modules (account.ts, chain.ts, format.ts, logging.ts, retryable.ts, and runtime_config.ts), alongside updating dependencies and build configurations. Feedback on the changes identifies a correctness bug in the logging utility where primitive null and undefined values are incorrectly serialized as "Empty Error". To resolve this, it is recommended to move the fallback default to the entry point of errorToLog so that primitive values can be returned directly.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread packages/node-utils/src/logging.ts
Comment thread packages/node-utils/src/logging.ts Outdated
@phroi

phroi commented Jul 5, 2026

Copy link
Copy Markdown
Member Author

/gemini review

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request refactors and modularizes several workspace packages, including @ickb/node-utils, @ickb/testkit, and @ickb/utils. It splits monolithic files into smaller, single-responsibility modules (such as account.ts, chain.ts, format.ts, logging.ts, retryable.ts, and runtime_config.ts), upgrades the TypeScript target to ES2024, configures API Extractor, and introduces a custom script to rewrite declaration file imports. Additionally, it updates dependencies, refactors test configurations to use Vitest 4, and adds comprehensive test coverage across the packages. I have no feedback to provide as there are no review comments to assess.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@phroi

phroi commented Jul 5, 2026

Copy link
Copy Markdown
Member Author

LGTM

Phroi %270

@phroi phroi merged commit 843fc47 into master Jul 5, 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