Skip to content

update sdk versions #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@
- Up to date with spec 0.4.0 and @openfeature/js-sdk 0.4.0
1.0.4
- Fixes issue with TS build
- Up to date with spec 0.5.0 and @openfeature/js-sdk 0.5.0
- Up to date with spec 0.5.0 and @openfeature/js-sdk 0.5.0
1.1.0
- Uses renamed @openfeature/js-sdk to @openfeature/server-sdk
- Up to date with spec 0.8.0 and @openfeature/server-sdk 1.18.0
- Uses split sdk 11.4.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ npm install @splitsoftware/openfeature-js-split-provider
### Confirm peer dependencies are installed
```sh
npm install @splitsoftware/splitio
npm install @openfeature/js-sdk
npm install @openfeature/server-sdk
```

### Register the Split provider with OpenFeature
```js
const OpenFeature = require('@openfeature/js-sdk').OpenFeature;
const OpenFeature = require('@openfeature/server-sdk').OpenFeature;
const SplitFactory = require('@splitsoftware/splitio').SplitFactory;
const OpenFeatureSplitProvider = require('@splitsoftware/openfeature-js-split-provider').OpenFeatureSplitProvider;

Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@splitsoftware/openfeature-js-split-provider",
"version": "1.0.6",
"version": "1.1.0",
"description": "Split OpenFeature Provider",
"files": [
"README.md",
Expand All @@ -25,12 +25,12 @@
},
"dependencies": {},
"peerDependencies": {
"@openfeature/js-sdk": "^1.0.0",
"@splitsoftware/splitio": "^10.22.1"
"@openfeature/server-sdk": "^1.18.0",
"@splitsoftware/splitio": "^11.4.0"
},
"devDependencies": {
"@openfeature/js-sdk": "^1.0.0",
"@splitsoftware/splitio": "^10.22.1",
"@openfeature/server-sdk": "^1.18.0",
"@splitsoftware/splitio": "^11.4.0",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"replace": "^1.2.1",
Expand All @@ -39,7 +39,7 @@
"tape": "4.13.2",
"tape-catch": "1.0.6",
"ts-node": "^10.5.0",
"typescript": "4.4.4"
"typescript": "^4.9.5"
},
"scripts": {
"build-esm": "rimraf es && tsc -outDir es",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/nodeSuites/client.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const OpenFeature = require('@openfeature/js-sdk').OpenFeature;
const OpenFeature = require('@openfeature/server-sdk').OpenFeature;
const SplitFactory = require('@splitsoftware/splitio').SplitFactory;
import { OpenFeatureSplitProvider } from '../..';

Expand Down
2 changes: 1 addition & 1 deletion src/lib/js-split-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
JsonValue,
TargetingKeyMissingError,
StandardResolutionReasons,
} from "@openfeature/js-sdk";
} from "@openfeature/server-sdk";
import type SplitIO from "@splitsoftware/splitio/types/splitio";

export interface SplitProviderOptions {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
// "typeRoots": [], /* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"skipLibCheck": true /* Skip type checking of declaration files. */
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */

Expand Down