Skip to content

Commit

Permalink
chore(dev-deps): bump next and other dependencies to latest
Browse files Browse the repository at this point in the history
This fixes the security issue within next
  • Loading branch information
mlaursen committed Dec 9, 2021
1 parent ed3b9bb commit ca0f7e0
Show file tree
Hide file tree
Showing 10 changed files with 689 additions and 698 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,27 +55,27 @@
"@babel/plugin-transform-typescript": "^7.16.1",
"@mlaursen/eslint-config": "^1.2.0",
"@testing-library/dom": "^8.11.1",
"@testing-library/jest-dom": "^5.15.1",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2",
"@testing-library/react-hooks": "^7.0.1",
"@testing-library/user-event": "13.5.0",
"@types/fs-extra": "^9.0.13",
"@types/glob": "^7.2.0",
"@types/jest": "^27.0.3",
"@types/lodash": "^4.14.177",
"@types/node": "^16.11.10",
"@types/lodash": "^4.14.178",
"@types/node": "^16.11.12",
"@types/prettier": "^2.4.2",
"@types/reach__router": "^1.3.9",
"@types/react": "^17.0.36",
"@types/react": "^17.0.37",
"@types/react-dom": "^17.0.11",
"@types/react-test-renderer": "^17.0.1",
"chokidar": "^3.5.2",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.3.0",
"eslint": "^8.4.1",
"husky": "^7.0.4",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.3.1",
"jest": "^27.4.3",
"jest-watch-typeahead": "^1.0.0",
"lerna": "^4.0.0",
"lint-staged": "^12.1.2",
Expand All @@ -89,8 +89,8 @@
"stylelint-config-standard": "^24.0.0",
"stylelint-config-standard-scss": "^3.0.0",
"stylelint-order": "^5.0.0",
"stylelint-scss": "^4.0.0",
"ts-jest": "^27.0.7",
"stylelint-scss": "^4.0.1",
"ts-jest": "^27.1.1",
"typescript": "^4.5.2"
},
"lint-staged": {
Expand Down
4 changes: 4 additions & 0 deletions packages/autocomplete/src/__tests__/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,17 @@ describe("getFilterFunction", () => {

it("should returnt he noFilter result for an invalid fulter function if the NODE_ENV is not production", () => {
const env = process.env.NODE_ENV;
// this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
// @ts-expect-error
process.env.NODE_ENV = "production";

// @ts-expect-error
expect(getFilterFunction("")).toBe(noFilter);
// @ts-expect-error
expect(getFilterFunction("custom")).toBe(noFilter);

// this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
// @ts-expect-error
process.env.NODE_ENV = env;
});

Expand Down
10 changes: 5 additions & 5 deletions packages/dev-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"chokidar": "^3.5.2",
"commander": "^8.3.0",
"cpx": "^1.5.0",
"cssnano": "^5.0.11",
"cssnano": "^5.0.12",
"dotenv": "^10.0.0",
"filesize": "^8.0.6",
"fs-extra": "^10.0.0",
Expand All @@ -32,25 +32,25 @@
"markdown-toc": "^1.2.0",
"marked": "^4.0.4",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.0",
"postcss": "^8.4.4",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-preset-env": "^7.0.1",
"prettier": "^2.5.1",
"pretty-ms": "^7.0.0",
"prompts": "^2.4.2",
"rimraf": "^3.0.2",
"sass": "^1.43.4",
"sass": "^1.44.0",
"sassdoc": "^2.7.2",
"ts-morph": "^13.0.2",
"typedoc": "^0.22.9",
"typedoc": "^0.22.10",
"typescript": "^4.5.2"
},
"devDependencies": {
"@types/cssnano": "^4.0.1",
"@types/he": "^1.1.2",
"@types/marked": "^4.0.1",
"@types/prompts": "^2.0.14",
"@types/sass": "^1.43.0",
"@types/sass": "^1.43.1",
"chokidar-cli": "^3.0.0"
}
}
4 changes: 4 additions & 0 deletions packages/dialog/src/__tests__/useNestedDialogFixes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ describe("useNestedDialogFixes", () => {

it("should warn in a non-prod environment if trying to add multiple dialogs with the same id", () => {
const { NODE_ENV } = process.env;
// this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
// @ts-expect-error
process.env.NODE_ENV = "production";
const warn = jest.spyOn(console, "warn");
// hide warnings
Expand Down Expand Up @@ -113,6 +115,8 @@ describe("useNestedDialogFixes", () => {
unmount();
expect(warn).not.toBeCalled();

// this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
// @ts-expect-error
process.env.NODE_ENV = NODE_ENV;
render(<Test />);
expect(warn).toBeCalledTimes(3);
Expand Down
1 change: 0 additions & 1 deletion packages/documentation/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
Expand Down
14 changes: 7 additions & 7 deletions packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,24 @@
"dependencies": {
"classnames": "^2.3.1",
"codesandbox": "^2.2.3",
"date-fns": "^2.26.0",
"date-fns": "^2.27.0",
"filesize": "^8.0.6",
"formidable": "^2.0.1",
"fuse.js": "6.4.6",
"js-cookie": "^3.0.1",
"lodash": "^4.17.21",
"mobile-detect": "^1.4.5",
"next": "12.0.4",
"next": "12.0.7",
"prismjs": "^1.25.0",
"qs": "^6.10.0",
"qs": "^6.10.2",
"react": "^17.0.2",
"react-dom": "^17.0.1",
"react-hook-form": "^7.20.2",
"react-hook-form": "^7.21.0",
"react-marked-renderer": "^1.0.0",
"react-md": "^4.0.2",
"react-router-dom": "^6.0.2",
"react-virtualized": "^9.22.3",
"sass": "^1.43.4"
"sass": "^1.44.0"
},
"devDependencies": {
"@babel/core": "^7.16.0",
Expand All @@ -51,11 +51,11 @@
"@types/qs": "^6.9.7",
"@types/react-virtualized": "^9.21.15",
"cross-env": "^7.0.3",
"eslint-config-next": "^12.0.4",
"eslint-config-next": "^12.0.7",
"npm-run-all": "^4.1.5",
"raw-loader": "^4.0.2",
"typescript": "^4.5.2",
"webpack": "^5.64.3"
"webpack": "^5.65.0"
},
"browerlist": [
"not ie 11",
Expand Down
4 changes: 4 additions & 0 deletions packages/form/src/select/__tests__/Listbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ describe("Listbox", () => {

it("should throw a warning in a non-production NODE_ENV if there is a non-searchable value", () => {
const { NODE_ENV } = process.env;
// this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
// @ts-expect-error
process.env.NODE_ENV = "production";
const warn = jest.spyOn(console, "warn");
// hide warnings
Expand All @@ -286,6 +288,8 @@ describe("Listbox", () => {
unmount();
expect(warn).not.toBeCalled();

// this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
// @ts-expect-error
process.env.NODE_ENV = NODE_ENV;
render(<Listbox {...props} />);

Expand Down
4 changes: 4 additions & 0 deletions packages/link/src/__tests__/SkipToMainContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ describe("SkipToMainContent", () => {
describe("prod", () => {
const env = process.env.NODE_ENV;
beforeAll(() => {
// this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
// @ts-expect-error
process.env.NODE_ENV = "production";
});

afterAll(() => {
// this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
// @ts-expect-error
process.env.NODE_ENV = env;
});

Expand Down
2 changes: 1 addition & 1 deletion packages/react-md/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@rollup/plugin-replace": "^3.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.1",
"rollup": "^2.60.1",
"rollup": "^2.61.0",
"rollup-plugin-terser": "^7.0.0"
},
"peerDependencies": {
Expand Down
Loading

1 comment on commit ca0f7e0

@vercel
Copy link

@vercel vercel bot commented on ca0f7e0 Dec 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.