Skip to content

Modernize program-boilerplate#509

Open
Jayden Chan (jayden-chan) wants to merge 5 commits into
masterfrom
jayden/program-boilerplate-maintenance
Open

Modernize program-boilerplate#509
Jayden Chan (jayden-chan) wants to merge 5 commits into
masterfrom
jayden/program-boilerplate-maintenance

Conversation

@jayden-chan
Copy link
Copy Markdown
Member

Description of the change

  • Updated minimum supported Node version to 24
  • Updated to TypeScript 6
  • Updated to bson-objectid 2
  • Removed jest, ts-jest & jest-cucumber in favor of native Node test runner
  • Removed typedoc (was unused)
  • Removed source-map
  • Removed prettier (install from dev environment)
  • Removed ts-node as Node can run TypeScript natively
  • Updated all dependencies
  • Converted package to ESM

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation or Development tools (readme, specs, tests, code formatting)

Checklists

Development

  • Prettier was run (if applicable)
  • The behaviour changes in the pull request are covered by specs
  • All tests related to the changed code pass in development

Paperwork

  • This pull request has a descriptive title and information useful to a reviewer

Code review

  • Security impacts of this change have been considered

* Updated minimum supported Node version to 24
* Updated to TypeScript 6
* Updated to bson-objectid 2
* Removed jest, ts-jest & jest-cucumber in favor of native Node test runner
* Removed typedoc (was unused)
* Removed source-map
* Removed prettier (install from dev environment)
* Removed ts-node as Node can run TypeScript natively
* Updated all dependencies
* Converted package to ESM
Copilot AI review requested due to automatic review settings May 28, 2026 16:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR modernizes packages/program-boilerplate for Node 24+, TypeScript 6, ESM output, and the native Node test runner, aligning it with the newer boilerplate package modernization pattern.

Changes:

  • Converts the package to ESM with NodeNext TypeScript settings and explicit .ts source imports.
  • Updates dependencies and replaces Jest-based tests with node:test/node:assert.
  • Removes Jest configuration and legacy tooling scripts/dependencies.

Reviewed changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/program-boilerplate/package.json Updates engines, dependencies, scripts, and enables ESM package mode.
packages/program-boilerplate/tsconfig.json Adds Node 24/TypeScript 6 compiler configuration.
packages/program-boilerplate/jest.config.ts Removes obsolete Jest configuration.
packages/program-boilerplate/src/index.ts Updates imports/exports for ESM and adjusts runtime setup syntax.
packages/program-boilerplate/src/conversion.ts Updates imports and index-signature-safe field access.
packages/program-boilerplate/src/jsonata.ts Updates import ordering and formatting for new compiler settings.
packages/program-boilerplate/src/logger.ts Converts logger import typing to TypeScript 6-compatible syntax.
packages/program-boilerplate/src/transaction.ts Updates imports and ObjectID generation for dependency changes.
packages/program-boilerplate/src/trigger.ts Updates imports and type-only usage for ESM/NodeNext.
packages/program-boilerplate/src/utils.ts Updates imports and JSONata paths extractor interop usage.
packages/program-boilerplate/src/types/index.ts Updates type namespace imports to explicit .ts paths.
packages/program-boilerplate/src/types/rpc.ts Updates schema/type imports for NodeNext resolution.
packages/program-boilerplate/__tests__/jsonata.test.ts Migrates JSONata tests to node:test.
packages/program-boilerplate/__tests__/logger.test.ts Migrates logger tests to node:test.
packages/program-boilerplate/__tests__/transaction.test.ts Migrates transaction tests to node:test.
packages/program-boilerplate/__tests__/trigger.test.ts Migrates trigger tests and mocks to node:test.
packages/program-boilerplate/__tests__/utils.test.ts Migrates utility tests to node:test.
packages/program-boilerplate/__tests__/webtask.test.ts Migrates webtask tests to node:test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/program-boilerplate/package.json Outdated
Comment thread packages/program-boilerplate/__tests__/logger.test.ts Outdated
Comment thread packages/program-boilerplate/src/types/rpc.ts Outdated
Comment thread packages/program-boilerplate/package.json
Copilot AI review requested due to automatic review settings May 28, 2026 16:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 19 changed files in this pull request and generated 2 comments.

Comment thread packages/program-boilerplate/package.json Outdated
Comment thread packages/program-boilerplate/package.json Outdated
Copilot AI review requested due to automatic review settings May 28, 2026 19:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants