Skip to content

Commit 9d87a53

Browse files
authored
chore: upgrade to v3 (#4)
1 parent 41f7453 commit 9d87a53

3 files changed

Lines changed: 12 additions & 14 deletions

File tree

‎package-lock.json‎

Lines changed: 9 additions & 11 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
@@ -11,6 +11,6 @@
1111
"author": "",
1212
"license": "MIT",
1313
"dependencies": {
14-
"@featurevisor/sdk": "^2.0.0"
14+
"@featurevisor/sdk": "^3.0.1"
1515
}
1616
}

‎src/index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
// If you are using `.mjs` files or have `type: module` in your `package.json`, you can use `import` syntax.
6-
import { createInstance } from "@featurevisor/sdk";
6+
import { createFeaturevisor } from "@featurevisor/sdk";
77

88
// otherwise, use `require` syntax
99
// const { createInstance } = require("@featurevisor/sdk");
@@ -21,7 +21,7 @@ async function main() {
2121
const datafileContent = await fetch(DATAFILE_URL)
2222
.then((res) => res.json());
2323

24-
const f = createInstance({
24+
const f = createFeaturevisor({
2525
datafile: datafileContent,
2626
context: {
2727
userId: "123"

0 commit comments

Comments
 (0)