Skip to content

Commit

Permalink
FFM-9776 Deprecate unsupported options (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
erdirowlands authored Oct 31, 2023
1 parent c6e1de1 commit f7cda7f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@harnessio/ff-javascript-client-sdk",
"version": "1.19.2",
"version": "1.20.0",
"author": "Harness",
"license": "Apache-2.0",
"main": "dist/sdk.cjs.js",
Expand Down
8 changes: 8 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,15 @@ export interface Options {
pollingInterval?: number
streamEnabled?: boolean
pollingEnabled?: boolean
/**
* @deprecated This feature was only available during initial alpha builds and was mistakenly not removed from the
* API. It will be removed in the next version.
*/
allAttributesPrivate?: boolean
/**
* @deprecated This feature was only available during initial alpha builds and was mistakenly not removed from the
* API. It will be removed in the next version.
*/
privateAttributeNames?: string[]
debug?: boolean
cache?: boolean | CacheOptions
Expand Down
2 changes: 0 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ export const defaultOptions: Options = {
eventsSyncInterval: MIN_EVENTS_SYNC_INTERVAL,
pollingInterval: MIN_POLLING_INTERVAL,
streamEnabled: true,
allAttributesPrivate: false,
privateAttributeNames: [],
cache: false
}

Expand Down

0 comments on commit f7cda7f

Please sign in to comment.