-
Notifications
You must be signed in to change notification settings - Fork 9
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
use npm published discovery-swarm-webrtc
instead of github
#7
Comments
Hi @100ideas ! The new version of discovery-swarm-webrtc change a lot internally:
But the API is pretty much the same. It should be easier to upgrade discovery-swarm-web I will take a look if I can help with a PR. @RangerMauve are you agree? |
@tinchoz49 I'm up for a PR to this repo, but I also think that getting a |
Absolutely, it would be the next step. |
thanks for the updates. I will keep an eye on both. |
The |
Thanks @juliangruber for reporting that, sorry everyone, it was my fault. I already restore that branch and I will try to update discovery-swarm-web to the last version. |
@100ideas how are you? We update the discovery-swarm-webrtc, it should be working now with the last version. |
How should I go about testing the new version in a client-side toy react app? I wanted to use
so specifying Will I don't need to use dat-sdk, I am just looking forward to it. I'll try some other way of testing client side.
|
fyi I set up a web sandbox to mess with discovery-swarm-web@2.0.0 here: https://runkit.com/100ideas/discovery-swarm-web-2-0-0 |
trying to use `dat-sdk` on stackblitz but its "turbo" npm resolver is choking on a github import in a dependant package.json `dat-sdk` -> `hyperdiscovery` -> `discovery-swarm-web@<2.0.0` (https://github.com/RangerMauve/discovery-swarm-web/blob/a50131cb169e6e190bc2ee750342f3a40a3df590/package.json) not sure how else to override so forked `dat-sdk` & `hyperdiscovery` to hack package.jsons RangerMauve/discovery-swarm-web#7
trying to use `dat-sdk` on stackblitz but its "turbo" npm resolver is choking on a github import in a dependant package.json `dat-sdk` -> `hyperdiscovery` -> `discovery-swarm-web@<2.0.0` (https://github.com/RangerMauve/discovery-swarm-web/blob/a50131cb169e6e190bc2ee750342f3a40a3df590/package.json) testing if stackblitz can handle github package.json imports in dependant packages like ```js // probably not since this is similar to what is not working in discovery-swarm-web@1.4.1 "hyperdiscovery": "github:100ideas/hyperdiscovery" // docs say this works "hyperdiscovery": "https://github.com/100ideas/hyperdiscovery" ``` not sure how else to override so forked `dat-sdk` & `hyperdiscovery` to hack package.jsons RangerMauve/discovery-swarm-web#7
ok I put together a toy app to play with
I forked the repos mentioned above and upgraded the deps to use I am looking forward to the isomorphic + standardized + multiwriter dat api under development in |
I love mobx 😄 ! So I think we should start by updating hyperdiscovery too. I will do it this weekend. |
Just published 10.2.0 of hyperdiscovery with the latest discovery-swarm-web! I'll get it into the SDK in a sec. 💜 |
Published new SDK as well https://github.com/datproject/sdk/releases/tag/v0.3.6 |
Nice! I'll update the demo and give it a try in a day or two hopefully.
me asking over at https://gitter.im/datproject/discussions?at=5dc39f582f8a0343574d7d42:
|
discovery-swarm-web depends on
which as you can see is being loaded via npm/yarn's "github:/" syntax.
the
sub-signalhub
branch ofdiscovery-swarm-webrtc
lists its package version number as1.0.1
. This version appears to be hosted on npm.Some environments (browser prototyping IDEs in particular) don't have npm/yarn toolchains that can fetch packages via
github:<user>/<repo>
. Unless its necessary, it would be easier in some browser-based dev environments to test client-side dat features that depend on discovery-swarm if this dependency was loaded from npm.That said, I realize
@geut/discovery-swarm-webrtc
is changing a lot right now and if the v2 branch will be compatible again in the future withdiscovery-swarm-web
then I guess just wait until then to change things.The text was updated successfully, but these errors were encountered: