@splitsoftware/openfeature-js-split-provider 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGES.txt CHANGED
@@ -5,4 +5,7 @@
5
5
  - Up to date with spec 0.4.0 and @openfeature/nodejs-sdk v0.3.2
6
6
  1.0.2
7
7
  - Changes name from Node-specific implementation to generic JSON
8
+ - Up to date with spec 0.4.0 and @openfeature/js-sdk 0.4.0
9
+ 1.0.3
10
+ - Adds types definitions for TypeScript
8
11
  - Up to date with spec 0.4.0 and @openfeature/js-sdk 0.4.0
package/README.md CHANGED
@@ -13,7 +13,7 @@ Below is a simple example that describes the instantiation of the Split Provider
13
13
  ```js
14
14
  const OpenFeature = require('@openfeature/js-sdk').OpenFeature;
15
15
  const SplitFactory = require('@splitsoftware/splitio').SplitFactory;
16
- const OpenFeatureSplitProvider = require('@splitsoftware/openfeature-nodejs-split-provider').OpenFeatureSplitProvider;
16
+ const OpenFeatureSplitProvider = require('@splitsoftware/openfeature-js-split-provider').OpenFeatureSplitProvider;
17
17
 
18
18
  splitClient = SplitFactory({core: {authorizationKey: 'localhost'}}).client();
19
19
  provider = new OpenFeatureSplitProvider({splitClient});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/openfeature-js-split-provider",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Split OpenFeature Provider",
5
5
  "files": [
6
6
  "README.md",
@@ -13,8 +13,8 @@
13
13
  "src"
14
14
  ],
15
15
  "repository": "splitio/openfeature-split-provider-js",
16
- "homepage": "https://github.com/splitio/openfeature-split-provider-nodejs#readme",
17
- "bugs": "https://github.com/splitio/openfeature-split-provider-nodejs/issues",
16
+ "homepage": "https://github.com/splitio/openfeature-split-provider-js#readme",
17
+ "bugs": "https://github.com/splitio/openfeature-split-provider-js/issues",
18
18
  "license": "Apache-2.0",
19
19
  "author": "Josh Sirota <josh.sirota@split.io>",
20
20
  "contributors": [
@@ -1,8 +1,7 @@
1
1
  import tape from 'tape-catch';
2
2
 
3
3
  import clientSuite from './nodeSuites/client.spec.js';
4
- import providerSuite from './nodeSuites/provider.spec.js';
5
4
 
6
- tape('## OpenFeature NodeJS Split Provider - tests', async function (assert) {
5
+ tape('## OpenFeature JavaScript Split Provider - tests', async function (assert) {
7
6
  assert.test('Client Tests', clientSuite);
8
7
  });
@@ -0,0 +1,17 @@
1
+ // Declaration file for Javascript and Node OpenFeature Split Provider
2
+ // Project: http://www.split.io/
3
+
4
+ import { Provider } from "@openfeature/js-sdk";
5
+
6
+ export = SplitProvider;
7
+
8
+ declare module SplitProvider {
9
+ export interface SplitProviderOptions {
10
+ splitClient: SplitIO.IClient;
11
+ }
12
+
13
+ /**
14
+ * OpenFeature Split Provider constructor.
15
+ */
16
+ export function OpenFeatureSplitProvider(options: SplitProviderOptions): Provider;
17
+ }