Skip to content

Commit 95aee51

Browse files
authored
Merge pull request #72 from microcmsio/feat/update-node-v18
v3.0.0
2 parents 05a4efe + c980ab4 commit 95aee51

File tree

13 files changed

+294
-320
lines changed

13 files changed

+294
-320
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
# Node18はmswがUndiciというnode内部で用いられているfetchをインターセプトできないため一旦除いている
19-
node-version: [14.x, 16.x]
18+
node-version: [18.x, 20.x]
2019
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2120

2221
steps:
23-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2423
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2625
with:
2726
node-version: ${{ matrix.node-version }}
2827
cache: 'npm'

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16.20.0
1+
v18.19.0

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ It helps you to use microCMS from JavaScript and Node.js applications.
1010

1111
Install npm package.
1212

13+
[!NOTE]
14+
v3.0.0 or later requires Node.js **v18 or higher**.
15+
1316
```bash
1417
$ npm install microcms-js-sdk
1518

@@ -51,7 +54,6 @@ const client = createClient({
5154
serviceDomain: "YOUR_DOMAIN", // YOUR_DOMAIN is the XXXX part of XXXX.microcms.io
5255
apiKey: "YOUR_API_KEY",
5356
// retry: true // Retry attempts up to a maximum of two times.
54-
// customFetcher: fetch.bind(globalThis), // Provide a custom `fetch` implementation as an option
5557
});
5658
</script>
5759
```

0 commit comments

Comments
 (0)