Skip to content

Commit

Permalink
feat: Update to node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
zatteo committed Dec 13, 2024
1 parent 7561312 commit 225d7ae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
20
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: node_js
dist: jammy
node_js:
- 16
- 20
cache: false
jobs:
include:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ __You can find a complete tutorial about creating a Cozy application using `crea

#### Requirements

- NodeJS version 16+
- NodeJS version 20+
- [Yarn](https://yarnpkg.com): a NodeJS package manager, like `npm`;
- a running [Cozy development environment](https://docs.cozy.io/en/tutorials/app/#install-the-development-environment)

Expand Down
7 changes: 7 additions & 0 deletions packages/cozy-scripts/test/scripts.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/* eslint-env jest */

// Required to work from Node version 17+
// More info: https://github.com/webpack/webpack/issues/13572#issuecomment-923736472
const crypto = require('crypto')
const crypto_orig_createHash = crypto.createHash
crypto.createHash = algorithm =>
crypto_orig_createHash(algorithm == 'md4' ? 'sha256' : algorithm)

const fs = require('fs-extra')
const path = require('path')
const colorize = require('../utils/_colorize.js')
Expand Down

0 comments on commit 225d7ae

Please sign in to comment.