@spotify-confidence/sdk
Advanced tools
Comparing version 0.2.1 to 0.2.2
# Changelog | ||
## [0.2.2](https://github.com/spotify/confidence-sdk-js/compare/sdk-v0.2.1...sdk-v0.2.2) (2025-01-10) | ||
### 🐛 Bug Fixes | ||
* hanging resolve bug ([#212](https://github.com/spotify/confidence-sdk-js/issues/212)) ([7b22bc0](https://github.com/spotify/confidence-sdk-js/commit/7b22bc07d266226528fa511fec4465ad96570d1c)) | ||
### ✨ New Features | ||
* Resolve Debug to redirect to UI tool on web ([#209](https://github.com/spotify/confidence-sdk-js/issues/209)) ([988707e](https://github.com/spotify/confidence-sdk-js/commit/988707e1ff607713093369cfcc4d615270c36856)) | ||
* Telemetry header ([#208](https://github.com/spotify/confidence-sdk-js/issues/208)) ([b0c8acb](https://github.com/spotify/confidence-sdk-js/commit/b0c8acbeddc2db68902bb6856ea11a6dee78f898)) | ||
## [0.2.1](https://github.com/spotify/confidence-sdk-js/compare/sdk-v0.2.0...sdk-v0.2.1) (2024-10-03) | ||
@@ -4,0 +17,0 @@ |
@@ -95,2 +95,3 @@ declare class AccessiblePromise<T> { | ||
getFlag<T extends Value>(path: string, defaultValue: T): Promise<T>; | ||
private showLoggerLink; | ||
/** | ||
@@ -107,3 +108,3 @@ * Creates a Confidence instance | ||
*/ | ||
static create({ clientSecret, region, timeout, environment, fetchImplementation, logger, resolveBaseUrl, }: ConfidenceOptions): Confidence; | ||
static create({ clientSecret, region, timeout, environment, fetchImplementation, logger, resolveBaseUrl, disableTelemetry, }: ConfidenceOptions): Confidence; | ||
} | ||
@@ -130,2 +131,4 @@ | ||
resolveBaseUrl?: string; | ||
/** Disable telemetry */ | ||
disableTelemetry?: boolean; | ||
} | ||
@@ -146,2 +149,3 @@ | ||
/* Excluded from this release type: flagResolverClient */ | ||
readonly clientSecret: string; | ||
} | ||
@@ -363,6 +367,3 @@ | ||
declare const FlagSchema: { | ||
fromJSON(object: any): FlagSchema; | ||
toJSON(message: FlagSchema): unknown; | ||
}; | ||
declare const FlagSchema: MessageFns<FlagSchema>; | ||
@@ -373,6 +374,3 @@ /** A boolean: true or false. */ | ||
declare const FlagSchema_BoolFlagSchema: { | ||
fromJSON(_: any): FlagSchema_BoolFlagSchema; | ||
toJSON(_: FlagSchema_BoolFlagSchema): unknown; | ||
}; | ||
declare const FlagSchema_BoolFlagSchema: MessageFns<FlagSchema_BoolFlagSchema>; | ||
@@ -383,6 +381,3 @@ /** A number that has a decimal place. */ | ||
declare const FlagSchema_DoubleFlagSchema: { | ||
fromJSON(_: any): FlagSchema_DoubleFlagSchema; | ||
toJSON(_: FlagSchema_DoubleFlagSchema): unknown; | ||
}; | ||
declare const FlagSchema_DoubleFlagSchema: MessageFns<FlagSchema_DoubleFlagSchema>; | ||
@@ -393,6 +388,3 @@ /** A whole number without a decimal point. */ | ||
declare const FlagSchema_IntFlagSchema: { | ||
fromJSON(_: any): FlagSchema_IntFlagSchema; | ||
toJSON(_: FlagSchema_IntFlagSchema): unknown; | ||
}; | ||
declare const FlagSchema_IntFlagSchema: MessageFns<FlagSchema_IntFlagSchema>; | ||
@@ -408,6 +400,3 @@ /** | ||
declare const FlagSchema_ListFlagSchema: { | ||
fromJSON(object: any): FlagSchema_ListFlagSchema; | ||
toJSON(message: FlagSchema_ListFlagSchema): unknown; | ||
}; | ||
declare const FlagSchema_ListFlagSchema: MessageFns<FlagSchema_ListFlagSchema>; | ||
@@ -418,6 +407,3 @@ /** A string. The length is limited to 250 characters. */ | ||
declare const FlagSchema_StringFlagSchema: { | ||
fromJSON(_: any): FlagSchema_StringFlagSchema; | ||
toJSON(_: FlagSchema_StringFlagSchema): unknown; | ||
}; | ||
declare const FlagSchema_StringFlagSchema: MessageFns<FlagSchema_StringFlagSchema>; | ||
@@ -437,6 +423,3 @@ /** | ||
declare const FlagSchema_StructFlagSchema: { | ||
fromJSON(object: any): FlagSchema_StructFlagSchema; | ||
toJSON(message: FlagSchema_StructFlagSchema): unknown; | ||
}; | ||
declare const FlagSchema_StructFlagSchema: MessageFns<FlagSchema_StructFlagSchema>; | ||
@@ -459,2 +442,12 @@ declare namespace Logger { | ||
declare interface MessageFns<T> { | ||
fromJSON(object: any): T; | ||
toJSON(message: T): unknown; | ||
} | ||
declare interface MessageFns_2<T> { | ||
fromJSON(object: any): T; | ||
toJSON(message: T): unknown; | ||
} | ||
declare type Observer<T> = (value: T) => void; | ||
@@ -515,6 +508,3 @@ | ||
declare const ResolvedFlag: { | ||
fromJSON(object: any): ResolvedFlag; | ||
toJSON(message: ResolvedFlag): unknown; | ||
}; | ||
declare const ResolvedFlag: MessageFns_2<ResolvedFlag>; | ||
@@ -536,6 +526,3 @@ declare interface ResolveFlagsResponse { | ||
declare const ResolveFlagsResponse: { | ||
fromJSON(object: any): ResolveFlagsResponse; | ||
toJSON(message: ResolveFlagsResponse): unknown; | ||
}; | ||
declare const ResolveFlagsResponse: MessageFns_2<ResolveFlagsResponse>; | ||
@@ -552,2 +539,4 @@ declare enum ResolveReason { | ||
* that could be assigned. | ||
* | ||
* @deprecated use RESOLVE_REASON_NO_SEGMENT_MATCH instead | ||
*/ | ||
@@ -554,0 +543,0 @@ RESOLVE_REASON_NO_TREATMENT_MATCH = 3, |
{ | ||
"name": "@spotify-confidence/sdk", | ||
"license": "Apache-2.0", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"types": "dist/index.d.ts", | ||
@@ -11,3 +11,3 @@ "engineStrict": true, | ||
"scripts": { | ||
"gen:proto": "protoc --plugin=$(yarn bin protoc-gen-ts_proto) --ts_proto_out=src/generated -I proto proto/confidence/flags/resolver/v1/api.proto --ts_proto_opt=outputEncodeMethods=false --ts_proto_opt=outputPartialMethods=false && prettier --config ../../prettier.config.js -w src/generated", | ||
"gen:proto": "protoc --plugin=$(yarn bin protoc-gen-ts_proto) --ts_proto_out=src/generated -I proto proto/confidence/flags/resolver/v1/api.proto proto/confidence/telemetry/v1/telemetry.proto --ts_proto_opt=outputEncodeMethods=true --ts_proto_opt=outputPartialMethods=false && prettier --config ../../prettier.config.js -w src/generated", | ||
"build": "tsc -b", | ||
@@ -25,2 +25,3 @@ "bundle": "rollup -c && api-extractor run", | ||
"dependencies": { | ||
"@bufbuild/protobuf": "^2.0.0", | ||
"web-vitals": "^3.5.2" | ||
@@ -34,4 +35,4 @@ }, | ||
"prettier": "*", | ||
"rollup": "4.14.2", | ||
"ts-proto": "^1.171.0" | ||
"rollup": "4.24.0", | ||
"ts-proto": "^2.3.0" | ||
}, | ||
@@ -38,0 +39,0 @@ "main": "dist/index.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
685931
6462
2
+ Added@bufbuild/protobuf@^2.0.0
+ Added@bufbuild/protobuf@2.2.3(transitive)