slashtags icon indicating copy to clipboard operation
slashtags copied to clipboard

fix(rpc): setup swarm connection on next tick to fix a bug with dht-relay

Open Nuhvi opened this issue 1 year ago • 8 comments

Nuhvi avatar Jun 15 '23 13:06 Nuhvi

what about skipped tests and lock file change?

dzdidi avatar Jun 16 '23 05:06 dzdidi

what about skipped tests and lock file change?

It is important to note that lock file doesn't get published on NPM, it is merely for development purposes. I often delete it and reinstall everything, just to make sure I am developing on latest versions of everything. Maybe we should remove it.

Skipped tests are mostly dealing with deprecated API (stuff that doesn't use core-data module) and are breaking now mostly because they were using Drivestore and that was using an earlier version of Corestore. I can update Drivestore to work with new versions of Corestore, but I was hoping to finish migration to core-data soon and skip support for Drivestore.

Nuhvi avatar Jun 16 '23 06:06 Nuhvi

It is important to note that lock file doesn't get published on NPM, it is merely for development purposes.

for publishing there is a shrinkwrap

I often delete it and reinstall everything, just to make sure I am developing on latest versions of everything.

Haven't you had a problem because of it recently?

dzdidi avatar Jun 16 '23 06:06 dzdidi

Skipped tests are mostly dealing with deprecated API (stuff that doesn't use core-data module) and are breaking now mostly because they were using Drivestore and that was using an earlier version of Corestore. I can update Drivestore to work with new versions of Corestore, but I was hoping to finish migration to core-data soon and skip support for Drivestore.

Does it mean that they can be safely removed?

dzdidi avatar Jun 16 '23 06:06 dzdidi

Does it mean that they can be safely removed?

No, any code that is still using Drivestore, but updates Corestore will get errors. Luckily for now Bitkit is the main user, and lockfiles are helping there.

After opening this issue (and delivering this fix manually in my local attempt to move core-data api to Bitkit) other issues appeared in Bitkit anyways, so there is a chance we will have to wait for bare.js, because bugs in corestore and hyperswarm seem endless in Bitkit right now, while in nodejs everything is much more robust.

Up to @rbndg, maybe we can close these two PRs and wait for bare.

Nuhvi avatar Jun 16 '23 07:06 Nuhvi

~To make that a bit more clear: If you want to break compatibility (maybe deliver a major version of Slashtags) then yes we can safely remove Drivestore and everything related to it, it just needs to be a major version.~

Let me take 30 minutes to see if I can update drivestore to use CoreData as a temporary fix!

Nuhvi avatar Jun 16 '23 07:06 Nuhvi

Added in separate PR to make it easier to review https://github.com/synonymdev/slashtags/pull/94

Nuhvi avatar Jun 16 '23 09:06 Nuhvi

Updated after merging #94, it doesn't solve https://github.com/synonymdev/slashtags-core-data/pull/19 so not sure if it is worth merging now. Maybe after solving that it wouldn't be needed.

Nuhvi avatar Jul 03 '23 10:07 Nuhvi