Skip to content

Commit

Permalink
feat: Updated to openfeature SDK 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Arch committed Sep 23, 2022
1 parent d08fc74 commit 2cb82ef
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
[![a](https://img.shields.io/badge/slack-%40cncf%2Fopenfeature-brightgreen?style=flat&logo=slack)](https://cloud-native.slack.com/archives/C0344AANLA1)
[![OpenFeature Specification](https://img.shields.io/static/v1?label=OpenFeature%20Specification&message=v0.4.0&color=yellow)](https://github.com/open-feature/spec/tree/v0.4.0)
[![OpenFeature SDK](https://img.shields.io/static/v1?label=OpenFeature%20Node%20SDK&message=v0.3.1&color=green)](https://github.com/open-feature/node-sdk/tree/v0.3.1)
[![OpenFeature SDK](https://img.shields.io/static/v1?label=OpenFeature%20Node%20SDK&message=v0.4.0&color=green)](https://github.com/open-feature/js-sdk)
[![npm version](https://badge.fury.io/js/cloudbees-openfeature-provider-node.svg)](https://badge.fury.io/js/cloudbees-openfeature-provider-node)
[![CloudBees Rox SDK](https://img.shields.io/static/v1?label=Rox%20SDK&message=v5.4.1&color=green)](https://www.npmjs.com/package/rox-node)
[![Known Vulnerabilities](https://snyk.io/test/github/rollout/cloudbees-openfeature-provider-node/badge.svg)](https://snyk.io/test/github/rollout/cloudbees-openfeature-provider-node)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"dist/"
],
"dependencies": {
"@openfeature/nodejs-sdk": "^0.3.1",
"@openfeature/js-sdk": "^0.4.0",
"rox-node": "^5.4.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/provider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {EvaluationContext, Provider, ResolutionDetails} from '@openfeature/nodejs-sdk'
import {EvaluationContext, JsonValue, Provider, ResolutionDetails} from '@openfeature/js-sdk'
import Rox, {RoxSetupOptions} from 'rox-node'

/**
Expand Down Expand Up @@ -33,7 +33,7 @@ export class CloudbeesProvider implements Provider {
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
resolveObjectEvaluation<T extends object>(flagKey: string, defaultValue: T, context: EvaluationContext): Promise<ResolutionDetails<T>> {
resolveObjectEvaluation<T extends JsonValue>(flagKey: string, defaultValue: T, context: EvaluationContext): Promise<ResolutionDetails<T>> {
return Promise.reject('Not implemented - CloudBees feature management does not support an object type. Only String, Number and Boolean')
}
}
2 changes: 1 addition & 1 deletion test/provider.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {CloudbeesProvider} from '../src'
import {Client, OpenFeature} from '@openfeature/nodejs-sdk'
import {Client, OpenFeature} from '@openfeature/js-sdk'

describe('Cloudbees Provider', () => {
it('invalid creation', async () => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -619,10 +619,10 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@openfeature/nodejs-sdk@^0.3.1":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@openfeature/nodejs-sdk/-/nodejs-sdk-0.3.1.tgz#413b61d96459cb3787c026ea9e76366b5bd9be97"
integrity sha512-KhiOYC/HVFDj98sOL3qv+hcSliyklT5eCPnrDiHlAIdpJedkMOzEiKj4jA9hNh5b3rj5kVCPuqA931QoOGSH1A==
"@openfeature/js-sdk@^0.4.0":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@openfeature/js-sdk/-/js-sdk-0.4.0.tgz#6ec5ae1c3d8b81cd7a6aa88ade5e6be6bc1c8272"
integrity sha512-tfZNxg7QCKIVDrBRktIaqnphANXloyHSZJs2weumXRF6e1OiTSVTbnPtYZZCr15PMiIzEQUQheulloTepLzAmA==

"@sinclair/typebox@^0.24.1":
version "0.24.38"
Expand Down

0 comments on commit 2cb82ef

Please sign in to comment.