Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.19.0
22.14.0
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PRs and bug reports are welcome, and we are actively looking for new maintainers

The **master** branch is the active development branch.

Building deck.gl locally from the source requires node.js `>=20`. Further limitations on the Node version may be imposed by [puppeteer](https://github.com/puppeteer/puppeteer#usage) and [headless-gl](https://github.com/stackgl/headless-gl#supported-platforms-and-nodejs-versions).
Building deck.gl locally from the source requires node.js `>=22`. Further limitations on the Node version may be imposed by [puppeteer](https://github.com/puppeteer/puppeteer#usage) and [headless-gl](https://github.com/stackgl/headless-gl#supported-platforms-and-nodejs-versions).
We use [yarn](https://yarnpkg.com/en/docs/install) to manage the dependencies of deck.gl. The project's automated builds use Node [corepack](https://github.com/nodejs/corepack) to manage the yarn version. For local development, you can use [nvm](https://github.com/nvm-sh/nvm) or any other Node version manager of your choice - a `.nvmrc` configuration file is provided.

```bash
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"bindings-precommit-tests"
],
"engines": {
"node": ">=20"
"node": ">=22"
},
"packageManager": "yarn@1.22.19"
}
7 changes: 4 additions & 3 deletions test/node-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ async function validateWithWaitingTime(child, folder, waitingTime, threshold) {
headless: false,
args: [`--window-size=${1000},${800}`]
});
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
const page = await browser.newPage();
await page.waitFor(2000);
await sleep(2000);
await page.goto('http://localhost:8080', {timeout: 50000});
await page.setViewport({width: 1000, height: 800});
await page.waitFor(waitingTime);
await sleep(waitingTime);
await page.screenshot({path: 'new.png'});

const golderImageName = `${LIB_DIR}/test/render/golden-images/examples/${folder.replace(
Expand All @@ -37,7 +38,7 @@ async function validateWithWaitingTime(child, folder, waitingTime, threshold) {
const result = compareImage('new.png', golderImageName, threshold);

child.kill();
await page.waitFor(1000);
await sleep(1000);
await browser.close();

return result;
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
],
"packageManager": "yarn@1.22.19",
"engines": {
"node": ">=20"
"node": ">=22"
}
}
Loading