Skip to content

fix(openfeature-node-provider): allow ESM imports on v1 - #831

Merged
roncohen merged 1 commit into
maintenance/v1from
fix/openfeature-node-esm-v1
Nov 27, 2026
Merged

roncohen merged 1 commit into
maintenance/v1from
fix/openfeature-node-esm-v1

Conversation

@roncohen

Copy link
Copy Markdown
Contributor

Summary

  • Backport fix(openfeature-node-provider): allow ESM imports #820 to maintenance/v1. The Node.js OpenFeature provider currently exports its package entry point only to CommonJS, so native ESM imports fail with ERR_PACKAGE_PATH_NOT_EXPORTED (@reflag/openfeature-node-provider cannot be imported from ESM #819).
  • Add a default export condition that points to the existing CommonJS build. The CommonJS entry point, TypeScript declarations, dependencies, and public API are unchanged.
  • Add a patch changeset. This PR does not change publishing; the maintenance branch's existing publish workflow only releases the CLI.

Validation

  • Built the v1 Node SDK and OpenFeature provider. All 28 existing provider tests passed.
  • Installed the provider tarball in a clean temporary directory. On Node.js 24.22.0, the named ESM import and CommonJS require() both loaded the same ReflagNodeProvider export.
  • Formatting and git diff --check passed. No new CI tests were added.

@roncohen
roncohen merged commit 186fb85 into maintenance/v1 Nov 27, 2026
2 of 3 checks passed
@roncohen
roncohen deleted the fix/openfeature-node-esm-v1 branch November 27, 2026 12:00
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