-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare v11.0.0 (Catnip) release (#68)
* Update configcat-common v9.0.0 * Fix dependency vulnerabilities * Bump version * Update samples * Run tests on Node.js 20
- Loading branch information
Showing
9 changed files
with
285 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ const value = await configCatClient.getValueAsync("isAwesomeFeatureEnabled", fal | |
console.log("isAwesomeFeatureEnabled: " + value); | ||
|
||
// Read more about the User Object: https://configcat.com/docs/sdk-reference/node/#user-object | ||
const userObject = { identifier: "#SOME-USER-ID#", email: "[email protected]" }; | ||
const userObject = new configcat.User("#SOME-USER-ID#", "[email protected]"); | ||
|
||
const value2 = await configCatClient.getValueAsync("isPOCFeatureEnabled", false, userObject); | ||
console.log("isPOCFeatureEnabled: " + value2); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ var configcat = require("configcat-node"); | |
console.log("isAwesomeFeatureEnabled: " + value); | ||
|
||
// Read more about the User Object: https://configcat.com/docs/sdk-reference/node/#user-object | ||
const userObject = { identifier: "#SOME-USER-ID#", email: "[email protected]" }; | ||
const userObject = new configcat.User("#SOME-USER-ID#", "[email protected]"); | ||
|
||
const value2 = await configCatClient.getValueAsync("isPOCFeatureEnabled", false, userObject); | ||
console.log("isPOCFeatureEnabled: " + value2); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ const configCatClient = configcat.getClient("PKDVCLf-Hq-h-kCzMp-L7Q/HhOWfwVtZ0mb | |
}); | ||
|
||
setInterval(() => { | ||
configCatClient.getValueAsync("isPOCFeatureEnabled", false, { email: "[email protected]" }).then(value => { | ||
configCatClient.getValueAsync("isPOCFeatureEnabled", false, new configcat.User("", "[email protected]")).then(value => { | ||
console.log(new Date().toTimeString() + " isPOCFeatureEnabled: " + value); | ||
}); | ||
}, 5000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters