Skip to content

Commit

Permalink
deps: Update PDKs. (#1794)
Browse files Browse the repository at this point in the history
* First pass.

* Remove serde_yaml.

* Update features.

* chore: Release

* Update tests.
  • Loading branch information
milesj authored Jan 22, 2025
1 parent 0328898 commit 33b57f3
Show file tree
Hide file tree
Showing 27 changed files with 442 additions and 253 deletions.
537 changes: 361 additions & 176 deletions Cargo.lock

Large diffs are not rendered by default.

45 changes: 22 additions & 23 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cached = "0.54.0"
chrono = { version = "0.4.39", features = ["serde"] }
cd_env = "0.2.0"
ci_env = "0.3.0"
clap = { version = "4.5.26", default-features = false, features = [
clap = { version = "4.5.27", default-features = false, features = [
"std",
"error-context",
] }
Expand All @@ -32,10 +32,10 @@ compact_str = { version = "0.8.1", default-features = false, features = [
"serde",
] }
console = "0.15.10"
convert_case = "0.6.0"
dirs = "5.0.1"
convert_case = "0.7.1"
dirs = "6.0.0"
futures = "0.3.31"
indexmap = "2.7.0"
indexmap = "2.7.1"
md5 = "0.7.0"
miette = "7.4.0"
once_cell = "1.20.1"
Expand All @@ -55,26 +55,25 @@ reqwest = { version = "0.12.12", default-features = false, features = [
] }
rustc-hash = "2.1.0"
scc = "2.2.5"
schematic = { version = "0.17.8", default-features = false, features = [
schematic = { version = "0.17.10", default-features = false, features = [
"schema",
] }
serial_test = "3.2.0"
semver = "1.0.23"
semver = "1.0.25"
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.133"
serde_yaml = "0.9.34"
serde_json = "1.0.137"
serde_yml = "0.0.12"
sha2 = "0.10.8"
starbase = { version = "0.9.6" }
starbase_archive = { version = "0.9.0", default-features = false, features = [
starbase = { version = "0.9.9" }
starbase_archive = { version = "0.9.3", default-features = false, features = [
"miette",
"tar-gz",
] }
starbase_events = "0.6.6"
starbase_sandbox = "0.8.0"
starbase_shell = "0.6.10"
starbase_events = "0.6.8"
starbase_sandbox = "0.8.2"
starbase_shell = "0.6.13"
starbase_styles = { version = "0.4.4", features = ["relative-path"] }
starbase_utils = { version = "0.9.4", default-features = false, features = [
"editor-config",
starbase_utils = { version = "0.10.0", default-features = false, features = [
"miette",
] }
tera = { version = "1.20.0", features = ["preserve_order"] }
Expand All @@ -90,18 +89,18 @@ tokio = { version = "1.43.0", default-features = false, features = [
] }
tokio-util = "0.7.13"
tracing = "0.1.41"
uuid = { version = "1.11.0", features = ["v4"] }
uuid = { version = "1.12.1", features = ["v4"] }

# proto/plugin related
extism = "=1.9.1"
extism-pdk = "1.3.0"
proto_core = "0.44.4"
proto_installer = "0.8.0"
system_env = "0.6.1"
version_spec = "0.7.1"
warpgate = "0.20.2"
warpgate_api = "0.10.1"
warpgate_pdk = "0.8.1"
proto_core = "0.45.0"
proto_installer = "0.9.0"
system_env = "0.7.0"
version_spec = "0.7.2"
warpgate = "0.21.0"
warpgate_api = "0.11.0"
warpgate_pdk = "0.9.0"

# proto_core = { path = "../proto/crates/core" }
# proto_installer = { path = "../proto/crates/installer" }
Expand Down
2 changes: 1 addition & 1 deletion crates/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ starbase = { workspace = true }
starbase_events = { workspace = true }
starbase_shell = { workspace = true }
starbase_styles = { workspace = true }
starbase_utils = { workspace = true }
starbase_utils = { workspace = true, features = ["editor-config"] }
system_env = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/cli/tests/run_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,11 +710,11 @@ mod hashing {
// Hashes change because `.moon/workspace.yml` is different from `walk_strategy`
assert_eq!(
hash_vcs,
"3b3d2d556cfc82c7834975dbed40741e27541a30244dfdc4835edd9503539d55"
"2b8160e1fae996d3fcd1cf4ce888a7888a0e08d7b6d9d9f2adfecc356e86040b"
);
assert_eq!(
hash_glob,
"59ec46f239f4ad40e2bea9fb0cb26f69b55b985b027845e40f41db087e842f38"
"78edc25dadbeae8b2d41073611c686ead7f1c3690b887c45822faa4310cfb573"
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ A template for testing all variable config combinations.
Error: codegen::args::parse_failed

× Failed to parse variables from arguments.
╰─▶ × invalid value 'abc' for '--number <number>': invalid digit found in
string
╰─▶ × invalid value 'abc' for '--number <number>': invalid digit found
in string
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ tasks:
lint:
command:
- eslint
- .
- '.'
toolchain: node
lint-fix:
command:
- moon
- run
- common:lint
- --
- --fix
- '--'
- '--fix'
toolchain: node
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ tasks:
build:
command:
- babel
- ./src
- --out
- ./lib
- './src'
- '--out'
- './lib'
outputs:
- lib
toolchain: node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ source: crates/cli/tests/run_test.rs
expression: "[h1, h2, extract_hash_from_run(sandbox.path(), \"outputs:asDep\"),\nextract_hash_from_run(sandbox.path(), \"outputs:withDeps\")]"
---
[
"81670f2e4bc28898288815ee075a8653bb264bf8dcf7fa0246f87e50054c950f",
"1034518a27b7197ff81b5393a98270ca94283e26cdaf61ec370ccbcd5f92112c",
"c2f65dfed7824b8da4986ed97bf2c6c6ce1914b387da407da66c19f7c61571d8",
"e672d267073a26f1d9cf14eaa1136a02c3c588e93ba3792f8f7dc47c49b0cf24",
"9b83821644418128b97f4ca80ea38d073f7531d5704c09dc4ddf0118e3df8cbf",
"1e0aa381a5657c612d921b945b4ada7c2176b62ef9f336e4f7d9cab121a270f9",
"f01e61ef51d40759363813b476a8b3b53d8ecdbe3f575708388d50cbfc390d1b",
"b888471e3a4d5ebfd469efe4a77ab0d8dfe0655efc3f0743b94c3f8738cda5f7",
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ source: crates/cli/tests/run_test.rs
expression: "[extract_hash_from_run(sandbox.path(), \"outputs:asDep\"),\nextract_hash_from_run(sandbox.path(), \"outputs:withDeps\")]"
---
[
"81670f2e4bc28898288815ee075a8653bb264bf8dcf7fa0246f87e50054c950f",
"1034518a27b7197ff81b5393a98270ca94283e26cdaf61ec370ccbcd5f92112c",
"9b83821644418128b97f4ca80ea38d073f7531d5704c09dc4ddf0118e3df8cbf",
"1e0aa381a5657c612d921b945b4ada7c2176b62ef9f336e4f7d9cab121a270f9",
]
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ expression: assert.output()
Tasks: 2 completed
Time: 100ms

f75fedb1391ec68b3bc9dcc5cd1908bb4ee36793de49fe538185fc077cd38149
091875657f8b955944c45803b2e13d536f257648e04cca859a0c38700b94764f
1 change: 1 addition & 0 deletions crates/codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ regex = { workspace = true }
rustc-hash = { workspace = true }
starbase_archive = { workspace = true }
starbase_utils = { workspace = true, features = [
"editor-config",
"glob",
"json",
"net",
Expand Down
2 changes: 1 addition & 1 deletion crates/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moon_common"
version = "0.0.10"
version = "0.0.11"
edition = "2021"
license = "MIT"
description = "Common utilities."
Expand Down
12 changes: 6 additions & 6 deletions crates/config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moon_config"
version = "0.0.12"
version = "0.0.13"
edition = "2021"
license = "MIT"
description = "Core workspace, project, and moon configuration."
Expand All @@ -12,13 +12,13 @@ publish = true
features = ["loader"]

[dependencies]
moon_common = { version = "0.0.10", path = "../common" }
moon_target = { version = "0.0.9", path = "../target" }
moon_common = { version = "0.0.11", path = "../common" }
moon_target = { version = "0.0.10", path = "../target" }
indexmap = { workspace = true }
miette = { workspace = true }
once_cell = { workspace = true }
regex = { workspace = true }
rpkl = "0.3.5"
rpkl = "0.4.0"
rustc-hash = { workspace = true }
schematic = { workspace = true, features = [
"config",
Expand All @@ -31,12 +31,12 @@ schematic = { workspace = true, features = [
"type_semver",
"validate",
"validate_url",
"yaml",
"yml",
] }
semver = { workspace = true, features = ["serde"] }
serde = { workspace = true }
serde_json = { workspace = true }
serde_yaml = { workspace = true }
serde_yml = { workspace = true }
version_spec = { workspace = true, features = ["schematic"] }
warpgate_api = { workspace = true, features = ["schematic"] }

Expand Down
4 changes: 2 additions & 2 deletions crates/file-group/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_common = { version = "0.0.10", path = "../common" }
moon_config = { version = "0.0.12", path = "../config" }
moon_common = { version = "0.0.11", path = "../common" }
moon_config = { version = "0.0.13", path = "../config" }
common-path = "1.0.0"
miette = { workspace = true }
once_cell = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions crates/pdk-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moon_pdk_api"
version = "0.0.12"
version = "0.0.13"
edition = "2021"
license = "MIT"
description = "Core APIs for creating moon WASM plugins."
Expand All @@ -9,8 +9,8 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_common = { version = "0.0.10", path = "../common" }
moon_config = { version = "0.0.12", path = "../config" }
moon_common = { version = "0.0.11", path = "../common" }
moon_config = { version = "0.0.13", path = "../config" }
rustc-hash = { workspace = true }
schematic = { workspace = true, features = ["schema_serde"] }
serde = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/pdk-test-utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moon_pdk_test_utils"
version = "0.0.13"
version = "0.0.14"
edition = "2021"
license = "MIT"
description = "Utilities for testing moon WASM plugins."
Expand All @@ -9,7 +9,7 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_pdk_api = { version = "0.0.12", path = "../pdk-api" }
moon_pdk_api = { version = "0.0.13", path = "../pdk-api" }
warpgate = { workspace = true }
extism = { workspace = true }
serde = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/pdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moon_pdk"
version = "0.0.12"
version = "0.0.13"
edition = "2021"
license = "MIT"
description = "A plugin development kit for creating moon WASM plugins."
Expand All @@ -9,7 +9,7 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_pdk_api = { version = "0.0.12", path = "../pdk-api" }
moon_pdk_api = { version = "0.0.13", path = "../pdk-api" }
clap = { workspace = true, features = ["derive"] }
extism-pdk = { workspace = true }
serde = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/plugin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ publish = false
[dependencies]
moon_common = { path = "../common" }
moon_env = { path = "../env" }
moon_pdk_api = { version = "0.0.12", path = "../pdk-api" }
moon_pdk_api = { version = "0.0.13", path = "../pdk-api" }
moon_target = { path = "../target" }
moon_workspace_graph = { path = "../workspace-graph" }
async-trait = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/project/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_common = { version = "0.0.10", path = "../common" }
moon_config = { version = "0.0.12", path = "../config" }
moon_common = { version = "0.0.11", path = "../common" }
moon_config = { version = "0.0.13", path = "../config" }
moon_file_group = { version = "0.0.3", path = "../file-group" }
moon_task = { version = "0.0.3", path = "../task" }
miette = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/target/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moon_target"
version = "0.0.9"
version = "0.0.10"
edition = "2021"
license = "MIT"
description = "Project + task target identifier."
Expand All @@ -9,7 +9,7 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_common = { version = "0.0.10", path = "../common" }
moon_common = { version = "0.0.11", path = "../common" }
compact_str = { workspace = true }
miette = { workspace = true }
once_cell = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions crates/task/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_common = { version = "0.0.10", path = "../common" }
moon_config = { version = "0.0.12", path = "../config" }
moon_target = { version = "0.0.9", path = "../target" }
moon_common = { version = "0.0.11", path = "../common" }
moon_config = { version = "0.0.13", path = "../config" }
moon_target = { version = "0.0.10", path = "../target" }
miette = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion legacy/core/test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ insta = "1.41.1"
predicates = "3.1.3"
pretty_assertions = "1.4.1"
rustc-hash = { workspace = true }
serde_yaml = { workspace = true }
serde_yml = { workspace = true }
starbase_utils = { workspace = true, features = ["glob"] }

[lints]
Expand Down
6 changes: 3 additions & 3 deletions legacy/core/test-utils/src/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,16 @@ pub fn create_sandbox_with_config<T: AsRef<str>>(

sandbox.create_file(
".moon/workspace.yml",
serde_yaml::to_string(&workspace_config.unwrap_or_default()).unwrap(),
serde_yml::to_string(&workspace_config.unwrap_or_default()).unwrap(),
);

sandbox.create_file(
".moon/toolchain.yml",
serde_yaml::to_string(&toolchain_config.unwrap_or_default()).unwrap(),
serde_yml::to_string(&toolchain_config.unwrap_or_default()).unwrap(),
);

if let Some(config) = tasks_config {
sandbox.create_file(".moon/tasks.yml", serde_yaml::to_string(&config).unwrap());
sandbox.create_file(".moon/tasks.yml", serde_yml::to_string(&config).unwrap());
}

sandbox
Expand Down
2 changes: 1 addition & 1 deletion legacy/deno/lang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ miette = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true }
starbase_styles = { workspace = true }
starbase_utils = { workspace = true, features = ["json"] }
starbase_utils = { workspace = true, features = ["editor-config", "json"] }

[lints]
workspace = true
8 changes: 6 additions & 2 deletions legacy/node/lang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ package-lock-json-parser = "0.4.0"
rustc-hash = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true, features = ["preserve_order"] }
serde_yaml = { workspace = true }
serde_yml = { workspace = true }
starbase_styles = { workspace = true }
starbase_utils = { workspace = true, features = ["json", "yaml"] }
starbase_utils = { workspace = true, features = [
"editor-config",
"json",
"yaml",
] }
tracing = { workspace = true }
yarn-lock-parser = "0.10.0"

Expand Down
Loading

0 comments on commit 33b57f3

Please sign in to comment.