Skip to content

Commit 776d3c0

Browse files
committed
ci(build): switch project to node 24
1 parent c083348 commit 776d3c0

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
with:
2222
version: 10.30.2
2323

24-
- name: 3. Setup Node 25
24+
- name: 3. Setup Node 24
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: 25
27+
node-version: 24
2828
cache: pnpm
2929

3030
- name: 4. Install dependencies

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
with:
3131
version: 10.30.2
3232

33-
- name: 3. Setup Node 25
33+
- name: 3. Setup Node 24
3434
uses: actions/setup-node@v4
3535
with:
36-
node-version: 25
36+
node-version: 24
3737
cache: pnpm
3838

3939
- name: 4. Install dependencies

.github/workflows/prerelease.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
with:
2626
version: 10.30.2
2727

28-
- name: 3. Setup Node 25
28+
- name: 3. Setup Node 24
2929
uses: actions/setup-node@v4
3030
with:
31-
node-version: 25
31+
node-version: 24
3232
cache: pnpm
3333
registry-url: https://registry.npmjs.org
3434

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Setup Node
3434
uses: actions/setup-node@v4
3535
with:
36-
node-version: 25
36+
node-version: 24
3737
cache: pnpm
3838
registry-url: https://registry.npmjs.org
3939

.github/workflows/size.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
with:
3131
version: 10.30.2
3232

33-
- name: 4. Setup Node 25
33+
- name: 4. Setup Node 24
3434
uses: actions/setup-node@v4
3535
with:
36-
node-version: 25
36+
node-version: 24
3737

3838
- name: 5. Build head package
3939
working-directory: head

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ The library does not own:
4444
Expected commands after project setup:
4545

4646
```sh
47+
node --version # v24.x
4748
pnpm test
4849
pnpm typecheck
4950
pnpm build

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ Current local build:
138138

139139
| File | Raw | Gzip | Brotli |
140140
| --- | ---: | ---: | ---: |
141-
| `dist/index.js` | 27.32 kB | 4.69 kB | 4.18 kB |
142-
| `dist/index.cjs` | 29.18 kB | 5.08 kB | 4.50 kB |
141+
| `dist/index.js` | 11.82 kB | 3.55 kB | 3.20 kB |
142+
| `dist/index.cjs` | 12.94 kB | 3.79 kB | 3.42 kB |
143143
| `dist/index.d.ts` | 3.95 kB | 992 B | 888 B |
144144

145145
CI writes a size summary to the GitHub Actions UI and posts a bundle-size comment on pull requests.

docs-site/docusaurus.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ const config: Config = {
1212
projectName: 'react-timer-hook',
1313
trailingSlash: true,
1414
onBrokenLinks: 'throw',
15-
future: {
16-
experimental_router: 'hash',
17-
},
1815
markdown: {
1916
hooks: {
2017
onBrokenMarkdownLinks: 'warn',

0 commit comments

Comments
 (0)