From 5f09f887f6dba9f5a50799795cfa449e781a1e6f Mon Sep 17 00:00:00 2001 From: John Date: Wed, 28 Aug 2024 00:00:46 +0000 Subject: [PATCH] Fix warnings via package updates, ignores. Update default url config to match local settings. --- craco.config.js | 15 +++++++++ package-lock.json | 83 ++++++++++++++++++++++++----------------------- package.json | 5 ++- public/env.js | 2 +- 4 files changed, 63 insertions(+), 42 deletions(-) diff --git a/craco.config.js b/craco.config.js index 2125f679..54d13469 100644 --- a/craco.config.js +++ b/craco.config.js @@ -3,10 +3,25 @@ const { CracoAliasPlugin } = require("react-app-alias"); const options = {}; // default is empty for most cases module.exports = { + eslint: null, plugins: [ { plugin: CracoAliasPlugin, options: {}, }, ], + webpack: { + configure: { + ignoreWarnings: [ + function ignoreSourcemapsloaderWarnings(warning) { + return ( + warning.module && + warning.module.resource.includes("node_modules") && + warning.details && + warning.details.includes("source-map-loader") + ); + }, + ], + }, + }, }; diff --git a/package-lock.json b/package-lock.json index 9ee55aba..6c93c687 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "lodash": "^4.17.21", "memoize-one": "^6.0.0", "pcic-react-leaflet-components": "git+https://git@github.com/pacificclimate/pcic-react-leaflet-components.git#tile-url-as-prop", - "plotly.js-basic-dist": "^2.29.0", + "plotly.js-basic-dist": "^2.34.0", "prop-types": "^15.8.1", "react": "^18.2.0", "react-bootstrap": "^2.4.0", @@ -5456,38 +5456,6 @@ "node": ">= 4.5.0" } }, - "node_modules/autoprefixer": { - "version": "10.4.7", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.7.tgz", - "integrity": "sha512-ypHju4Y2Oav95SipEcCcI5J7CGPuvz8oat7sUtYj3ClK44bldfvtvcxK6IEK++7rqB7YchDGzweZIBG+SD0ZAA==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/autoprefixer" - } - ], - "dependencies": { - "browserslist": "^4.20.3", - "caniuse-lite": "^1.0.30001335", - "fraction.js": "^4.2.0", - "normalize-range": "^0.1.2", - "picocolors": "^1.0.0", - "postcss-value-parser": "^4.2.0" - }, - "bin": { - "autoprefixer": "bin/autoprefixer" - }, - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, "node_modules/axe-core": { "version": "4.4.2", "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.4.2.tgz", @@ -6412,9 +6380,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001591", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001591.tgz", - "integrity": "sha512-PCzRMei/vXjJyL5mJtzNiUCKP59dm8Apqc3PH8gJkMnMXZGox93RbE76jHsmLwmIo6/3nsYIpJtx0O7u5PqFuQ==", + "version": "1.0.30001653", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001653.tgz", + "integrity": "sha512-XGWQVB8wFQ2+9NZwZ10GxTYC5hk0Fa+q8cSkr0tgvMhYhMHP/QC+WTgrePMDBWiWc/pV+1ik82Al20XOK25Gcw==", "funding": [ { "type": "opencollective", @@ -6428,7 +6396,8 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ] + ], + "license": "CC-BY-4.0" }, "node_modules/canvas-fit": { "version": "1.5.0", @@ -17276,9 +17245,10 @@ } }, "node_modules/plotly.js-basic-dist": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/plotly.js-basic-dist/-/plotly.js-basic-dist-2.29.0.tgz", - "integrity": "sha512-UdPOVN3If7CPXScXcjG9TO2oSLlxvk/Qn1LN7pZOjWWf8zxoM9CWOJWz9NSq2M/0cxuaqovgi65P386CMSE4Yw==" + "version": "2.34.0", + "resolved": "https://registry.npmjs.org/plotly.js-basic-dist/-/plotly.js-basic-dist-2.34.0.tgz", + "integrity": "sha512-0c+/5JcEuNI8+JKXN6xx3Enmmy9ju9wL90VdRIPNObMloxksHjXuXEaXAwN80IIbaUyUlOf4F9pco2H76BRn4A==", + "license": "MIT" }, "node_modules/point-in-polygon": { "version": "1.1.0", @@ -18264,6 +18234,39 @@ "postcss": "^8.2" } }, + "node_modules/postcss-preset-env/node_modules/autoprefixer": { + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.5.tgz", + "integrity": "sha512-Fvd8yCoA7lNX/OUllvS+aS1I7WRBclGXsepbvT8ZaPgrH24rgXpZzF0/6Hh3ZEkwg+0AES/Osd196VZmYoEFtw==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + } + ], + "license": "MIT", + "dependencies": { + "browserslist": "^4.20.2", + "caniuse-lite": "^1.0.30001332", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, "node_modules/postcss-pseudo-class-any-link": { "version": "7.1.5", "resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-7.1.5.tgz", diff --git a/package.json b/package.json index 279f4c4f..5ccd2c23 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "lodash": "^4.17.21", "memoize-one": "^6.0.0", "pcic-react-leaflet-components": "git+https://git@github.com/pacificclimate/pcic-react-leaflet-components.git#tile-url-as-prop", - "plotly.js-basic-dist": "^2.29.0", + "plotly.js-basic-dist": "^2.34.0", "prop-types": "^15.8.1", "react": "^18.2.0", "react-bootstrap": "^2.4.0", @@ -41,6 +41,9 @@ "use-immer": "^0.7.0", "zustand": "^4.4.7" }, + "overrides": { + "autoprefixer": "10.4.5" + }, "devDependencies": { "@tanstack/react-query-devtools": "^5.20.2", "craco": "^0.0.3", diff --git a/public/env.js b/public/env.js index 9f01cf5b..91241f96 100644 --- a/public/env.js +++ b/public/env.js @@ -1,5 +1,5 @@ window.env = { - PUBLIC_URL: "http://localhost:30502", + PUBLIC_URL: "http://localhost:3000", REACT_APP_BC_BASE_MAP_TILES_URL: "https://swarm.pacificclimate.org/tiles/bc-albers-lite/{z}/{x}/{y}.png", REACT_APP_YNWT_BASE_MAP_TILES_URL: