From 1e09b2609492c237a74b7ec50b3b703e0cb05ec3 Mon Sep 17 00:00:00 2001 From: H1rono Date: Thu, 11 Jan 2024 18:08:48 +0900 Subject: [PATCH 01/18] Use `#[cfg]` instead of `cfg!` --- type-generator/src/dag.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/type-generator/src/dag.rs b/type-generator/src/dag.rs index 258687e..b749b91 100644 --- a/type-generator/src/dag.rs +++ b/type-generator/src/dag.rs @@ -55,7 +55,8 @@ impl DirectedAcyclicGraph { } } } - if cfg!(debug_assertions) && in_degree.values().any(|&i| i != 0) { + #[cfg(debug_assertions)] + if in_degree.values().any(|&i| i != 0) { // the graph has cycle return Err(self.find_cycle()); } From 1f93ebbdfd2b5eaea42bf56f023d239fdf9ecf32 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 13 Jan 2024 18:25:47 +0000 Subject: [PATCH 02/18] Update Swatinem/rust-cache action to v2.7.2 --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 92ac252..b90bcb2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -28,7 +28,7 @@ jobs: toolchain: ${{ steps.toolchain.outputs.toolchain }} - name: cache dependencies - uses: Swatinem/rust-cache@v2.7.1 + uses: Swatinem/rust-cache@v2.7.2 - name: reviewdog / clippy uses: sksat/action-clippy@v0.4.0 @@ -55,7 +55,7 @@ jobs: toolchain: ${{ steps.toolchain.outputs.toolchain }} - name: cache dependencies - uses: Swatinem/rust-cache@v2.7.1 + uses: Swatinem/rust-cache@v2.7.2 - name: build rustdoc run: | From ca6ccb903bebdb66a717c7fb7a19732fab937e20 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 13 Jan 2024 18:49:52 +0000 Subject: [PATCH 03/18] Update actions/deploy-pages action to v4.0.3 --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b90bcb2..f3748cc 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -93,7 +93,7 @@ jobs: steps: - name: Deploy to GitHub pages id: deployment - uses: actions/deploy-pages@7a9bd943aa5e5175aeb8502edcc6c1c02d398e10 # v4.0.2 + uses: actions/deploy-pages@87c3283f01cd6fe19a0ab93a23b2f6fcba5a8e42 # v4.0.3 semver: runs-on: ubuntu-latest From 3620776a2f2efc25d7cc56e4d3f94c6c42792a16 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 13 Jan 2024 18:55:39 +0000 Subject: [PATCH 04/18] Update dependency rust to v1.75.0 --- rust-toolchain | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-toolchain b/rust-toolchain index 4bd1ede..c1f5c7b 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1,3 +1,3 @@ [toolchain] -channel = "1.74.1" +channel = "1.75.0" components = ["rustfmt", "clippy"] From f174468ff85ec32508794a4d057306d547088175 Mon Sep 17 00:00:00 2001 From: sksat Date: Sun, 14 Jan 2024 04:16:08 +0900 Subject: [PATCH 05/18] clippy --fix --- type-generator/src/dag.rs | 2 +- type-generator/src/frontend.rs | 2 +- type-generator/src/frontend/merge_union_type_lits.rs | 2 +- type-generator/src/transformer/flatten_type.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/type-generator/src/dag.rs b/type-generator/src/dag.rs index b749b91..2edab9d 100644 --- a/type-generator/src/dag.rs +++ b/type-generator/src/dag.rs @@ -19,7 +19,7 @@ impl DirectedAcyclicGraph { fn add_edge(&mut self, from: Node, to: Node) { self.nodes.insert(from); self.nodes.insert(to); - self.edges.entry(from).or_insert(Vec::new()).push(to); + self.edges.entry(from).or_default().push(to); } fn topo_sort(&self) -> Result, Vec> { diff --git a/type-generator/src/frontend.rs b/type-generator/src/frontend.rs index 2867c54..06fe944 100644 --- a/type-generator/src/frontend.rs +++ b/type-generator/src/frontend.rs @@ -120,7 +120,7 @@ pub fn ts_index_signature<'input>( lkm: &mut HashMap>, ) -> RustStructMember { assert!(index.params.len() == 1); - let param = index.params.get(0).unwrap(); + let param = index.params.first().unwrap(); let ident = param.as_ident().expect("key is string"); let mut ctxt = Some(ctxt.clone()); let (_, key_ty) = ts_type_to_rs( diff --git a/type-generator/src/frontend/merge_union_type_lits.rs b/type-generator/src/frontend/merge_union_type_lits.rs index 27bfafa..4fda0e0 100644 --- a/type-generator/src/frontend/merge_union_type_lits.rs +++ b/type-generator/src/frontend/merge_union_type_lits.rs @@ -8,7 +8,7 @@ pub struct Merged<'a> { pub fn merge_union_type_lits<'input>( variants: &[&'input swc_ecma_ast::TsTypeLit], ) -> Merged<'input> { - let mut intersection: Vec<_> = variants.get(0).unwrap().members.iter().collect(); + let mut intersection: Vec<_> = variants.first().unwrap().members.iter().collect(); let mut diffs = vec![vec![]]; for variant in variants[1..].iter() { let mut diff: Vec<_> = variant.members.iter().collect(); diff --git a/type-generator/src/transformer/flatten_type.rs b/type-generator/src/transformer/flatten_type.rs index 98d4597..cdfff6f 100644 --- a/type-generator/src/transformer/flatten_type.rs +++ b/type-generator/src/transformer/flatten_type.rs @@ -10,7 +10,7 @@ pub fn flatten_type(segments: &mut Vec) { segments.retain_mut(|segment| match segment { RustSegment::Struct(s) => { if s.member.len() == 1 { - let r = s.member.get(0).unwrap(); + let r = s.member.first().unwrap(); if r.attr .as_inner() .contains(&RustFieldAttr::Serde(SerdeFieldAttr::Flatten)) From 2726feae762e57632305d6e9baf33ef85f017f03 Mon Sep 17 00:00:00 2001 From: sksat Date: Sun, 14 Jan 2024 04:24:08 +0900 Subject: [PATCH 06/18] specify actions/checkout minor, patch version --- .github/workflows/rust.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f3748cc..5c37d58 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 - name: Get Rust toolchain id: toolchain @@ -43,7 +43,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 - name: Get Rust toolchain id: toolchain @@ -99,6 +99,6 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 - uses: obi1kenobi/cargo-semver-checks-action@v2.2 From 9abf1264cf643a985ac3a5a349841dd8b91399fe Mon Sep 17 00:00:00 2001 From: sksat Date: Sun, 14 Jan 2024 04:27:57 +0900 Subject: [PATCH 07/18] pinning GitHub Actions digests by Renovate --- renovate.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index a3ba9f1..0a8edfc 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,7 @@ { "extends": [ - "config:recommended" + "config:recommended", + "helpers:pinGitHubActionDigests" ], "configMigration": true, "additionalReviewers": [ From 8fbee472cf1cdaa6f827428984e9000a24191b34 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 13 Jan 2024 19:36:16 +0000 Subject: [PATCH 08/18] Pin dependencies --- .github/workflows/actionlint.yml | 4 ++-- .github/workflows/rust.yml | 16 ++++++++-------- .github/workflows/validate-renovate.yml | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index b69a4d9..66c1c66 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -10,10 +10,10 @@ jobs: name: actionlint with reviewdog runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - name: actionlint - uses: reviewdog/action-actionlint@v1.40.0 + uses: reviewdog/action-actionlint@9ccda195fd3a290c8596db7f1958c897deaa8c76 # v1.40.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5c37d58..e2bb009 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Get Rust toolchain id: toolchain @@ -28,10 +28,10 @@ jobs: toolchain: ${{ steps.toolchain.outputs.toolchain }} - name: cache dependencies - uses: Swatinem/rust-cache@v2.7.2 + uses: Swatinem/rust-cache@a22603398250b864f7190077025cf752307154dc # v2.7.2 - name: reviewdog / clippy - uses: sksat/action-clippy@v0.4.0 + uses: sksat/action-clippy@251e5ac439e43b83a33b7997bb12d34306ba2394 # v0.4.0 with: reporter: github-pr-review clippy_flags: --all-features @@ -43,7 +43,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Get Rust toolchain id: toolchain @@ -55,7 +55,7 @@ jobs: toolchain: ${{ steps.toolchain.outputs.toolchain }} - name: cache dependencies - uses: Swatinem/rust-cache@v2.7.2 + uses: Swatinem/rust-cache@a22603398250b864f7190077025cf752307154dc # v2.7.2 - name: build rustdoc run: | @@ -74,7 +74,7 @@ jobs: done - name: arcive rustdoc - uses: actions/upload-pages-artifact@v3.0.0 + uses: actions/upload-pages-artifact@0252fc4ba7626f0298f0cf00902a25c6afc77fa8 # v3.0.0 with: path: ./target/doc @@ -99,6 +99,6 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - uses: obi1kenobi/cargo-semver-checks-action@v2.2 + - uses: obi1kenobi/cargo-semver-checks-action@e275dda72e250d4df5b564e969e1348d67fefa52 # v2.2 diff --git a/.github/workflows/validate-renovate.yml b/.github/workflows/validate-renovate.yml index b8af110..73a4552 100644 --- a/.github/workflows/validate-renovate.yml +++ b/.github/workflows/validate-renovate.yml @@ -11,8 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4.0.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - name: install run: | @@ -28,8 +28,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4.0.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - name: Install Renovate CLI run: npm install renovate From 0fc3cf0e07578c3ce07e0f1e768ab44cf7aee4d0 Mon Sep 17 00:00:00 2001 From: sksat Date: Sun, 14 Jan 2024 04:37:53 +0900 Subject: [PATCH 09/18] Apply suggestions from code review specify actions/checkout minor, patch version 2 --- .github/workflows/actionlint.yml | 2 +- .github/workflows/validate-renovate.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index 66c1c66..9ca2bc2 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -10,7 +10,7 @@ jobs: name: actionlint with reviewdog runs-on: ubuntu-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: actionlint uses: reviewdog/action-actionlint@9ccda195fd3a290c8596db7f1958c897deaa8c76 # v1.40.0 diff --git a/.github/workflows/validate-renovate.yml b/.github/workflows/validate-renovate.yml index 73a4552..a63064a 100644 --- a/.github/workflows/validate-renovate.yml +++ b/.github/workflows/validate-renovate.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - name: install @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - name: Install Renovate CLI From 9cf2fb9318815a6d771aff408dc68c750959850a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 13 Jan 2024 19:41:40 +0000 Subject: [PATCH 10/18] Update Rust crate serde to 1.0.195 --- Cargo.lock | 50 +++++++++++++++++++-------------------- github-webhook/Cargo.toml | 2 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 093b2a8..680254d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -60,7 +60,7 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.42", + "syn 2.0.48", ] [[package]] @@ -287,7 +287,7 @@ checksum = "3a0b11eeb173ce52f84ebd943d42e58813a2ebb78a6a3ff0a243b71c5199cd7b" dependencies = [ "proc-macro2", "swc_macros_common", - "syn 2.0.42", + "syn 2.0.48", ] [[package]] @@ -546,7 +546,7 @@ dependencies = [ "Inflector", "proc-macro2", "quote", - "syn 2.0.42", + "syn 2.0.48", ] [[package]] @@ -723,7 +723,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.42", + "syn 2.0.48", ] [[package]] @@ -780,7 +780,7 @@ dependencies = [ "phf_shared", "proc-macro2", "quote", - "syn 2.0.42", + "syn 2.0.48", ] [[package]] @@ -818,7 +818,7 @@ checksum = "52a40bc70c2c58040d2d8b167ba9a5ff59fc9dab7ad44771cfde3dcfde7a09c6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.42", + "syn 2.0.48", ] [[package]] @@ -847,9 +847,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.71" +version = "1.0.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75cb1540fadbd5b8fbccc4dddad2734eba435053f725621c070711a14bb5f4b8" +checksum = "95fc56cda0b5c3325f5fbbd7ff9fda9e02bb00bb3dac51252d2f1bfa1cb8cc8c" dependencies = [ "unicode-ident", ] @@ -865,9 +865,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.33" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" +checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" dependencies = [ "proc-macro2", ] @@ -1043,22 +1043,22 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.193" +version = "1.0.195" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25dd9975e68d0cb5aa1120c288333fc98731bd1dd12f561e468ea4728c042b89" +checksum = "63261df402c67811e9ac6def069e4786148c4563f4b50fd4bf30aa370d626b02" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.193" +version = "1.0.195" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3" +checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.42", + "syn 2.0.48", ] [[package]] @@ -1154,7 +1154,7 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.42", + "syn 2.0.48", ] [[package]] @@ -1273,7 +1273,7 @@ checksum = "695a1d8b461033d32429b5befbf0ad4d7a2c4d6ba9cd5ba4e0645c615839e8e4" dependencies = [ "proc-macro2", "quote", - "syn 2.0.42", + "syn 2.0.48", ] [[package]] @@ -1284,7 +1284,7 @@ checksum = "50176cfc1cbc8bb22f41c6fe9d1ec53fbe057001219b5954961b8ad0f336fce9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.42", + "syn 2.0.48", ] [[package]] @@ -1308,7 +1308,7 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.42", + "syn 2.0.48", ] [[package]] @@ -1324,9 +1324,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.42" +version = "2.0.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b7d0a2c048d661a1a59fcd7355baa232f7ed34e0ee4df2eef3c1c1c0d3852d8" +checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" dependencies = [ "proc-macro2", "quote", @@ -1402,7 +1402,7 @@ checksum = "01742297787513b79cf8e29d1056ede1313e2420b7b3b15d0a768b4921f549df" dependencies = [ "proc-macro2", "quote", - "syn 2.0.42", + "syn 2.0.48", ] [[package]] @@ -1485,7 +1485,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.42", + "syn 2.0.48", ] [[package]] @@ -1613,7 +1613,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.42", + "syn 2.0.48", "wasm-bindgen-shared", ] @@ -1647,7 +1647,7 @@ checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283" dependencies = [ "proc-macro2", "quote", - "syn 2.0.42", + "syn 2.0.48", "wasm-bindgen-backend", "wasm-bindgen-shared", ] diff --git a/github-webhook/Cargo.toml b/github-webhook/Cargo.toml index 8aece78..62d4a48 100644 --- a/github-webhook/Cargo.toml +++ b/github-webhook/Cargo.toml @@ -24,7 +24,7 @@ anyhow = "1.0.76" cargo_metadata = "0.18.1" [dependencies] -serde = { version = "1.0.193", features = ["derive"] } +serde = { version = "1.0.195", features = ["derive"] } serde_json = "1.0.108" [dev-dependencies] From 3996ccad924802c012890af5e13e06464642e0f0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 13 Jan 2024 19:45:16 +0000 Subject: [PATCH 11/18] Update Rust crate serde_json to 1.0.111 --- Cargo.lock | 4 ++-- github-webhook/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 680254d..f947cef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1063,9 +1063,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.108" +version = "1.0.111" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b" +checksum = "176e46fa42316f18edd598015a5166857fc835ec732f5215eac6b7bdbf0a84f4" dependencies = [ "itoa", "ryu", diff --git a/github-webhook/Cargo.toml b/github-webhook/Cargo.toml index 62d4a48..a98d6c2 100644 --- a/github-webhook/Cargo.toml +++ b/github-webhook/Cargo.toml @@ -25,7 +25,7 @@ cargo_metadata = "0.18.1" [dependencies] serde = { version = "1.0.195", features = ["derive"] } -serde_json = "1.0.108" +serde_json = "1.0.111" [dev-dependencies] reqwest = "0.11.23" From 40737dbd984c1e76c7780d4c18a083e3b6f7b535 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 13 Jan 2024 19:47:42 +0000 Subject: [PATCH 12/18] Update Rust crate anyhow to 1.0.79 --- Cargo.lock | 4 ++-- dts-downloader/Cargo.toml | 2 +- github-webhook/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f947cef..8ca12f5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -47,9 +47,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.76" +version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59d2a3357dde987206219e78ecfbbb6e8dad06cbb65292758d3270e6254f7355" +checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca" [[package]] name = "ast_node" diff --git a/dts-downloader/Cargo.toml b/dts-downloader/Cargo.toml index 8aededd..b6ccc43 100644 --- a/dts-downloader/Cargo.toml +++ b/dts-downloader/Cargo.toml @@ -11,5 +11,5 @@ license = "MIT" [dependencies] github-webhook-type-generator.workspace = true -anyhow = "1.0.76" +anyhow = "1.0.79" reqwest = { version = "0.11.23", features = ["blocking"] } diff --git a/github-webhook/Cargo.toml b/github-webhook/Cargo.toml index a98d6c2..039d497 100644 --- a/github-webhook/Cargo.toml +++ b/github-webhook/Cargo.toml @@ -20,7 +20,7 @@ version = "v7.3.1" [build-dependencies] github-webhook-dts-downloader.workspace = true -anyhow = "1.0.76" +anyhow = "1.0.79" cargo_metadata = "0.18.1" [dependencies] From c5e126b5fb9f311740d628d5f1c3f5d311addbc3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 13 Jan 2024 19:53:28 +0000 Subject: [PATCH 13/18] Update Rust crate quote to 1.0.35 --- type-generator/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/type-generator/Cargo.toml b/type-generator/Cargo.toml index 0297f92..2ae77b1 100644 --- a/type-generator/Cargo.toml +++ b/type-generator/Cargo.toml @@ -15,7 +15,7 @@ serde = [] [dependencies] proc-macro2 = "1.0.71" -quote = "1.0.33" +quote = "1.0.35" structopt = "0.3.26" swc_common = { version = "0.33.12", features = ["tty-emitter"]} swc_ecma_ast = "0.110.15" From 2c771ed897ad423a9cd0bab1501ceb0c4c6595ca Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 13 Jan 2024 19:56:54 +0000 Subject: [PATCH 14/18] Update Rust crate proc-macro2 to 1.0.76 --- type-generator/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/type-generator/Cargo.toml b/type-generator/Cargo.toml index 2ae77b1..31f3d5f 100644 --- a/type-generator/Cargo.toml +++ b/type-generator/Cargo.toml @@ -14,7 +14,7 @@ default = ["serde"] serde = [] [dependencies] -proc-macro2 = "1.0.71" +proc-macro2 = "1.0.76" quote = "1.0.35" structopt = "0.3.26" swc_common = { version = "0.33.12", features = ["tty-emitter"]} From 244d05455b009172796fbd50f3487a5a8ade3671 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 13 Jan 2024 20:00:29 +0000 Subject: [PATCH 15/18] Update swc monorepo --- Cargo.lock | 8 ++++---- type-generator/Cargo.toml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8ca12f5..f81728e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1228,9 +1228,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.110.15" +version = "0.110.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2aa3e4c43a071a747bf3e18a5423d47aab54048fdedab550d7f3c662127ba4d8" +checksum = "79401a45da704f4fb2552c5bf86ee2198e8636b121cb81f8036848a300edd53b" dependencies = [ "bitflags 2.4.1", "is-macro", @@ -1245,9 +1245,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.141.33" +version = "0.141.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d643ce57be7c4808cd7a924201aa256188aa2ef9604248cf180c4c3e867b3fd6" +checksum = "c4d17401dd95048a6a62b777d533c0999dabdd531ef9d667e22f8ae2a2a0d294" dependencies = [ "either", "new_debug_unreachable", diff --git a/type-generator/Cargo.toml b/type-generator/Cargo.toml index 31f3d5f..c6ae00d 100644 --- a/type-generator/Cargo.toml +++ b/type-generator/Cargo.toml @@ -18,6 +18,6 @@ proc-macro2 = "1.0.76" quote = "1.0.35" structopt = "0.3.26" swc_common = { version = "0.33.12", features = ["tty-emitter"]} -swc_ecma_ast = "0.110.15" -swc_ecma_parser = "0.141.33" +swc_ecma_ast = "0.110.17" +swc_ecma_parser = "0.141.37" once_cell = "1.19.0" From d9a1b0cb5d74be60c88915122a262ff68185adad Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 13 Jan 2024 20:03:53 +0000 Subject: [PATCH 16/18] Lock file maintenance --- Cargo.lock | 116 ++++++++++++++++++++++++++--------------------------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f81728e..6c42aa0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,9 +97,9 @@ dependencies = [ [[package]] name = "base64" -version = "0.21.5" +version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] name = "better_scoped_tls" @@ -145,9 +145,9 @@ dependencies = [ [[package]] name = "cargo-platform" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e34637b3140142bdf929fb439e8aa4ebad7651ebf7b1080b3930aa16ac1459ff" +checksum = "ceed8ef69d8518a5dda55c07425450b58a4e1946f4951eab6d7191ee86c2443d" dependencies = [ "serde", ] @@ -292,42 +292,42 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff4dd66668b557604244583e3e1e1eada8c5c2e96a6d0d6653ede395b78bbacb" +checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" dependencies = [ "futures-core", ] [[package]] name = "futures-core" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c" +checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" [[package]] name = "futures-io" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bf34a163b5c4c52d0478a4d757da8fb65cabef42ba90515efee0f6f9fa45aaa" +checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" [[package]] name = "futures-sink" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e36d3378ee38c2a36ad710c5d30c2911d752cb941c00c72dbabfb786a7970817" +checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" [[package]] name = "futures-task" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efd193069b0ddadc69c46389b740bbccdd97203899b48d09c5f7969591d6bae2" +checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" [[package]] name = "futures-util" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a19526d624e703a3179b3d322efec918b6246ea0fa51d41124525f00f1cc8104" +checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ "futures-core", "futures-io", @@ -380,9 +380,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.22" +version = "0.3.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d6250322ef6e60f93f9a2162799302cd6f68f79f6e5d85c8c16f14d1d958178" +checksum = "b553656127a00601c8ae5590fcfdc118e4083a7924b6cf4ffc1ea4b99dc429d7" dependencies = [ "bytes", "fnv", @@ -429,9 +429,9 @@ checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" [[package]] name = "hstr" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de90d3db62411eb62eddabe402d706ac4970f7ac8d088c05f11069cad9be9857" +checksum = "17fafeca18cf0927e23ea44d7a5189c10536279dfe9094e0dfa953053fbb5377" dependencies = [ "new_debug_unreachable", "once_cell", @@ -539,9 +539,9 @@ checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" [[package]] name = "is-macro" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b75828adcb53122ef5ea649a39f50f82d94b754099bf6331b32e255e1891e8fb" +checksum = "59a85abdc13717906baccb5a1e435556ce0df215f242892f721dff62bf25288f" dependencies = [ "Inflector", "proc-macro2", @@ -557,9 +557,9 @@ checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" [[package]] name = "js-sys" -version = "0.3.66" +version = "0.3.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cee9c64da59eae3b50095c18d3e74f8b73c0b86d2792824ff01bbce68ba229ca" +checksum = "9a1d36f1235bc969acba30b7f5990b864423a6068a10f7c90ae8f0112e3a59d1" dependencies = [ "wasm-bindgen", ] @@ -572,9 +572,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.151" +version = "0.2.152" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4" +checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" [[package]] name = "linux-raw-sys" @@ -590,9 +590,9 @@ checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" [[package]] name = "memchr" -version = "2.6.4" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" +checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" [[package]] name = "mime" @@ -977,9 +977,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustix" -version = "0.38.28" +version = "0.38.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72e572a5e8ca657d7366229cdde4bd14c4eb5499a9573d4d366fe1b599daa316" +checksum = "322394588aaf33c24007e8bb3238ee3e4c5c09c084ab32bc73890b99ff326bca" dependencies = [ "bitflags 2.4.1", "errno", @@ -996,11 +996,11 @@ checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" [[package]] name = "schannel" -version = "0.1.22" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" +checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -1034,9 +1034,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.20" +version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" +checksum = "b97ed7a9823b74f99c7742f5336af7be5ecd3eeafcb1507d1fa93347b1d589b0" dependencies = [ "serde", ] @@ -1356,22 +1356,22 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.8.1" +version = "3.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef1adac450ad7f4b3c28589471ade84f25f731a7a0fe30d71dfa9f60fd808e5" +checksum = "01ce4141aa927a6d1bd34a041795abd0db1cccba5d5f24b009f694bdf3a1f3fa" dependencies = [ "cfg-if", "fastrand", "redox_syscall", "rustix", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "termcolor" -version = "1.4.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff1bc3d3f05aff0403e8ac0d92ced918ec05b666a43f83297ccef5bea8a3d449" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" dependencies = [ "winapi-util", ] @@ -1387,18 +1387,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.51" +version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f11c217e1416d6f036b870f14e0413d480dbf28edbee1f877abaf0206af43bb7" +checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.51" +version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01742297787513b79cf8e29d1056ede1313e2420b7b3b15d0a768b4921f549df" +checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" dependencies = [ "proc-macro2", "quote", @@ -1594,9 +1594,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.89" +version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ed0d4f68a3015cc185aff4db9506a015f4b96f95303897bfa23f846db54064e" +checksum = "b1223296a201415c7fad14792dbefaace9bd52b62d33453ade1c5b5f07555406" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -1604,9 +1604,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.89" +version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b56f625e64f3a1084ded111c4d5f477df9f8c92df113852fa5a374dbda78826" +checksum = "fcdc935b63408d58a32f8cc9738a0bffd8f05cc7c002086c6ef20b7312ad9dcd" dependencies = [ "bumpalo", "log", @@ -1619,9 +1619,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.39" +version = "0.4.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac36a15a220124ac510204aec1c3e5db8a22ab06fd6706d881dc6149f8ed9a12" +checksum = "bde2032aeb86bdfaecc8b261eef3cba735cc426c1f3a3416d1e0791be95fc461" dependencies = [ "cfg-if", "js-sys", @@ -1631,9 +1631,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.89" +version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0162dbf37223cd2afce98f3d0785506dcb8d266223983e4b5b525859e6e182b2" +checksum = "3e4c238561b2d428924c49815533a8b9121c664599558a5d9ec51f8a1740a999" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -1641,9 +1641,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.89" +version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283" +checksum = "bae1abb6806dc1ad9e560ed242107c0f6c84335f1749dd4e8ddb012ebd5e25a7" dependencies = [ "proc-macro2", "quote", @@ -1654,15 +1654,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.89" +version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ab9b36309365056cd639da3134bf87fa8f3d86008abf99e612384a6eecd459f" +checksum = "4d91413b1c31d7539ba5ef2451af3f0b833a005eb27a631cec32bc0635a8602b" [[package]] name = "web-sys" -version = "0.3.66" +version = "0.3.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50c24a44ec86bb68fbecd1b3efed7e85ea5621b39b35ef2766b66cd984f8010f" +checksum = "58cd2333b6e0be7a39605f0e255892fd7418a682d8da8fe042fe25128794d2ed" dependencies = [ "js-sys", "wasm-bindgen", From 7b08bdbe13186afe71fa2ca7598b7f67f12c7d0b Mon Sep 17 00:00:00 2001 From: sksat Date: Sun, 14 Jan 2024 05:11:03 +0900 Subject: [PATCH 17/18] nihongo de OK --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index efb2a95..6f7f75f 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,6 @@ - [API documentation](https://sksat.github.io/github-webhook-rs/github_webhook) - [Release notes](https://github.com/sksat/github-webhook-rs/releases) + +## Contiribution +日本語で OK From 0316d0c64444a345f7755c5c8443b949c3903864 Mon Sep 17 00:00:00 2001 From: sksat Date: Sun, 14 Jan 2024 05:17:43 +0900 Subject: [PATCH 18/18] bump version to 0.5.2 --- Cargo.lock | 6 +++--- Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6c42aa0..3d19b91 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -346,7 +346,7 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "github-webhook" -version = "0.5.1" +version = "0.5.2" dependencies = [ "anyhow", "cargo_metadata", @@ -358,7 +358,7 @@ dependencies = [ [[package]] name = "github-webhook-dts-downloader" -version = "0.5.1" +version = "0.5.2" dependencies = [ "anyhow", "github-webhook-type-generator", @@ -367,7 +367,7 @@ dependencies = [ [[package]] name = "github-webhook-type-generator" -version = "0.5.1" +version = "0.5.2" dependencies = [ "once_cell", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index df4fca0..9014dae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ members = [ ] [workspace.package] -version = "0.5.1" +version = "0.5.2" repository = "https://github.com/sksat/github-webhook-rs" authors = ["sksat ", "s-ylide"]