From 1d2eb92c3f84709f974f2b8cad0a6f02c9406f6f Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" Date: Mon, 4 Dec 2023 17:43:10 +0100 Subject: [PATCH] Update to webpack 4.47.0 This release supports md4 in Node >=18. Refs #6998 --- CHANGES.md | 1 + README.md | 1 - doc/contributing/problems-and-solutions.md | 2 +- doc/customizing/cloning-and-building.md | 1 - package.json | 2 +- 5 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index aec2ec356da..7e9d8b264aa 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,7 @@ #### next release (8.4.1) - Fix a bug where `DragPoints` was interfering with pedstrian mode mouse movements. +- Update `webpack` to `4.47.0` to support Node >= 18 without extra command line parameters. - [The next improvement] #### 8.4.0 - 2023-12-01 diff --git a/README.md b/README.md index 77556d3db1b..9ab810111a4 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,6 @@ Sites we're aware of that are using TerriaJS. These are not endorsements or test ### Technical - NodeJS v16, v18 and v20 are supported - - **Note** for v18+ you will need to set `NODE_OPTIONS=--openssl-legacy-provider` in your environment. - Built in TypeScript & ES2020+ JavaScript, compiled with Babel to ES5. - Supports modern browsers (recent versions of Microsoft Edge, Mozilla Firefox & Google Chrome). - [TerriaJS Server component](https://github.com/TerriajS/TerriaJS-Server) runs in NodeJS and provides proxying for web services that don't support CORS or require authentication. Instead of using TerriaJS-Sever proxy service, an alternative proxying service URL can be specified. See [Specify an alternative proxy server URL](/doc/connecting-to-data/cross-origin-resource-sharing.md) diff --git a/doc/contributing/problems-and-solutions.md b/doc/contributing/problems-and-solutions.md index 225d5d20973..d356fdd1e82 100644 --- a/doc/contributing/problems-and-solutions.md +++ b/doc/contributing/problems-and-solutions.md @@ -90,4 +90,4 @@ Error: error:0308010C:digital envelope routines::unsupported ### Solution -For NodeJS versions 18 and above you will need to set `NODE_OPTIONS=--openssl-legacy-provider` in your environment. +Update to TerriaJS 8.4.1. diff --git a/doc/customizing/cloning-and-building.md b/doc/customizing/cloning-and-building.md index e6b86c56ff2..a80078559dd 100644 --- a/doc/customizing/cloning-and-building.md +++ b/doc/customizing/cloning-and-building.md @@ -22,7 +22,6 @@ TerriaJS can be built and run on almost any macOS, Linux, or Windows system. The - The Bash command shell. On macOS or Linux you almost certainly already have this. On Windows, you can easily get it by installing [Git for Windows](https://gitforwindows.org/). In the instructions below, we assume you're using a Bash command prompt. - [Node.js](https://nodejs.org) v16.0. You can check your node version by running `node --version` on the command-line. - - **Note** you can also use Node.js 18 and 20, but you will need to set `NODE_OPTIONS=--openssl-legacy-provider` in your environment. - [npm](https://www.npmjs.com/) v8.0. npm is usually installed automatically alongside the above. You can check your npm version by running `npm --version`. - [yarn](https://yarnpkg.com/) v1.19.0 or later. This can be installed using `npm install -g yarn@^1.19.0` diff --git a/package.json b/package.json index 8cc0a7d79cd..71d4c31fe60 100644 --- a/package.json +++ b/package.json @@ -180,7 +180,7 @@ "typescript": "^4.9.5", "urijs": "^1.18.12", "url-loader": "^1.1.2", - "webpack": "~4.46.0", + "webpack": "~4.47.0", "webpack-cli": "^3.3.11", "webpack-dev-server": "^3.1.14", "worker-loader": "^2.0.0"