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

feat: adding self-hosted servers #952

Merged
merged 132 commits into from
Oct 31, 2024
Merged

feat: adding self-hosted servers #952

merged 132 commits into from
Oct 31, 2024

Conversation

EvanHahn
Copy link
Contributor

This adds support for adding self-hosted servers. It adds the following functions:

  • project.$member.addServerPeer()
  • project.$sync.connectServers()
  • project.$sync.disconnectServers()

This change doesn't include end-to-end tests for the server. That's deliberate! We can't (easily) add those tests without the server being released, but we can't (easily) release the server without this change. Once this change is released, we can release the server, and then we should be able to add end-to-end tests.

See #886 for more.

Because Gregor and I paired on this extensively, I plan to merge and deploy this once ready.

Co-Authored-By: Gregor MacLennan [email protected]

gmaclennan and others added 30 commits October 3, 2024 14:16
We wrote this to test something and no longer need it.
This is a minor change. I think it makes sense to use `await` in an
async function, rather than using `then` to handle the promise.

(I guess we're `await`ing in either case, but I think this is clearer.)
@EvanHahn EvanHahn self-assigned this Oct 31, 2024
@awana-lockfile-bot
Copy link

package-lock.json changes

Summary

Status Count
ADDED 3
REMOVED 24
Click to toggle table visibility
Name Status Previous Current
@emnapi/core REMOVED 1.2.0 -
@emnapi/runtime REMOVED 1.2.0 -
@emnapi/wasi-threads REMOVED 1.0.1 -
@fastify/ajv-compiler REMOVED 3.5.0 -
@fastify/fast-json-stringify-compiler REMOVED 4.3.0 -
@napi-rs/wasm-runtime REMOVED 0.2.4 -
@node-rs/crc32-android-arm-eabi REMOVED 1.10.3 -
@node-rs/crc32-android-arm64 REMOVED 1.10.3 -
@node-rs/crc32-darwin-arm64 REMOVED 1.10.3 -
@node-rs/crc32-darwin-x64 REMOVED 1.10.3 -
@node-rs/crc32-freebsd-x64 REMOVED 1.10.3 -
@node-rs/crc32-linux-arm-gnueabihf REMOVED 1.10.3 -
@node-rs/crc32-linux-arm64-gnu REMOVED 1.10.3 -
@node-rs/crc32-linux-arm64-musl REMOVED 1.10.3 -
@node-rs/crc32-wasm32-wasi REMOVED 1.10.3 -
@node-rs/crc32-win32-arm64-msvc REMOVED 1.10.3 -
@node-rs/crc32-win32-ia32-msvc REMOVED 1.10.3 -
@node-rs/crc32-win32-x64-msvc REMOVED 1.10.3 -
@tybys/wasm-util REMOVED 0.9.0 -
@types/ws ADDED - 8.5.12
clone ADDED - 1.0.4
execa REMOVED 7.2.0 -
get-stream REMOVED 6.0.1 -
human-signals REMOVED 4.3.1 -
npm-run-path REMOVED 5.1.0 -
strip-final-newline REMOVED 3.0.0 -
ws ADDED - 8.18.0

@EvanHahn EvanHahn merged commit 4f33bd0 into main Oct 31, 2024
8 checks passed
@EvanHahn EvanHahn deleted the server-without-tests branch October 31, 2024 21:48
EvanHahn added a commit that referenced this pull request Oct 31, 2024
We couldn't add end-to-end tests for the server until `@comapeo/server`
was released (see [#952] for more details). Now that it's out, we can
add them!

[#952]: #952

Co-Authored-By: Gregor MacLennan <[email protected]>
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