Skip to content

Commit 491a5ac

Browse files
authored
feat: bump to node 20 (#3456)
1 parent 213b27d commit 491a5ac

File tree

21 files changed

+1196
-137
lines changed

21 files changed

+1196
-137
lines changed

.changeset/early-onions-decide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-mud": patch
3+
---
4+
5+
Updated templates to Node v20.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.20.2
1+
20.18.2

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"tailwindcss": "^3.3.5"
2828
},
2929
"devDependencies": {
30-
"@types/node": "^18",
30+
"@types/node": "^20",
3131
"@types/react": "^18.3.12",
3232
"@types/react-dom": "^18.3.1",
3333
"autoprefixer": "^10.4.16",

docs/pages/contribute.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ The following steps are only necessary if you want to contribute to MUD. To use
1414
| Software | Tested with version |
1515
| -------------------------------------------------------- | ------------------- |
1616
| [`curl`](https://curl.se/) | 7.74.0 |
17-
| [`node`](https://nodejs.org/en/download/package-manager) | 18.17.0 |
18-
| [`pnpm`](https://pnpm.io/) | 8.6.11 |
19-
| [`Foundry`](https://getfoundry.sh/) | 0.2.0 |
17+
| [`node`](https://nodejs.org/en/download/package-manager) | 20.x |
18+
| [`pnpm`](https://pnpm.io/) | 9.x |
19+
| [`Foundry`](https://getfoundry.sh/) | latest |
2020

2121
1. Download the source code for MUD.
2222

docs/pages/guides/emojimon/2-getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- git ([download](https://git-scm.com/downloads))
66
- foundry (forge, anvil, cast) ([download](https://book.getfoundry.sh/getting-started/installation), make sure to `foundryup` at least once)
7-
- node.js (v18) ([download](https://nodejs.org/en/download/))
7+
- node.js (v20) ([download](https://nodejs.org/en/download/))
88
- pnpm (`npm install pnpm --global` after installing node)
99

1010
## Setup

docs/pages/quickstart.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ In most cases the easiest way to get started is to use
1010

1111
To install the TypeScript templates you need:
1212

13-
- [Node.js v18](https://nodejs.org/en/download/package-manager).
14-
Note that version 18 is _required_.
13+
- [Node.js v20](https://nodejs.org/en/download/package-manager).
14+
Note that version 20 is _required_.
1515
We do not support older or newer versions at the moment.
1616

1717
<details>
@@ -21,7 +21,7 @@ To install the TypeScript templates you need:
2121
<Tabs items={["Linux and MacOS", "Windows"]}>
2222
<Tab>
2323
```sh copy
24-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash nvm install 18
24+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash nvm install 20
2525
```
2626
</Tab>
2727

@@ -33,7 +33,7 @@ To install the TypeScript templates you need:
3333
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'));
3434
3535
# download and install Node.js
36-
choco install nodejs --version="18.19.1"
36+
choco install nodejs --version="^20"
3737
```
3838
</Tab>
3939
</Tabs>

docs/pnpm-lock.yaml

Lines changed: 12 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/custom-world/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"devDependencies": {
2424
"@latticexyz/cli": "link:../../packages/cli",
25-
"@types/node": "^18",
25+
"@types/node": "^20",
2626
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
2727
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
2828
"prettier": "3.2.5",

examples/local-explorer/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@latticexyz/explorer": "link:../../packages/explorer",
1818
"@latticexyz/store-indexer": "link:../../packages/store-indexer",
1919
"@types/debug": "4.1.7",
20-
"@types/node": "^18",
20+
"@types/node": "^20",
2121
"@typescript-eslint/eslint-plugin": "7.1.1",
2222
"@typescript-eslint/parser": "7.1.1",
2323
"eslint": "8.57.0",
@@ -26,7 +26,7 @@
2626
"typescript": "5.4.2"
2727
},
2828
"engines": {
29-
"node": "^18",
30-
"pnpm": "^8 || ^9"
29+
"node": "^20",
30+
"pnpm": "^9"
3131
}
3232
}

examples/minimal/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"devDependencies": {
1717
"@latticexyz/cli": "link:../../packages/cli",
18-
"@types/node": "^18",
18+
"@types/node": "^20",
1919
"@typescript-eslint/eslint-plugin": "7.1.1",
2020
"@typescript-eslint/parser": "7.1.1",
2121
"eslint": "8.57.0",
@@ -24,7 +24,7 @@
2424
"typescript": "5.4.2"
2525
},
2626
"engines": {
27-
"node": "^18",
28-
"pnpm": "^8 || ^9"
27+
"node": "^20",
28+
"pnpm": "^9"
2929
}
3030
}

0 commit comments

Comments
 (0)