Skip to content

Commit

Permalink
chore(DGHT-287): Fix Dependabot alerts (#5463)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyanwang authored Dec 9, 2024
1 parent 1421219 commit ea14b87
Show file tree
Hide file tree
Showing 17 changed files with 577 additions and 688 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-worms-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/ui-playground-vite': patch
---

Fix Dependabot alerts
11 changes: 11 additions & 0 deletions .changeset/tricky-cobras-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@talend/scripts-config-storybook-lib': minor
'@talend/design-system': minor
'@talend/react-cmf-router': minor
'@talend/react-containers': minor
'@talend/react-cmf': minor
'@talend/scripts-publish-local': patch
'@talend/scripts-locales': patch
---

Fix Dependabot alerts
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"devDependencies": {
"@changesets/cli": "^2.27.9",
"@changesets/cli": "^2.27.10",
"@talend/scripts-config-babel": "^13.5.0",
"@talend/scripts-config-prettier": "^12.2.0",
"@talend/scripts-core": "^16.5.1",
"@talend/scripts-yarn-workspace": "^2.1.0",
"cross-env": "^7.0.3",
"cross-spawn": "^7.0.3",
"cross-spawn": "^7.0.6",
"eslint": "^8.57.1",
"husky": "^8.0.3",
"i18next-scanner": "^4.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cmf-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"connected-react-router": "^6.9.3",
"history": "^5.3.0",
"lodash": "^4.17.21",
"path-to-regexp": "^3.3.0",
"path-to-regexp": "^8.2.0",
"prop-types": "^15.8.1",
"react-redux": "^7.2.9",
"react-router": "~6.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cmf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"invariant": "^2.2.4",
"lodash": "^4.17.21",
"nested-combine-reducers": "^1.2.2",
"path-to-regexp": "^3.3.0",
"path-to-regexp": "^8.2.0",
"prop-types": "^15.8.1",
"react-immutable-proptypes": "^2.2.0",
"react-redux": "^7.2.9",
Expand Down
8 changes: 3 additions & 5 deletions packages/cmf/src/matchPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Beware! Do not modify. Forked from react-router V4
* Will be available as a dependency
*/

import pathToRegexp from 'path-to-regexp';
import { pathToRegexp } from 'path-to-regexp';

const patternCache = {};
const cacheLimit = 10000;
Expand All @@ -15,9 +14,8 @@ const compilePath = (pattern, options) => {

if (cache[pattern]) return cache[pattern];

const keys = [];
const re = pathToRegexp(pattern, keys, options);
const compiledPattern = { re, keys };
const { regexp, keys } = pathToRegexp(pattern, options);
const compiledPattern = { re: regexp, keys };

if (cacheCount < cacheLimit) {
cache[pattern] = compiledPattern;
Expand Down
2 changes: 1 addition & 1 deletion packages/containers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@testing-library/user-event": "^14.5.2",
"i18next": "^23.16.4",
"jest-in-case": "^1.0.2",
"msw": "^1.3.5",
"msw": "^2.6.6",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
16 changes: 11 additions & 5 deletions packages/containers/src/AboutDialog/AboutDialog.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { rest } from 'msw';
import { http, HttpResponse } from 'msw';

import Action from '../Action';
import AboutDialog from '.';
import Action from '../Action';

export default {
title: 'AboutDialog',
Expand All @@ -16,9 +16,9 @@ export const Default = () => (
Default.parameters = {
msw: {
handlers: [
rest.get('https://tdp.us.cloud.talend.com/api/version', (req, res, ctx) => {
return res(
ctx.json({
http.get('https://tdp.us.cloud.talend.com/api/version', () => {
return new HttpResponse(
JSON.stringify({
displayVersion: 'R2022-01',
services: [
{ versionId: '3.33.0-4.13.1', buildId: '5759adb-4022e15', serviceName: 'API' },
Expand All @@ -36,6 +36,12 @@ Default.parameters = {
{ versionId: '10.1.0', buildId: 'a849f4f', serviceName: 'Semantic Types Producer' },
],
}),
{
headers: {
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': '*',
},
},
);
}),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"@types/react-dom": "^18.3.1",
"@types/react-transition-group": "^2.9.2",
"@types/react-virtualized": "^9.21.30",
"browser-sync": "^2.29.3",
"browser-sync": "^3.0.3",
"browser-sync-webpack-plugin": "^2.3.0",
"concurrently": "^8.2.2",
"core-js": "^3.38.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/playground-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"esbuild-plugin-react-virtualized": "^1.0.4",
"express": "^4.21.1",
"express": "^4.21.2",
"i18next-http-backend": "^1.4.5",
"mockjs": "^1.1.0",
"sass": "^1.80.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"compression": "^1.7.4",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"express": "^4.21.1",
"express": "^4.21.2",
"i18next-http-backend": "^1.4.5",
"webpack": "^5.95.0"
},
Expand Down
Loading

0 comments on commit ea14b87

Please sign in to comment.