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

chore: v0.49.0 #1917

Merged
merged 7 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/BUG-REPORT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ body:
attributes:
label: Version
description: What version of `cargo-shuttle` are you running (`shuttle --version`)?
placeholder: "v0.48.0"
placeholder: "v0.49.0"
validations:
required: true
- type: dropdown
Expand Down
70 changes: 67 additions & 3 deletions CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ exclude = [
]

[workspace.package]
version = "0.48.0"
version = "0.49.0"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/shuttle-hq/shuttle"

# https://doc.rust-lang.org/cargo/reference/workspaces.html#the-workspacedependencies-table
[workspace.dependencies]
shuttle-api-client = { path = "api-client", version = "0.48.0", default-features = false }
shuttle-backends = { path = "backends", version = "0.48.0" }
shuttle-codegen = { path = "codegen", version = "0.48.0" }
shuttle-common = { path = "common", version = "0.48.0" }
shuttle-common-tests = { path = "common-tests", version = "0.48.0" }
shuttle-proto = { path = "proto", version = "0.48.0" }
shuttle-service = { path = "service", version = "0.48.0" }
shuttle-api-client = { path = "api-client", version = "0.49.0", default-features = false }
shuttle-backends = { path = "backends", version = "0.49.0" }
shuttle-codegen = { path = "codegen", version = "0.49.0" }
shuttle-common = { path = "common", version = "0.49.0" }
shuttle-common-tests = { path = "common-tests", version = "0.49.0" }
shuttle-proto = { path = "proto", version = "0.49.0" }
shuttle-service = { path = "service", version = "0.49.0" }

anyhow = "1.0.66"
async-trait = "0.1.58"
Expand Down
2 changes: 1 addition & 1 deletion admin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shuttle-admin"
version = "0.48.0"
version = "0.49.0"
edition = "2021"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion api-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shuttle-api-client"
version = "0.48.0"
version = "0.49.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion auth/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shuttle-auth"
version = "0.48.0"
version = "0.49.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion backends/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shuttle-backends"
version = "0.48.0"
version = "0.49.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion cargo-shuttle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-shuttle"
version = "0.48.3"
version = "0.49.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion cargo-shuttle/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ pub enum DeploymentCommand {
id: Option<String>,
},
/// Redeploy a previous deployment (if possible)
#[command(visible_alias = "re")]
#[command(visible_alias = "re", hide = true)]
Redeploy {
/// ID of deployment to redeploy
id: String,
Expand Down
4 changes: 2 additions & 2 deletions cargo-shuttle/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,15 +569,15 @@ mod tests {
}

#[test]
fn get_local_config_finds_name_in_shuttle_toml() {
fn get_local_config_finds_name_in_cargo_toml() {
let project_args = ProjectArgs {
working_directory: path_from_workspace_root("examples/axum/hello-world/"),
name_or_id: None,
};

let local_config = RequestContext::get_local_config(&project_args).unwrap();

assert_eq!(unwrap_project_name(&local_config), "hello-world-axum-app");
assert_eq!(unwrap_project_name(&local_config), "hello-world");
}

#[test]
Expand Down
32 changes: 0 additions & 32 deletions cargo-shuttle/tests/integration/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,36 +299,4 @@ mod needs_docker {

assert_eq!(request_text, "{\"id\":1,\"note\":\"Deploy to shuttle\"}");
}

#[tokio::test(flavor = "multi_thread")]
async fn poem_mongodb() {
let url = cargo_shuttle_run("../examples/poem/mongodb", false).await;
let client = reqwest::Client::new();

// Post a todo note and get the persisted todo objectId
let post_text = client
.post(format!("{url}/todo"))
.body("{\"note\": \"Deploy to shuttle\"}")
.header("content-type", "application/json")
.send()
.await
.unwrap()
.text()
.await
.unwrap();

// Valid objectId is 24 char hex string
assert_eq!(post_text.len(), 24);

let request_text = client
.get(format!("{url}/todo/{post_text}"))
.send()
.await
.unwrap()
.text()
.await
.unwrap();

assert_eq!(request_text, "{\"note\":\"Deploy to shuttle\"}");
}
}
2 changes: 1 addition & 1 deletion codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shuttle-codegen"
version = "0.48.0"
version = "0.49.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion common-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shuttle-common-tests"
version = "0.48.0"
version = "0.49.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
Expand Down
Loading