Upgrade yarn deps
I have made a pass over all 4 yarn directories and for each I did:
- rm -rf node_modules/
- yarn upgrade
- check the yarn.lock diff and make version changes explicit in
package.json
We mostly use ^ semver, so I was not trying to update any major
versions here. I think each major version update should be its own
change.
The most relevant changes seem to be:
- TypeScript 4.7 -> 4.9
- Lit 2.2 -> 2.7
Then I have just reacted to issue coming up in build/test/CI:
- TypeScript compile was failing, so I had to update
gr-annotation_test.ts.
- ESLint was failing, so I had to update
gr-reviewer-updates-parser.ts
- Tests were failing with an error message about bogus
safevalues imports. That was the most tricky to resolve. I had
to eventually fix the safevalues version dep at version 0.3.1.
- For the safevalues issue I also had to come up with a way to add
a comment to a package.json file, which is non-trivial, because
JSON does not support comments. Hope you like the chosen method.
- And lastly the licenses check was failing, because of a lib that
is now being pulled in by lit. That could easily be fixed by
running `bazel test //Documentation:check_licenses` locally.
Release-Notes: skip
Change-Id: I5c403993d92009ad9cdbb81d928ae150157eefd9
diff --git a/package.json b/package.json
index 15109f6..eba734f 100644
--- a/package.json
+++ b/package.json
@@ -3,18 +3,18 @@
"version": "3.9.0-SNAPSHOT",
"description": "Gerrit Code Review",
"dependencies": {
- "@bazel/concatjs": "^5.8.0",
- "@bazel/rollup": "^5.8.0",
- "@bazel/terser": "^5.8.0",
- "@bazel/typescript": "^5.8.0"
+ "@bazel/concatjs": "^5.8.1",
+ "@bazel/rollup": "^5.8.1",
+ "@bazel/terser": "^5.8.1",
+ "@bazel/typescript": "^5.8.1"
},
"devDependencies": {
- "@koa/cors": "^3.3.0",
- "@types/page": "^1.11.5",
- "@typescript-eslint/eslint-plugin": "^5.59.7",
+ "@koa/cors": "^3.4.3",
+ "@types/page": "^1.11.6",
+ "@typescript-eslint/eslint-plugin": "^5.59.11",
"@web/dev-server": "^0.1.38",
"@web/dev-server-esbuild": "^0.3.6",
- "eslint": "^8.41.0",
+ "eslint": "^8.42.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.27.5",
@@ -23,14 +23,14 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-regex": "^1.10.0",
- "gts": "^3.1.0",
+ "gts": "^3.1.1",
"lit-analyzer": "^1.2.1",
"npm-run-all": "^4.1.5",
- "prettier": "2.6.2",
- "rollup": "^2.45.2",
- "terser": "^5.6.1",
+ "prettier": "^2.8.8",
+ "rollup": "^2.79.1",
+ "terser": "~5.8.0",
"ts-lit-plugin": "^1.2.1",
- "typescript": "^4.7.2"
+ "typescript": "^4.9.5"
},
"scripts": {
"setup": "yarn && yarn --cwd=polygerrit-ui && yarn --cwd=polygerrit-ui/app",
@@ -58,10 +58,10 @@
"url": "https://gerrit.googlesource.com/gerrit"
},
"resolutions": {
- "eslint": "^8.41.0",
- "@typescript-eslint/eslint-plugin": "^5.59.7",
- "@typescript-eslint/parser": "^5.59.7"
+ "eslint": "^8.42.0",
+ "@typescript-eslint/eslint-plugin": "^5.59.11",
+ "@typescript-eslint/parser": "^5.59.11"
},
"author": "",
"license": "Apache-2.0"
-}
+}
\ No newline at end of file