Skip to content

Conversation

@duyhungtnn
Copy link
Collaborator

@duyhungtnn duyhungtnn commented Nov 19, 2025

This pull request updates the SDK dependency from bkt-node-server-sdk to @bucketeer/node-server-sdk throughout the codebase and test files. It also makes improvements to linting and ensures that the SDK version is properly checked in tests. These changes help standardize the SDK import, improve code quality, and ensure version consistency.

SDK dependency migration:

  • All imports of bkt-node-server-sdk have been replaced with @bucketeer/node-server-sdk in source files

  • The package.json dependencies and peerDependencies have been updated to use @bucketeer/node-server-sdk instead of bkt-node-server-sdk.

Linting and code quality:

  • The lint script in package.json now uses --max-warnings=0 to enforce stricter linting.

Testing improvements:

  • The e2e test now checks that SDK_VERSION is defined, ensuring version consistency between the provider and the SDK.

@duyhungtnn duyhungtnn marked this pull request as draft November 19, 2025 03:13
@duyhungtnn duyhungtnn force-pushed the fix/correct-node-server-sdk-package branch from 22e1475 to 7dda281 Compare November 19, 2025 03:18
@duyhungtnn duyhungtnn requested a review from Copilot November 19, 2025 03:33
Copilot finished reviewing on behalf of duyhungtnn November 19, 2025 03:35
Copy link

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 migrates the SDK dependency from bkt-node-server-sdk to the new scoped package @bucketeer/node-server-sdk, standardizing the SDK import across the codebase. The migration also includes dependency version updates, stricter linting enforcement, and improved test coverage for version validation.

  • Updates all SDK imports from bkt-node-server-sdk to @bucketeer/node-server-sdk
  • Enforces zero warnings in the lint script via --max-warnings=0
  • Adds test validation to ensure SDK_VERSION is defined

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
package.json Updates SDK package name in dependencies and peerDependencies; enforces stricter linting; moves @openfeature/core from peer to devDependencies
yarn.lock Reflects the package migration from bkt-node-server-sdk to @bucketeer/node-server-sdk and updates related dependencies
src/index.ts Updates export statement to use new SDK package name
src/internal/BucketeerProvider.ts Updates SDK import and removes unused imports (ErrorCode, StandardResolutionReasons)
src/internal/BKTEvaluationDetailExt.ts Updates SDK import to new package name
src/internal/EvaluationContext.ts Updates SDK import to new package name
test/BucketeerProvider.test.ts Updates all SDK imports and mock paths to new package name
test/BKTEvaluationDetailExt.test.ts Updates SDK import to new package name
e2e/localEvaluate.test.ts Adds assertion to verify SDK_VERSION is defined before checking version equality
.prettierignore Adds CHANGELOG.md to ignored files

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

@duyhungtnn duyhungtnn marked this pull request as ready for review November 19, 2025 03:37
@duyhungtnn duyhungtnn changed the title fix: correct Node server SDK package name fix: correct Node SDK package name Nov 19, 2025
Bumped the @bucketeer/node-server-sdk devDependency from version 0.4.2 to 0.4.3 for latest fixes and improvements.
Clarifies the installation command to include required peer dependencies and updates the note about peer dependencies for better guidance.
@cre8ivejp cre8ivejp changed the title fix: correct Node SDK package name fix: correct node sdk package name Nov 19, 2025
@cre8ivejp cre8ivejp merged commit b0ffa28 into main Nov 19, 2025
7 checks passed
This was referenced Nov 19, 2025
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.

3 participants