Upgrade to node 20

This commit is contained in:
itismadness
2023-12-25 21:03:54 +00:00
committed by Spine
parent 08a19e9026
commit cf10d5c6cd
4 changed files with 10 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ WORKDIR /var/www
ENV DEBIAN_FRONTEND noninteractive
ENV PHP_VER=8.2
ENV NODE_VERSION=16
ENV NODE_VERSION=20
# Software package layer
# Nodesource setup comes after yarnpkg because it runs `apt-get update`

View File

@@ -3,7 +3,7 @@ FROM debian:bullseye-slim
ENV DEB_RELEASE bullseye
ENV DEBIAN_FRONTEND noninteractive
ENV PHP_VER 8.2
ENV NODE_VERSION 16
ENV NODE_VERSION 20
WORKDIR /var/www

View File

@@ -7,7 +7,7 @@ needs. Gazelle is written in PHP, Twig, JavaScript, and MySQL.
## Gazelle Runtime Dependencies
* [PHP 8.2.6+](https://www.php.net/) (required)
* [Nginx](http://wiki.nginx.org/Main) (required)
* [NodeJS 12+](https://nodejs.org/en/) (required)
* [NodeJS 20+](https://nodejs.org/en/) (required)
* [Memcached](http://memcached.org/) (required)
* [Sphinx 2.2 or newer](http://sphinxsearch.com/) (required)
* [ocelot](https://github.com/OPSnet/Ocelot) (optional)

View File

@@ -1,4 +1,10 @@
let mix = require('laravel-mix');
const crypto = require('node:crypto');
const mix = require('laravel-mix');
// TODO: shim to override md4 with a supported crypto algorithm that does not crash out node, until
// we upgrade to a newer version of webpack that defaults to using sha256.
const crypto_orig_createHash = crypto.createHash;
crypto.createHash = (algorithm) => crypto_orig_createHash(algorithm == "md4" ? "sha256" : algorithm);
let sassopts = {
sassOptions: {