@openfeature/server-sdk
Advanced tools
Comparing version 1.6.2 to 1.6.3
{ | ||
"name": "@openfeature/server-sdk", | ||
"version": "1.6.2", | ||
"version": "1.6.3", | ||
"description": "OpenFeature SDK for JavaScript", | ||
@@ -54,5 +54,5 @@ "main": "./dist/cjs/index.js", | ||
"typedoc": { | ||
"displayName": "OpenFeature JS SDK", | ||
"displayName": "OpenFeature Server SDK", | ||
"entryPoint": "./src/index.ts" | ||
} | ||
} |
@@ -19,4 +19,4 @@ <!-- markdownlint-disable MD033 --> | ||
<!-- x-release-please-start-version --> | ||
<a href="https://github.com/open-feature/js-sdk/releases/tag/js-sdk-v1.6.2"> | ||
<img alt="Release" src="https://img.shields.io/static/v1?label=release&message=v1.6.2&color=blue&style=for-the-badge" /> | ||
<a href="https://github.com/open-feature/js-sdk/releases/tag/server-sdk-v1.6.3"> | ||
<img alt="Release" src="https://img.shields.io/static/v1?label=release&message=v1.6.3&color=blue&style=for-the-badge" /> | ||
</a> | ||
@@ -28,4 +28,4 @@ <!-- x-release-please-end --> | ||
</a> | ||
<a href="https://www.npmjs.com/package/@openfeature/js-sdk"> | ||
<img alt="NPM Download" src="https://img.shields.io/npm/dm/%40openfeature%2Fjs-sdk" /> | ||
<a href="https://www.npmjs.com/package/@openfeature/server-sdk"> | ||
<img alt="NPM Download" src="https://img.shields.io/npm/dm/%40openfeature%2Fserver-sdk" /> | ||
</a> | ||
@@ -56,3 +56,3 @@ <a href="https://codecov.io/gh/open-feature/js-sdk"> | ||
```sh | ||
npm install --save @openfeature/js-sdk | ||
npm install --save @openfeature/server-sdk | ||
``` | ||
@@ -63,3 +63,3 @@ | ||
```sh | ||
yarn add @openfeature/js-sdk | ||
yarn add @openfeature/server-sdk | ||
``` | ||
@@ -70,3 +70,3 @@ | ||
```ts | ||
import { OpenFeature } from '@openfeature/js-sdk'; | ||
import { OpenFeature } from '@openfeature/server-sdk'; | ||
@@ -154,3 +154,3 @@ // Register your feature flag provider | ||
```ts | ||
import { OpenFeature } from "@openfeature/js-sdk"; | ||
import { OpenFeature } from "@openfeature/server-sdk"; | ||
@@ -175,3 +175,3 @@ // add a hook globally, to run on all evaluations | ||
```ts | ||
import type { Logger } from "@openfeature/js-sdk"; | ||
import type { Logger } from "@openfeature/server-sdk"; | ||
@@ -196,3 +196,3 @@ // The logger can be anything that conforms with the Logger interface | ||
```ts | ||
import { OpenFeature, InMemoryProvider } from "@openfeature/js-sdk"; | ||
import { OpenFeature, InMemoryProvider } from "@openfeature/server-sdk"; | ||
@@ -230,3 +230,3 @@ const myFlags = { | ||
```ts | ||
import { OpenFeature, ProviderEvents } from '@openfeature/js-sdk'; | ||
import { OpenFeature, ProviderEvents } from '@openfeature/server-sdk'; | ||
@@ -251,3 +251,3 @@ // OpenFeature API | ||
```ts | ||
import { OpenFeature } from '@openfeature/js-sdk'; | ||
import { OpenFeature } from '@openfeature/server-sdk'; | ||
@@ -266,3 +266,3 @@ await OpenFeature.close() | ||
```ts | ||
import { JsonValue, Provider, ResolutionDetails } from '@openfeature/js-sdk'; | ||
import { JsonValue, Provider, ResolutionDetails } from '@openfeature/server-sdk'; | ||
@@ -317,3 +317,3 @@ // implement the provider interface | ||
```ts | ||
import type { Hook, HookContext, EvaluationDetails, FlagValue } from "@openfeature/js-sdk"; | ||
import type { Hook, HookContext, EvaluationDetails, FlagValue } from "@openfeature/server-sdk"; | ||
@@ -320,0 +320,0 @@ export class MyHook implements Hook { |
286788