Skip to content

Commit

Permalink
fix: bump openfeature sdks
Browse files Browse the repository at this point in the history
bump the openfeature sdks and remove workaround that is fixed

closes #5
  • Loading branch information
Billlynch committed Aug 29, 2023
1 parent fe65155 commit 0d01b77
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 20 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"@commitlint/config-conventional": "^17.6.7",
"@commitlint/cz-commitlint": "^17.6.7",
"@commitlint/prompt-cli": "^17.6.7",
"@openfeature/js-sdk": "^1.3.3",
"@openfeature/web-sdk": "^0.3.10-experimental",
"@openfeature/js-sdk": "^1.4.2",
"@openfeature/web-sdk": "^0.4.0",
"@spotify/eslint-config-base": "^15.0.0",
"@spotify/eslint-config-react": "^15.0.0",
"@spotify/eslint-config-typescript": "^15.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/integration-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
"peerDependencies": {
"@openfeature/web-sdk": "^0.3.10-experimental",
"@openfeature/web-sdk": "^0.4.0",
"react-dom": ">=16 <19"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/openfeature-server-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"fast-deep-equal": "^3.1.3"
},
"peerDependencies": {
"@openfeature/js-sdk": "^1.3.3"
"@openfeature/js-sdk": "^1.4.2"
},
"scripts": {
"build:esm": "tsc -p tsconfig.esm.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/openfeature-web-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"fast-deep-equal": "^3.1.3"
},
"peerDependencies": {
"@openfeature/web-sdk": "^0.3.10-experimental"
"@openfeature/web-sdk": "^0.4.0"
},
"scripts": {
"build:esm": "tsc -p tsconfig.esm.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ describe('events', () => {
await initPromise;
await openFeatureAPI.setContext({ targetingKey: 'user-a', name: 'Kurt' });

expect(readyHandler).toHaveBeenCalledTimes(3);
expect(readyHandler).toHaveBeenCalledTimes(2);
expect(staleHandler).toHaveBeenCalledTimes(1);
expect(errorHandler).toHaveBeenCalledTimes(0);
});
Expand All @@ -738,6 +738,6 @@ describe('events', () => {

expect(readyHandler).toHaveBeenCalledTimes(0);
expect(staleHandler).toHaveBeenCalledTimes(1);
expect(errorHandler).toHaveBeenCalledTimes(3);
expect(errorHandler).toHaveBeenCalledTimes(2);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,9 @@ export class ConfidenceWebProvider implements Provider {
flags: [],
});
this.status = ProviderStatus.READY;
// this event should be emitted by the OpenFeature sdk onto the client handlers, but in current version is not work.
this.events.emit(ProviderEvents.Ready);
return Promise.resolve();
} catch (e) {
this.status = ProviderStatus.ERROR;
// this event should be emitted by the OpenFeature sdk onto the client handlers, but in current version is not work.
this.events.emit(ProviderEvents.Error);
throw e;
}
}
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1133,15 +1133,15 @@
dependencies:
"@octokit/openapi-types" "^18.0.0"

"@openfeature/js-sdk@^1.3.3":
version "1.3.3"
resolved "https://registry.yarnpkg.com/@openfeature/js-sdk/-/js-sdk-1.3.3.tgz#84a5c1feaf41a1e7a4df7ce30c87aafb4fd9023b"
integrity "sha1-hKXB/q9Boeek33zjDIeq+0/ZAjs= sha512-VcI0Vy7pLi2V7JOUwgiuvaUDm54Ymkx5iq2ilPyTzaYItUaLnyfm6pG6kuxBkYsi7y5zp//086uiz17iBqEmLQ=="

"@openfeature/web-sdk@^0.3.10-experimental":
version "0.3.10-experimental"
resolved "https://registry.yarnpkg.com/@openfeature/web-sdk/-/web-sdk-0.3.10-experimental.tgz#7e09225e67fd619ff2c8383c6563b40a59be8aa6"
integrity "sha1-fgkiXmf9YZ/yyDg8ZWO0Clm+iqY= sha512-WZp3MhhycHJFX9PM11quEcA8PEfI7PMkHYucvqxcbgYxpwF84T7KytppJ+Jkr6ErrwYbczWNAmlPOD4kEGZR0w=="
"@openfeature/js-sdk@^1.4.2":
version "1.4.2"
resolved "https://registry.yarnpkg.com/@openfeature/js-sdk/-/js-sdk-1.4.2.tgz#09bcb5fdcdc94a654b5da432d663c08f25141426"
integrity sha512-Qgi26g3r7agzeY9MqFttH8xFlliWf+fQwp3Y0UxaBAdLG4AguCtM7LHWfAXJBh1mIdxoepx1KEf5xzhC2f/BEQ==

"@openfeature/web-sdk@^0.4.0":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@openfeature/web-sdk/-/web-sdk-0.4.0.tgz#1e12d5190a18479ba9cf253fe8b1e2843bda6553"
integrity sha512-k14SBiGCwPSQ9zhFfK2/oslUNrvfd/hleD2WfiKi69YDcWnsUqGeeXvvE4KI6FS54GJgXlNVpfqDQ4gUHbywHQ==

"@parcel/[email protected]":
version "2.0.4"
Expand Down

0 comments on commit 0d01b77

Please sign in to comment.