From 96b134b4fa3aae8b80001cc3a25b7b7b0de0346b Mon Sep 17 00:00:00 2001 From: rtritto Date: Wed, 23 Oct 2024 19:34:27 +0200 Subject: [PATCH] feat: use uws-pack instead of uWebSockets.js --- packages/vike-node/package.json | 2 +- pnpm-lock.yaml | 34 ++++++++++++++++----------------- test/vike-node/package.json | 2 +- 3 files changed, 18 insertions(+), 20 deletions(-) diff --git a/packages/vike-node/package.json b/packages/vike-node/package.json index 172dd8c..4429a55 100644 --- a/packages/vike-node/package.json +++ b/packages/vike-node/package.json @@ -51,7 +51,7 @@ "h3": "^1.12.0", "hono": "^4.5.5", "typescript": "^5.5.4", - "uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.49.0", + "uWebSockets.js": "npm:uws-pack@20.0.0", "vike": "^0.4.193", "vite": "^5.4.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 81b42e7..edc5215 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -201,7 +201,7 @@ importers: version: 4.28.1 h3: specifier: ^1.12.0 - version: 1.12.0(uWebSockets.js@https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/442087c0a01bf146acb7386910739ec81df06700) + version: 1.12.0(uws-pack@20.0.0) hono: specifier: ^4.5.5 version: 4.5.5 @@ -209,8 +209,8 @@ importers: specifier: ^5.5.4 version: 5.5.4 uWebSockets.js: - specifier: github:uNetworking/uWebSockets.js#v20.49.0 - version: https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/442087c0a01bf146acb7386910739ec81df06700 + specifier: npm:uws-pack@20.0.0 + version: uws-pack@20.0.0 vike: specifier: ^0.4.193 version: 0.4.193(react-streaming@0.3.43(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(vite@5.4.0(@types/node@20.14.15)) @@ -258,7 +258,7 @@ importers: version: 4.28.1 h3: specifier: ^1.12.0 - version: 1.12.0(uWebSockets.js@https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/442087c0a01bf146acb7386910739ec81df06700) + version: 1.12.0(uws-pack@20.0.0) hono: specifier: ^4.5.5 version: 4.5.5 @@ -281,8 +281,8 @@ importers: specifier: ^5.5.4 version: 5.5.4 uWebSockets.js: - specifier: github:uNetworking/uWebSockets.js#v20.49.0 - version: https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/442087c0a01bf146acb7386910739ec81df06700 + specifier: npm:uws-pack@20.0.0 + version: uws-pack@20.0.0 vike: specifier: ^0.4.193 version: 0.4.193(react-streaming@0.3.43(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(vite@5.4.0(@types/node@20.14.15)) @@ -1869,7 +1869,6 @@ packages: crossws@0.2.4: resolution: {integrity: sha512-DAxroI2uSOgUKLz00NX6A8U/8EE3SZHmIND+10jkVSaypvyt57J5JEOxAQOL6lQxyzi/wZbTIwssU1uy69h5Vg==} - version: 0.2.4 peerDependencies: uWebSockets.js: '*' peerDependenciesMeta: @@ -2187,7 +2186,6 @@ packages: h3@1.12.0: resolution: {integrity: sha512-Zi/CcNeWBXDrFNlV0hUBJQR9F7a96RjMeAZweW/ZWkR9fuXrMcvKnSA63f/zZ9l0GgQOZDVHGvXivNN9PWOwhA==} - version: 1.12.0 handlebars@4.7.8: resolution: {integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==} @@ -3048,10 +3046,6 @@ packages: engines: {node: '>=14.17'} hasBin: true - uWebSockets.js@https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/442087c0a01bf146acb7386910739ec81df06700: - resolution: {tarball: https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/442087c0a01bf146acb7386910739ec81df06700} - version: 20.49.0 - ufo@1.5.4: resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==} @@ -3099,6 +3093,10 @@ packages: resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} + uws-pack@20.0.0: + resolution: {integrity: sha512-H4dQmEW1pZdCnLiUJqyhU8OgDOTBWf17hmtd/HrnWemYGhfWnNhGVX7cAFqoosHNb2fSFMTsgCYJOJnuyWQTTg==} + engines: {node: '>=22'} + validate-npm-package-license@3.0.4: resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} @@ -4554,9 +4552,9 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 - crossws@0.2.4(uWebSockets.js@https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/442087c0a01bf146acb7386910739ec81df06700): + crossws@0.2.4(uws-pack@20.0.0): optionalDependencies: - uWebSockets.js: https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/442087c0a01bf146acb7386910739ec81df06700 + uWebSockets.js: uws-pack@20.0.0 csstype@3.1.3: {} @@ -4973,10 +4971,10 @@ snapshots: graceful-fs@4.2.11: {} - h3@1.12.0(uWebSockets.js@https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/442087c0a01bf146acb7386910739ec81df06700): + h3@1.12.0(uws-pack@20.0.0): dependencies: cookie-es: 1.2.2 - crossws: 0.2.4(uWebSockets.js@https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/442087c0a01bf146acb7386910739ec81df06700) + crossws: 0.2.4(uws-pack@20.0.0) defu: 6.1.4 destr: 2.0.3 iron-webcrypto: 1.2.1 @@ -5802,8 +5800,6 @@ snapshots: typescript@5.5.4: {} - uWebSockets.js@https://codeload.github.com/uNetworking/uWebSockets.js/tar.gz/442087c0a01bf146acb7386910739ec81df06700: {} - ufo@1.5.4: {} uglify-js@3.19.2: @@ -5855,6 +5851,8 @@ snapshots: utils-merge@1.0.1: {} + uws-pack@20.0.0: {} + validate-npm-package-license@3.0.4: dependencies: spdx-correct: 3.2.0 diff --git a/test/vike-node/package.json b/test/vike-node/package.json index 5361e61..5173b47 100644 --- a/test/vike-node/package.json +++ b/test/vike-node/package.json @@ -26,7 +26,7 @@ "sharp": "^0.33.4", "telefunc": "^0.1.76", "typescript": "^5.5.4", - "uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.49.0", + "uWebSockets.js": "npm:uws-pack@20.0.0", "vike": "^0.4.193", "vike-node": "link:../../packages/vike-node", "vite": "^5.4.0"