Skip to content

Commit ed00f80

Browse files
authored
FFM-10409 Mark targets as optional for variation methods (#103)
1 parent ca1e463 commit ed00f80

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@harnessio/ff-nodejs-server-sdk",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"description": "Feature flags SDK for NodeJS environments",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.mjs",

src/client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export default class Client {
350350

351351
boolVariation(
352352
identifier: string,
353-
target: Target,
353+
target?: Target,
354354
defaultValue = false,
355355
): Promise<boolean> {
356356
if (!this.initialized) {
@@ -378,7 +378,7 @@ export default class Client {
378378

379379
stringVariation(
380380
identifier: string,
381-
target: Target,
381+
target?: Target,
382382
defaultValue = '',
383383
): Promise<string> {
384384
if (!this.initialized) {
@@ -406,7 +406,7 @@ export default class Client {
406406

407407
numberVariation(
408408
identifier: string,
409-
target: Target,
409+
target?: Target,
410410
defaultValue = 0,
411411
): Promise<number> {
412412
if (!this.initialized) {
@@ -434,7 +434,7 @@ export default class Client {
434434

435435
jsonVariation(
436436
identifier: string,
437-
target: Target,
437+
target?: Target,
438438
defaultValue = {},
439439
): Promise<Record<string, unknown>> {
440440
if (!this.initialized) {

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '1.5.0';
1+
export const VERSION = '1.6.0';

0 commit comments

Comments
 (0)