Skip to content

Commit 82067b6

Browse files
committed
chore: upgrade to v3.2.0
1 parent 9d87a53 commit 82067b6

6 files changed

Lines changed: 25 additions & 22 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@ name: Continuous Integration
22

33
on: [push]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
continuous-integration:
710
name: Continuous Integration
811
runs-on: ubuntu-latest
912
timeout-minutes: 10
1013
steps:
11-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v7
1215

13-
- uses: actions/setup-node@v4
16+
- uses: actions/setup-node@v7
1417
with:
1518
node-version-file: .nvmrc
19+
cache: npm
1620

1721
- name: Install dependencies
1822
run: npm ci

‎.nvmrc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
24

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ See required Node.js version in [`.nvmrc`](./.nvmrc) file.
88

99
## Installation
1010

11-
```
12-
$ npm ci
11+
```sh
12+
npm ci
1313
```
1414

1515
## Running the app
1616

17-
```
18-
$ node ./src/index.js
17+
```sh
18+
npm start
1919
```
2020

2121
## License

‎package-lock.json‎

Lines changed: 8 additions & 8 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": "^3.0.1"
14+
"@featurevisor/sdk": "^3.2.0"
1515
}
1616
}

‎src/index.js‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// If you are using `.mjs` files or have `type: module` in your `package.json`, you can use `import` syntax.
66
import { createFeaturevisor } from "@featurevisor/sdk";
77

8-
// otherwise, use `require` syntax
9-
// const { createInstance } = require("@featurevisor/sdk");
8+
// Otherwise, use `require` syntax:
9+
// const { createFeaturevisor } = require("@featurevisor/sdk");
1010

1111
/**
1212
* Constants
@@ -18,14 +18,13 @@ const DATAFILE_URL =
1818
* Main
1919
*/
2020
async function main() {
21-
const datafileContent = await fetch(DATAFILE_URL)
22-
.then((res) => res.json());
21+
const datafileContent = await fetch(DATAFILE_URL).then((res) => res.json());
2322

2423
const f = createFeaturevisor({
2524
datafile: datafileContent,
2625
context: {
27-
userId: "123"
28-
}
26+
userId: "123",
27+
},
2928
});
3029

3130
const featureKey = "my_feature";

0 commit comments

Comments
 (0)