Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: remove websocket support #966

Merged
merged 3 commits into from
Oct 10, 2023
Merged

fix!: remove websocket support #966

merged 3 commits into from
Oct 10, 2023

Conversation

travis
Copy link
Contributor

@travis travis commented Oct 10, 2023

when you try to use @web3-storage/access in a new next.js repository you get errors like this:

Import trace for requested module:
./node_modules/ipfs-utils/src/http/fetch.js
./node_modules/@web3-storage/upload-client/src/store.js
./node_modules/@web3-storage/upload-client/src/index.js
./node_modules/@web3-storage/w3up-client/src/client.js
./node_modules/@web3-storage/w3up-client/src/index.node.js
./app/utils/utils.ts
./app/page.tsx

./node_modules/ws/lib/buffer-util.js
Module not found: Can't resolve 'bufferutil' in '/Users/travis/dev/pl/sample-w3/node_modules/ws/lib'

Import trace for requested module:
./node_modules/ws/lib/buffer-util.js
./node_modules/ws/lib/websocket.js
./node_modules/ws/index.js
./node_modules/isomorphic-ws/node.js
./node_modules/@web3-storage/access/src/utils/ws.js
./node_modules/@web3-storage/access/src/agent-use-cases.js
./node_modules/@web3-storage/access/src/agent.js
./node_modules/@web3-storage/w3up-client/src/index.node.js
./app/utils/utils.ts
./app/page.tsx

./node_modules/ws/lib/validation.js
Module not found: Can't resolve 'utf-8-validate' in '/Users/travis/dev/pl/sample-w3/node_modules/ws/lib'

Import trace for requested module:
./node_modules/ws/lib/validation.js
./node_modules/ws/lib/receiver.js
./node_modules/ws/index.js
./node_modules/isomorphic-ws/node.js
./node_modules/@web3-storage/access/src/utils/ws.js
./node_modules/@web3-storage/access/src/agent-use-cases.js
./node_modules/@web3-storage/access/src/agent.js
./node_modules/@web3-storage/w3up-client/src/index.node.js
./app/utils/utils.ts
./app/page.tsx

Which looks like the same thing as netlify/netlify-lambda#179 and shows up a few other times in similar repos.

While we could instruct our users to add some build configuration to go away, we don't use websockets in production in any of our flows and imho we should just remove this dependency. The easiest way to do this is to remove the cli as well, and since we don't use that anywhere that also seems like a good idea.

travis and others added 3 commits October 10, 2023 12:01
when you try to use `@web3-storage/access` in a new next.js repository you get errors like this:

```
Import trace for requested module:
./node_modules/ipfs-utils/src/http/fetch.js
./node_modules/@web3-storage/upload-client/src/store.js
./node_modules/@web3-storage/upload-client/src/index.js
./node_modules/@web3-storage/w3up-client/src/client.js
./node_modules/@web3-storage/w3up-client/src/index.node.js
./app/utils/utils.ts
./app/page.tsx

./node_modules/ws/lib/buffer-util.js
Module not found: Can't resolve 'bufferutil' in '/Users/travis/dev/pl/sample-w3/node_modules/ws/lib'

Import trace for requested module:
./node_modules/ws/lib/buffer-util.js
./node_modules/ws/lib/websocket.js
./node_modules/ws/index.js
./node_modules/isomorphic-ws/node.js
./node_modules/@web3-storage/access/src/utils/ws.js
./node_modules/@web3-storage/access/src/agent-use-cases.js
./node_modules/@web3-storage/access/src/agent.js
./node_modules/@web3-storage/w3up-client/src/index.node.js
./app/utils/utils.ts
./app/page.tsx

./node_modules/ws/lib/validation.js
Module not found: Can't resolve 'utf-8-validate' in '/Users/travis/dev/pl/sample-w3/node_modules/ws/lib'

Import trace for requested module:
./node_modules/ws/lib/validation.js
./node_modules/ws/lib/receiver.js
./node_modules/ws/index.js
./node_modules/isomorphic-ws/node.js
./node_modules/@web3-storage/access/src/utils/ws.js
./node_modules/@web3-storage/access/src/agent-use-cases.js
./node_modules/@web3-storage/access/src/agent.js
./node_modules/@web3-storage/w3up-client/src/index.node.js
./app/utils/utils.ts
./app/page.tsx
```

Which looks like the same thing as netlify/netlify-lambda#179 and shows up a few other times in similar repos.

While we could instruct our users to add some build configuration to go away, we don't use websockets in production in any of our flows and imho we should just remove this dependency. The easiest way to do this is to remove the cli as well, and since we don't use that anywhere that also seems like a good idea.
this is wonderful
@travis travis merged commit 77bf7ea into main Oct 10, 2023
14 checks passed
@travis travis deleted the fix/remove-ws branch October 10, 2023 14:26
travis added a commit that referenced this pull request Oct 10, 2023
🤖 I have created a release *beep* *boop*
---


##
[16.0.0](access-v15.3.0...access-v16.0.0)
(2023-10-10)


### ⚠ BREAKING CHANGES

* remove websocket support
([#966](#966))

### Bug Fixes

* remove websocket support
([#966](#966))
([77bf7ea](77bf7ea))
* upgrade to latest ts
([#962](#962))
([711e3f7](711e3f7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: Travis Vachon <travis.vachon@protocol.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants