From d916298e90f64b083ad53848ae68f0acae0050a1 Mon Sep 17 00:00:00 2001 From: Paul Butler Date: Sat, 9 Sep 2023 11:32:05 -0400 Subject: [PATCH] server v 0.0.11 (#116) --- crates/Cargo.lock | 4 ++-- crates/y-sweet-core/Cargo.toml | 2 +- crates/y-sweet-core/README.md | 1 + crates/y-sweet/Cargo.toml | 4 ++-- crates/y-sweet/src/main.rs | 6 ++++++ js-pkg/server/package-lock.json | 4 ++-- js-pkg/server/package.json | 2 +- 7 files changed, 15 insertions(+), 8 deletions(-) diff --git a/crates/Cargo.lock b/crates/Cargo.lock index bfa3d76d..8f424f5d 100644 --- a/crates/Cargo.lock +++ b/crates/Cargo.lock @@ -2174,7 +2174,7 @@ dependencies = [ [[package]] name = "y-sweet" -version = "0.0.9" +version = "0.0.12" dependencies = [ "anyhow", "async-trait", @@ -2201,7 +2201,7 @@ dependencies = [ [[package]] name = "y-sweet-core" -version = "0.0.9" +version = "0.0.12" dependencies = [ "anyhow", "async-trait", diff --git a/crates/y-sweet-core/Cargo.toml b/crates/y-sweet-core/Cargo.toml index 546ac27d..38cd65db 100644 --- a/crates/y-sweet-core/Cargo.toml +++ b/crates/y-sweet-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "y-sweet-core" -version = "0.0.9" +version = "0.0.12" edition = "2021" description = "Sans-IO core of the y-sweet yjs CRDT server." license = "MIT" diff --git a/crates/y-sweet-core/README.md b/crates/y-sweet-core/README.md index e69de29b..0892afaa 100644 --- a/crates/y-sweet-core/README.md +++ b/crates/y-sweet-core/README.md @@ -0,0 +1 @@ +Sans-IO core of [y-sweet](https://crates.io/crates/y-sweet) Yjs server. diff --git a/crates/y-sweet/Cargo.toml b/crates/y-sweet/Cargo.toml index edcdd23f..132a93b3 100644 --- a/crates/y-sweet/Cargo.toml +++ b/crates/y-sweet/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "y-sweet" -version = "0.0.9" +version = "0.0.12" edition = "2021" description = "A standalone Yjs CRDT server with built-in persistence and auth." license = "MIT" @@ -26,6 +26,6 @@ tokio-stream = "0.1.14" tracing = "0.1.37" tracing-subscriber = { version = "0.3.17", features = ["env-filter", "fmt"] } url = "2.4.0" -y-sweet-core = { version="0.0.9", path = "../y-sweet-core" } +y-sweet-core = { version="0.0.12", path = "../y-sweet-core" } yrs = "0.16.9" yrs-kvstore = "0.1.0" diff --git a/crates/y-sweet/src/main.rs b/crates/y-sweet/src/main.rs index 2c42e85f..09bc902d 100644 --- a/crates/y-sweet/src/main.rs +++ b/crates/y-sweet/src/main.rs @@ -21,6 +21,7 @@ mod server; mod stores; const DEFAULT_S3_REGION: Region = Region::UsEast1; +const VERSION: &str = env!("CARGO_PKG_VERSION"); #[derive(Parser)] struct Opts { @@ -54,6 +55,8 @@ enum ServSubcommand { #[clap(long)] json: bool, }, + + Version, } fn get_store_from_opts(store_path: &str) -> Result> { @@ -158,6 +161,9 @@ async fn main() -> Result<()> { print_auth_message(&auth); } } + ServSubcommand::Version => { + println!("{}", VERSION); + } } Ok(()) diff --git a/js-pkg/server/package-lock.json b/js-pkg/server/package-lock.json index 3f28aff3..eeb5cc5d 100644 --- a/js-pkg/server/package-lock.json +++ b/js-pkg/server/package-lock.json @@ -1,12 +1,12 @@ { "name": "y-sweet", - "version": "0.0.11", + "version": "0.0.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "y-sweet", - "version": "0.0.11", + "version": "0.0.12", "hasInstallScript": true, "license": "MIT", "bin": { diff --git a/js-pkg/server/package.json b/js-pkg/server/package.json index 287f9525..2afdb397 100644 --- a/js-pkg/server/package.json +++ b/js-pkg/server/package.json @@ -7,7 +7,7 @@ "postinstall": "node src/install.js", "format": "prettier --write \"**/*.{ts,tsx,js,jsx}\"" }, - "version": "0.0.11", + "version": "0.0.12", "description": "npm wrapper for y-sweet server", "homepage": "https://github.com/drifting-in-space/y-sweet", "repository": {