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

update for ssb-server@15 use ssb-* plugins directly, ssb-server/plugins/* no longer supported #332

Closed
wants to merge 3 commits into from

Conversation

dominictarr
Copy link
Contributor

@dominictarr dominictarr commented May 13, 2019

we are about to remove ssb-server/plugins directory, so these lines need to change.
the goal here is to make ssb-server into just a distribution. It doesn't have any complex code anymore.

@mixmix
Copy link
Member

mixmix commented May 16, 2019

thanks @dominictarr - I'm currently tying to get a stable major release out. As usual, that's taken a lot more time than expected - including problems with ssb-ws and ssb-invite, which I've had to lock at old versions for the time being.

Keen to have a look at this in the next pass. In particular, getting to remove the shrinkwrap could be super sweet because there is massive amounts of duplication of sodium-native binaries that I have been totally unable to prune.

server.js Outdated Show resolved Hide resolved
@mixmix
Copy link
Member

mixmix commented May 23, 2019 via email

@dominictarr
Copy link
Contributor Author

I think the problem here is that ssb-server is intended to be a distribution, but really, patchbay has it's own distribution. you should skip depending on ssb-server, and depend on secret-stack and build up all the plugins that you choose, as distribution maintainer.

Also you should run the tests for that combination of plugins, before releases. TODO: ssbc/ssb-server#650

@christianbundy
Copy link
Contributor

This is sort of weird but it works.

ssb-ahoy depends on ssb-server and the individual plugins used, so package.json includes both. I've run npm dedupe so these point to the same files, but it's still a slightly unconventional config to ensure that it doesn't break ssb-ahoy.

The biggest change here from my perspective is that it means Patchbay will start supporting deleted messages in the database. In Patchwork master we're currently deleting all messages from blocked feeds, which means that when I switch to Patchbay it crashes because it uses an old ssb-db that doesn't support deleted messages. To be super explicit, this PR won't make Patchbay start deleting anything, it just makes it so that it understands when other clients delete messages from the shared database.

@stale
Copy link

stale bot commented Oct 7, 2019

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

@stale stale bot added the stale label Oct 7, 2019
@arj03
Copy link
Member

arj03 commented Dec 18, 2019

Seems as if this is in master now.

@arj03 arj03 closed this Dec 18, 2019
@christianbundy
Copy link
Contributor

Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants