diff --git a/commons/package.json b/commons/package.json index 365bd453f..ccea1b8bb 100644 --- a/commons/package.json +++ b/commons/package.json @@ -48,23 +48,23 @@ "js-yaml": "4.1.0", "reveal.js": "5.1.0", "ws": "8.18.0", - "yjs": "13.6.18" + "yjs": "13.6.20" }, "devDependencies": { "@jest/types": "29.6.3", "@mrdrogdrog/optional": "1.2.1", "@types/js-yaml": "4.0.9", - "@types/ws": "8.5.10", - "@typescript-eslint/eslint-plugin": "6.21.0", - "@typescript-eslint/parser": "6.21.0", + "@types/ws": "8.5.12", + "@typescript-eslint/eslint-plugin": "8.11.0", + "@typescript-eslint/parser": "8.11.0", "eslint": "8.57.0", "eslint-config-prettier": "9.1.0", - "eslint-plugin-jest": "27.9.0", + "eslint-plugin-jest": "28.8.3", "eslint-plugin-prettier": "5.2.1", "jest": "29.7.0", "prettier": "3.3.3", "ts-jest": "29.2.5", - "typescript": "5.5.4" + "typescript": "5.6.3" }, "packageManager": "yarn@4.4.1" } diff --git a/commons/src/parse-url/parse-url.ts b/commons/src/parse-url/parse-url.ts index 3d6e9b0db..d1a8430c6 100644 --- a/commons/src/parse-url/parse-url.ts +++ b/commons/src/parse-url/parse-url.ts @@ -29,7 +29,7 @@ export function parseUrl(url: string | undefined): Optional { function createOptionalUrl(url: string | undefined): Optional { try { return Optional.ofNullable(url).map((value) => new URL(value)) - } catch (error) { + } catch { return Optional.empty() } } diff --git a/yarn.lock b/yarn.lock index f9df6f327..01354feac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2426,6 +2426,13 @@ __metadata: languageName: node linkType: hard +"@eslint-community/regexpp@npm:^4.10.0": + version: 4.11.1 + resolution: "@eslint-community/regexpp@npm:4.11.1" + checksum: 10c0/fbcc1cb65ef5ed5b92faa8dc542e035269065e7ebcc0b39c81a4fe98ad35cfff20b3c8df048641de15a7757e07d69f85e2579c1a5055f993413ba18c055654f8 + languageName: node + linkType: hard + "@eslint-community/regexpp@npm:^4.5.1, @eslint-community/regexpp@npm:^4.6.1": version: 4.10.0 resolution: "@eslint-community/regexpp@npm:4.10.0" @@ -2585,13 +2592,13 @@ __metadata: "@jest/types": "npm:29.6.3" "@mrdrogdrog/optional": "npm:1.2.1" "@types/js-yaml": "npm:4.0.9" - "@types/ws": "npm:8.5.10" - "@typescript-eslint/eslint-plugin": "npm:6.21.0" - "@typescript-eslint/parser": "npm:6.21.0" + "@types/ws": "npm:8.5.12" + "@typescript-eslint/eslint-plugin": "npm:8.11.0" + "@typescript-eslint/parser": "npm:8.11.0" domhandler: "npm:5.0.3" eslint: "npm:8.57.0" eslint-config-prettier: "npm:9.1.0" - eslint-plugin-jest: "npm:27.9.0" + eslint-plugin-jest: "npm:28.8.3" eslint-plugin-prettier: "npm:5.2.1" eventemitter2: "npm:6.4.9" jest: "npm:29.7.0" @@ -2600,9 +2607,9 @@ __metadata: prettier: "npm:3.3.3" reveal.js: "npm:5.1.0" ts-jest: "npm:29.2.5" - typescript: "npm:5.5.4" + typescript: "npm:5.6.3" ws: "npm:8.18.0" - yjs: "npm:13.6.18" + yjs: "npm:13.6.20" languageName: unknown linkType: soft @@ -5500,6 +5507,15 @@ __metadata: languageName: node linkType: hard +"@types/ws@npm:8.5.12": + version: 8.5.12 + resolution: "@types/ws@npm:8.5.12" + dependencies: + "@types/node": "npm:*" + checksum: 10c0/3fd77c9e4e05c24ce42bfc7647f7506b08c40a40fe2aea236ef6d4e96fc7cb4006a81ed1b28ec9c457e177a74a72924f4768b7b4652680b42dfd52bc380e15f9 + languageName: node + linkType: hard + "@types/yargs-parser@npm:*": version: 21.0.3 resolution: "@types/yargs-parser@npm:21.0.3" @@ -5550,6 +5566,29 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/eslint-plugin@npm:8.11.0": + version: 8.11.0 + resolution: "@typescript-eslint/eslint-plugin@npm:8.11.0" + dependencies: + "@eslint-community/regexpp": "npm:^4.10.0" + "@typescript-eslint/scope-manager": "npm:8.11.0" + "@typescript-eslint/type-utils": "npm:8.11.0" + "@typescript-eslint/utils": "npm:8.11.0" + "@typescript-eslint/visitor-keys": "npm:8.11.0" + graphemer: "npm:^1.4.0" + ignore: "npm:^5.3.1" + natural-compare: "npm:^1.4.0" + ts-api-utils: "npm:^1.3.0" + peerDependencies: + "@typescript-eslint/parser": ^8.0.0 || ^8.0.0-alpha.0 + eslint: ^8.57.0 || ^9.0.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/be509f7bb0c0c596801059b06995a81a1c326cc6ac31d96a32f7b6b7d7b495f9bad4dc442aa6e923d22515e62c668d3c14695c68bd6e0be1d4bf72158b7fd2d6 + languageName: node + linkType: hard + "@typescript-eslint/parser@npm:6.21.0": version: 6.21.0 resolution: "@typescript-eslint/parser@npm:6.21.0" @@ -5568,6 +5607,24 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/parser@npm:8.11.0": + version: 8.11.0 + resolution: "@typescript-eslint/parser@npm:8.11.0" + dependencies: + "@typescript-eslint/scope-manager": "npm:8.11.0" + "@typescript-eslint/types": "npm:8.11.0" + "@typescript-eslint/typescript-estree": "npm:8.11.0" + "@typescript-eslint/visitor-keys": "npm:8.11.0" + debug: "npm:^4.3.4" + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/e83f239fec60697083e5dcb1c8948340e783ea6e043fe9a65d557faef8882963b09d69aacd736eb8ab18a768769a7bbfc3de0f1251d4bba080613541acb0741c + languageName: node + linkType: hard + "@typescript-eslint/parser@npm:^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0": version: 7.2.0 resolution: "@typescript-eslint/parser@npm:7.2.0" @@ -5616,6 +5673,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/scope-manager@npm:8.11.0": + version: 8.11.0 + resolution: "@typescript-eslint/scope-manager@npm:8.11.0" + dependencies: + "@typescript-eslint/types": "npm:8.11.0" + "@typescript-eslint/visitor-keys": "npm:8.11.0" + checksum: 10c0/0910da62d8ae261711dd9f89d5c7d8e96ff13c50054436256e5a661309229cb49e3b8189c9468d36b6c4d3f7cddd121519ea78f9b18c9b869a808834b079b2ea + languageName: node + linkType: hard + "@typescript-eslint/scope-manager@npm:8.6.0": version: 8.6.0 resolution: "@typescript-eslint/scope-manager@npm:8.6.0" @@ -5643,6 +5710,21 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/type-utils@npm:8.11.0": + version: 8.11.0 + resolution: "@typescript-eslint/type-utils@npm:8.11.0" + dependencies: + "@typescript-eslint/typescript-estree": "npm:8.11.0" + "@typescript-eslint/utils": "npm:8.11.0" + debug: "npm:^4.3.4" + ts-api-utils: "npm:^1.3.0" + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/b69e31c1599ceeb20c29052a4ddb33a554174a3a4c55ee37d90c9b8250af6ef978a0b9ddbeefef4e83d62c4caea1bfa2d8088527f397bde69fb4ab9b360d794a + languageName: node + linkType: hard + "@typescript-eslint/types@npm:5.62.0": version: 5.62.0 resolution: "@typescript-eslint/types@npm:5.62.0" @@ -5664,6 +5746,13 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/types@npm:8.11.0": + version: 8.11.0 + resolution: "@typescript-eslint/types@npm:8.11.0" + checksum: 10c0/5ccdd3eeee077a6fc8e7f4bc0e0cbc9327b1205a845253ec5c0c6c49ff915e853161df00c24a0ffb4b8ec745d3f153dd0e066400a021c844c026e31121f46699 + languageName: node + linkType: hard + "@typescript-eslint/types@npm:8.6.0": version: 8.6.0 resolution: "@typescript-eslint/types@npm:8.6.0" @@ -5727,6 +5816,25 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/typescript-estree@npm:8.11.0": + version: 8.11.0 + resolution: "@typescript-eslint/typescript-estree@npm:8.11.0" + dependencies: + "@typescript-eslint/types": "npm:8.11.0" + "@typescript-eslint/visitor-keys": "npm:8.11.0" + debug: "npm:^4.3.4" + fast-glob: "npm:^3.3.2" + is-glob: "npm:^4.0.3" + minimatch: "npm:^9.0.4" + semver: "npm:^7.6.0" + ts-api-utils: "npm:^1.3.0" + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/b629ad3cd32b005d5c1d67c36958a418f8672efebea869399834f4f201ebf90b942165eebb5c9d9799dcabdc2cc26e5fabb00629f76b158847f42e1a491a75a6 + languageName: node + linkType: hard + "@typescript-eslint/typescript-estree@npm:8.6.0": version: 8.6.0 resolution: "@typescript-eslint/typescript-estree@npm:8.6.0" @@ -5763,6 +5871,20 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/utils@npm:8.11.0, @typescript-eslint/utils@npm:^6.0.0 || ^7.0.0 || ^8.0.0": + version: 8.11.0 + resolution: "@typescript-eslint/utils@npm:8.11.0" + dependencies: + "@eslint-community/eslint-utils": "npm:^4.4.0" + "@typescript-eslint/scope-manager": "npm:8.11.0" + "@typescript-eslint/types": "npm:8.11.0" + "@typescript-eslint/typescript-estree": "npm:8.11.0" + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + checksum: 10c0/bb5bcc8d928a55b22298e76f834ea6a9fe125a9ffeb6ac23bee0258b3ed32f41e281888a3d0be226a05e1011bb3b70e42a71a40366acdefea6779131c46bc522 + languageName: node + linkType: hard + "@typescript-eslint/utils@npm:8.6.0": version: 8.6.0 resolution: "@typescript-eslint/utils@npm:8.6.0" @@ -5825,6 +5947,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/visitor-keys@npm:8.11.0": + version: 8.11.0 + resolution: "@typescript-eslint/visitor-keys@npm:8.11.0" + dependencies: + "@typescript-eslint/types": "npm:8.11.0" + eslint-visitor-keys: "npm:^3.4.3" + checksum: 10c0/7a5a49609fdc47e114fe59eee56393c90b122ec8e9520f90b0c5e189635ae1ccfa8e00108f641342c2c8f4637fe9d40c77927cf7c8248a3a660812cb4b7d0c08 + languageName: node + linkType: hard + "@typescript-eslint/visitor-keys@npm:8.6.0": version: 8.6.0 resolution: "@typescript-eslint/visitor-keys@npm:8.6.0" @@ -9579,6 +9711,24 @@ __metadata: languageName: node linkType: hard +"eslint-plugin-jest@npm:28.8.3": + version: 28.8.3 + resolution: "eslint-plugin-jest@npm:28.8.3" + dependencies: + "@typescript-eslint/utils": "npm:^6.0.0 || ^7.0.0 || ^8.0.0" + peerDependencies: + "@typescript-eslint/eslint-plugin": ^6.0.0 || ^7.0.0 || ^8.0.0 + eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 + jest: "*" + peerDependenciesMeta: + "@typescript-eslint/eslint-plugin": + optional: true + jest: + optional: true + checksum: 10c0/beacf85c2fbb39ef9b9839472a8a837cdbab6549b29abaff8999034ac41021e1f06d1779db3ea9d0f966be52e5daeacfd05c239d686370d8b8cb9c68d60e59b6 + languageName: node + linkType: hard + "eslint-plugin-jsx-a11y@npm:^6.7.1": version: 6.8.0 resolution: "eslint-plugin-jsx-a11y@npm:6.8.0" @@ -11253,6 +11403,13 @@ __metadata: languageName: node linkType: hard +"ignore@npm:^5.3.1": + version: 5.3.2 + resolution: "ignore@npm:5.3.2" + checksum: 10c0/f9f652c957983634ded1e7f02da3b559a0d4cc210fca3792cb67f1b153623c9c42efdc1c4121af171e295444459fc4a9201101fb041b1104a3c000bccb188337 + languageName: node + linkType: hard + "immer@npm:^10.0.3": version: 10.0.3 resolution: "immer@npm:10.0.3" @@ -12859,6 +13016,19 @@ __metadata: languageName: node linkType: hard +"lib0@npm:^0.2.98": + version: 0.2.98 + resolution: "lib0@npm:0.2.98" + dependencies: + isomorphic.js: "npm:^0.2.4" + bin: + 0ecdsa-generate-keypair: bin/0ecdsa-generate-keypair.js + 0gentesthtml: bin/gentesthtml.js + 0serve: bin/0serve.js + checksum: 10c0/074097bcb90a002449cfddaa11552f11d088e38233f0a20a3358b08d7d1952b2f5a491fb63e63ccf66a8ec037e16d82d40a27601bbacf5ded0d2ec810bdf550e + languageName: node + linkType: hard + "libphonenumber-js@npm:^1.10.53": version: 1.10.57 resolution: "libphonenumber-js@npm:1.10.57" @@ -17869,6 +18039,16 @@ __metadata: languageName: node linkType: hard +"typescript@npm:5.6.3": + version: 5.6.3 + resolution: "typescript@npm:5.6.3" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/44f61d3fb15c35359bc60399cb8127c30bae554cd555b8e2b46d68fa79d680354b83320ad419ff1b81a0bdf324197b29affe6cc28988cd6a74d4ac60c94f9799 + languageName: node + linkType: hard + "typescript@patch:typescript@npm%3A5.3.3#optional!builtin": version: 5.3.3 resolution: "typescript@patch:typescript@npm%3A5.3.3#optional!builtin::version=5.3.3&hash=e012d7" @@ -17889,6 +18069,16 @@ __metadata: languageName: node linkType: hard +"typescript@patch:typescript@npm%3A5.6.3#optional!builtin": + version: 5.6.3 + resolution: "typescript@patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/7c9d2e07c81226d60435939618c91ec2ff0b75fbfa106eec3430f0fcf93a584bc6c73176676f532d78c3594fe28a54b36eb40b3d75593071a7ec91301533ace7 + languageName: node + linkType: hard + "uc.micro@npm:^1.0.1, uc.micro@npm:^1.0.5": version: 1.0.6 resolution: "uc.micro@npm:1.0.6" @@ -19277,6 +19467,15 @@ __metadata: languageName: node linkType: hard +"yjs@npm:13.6.20": + version: 13.6.20 + resolution: "yjs@npm:13.6.20" + dependencies: + lib0: "npm:^0.2.98" + checksum: 10c0/d71a3ea265e566a603f1e55aac052c1e5cc2feb863430901e4d3990e55911cfa55667be1008a82f9d95669998bacb0a470806fbbacd2337c996716ffbf45d0a0 + languageName: node + linkType: hard + "yjs@patch:yjs@npm%3A13.6.18#./.yarn/patches/yjs-remove-import-warning-in-test.patch::locator=hedgedoc%40workspace%3A.": version: 13.6.18 resolution: "yjs@patch:yjs@npm%3A13.6.18#./.yarn/patches/yjs-remove-import-warning-in-test.patch::version=13.6.18&hash=e7d95b&locator=hedgedoc%40workspace%3A."