From: Dessalines Date: Thu, 22 Sep 2022 15:03:35 +0000 (-0400) Subject: Upgrade inferno v8.0.0 try2 (#790) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/%7BrepoUrl%7D?a=commitdiff_plain;h=6320357d21bab63f6c4af285ff879b6c601ed48f;p=lemmy-ui.git Upgrade inferno v8.0.0 try2 (#790) * Upgrade non-breaking deps. * Upgrade to Inferno v8. Fixes #731 * Upgrading inferno-i18next-dess --- diff --git a/.eslintrc.json b/.eslintrc.json index 4e05f0c..0c9a5f4 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -8,7 +8,8 @@ ], "extends": [ "eslint:recommended", - "plugin:@typescript-eslint/recommended" + "plugin:@typescript-eslint/recommended", + "plugin:inferno/recommended" ], "parser": "@typescript-eslint/parser", "parserOptions": { diff --git a/package.json b/package.json index a430314..903974e 100644 --- a/package.json +++ b/package.json @@ -25,13 +25,13 @@ "emoji-short-name": "^2.0.0", "express": "~4.18.1", "i18next": "^21.8.14", - "inferno": "^7.4.11", - "inferno-create-element": "^7.4.11", + "inferno": "^8.0.3", + "inferno-create-element": "^8.0.3", "inferno-helmet": "^5.2.1", - "inferno-hydrate": "^7.4.11", - "inferno-i18next-dess": "^0.0.1", - "inferno-router": "^7.4.11", - "inferno-server": "^7.4.11", + "inferno-hydrate": "^8.0.3", + "inferno-i18next-dess": "0.0.2", + "inferno-router": "^8.0.3", + "inferno-server": "^8.0.3", "isomorphic-cookie": "^1.2.4", "jwt-decode": "^3.1.2", "markdown-it": "^13.0.1", @@ -55,7 +55,7 @@ "@babel/plugin-proposal-decorators": "^7.18.9", "@babel/plugin-transform-runtime": "^7.18.9", "@babel/plugin-transform-typescript": "^7.18.8", - "@babel/preset-env": "7.18.9", + "@babel/preset-env": "7.19.1", "@babel/preset-typescript": "^7.18.6", "@babel/runtime": "^7.18.9", "@sniptt/monads": "^0.5.10", @@ -74,6 +74,7 @@ "copy-webpack-plugin": "^11.0.0", "css-loader": "^6.7.1", "eslint": "^8.20.0", + "eslint-plugin-inferno": "^7.31.8", "eslint-plugin-prettier": "^4.2.1", "husky": "^8.0.1", "import-sort-style-module": "^6.0.0", @@ -95,7 +96,7 @@ "typescript": "^4.7.4", "webpack": "5.74.0", "webpack-cli": "^4.10.0", - "webpack-dev-server": "4.9.3", + "webpack-dev-server": "4.11.1", "webpack-node-externals": "^3.0.0" }, "engines": { diff --git a/src/shared/components/app/app.tsx b/src/shared/components/app/app.tsx index 72119a8..960f6ba 100644 --- a/src/shared/components/app/app.tsx +++ b/src/shared/components/app/app.tsx @@ -42,7 +42,7 @@ export class App extends Component { none: <>, })} -
+
{routes.map(({ path, exact, component: C, ...rest }) => ( { render() { return ( -