unjs / crossws

🔌 Cross-platform WebSocket Servers for Node.js, Deno, Bun and Cloudflare Workers.
https://crossws.unjs.io
Other
394 stars 17 forks source link

hope to fix "uWebSocket. js": "GitHub: uNetworking/uWebSocket. js # v23.3.0" to a normal dependency. #51

Closed SKT1yang closed 3 months ago

SKT1yang commented 4 months ago

Describe the feature

In an offline internal network environment, we have a self built npm private server, but it relies on uWebSocket. js to try downloading the dependency from another network address: "uWebSocket. js": "GitHub: uNetworking/uWebSocket. js # v23.3.0", which caused us to download the dependency and cannot be used normally. We hope to fix this dependency to a normal dependency. The entire dependency relationship is @ eslint/config observer v0.5.2->h3 v1.12.0->crossws v 0.2.4

image

Additional information

victorpinheiro commented 3 months ago

+1 We have the exact same issue here. Hope it can be added as a normal dependency instead

pi0 commented 3 months ago

Sadly the author of uWebSocket.js does not trust the npm registry and because of licensing/credit issues, no one is at liberty to publish it there...

Although it is an optional peer dep of CrossWS, sadly some package managers also don't respect it and fail CIs...

Since it is a type-only dependency I'm gonna remove it for next release 👍🏼

pi0 commented 3 months ago

it will be removed in next release (semver major 0.3.x)

victorpinheiro commented 3 months ago

Hi @pi0, sorry bothering you again with it. Do you have any idea of when the next release will happen?