Skip to content

Commit 85e89f3

Browse files
thephezclaude
andauthored
docs: update Node version references to 22.22 toolchain (#97)
Point the dev container image, install prerequisites, and CLAUDE.md toolchain guidance at the repo-pinned Node 22.22.x instead of the prior Node 20 references. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 0461c70 commit 85e89f3

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Dash Platform Tutorials",
3-
"image": "mcr.microsoft.com/devcontainers/javascript-node:20",
3+
"image": "mcr.microsoft.com/devcontainers/javascript-node:22",
44
"remoteUser": "node",
55

66
"onCreateCommand": "cp -n .env.example .env",

CLAUDE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Run `node view-wallet.mjs` to confirm the identity is found before proceeding.
1818
## Commands
1919

2020
```bash
21+
nvm use # Use the repo's tested Node 22.22.x toolchain
2122
npm test # Read-only tests (~2min, safe to run anytime)
2223
npm run test:read-write # Write tests (destructive, consumes testnet credits, ~5min)
2324
npm run test:all # Both suites sequentially
@@ -27,6 +28,17 @@ npm run lint # TypeScript type-check all JS files (tsc)
2728
npm run fmt # Format with Prettier
2829
```
2930

31+
## Node / npm Toolchain
32+
33+
Use the repo-root `.nvmrc` before installing dependencies or updating lockfiles:
34+
35+
```bash
36+
nvm use
37+
npm ci
38+
```
39+
40+
The root package and each standalone example app declare `engines.node` for the tested Node minor version. The example apps have their own `package-lock.json` files, and npm's optional native/WASM dependency resolution can differ across Node/npm versions. For contributor work, prefer `npm ci` under `nvm use`; do not commit lockfile rewrites from another Node/npm version.
41+
3042
**Running a single tutorial directly:**
3143

3244
```bash

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ your `.env` file to begin the tutorials.
2525

2626
## Install
2727

28-
Note: [NodeJS](https://nodejs.org/en/download/) (v20+) must be installed to run the tutorial code.
28+
Note: [NodeJS](https://nodejs.org/en/download/) (v22.22+) must be installed to run the tutorial code.
2929

3030
### Clone this repository
3131

example-apps/dashnote/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The app stays close to the tutorial `note` contract shape, but extends it with a
66

77
## Prerequisites
88

9-
- Node >= 20
9+
- Node 22.22+
1010
- A funded Dash Platform testnet identity for write operations. Login accepts either a BIP-39 mnemonic (with an optional identity index for DIP-13 derivation) or a WIF private key for an existing HIGH/CRITICAL authentication key on that identity.
1111
- Read-only mode works without any identity — visitors can read notes for any identity ID against the bundled contract. A previously-logged-in identity can also be re-browsed without re-auth via the remembered-identity flow.
1212

0 commit comments

Comments
 (0)