Skip to content

Commit

Permalink
getClient hotfix (#76)
Browse files Browse the repository at this point in the history
* Correct client setup in getClient to use correct cache implementation

* Update version
adams85 authored Apr 26, 2023
1 parent aaad0fb commit a7f9b33
Showing 3 changed files with 5 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": "configcat-js",
"version": "7.0.0",
"version": "7.0.1",
"description": "ConfigCat is a configuration as a service that lets you manage your features and configurations without actually deploying new code.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { IAutoPollOptions, IConfigCatClient, IConfigCatLogger, ILazyLoadingOptions, IManualPollOptions, LogLevel } from "configcat-common";
import * as configcatcommon from "configcat-common";
import { FlagOverrides, InMemoryCache, MapOverrideDataSource, PollingMode } from "configcat-common";
import { FlagOverrides, MapOverrideDataSource, PollingMode } from "configcat-common";
import { LocalStorageCache } from "./Cache";
import { HttpConfigFetcher } from "./ConfigFetcher";
import CONFIGCAT_SDK_VERSION from "./Version";
@@ -19,7 +19,7 @@ export function getClient<TMode extends PollingMode | undefined>(sdkKey: string,
return configcatcommon.getClient(sdkKey, pollingMode ?? PollingMode.AutoPoll, options,
{
configFetcher: new HttpConfigFetcher(),
cache: new InMemoryCache(),
cache: new LocalStorageCache(),
sdkType: "ConfigCat-JS",
sdkVersion: CONFIGCAT_SDK_VERSION
});

0 comments on commit a7f9b33

Please sign in to comment.