Skip to content

Commit

Permalink
build(frontend): upgrade dependencies
Browse files Browse the repository at this point in the history
- bump `immer` to v10.
- bump `prettier` to v3.
- bump `http-proxy-middleware` to v3.
  • Loading branch information
eatyourgreens committed May 22, 2024
1 parent 7772b3f commit 779c1cb
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 34 deletions.
75 changes: 50 additions & 25 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"d3-scale": "^4.0.2",
"d3-scale-chromatic": "^3.0.0",
"deck.gl": "8.9",
"http-proxy-middleware": "^2.0.1",
"immer": "^9.0.21",
"http-proxy-middleware": "^3.0.0",
"immer": "^10.1.1",
"json-stable-stringify": "^1.0.1",
"lodash": "^4.17.21",
"mapbox-gl": "^1.13.1",
Expand Down Expand Up @@ -62,7 +62,7 @@
"@types/react-router-dom": "^5.1.8",
"@types/react-transition-group": "^4.4.4",
"openapi-typescript-codegen": "^0.21.0",
"prettier": "^2.3.2",
"prettier": "^3.2.5",
"typescript": "^4.5.5"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/asset-list/FieldSpecControl.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box, Typography } from '@mui/material';
import produce from 'immer';
import { produce } from 'immer';
import { ParamDropdown } from 'lib/controls/ParamDropdown';
import { FieldSpec } from 'lib/data-map/view-layers';
import { FC } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/controls/checkbox-tree/CheckboxTree.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useCallback } from 'react';
import { SimpleTreeView } from '@mui/x-tree-view';
import produce from 'immer';
import { produce } from 'immer';

import { dfs, getDescendants, TreeNode } from './tree-node';
import { CheckboxTreeItem } from './CheckboxTreeItem';
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/setupProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
*
* See guide at https://create-react-app.dev/docs/proxying-api-requests-in-development/#configuring-the-proxy-manually
*/
const { createProxyMiddleware } = require('http-proxy-middleware');
const { legacyCreateProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {
app.use(
'/vector',
createProxyMiddleware({
legacyCreateProxyMiddleware({
target: 'http://localhost:8080',
changeOrigin: true,
pathRewrite: {
Expand All @@ -21,7 +21,7 @@ module.exports = function (app) {
);
app.use(
'/raster',
createProxyMiddleware({
legacyCreateProxyMiddleware({
target: 'http://localhost:5000',
changeOrigin: true,
pathRewrite: {
Expand All @@ -31,7 +31,7 @@ module.exports = function (app) {
);
app.use(
'/api',
createProxyMiddleware({
legacyCreateProxyMiddleware({
target: 'http://localhost:8888',
changeOrigin: true,
pathRewrite: {
Expand Down

0 comments on commit 779c1cb

Please sign in to comment.