From 146004129e339dc20692c7b99dc59d7d653ce9d7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 3 May 2023 19:47:36 +0200 Subject: [PATCH 01/37] fix(deps): update rust crate iota-crypto to 0.18 (#342) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 6 +++--- plugins/stronghold/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 53f2709f..c4d74456 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2003,9 +2003,9 @@ dependencies = [ [[package]] name = "iota-crypto" -version = "0.17.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef4f42fc99281d9677950005223e2d0b122f5b08da6c92d91833017b279373db" +checksum = "0a08e58104d88c45ec2c7de6112a35ea33d70f497ff89c396374e89c6dcfaf3c" dependencies = [ "autocfg", ] @@ -4442,7 +4442,7 @@ name = "tauri-plugin-stronghold" version = "0.0.0" dependencies = [ "hex", - "iota-crypto 0.17.0", + "iota-crypto 0.18.0", "iota_stronghold", "log", "rand 0.8.5", diff --git a/plugins/stronghold/Cargo.toml b/plugins/stronghold/Cargo.toml index fb3ac3b8..480eed5c 100644 --- a/plugins/stronghold/Cargo.toml +++ b/plugins/stronghold/Cargo.toml @@ -16,7 +16,7 @@ tauri.workspace = true log.workspace = true thiserror.workspace = true iota_stronghold = "1" -iota-crypto = "0.17" +iota-crypto = "0.18" hex = "0.4" zeroize = { version = "1", features = ["zeroize_derive"] } From 5e5221e0c3484397d16de3c7b47e33a4a9ae1ca0 Mon Sep 17 00:00:00 2001 From: Tai Zeming Date: Tue, 9 May 2023 00:59:56 +0800 Subject: [PATCH 02/37] fix(log): Avoid type conflict (#347) * Avoid type conflict * Prettier format * Make extras optional * Rename extras to keyValues * Remove empty initial object --- plugins/log/guest-js/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/log/guest-js/index.ts b/plugins/log/guest-js/index.ts index 4fb4b0c9..77ab7009 100644 --- a/plugins/log/guest-js/index.ts +++ b/plugins/log/guest-js/index.ts @@ -4,7 +4,8 @@ import { listen, UnlistenFn } from "@tauri-apps/api/event"; export type LogOptions = { file?: string; line?: number; -} & Record; + keyValues?: Record; +}; enum LogLevel { /** @@ -50,7 +51,7 @@ async function log( return name.length > 0 && location !== "[native code]"; }); - const { file, line, ...keyValues } = options ?? {}; + const { file, line, keyValues } = options ?? {}; let location = filtered?.[0]?.filter((v) => v.length > 0).join("@"); if (location === "Error") { From e46acc74be5681e0e1f22e9b08f9ba39140ff1b2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 9 May 2023 11:42:33 +0200 Subject: [PATCH 03/37] fix(deps): update rust crate iota-crypto to 0.19 (#349) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 6 +++--- plugins/stronghold/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c4d74456..dc63b5a8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2003,9 +2003,9 @@ dependencies = [ [[package]] name = "iota-crypto" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a08e58104d88c45ec2c7de6112a35ea33d70f497ff89c396374e89c6dcfaf3c" +checksum = "67d2bc02591d8a0427a8650204c259d0cad04d6cde0b6a4683906dc0b6dd3887" dependencies = [ "autocfg", ] @@ -4442,7 +4442,7 @@ name = "tauri-plugin-stronghold" version = "0.0.0" dependencies = [ "hex", - "iota-crypto 0.18.0", + "iota-crypto 0.19.0", "iota_stronghold", "log", "rand 0.8.5", diff --git a/plugins/stronghold/Cargo.toml b/plugins/stronghold/Cargo.toml index 480eed5c..09b3fd59 100644 --- a/plugins/stronghold/Cargo.toml +++ b/plugins/stronghold/Cargo.toml @@ -16,7 +16,7 @@ tauri.workspace = true log.workspace = true thiserror.workspace = true iota_stronghold = "1" -iota-crypto = "0.18" +iota-crypto = "0.19" hex = "0.4" zeroize = { version = "1", features = ["zeroize_derive"] } From bc0ea5a74f0823e3f8f12f08f58ce0583cdc9bd5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 May 2023 16:39:29 +0200 Subject: [PATCH 04/37] fix(deps): update rust crate tokio-tungstenite to 0.19 (#358) * fix(deps): update rust crate tokio-tungstenite to 0.19 * fix compile error --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Fabian-Lars --- Cargo.lock | 145 ++++++++++-------- plugins/websocket/Cargo.toml | 2 +- .../examples/svelte-app/src-tauri/Cargo.lock | 136 ++++++++-------- .../examples/svelte-app/src-tauri/Cargo.toml | 2 +- plugins/websocket/src/lib.rs | 2 +- 5 files changed, 155 insertions(+), 132 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dc63b5a8..743c68f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -183,7 +183,7 @@ checksum = "3b015a331cc64ebd1774ba119538573603427eaace0a1950c423ab971f903796" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -200,7 +200,7 @@ checksum = "1cd7fce9ba8c3c042128ce72d8b2ddbf3a05747efb67ea0313c635e10bda47a2" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -802,7 +802,7 @@ dependencies = [ "proc-macro2", "quote", "smallvec", - "syn", + "syn 1.0.107", ] [[package]] @@ -812,7 +812,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dfae75de57f2b2e85e8768c3ea840fd159c8f33e2b6522c7835b7abac81be16e" dependencies = [ "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -822,7 +822,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d2301688392eb071b0bf1a37be05c469d3cc4dbbd95df672fe28ab021e6a096" dependencies = [ "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -877,7 +877,7 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn", + "syn 1.0.107", ] [[package]] @@ -894,7 +894,7 @@ checksum = "357f40d1f06a24b60ae1fe122542c1fb05d28d32acb2aed064e84bc2ad1e252e" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -918,7 +918,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn", + "syn 1.0.107", ] [[package]] @@ -929,9 +929,15 @@ checksum = "9c972679f83bdf9c42bd905396b6c3588a843a17f0f16dfcfa3e2c5d57441835" dependencies = [ "darling_core", "quote", - "syn", + "syn 1.0.107", ] +[[package]] +name = "data-encoding" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23d8666cb01533c39dde32bcbab8e227b4ed6679b2c925eba05feabea39508fb" + [[package]] name = "der" version = "0.5.1" @@ -951,7 +957,7 @@ checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -964,7 +970,7 @@ dependencies = [ "proc-macro2", "quote", "rustc_version 0.4.0", - "syn", + "syn 1.0.107", ] [[package]] @@ -1124,7 +1130,7 @@ checksum = "f58dc3c5e468259f19f2d46304a6b28f1c3d034442e14b322d2b850e36f6d5ae" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -1262,9 +1268,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e5317663a9089767a1ec00a487df42e0ca174b61b4483213ac24448e4664df5" +checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" dependencies = [ "futures-core", "futures-sink", @@ -1272,9 +1278,9 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec90ff4d0fe1f57d600049061dc6bb68ed03c7d2fbd697274c41805dcb3f8608" +checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" [[package]] name = "futures-executor" @@ -1300,9 +1306,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfb8371b6fb2aeb2d280374607aeabfc99d95c72edfe51692e42d3d7f0d08531" +checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" [[package]] name = "futures-lite" @@ -1321,32 +1327,32 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95a73af87da33b5acf53acfebdc339fe592ecf5357ac7c0a7734ab9d8c876a70" +checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.16", ] [[package]] name = "futures-sink" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f310820bb3e8cfd46c80db4d7fb8353e15dfff853a127158425f31e0be6c8364" +checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" [[package]] name = "futures-task" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf79a1bf610b10f42aea489289c5a2c478a786509693b80cd39c44ccd936366" +checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" [[package]] name = "futures-util" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c1d6de3acfef38d2be4b1f543f553131788603495be83da675e180c8d6b7bd1" +checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" dependencies = [ "futures-channel", "futures-core", @@ -1560,7 +1566,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -1655,7 +1661,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -1766,7 +1772,7 @@ dependencies = [ "markup5ever", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -2652,7 +2658,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -2727,7 +2733,7 @@ checksum = "b501e44f11665960c7e7fcf062c7d96a14ade4aa98116c004b2e37b5be7d736c" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -2947,7 +2953,7 @@ dependencies = [ "proc-macro-hack", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -2961,7 +2967,7 @@ dependencies = [ "proc-macro-hack", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -2999,7 +3005,7 @@ checksum = "069bdb1e05adc7a8990dce9cc75370895fbe4e3d58b9b73bf1aee56359344a55" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -3136,7 +3142,7 @@ dependencies = [ "proc-macro-error-attr", "proc-macro2", "quote", - "syn", + "syn 1.0.107", "version_check", ] @@ -3159,9 +3165,9 @@ checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" [[package]] name = "proc-macro2" -version = "1.0.50" +version = "1.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ef7d57beacfaf2d8aee5937dab7b7f28de3cb8b1828479bb5de2a7106f2bae2" +checksum = "c4ec6d5fe0b140acb27c9a0444118cf55bfbb4e0b259739429abb4521dd67c16" dependencies = [ "unicode-ident", ] @@ -3183,9 +3189,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.23" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" +checksum = "8f4f29d145265ec1c483c7c654450edde0bfe043d3938d6972630663356d9500" dependencies = [ "proc-macro2", ] @@ -3640,7 +3646,7 @@ checksum = "af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -3662,7 +3668,7 @@ checksum = "9a5ec9fa74a20ebbe5d9ac23dac1fc96ba0ecfe9f50f2843b52e537b10fbcb4e" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -3696,7 +3702,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -3718,7 +3724,7 @@ checksum = "74064874e9f6a15f04c1f3cb627902d0e6b410abbf36668afa873c61889f1763" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -3957,7 +3963,7 @@ dependencies = [ "sha2 0.10.6", "sqlx-core", "sqlx-rt", - "syn", + "syn 1.0.107", "url", ] @@ -4037,7 +4043,7 @@ checksum = "2835db23c4724c05a2f85b81c4681f4aa8ea158edc8a7f4ad791c916fb766c2e" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -4110,6 +4116,17 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "syn" +version = "2.0.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6f671d4b5ffdb8eadec19c0ae67fe2639df8684bd7bc4b83d986b8db549cf01" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "synstructure" version = "0.12.6" @@ -4118,7 +4135,7 @@ checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", "unicode-xid", ] @@ -4286,7 +4303,7 @@ dependencies = [ "heck 0.4.0", "proc-macro2", "quote", - "syn", + "syn 1.0.107", "tauri-codegen", "tauri-utils", ] @@ -4623,7 +4640,7 @@ checksum = "1fb327af4685e4d03fa8cbcf1716380da910eeb2bb8be417e7f9fd3fb164f36f" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -4721,9 +4738,9 @@ dependencies = [ [[package]] name = "tokio-native-tls" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" dependencies = [ "native-tls", "tokio", @@ -4753,9 +4770,9 @@ dependencies = [ [[package]] name = "tokio-tungstenite" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54319c93411147bced34cb5609a80e0a8e44c5999c93903a81cd866630ec0bfd" +checksum = "ec509ac96e9a0c43427c74f003127d953a265737636129424288d27cb5c4b12c" dependencies = [ "futures-util", "log", @@ -4831,7 +4848,7 @@ checksum = "4017f8f45139870ca7e672686113917c71c7a6e02d4924eda67186083c03081a" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -4890,13 +4907,13 @@ checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" [[package]] name = "tungstenite" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30ee6ab729cd4cf0fd55218530c4522ed30b7b6081752839b68fcec8d0960788" +checksum = "15fba1a6d6bb030745759a9a2a588bfe8490fc8b4751a277db3a0be1c9ebbf67" dependencies = [ - "base64 0.13.1", "byteorder", "bytes 1.4.0", + "data-encoding", "http", "httparse", "log", @@ -5162,7 +5179,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn", + "syn 1.0.107", "wasm-bindgen-shared", ] @@ -5196,7 +5213,7 @@ checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -5316,7 +5333,7 @@ checksum = "eaebe196c01691db62e9e4ca52c5ef1e4fd837dcae27dae3ada599b5a8fd05ac" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -5427,7 +5444,7 @@ version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba01f98f509cb5dc05f4e5fc95e535f78260f15fea8fe1a8abdd08f774f1cee7" dependencies = [ - "syn", + "syn 1.0.107", "windows-tokens", ] @@ -5762,7 +5779,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn", + "syn 1.0.107", ] [[package]] @@ -5793,7 +5810,7 @@ checksum = "44bf07cb3e50ea2003396695d58bf46bc9887a1f362260446fad6bc4e79bd36c" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", "synstructure", ] @@ -5820,5 +5837,5 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] diff --git a/plugins/websocket/Cargo.toml b/plugins/websocket/Cargo.toml index 37eafb5d..64bea6d7 100644 --- a/plugins/websocket/Cargo.toml +++ b/plugins/websocket/Cargo.toml @@ -18,4 +18,4 @@ thiserror.workspace = true rand = "0.8" futures-util = "0.3" tokio = { version = "1", features = ["net", "sync"] } -tokio-tungstenite = { version = "0.18", features = ["native-tls"] } +tokio-tungstenite = { version = "0.19", features = ["native-tls"] } diff --git a/plugins/websocket/examples/svelte-app/src-tauri/Cargo.lock b/plugins/websocket/examples/svelte-app/src-tauri/Cargo.lock index efab7176..d0e8a01c 100644 --- a/plugins/websocket/examples/svelte-app/src-tauri/Cargo.lock +++ b/plugins/websocket/examples/svelte-app/src-tauri/Cargo.lock @@ -384,7 +384,7 @@ dependencies = [ "proc-macro2", "quote", "smallvec", - "syn", + "syn 1.0.107", ] [[package]] @@ -394,7 +394,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dfae75de57f2b2e85e8768c3ea840fd159c8f33e2b6522c7835b7abac81be16e" dependencies = [ "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -404,7 +404,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccc0a48a9b826acdf4028595adc9db92caea352f7af011a3034acd172a52a0aa" dependencies = [ "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -434,7 +434,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn", + "syn 1.0.107", ] [[package]] @@ -445,9 +445,15 @@ checksum = "72c41b3b7352feb3211a0d743dc5700a4e3b60f51bd2b368892d1e0f9a95f44b" dependencies = [ "darling_core", "quote", - "syn", + "syn 1.0.107", ] +[[package]] +name = "data-encoding" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23d8666cb01533c39dde32bcbab8e227b4ed6679b2c925eba05feabea39508fb" + [[package]] name = "derivative" version = "2.2.0" @@ -456,7 +462,7 @@ checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -469,7 +475,7 @@ dependencies = [ "proc-macro2", "quote", "rustc_version", - "syn", + "syn 1.0.107", ] [[package]] @@ -631,9 +637,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.16" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74ed2411805f6e4e3d9bc904c95d5d423b89b3b25dc0250aa74729de20629ff9" +checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" dependencies = [ "futures-core", "futures-sink", @@ -641,9 +647,9 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.16" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af51b1b4a7fdff033703db39de8802c673eb91855f2e0d47dcf3bf2c0ef01f99" +checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" [[package]] name = "futures-executor" @@ -658,9 +664,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.16" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b0e06c393068f3a6ef246c75cdca793d6a46347e75286933e5e75fd2fd11582" +checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" [[package]] name = "futures-lite" @@ -679,36 +685,33 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.16" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c54913bae956fb8df7f4dc6fc90362aa72e69148e3f39041fbe8742d21e0ac57" +checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ - "autocfg", - "proc-macro-hack", "proc-macro2", "quote", - "syn", + "syn 2.0.16", ] [[package]] name = "futures-sink" -version = "0.3.16" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0f30aaa67363d119812743aa5f33c201a7a66329f97d1a887022971feea4b53" +checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" [[package]] name = "futures-task" -version = "0.3.16" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbe54a98670017f3be909561f6ad13e810d9a51f3f061b902062ca3da80799f2" +checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" [[package]] name = "futures-util" -version = "0.3.16" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67eb846bfd58e44a8481a00049e82c43e0ccb5d61f8dc071057cb19249dd4d78" +checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" dependencies = [ - "autocfg", "futures-channel", "futures-core", "futures-io", @@ -718,8 +721,6 @@ dependencies = [ "memchr", "pin-project-lite", "pin-utils", - "proc-macro-hack", - "proc-macro-nested", "slab", ] @@ -911,7 +912,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -1006,7 +1007,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -1050,7 +1051,7 @@ dependencies = [ "markup5ever", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -1286,9 +1287,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.14" +version = "0.4.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" +checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" dependencies = [ "cfg-if", ] @@ -1389,9 +1390,9 @@ dependencies = [ [[package]] name = "native-tls" -version = "0.2.7" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8d96b2e1c8da3957d58100b09f102c6d9cfdfced01b7ec5a8974044bb09dbd4" +checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e" dependencies = [ "lazy_static", "libc", @@ -1504,7 +1505,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -1712,7 +1713,7 @@ dependencies = [ "proc-macro-hack", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -1726,7 +1727,7 @@ dependencies = [ "proc-macro-hack", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -1822,7 +1823,7 @@ dependencies = [ "proc-macro-error-attr", "proc-macro2", "quote", - "syn", + "syn 1.0.107", "version_check", ] @@ -1843,26 +1844,20 @@ version = "0.5.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" -[[package]] -name = "proc-macro-nested" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" - [[package]] name = "proc-macro2" -version = "1.0.49" +version = "1.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" +checksum = "c4ec6d5fe0b140acb27c9a0444118cf55bfbb4e0b259739429abb4521dd67c16" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.9" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" +checksum = "8f4f29d145265ec1c483c7c654450edde0bfe043d3938d6972630663356d9500" dependencies = [ "proc-macro2", ] @@ -2157,7 +2152,7 @@ checksum = "af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -2179,7 +2174,7 @@ checksum = "98d0516900518c29efa217c298fa1f4e6c6ffc85ae29fd7f4ee48f176e1a9ed5" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -2202,7 +2197,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -2224,7 +2219,7 @@ checksum = "74064874e9f6a15f04c1f3cb627902d0e6b410abbf36668afa873c61889f1763" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -2372,6 +2367,17 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "syn" +version = "2.0.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6f671d4b5ffdb8eadec19c0ae67fe2639df8684bd7bc4b83d986b8db549cf01" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "system-deps" version = "5.0.0" @@ -2550,14 +2556,14 @@ dependencies = [ "heck 0.4.0", "proc-macro2", "quote", - "syn", + "syn 1.0.107", "tauri-codegen", "tauri-utils", ] [[package]] name = "tauri-plugin-websocket" -version = "0.1.0" +version = "0.0.0" dependencies = [ "futures-util", "log", @@ -2686,7 +2692,7 @@ checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -2758,9 +2764,9 @@ dependencies = [ [[package]] name = "tokio-native-tls" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" dependencies = [ "native-tls", "tokio", @@ -2768,9 +2774,9 @@ dependencies = [ [[package]] name = "tokio-tungstenite" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54319c93411147bced34cb5609a80e0a8e44c5999c93903a81cd866630ec0bfd" +checksum = "ec509ac96e9a0c43427c74f003127d953a265737636129424288d27cb5c4b12c" dependencies = [ "futures-util", "log", @@ -2800,13 +2806,13 @@ dependencies = [ [[package]] name = "tungstenite" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30ee6ab729cd4cf0fd55218530c4522ed30b7b6081752839b68fcec8d0960788" +checksum = "15fba1a6d6bb030745759a9a2a588bfe8490fc8b4751a277db3a0be1c9ebbf67" dependencies = [ - "base64", "byteorder", "bytes", + "data-encoding", "http", "httparse", "log", @@ -3020,7 +3026,7 @@ checksum = "eaebe196c01691db62e9e4ca52c5ef1e4fd837dcae27dae3ada599b5a8fd05ac" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.107", ] [[package]] @@ -3112,7 +3118,7 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67a1062e555f7d9d66fd1130ed4f7c6ec41a47529ee0850cd0e926d95b26bb14" dependencies = [ - "syn", + "syn 1.0.107", "windows-tokens 0.37.0", ] @@ -3122,7 +3128,7 @@ version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba01f98f509cb5dc05f4e5fc95e535f78260f15fea8fe1a8abdd08f774f1cee7" dependencies = [ - "syn", + "syn 1.0.107", "windows-tokens 0.39.0", ] diff --git a/plugins/websocket/examples/svelte-app/src-tauri/Cargo.toml b/plugins/websocket/examples/svelte-app/src-tauri/Cargo.toml index 249bf485..a514784a 100644 --- a/plugins/websocket/examples/svelte-app/src-tauri/Cargo.toml +++ b/plugins/websocket/examples/svelte-app/src-tauri/Cargo.toml @@ -13,7 +13,7 @@ tauri = { version = "1", features = [] } tokio = { version = "1", features = ["net"] } futures-util = "0.3" tauri-plugin-websocket = { path = "../../../" } -tokio-tungstenite = "0.18" +tokio-tungstenite = "0.19" [build-dependencies] tauri-build = { version = "1", features = [] } diff --git a/plugins/websocket/src/lib.rs b/plugins/websocket/src/lib.rs index 1f06da32..55676e12 100644 --- a/plugins/websocket/src/lib.rs +++ b/plugins/websocket/src/lib.rs @@ -86,7 +86,7 @@ async fn connect( config: Option, ) -> Result { let id = rand::random(); - let (ws_stream, _) = connect_async_with_config(url, config.map(Into::into)).await?; + let (ws_stream, _) = connect_async_with_config(url, config.map(Into::into), false).await?; tauri::async_runtime::spawn(async move { let (write, read) = ws_stream.split(); From 600de2867bba3e954e34b212f28f571ff888c747 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 16 May 2023 09:48:47 +0200 Subject: [PATCH 05/37] chore(deps): update dependency eslint-plugin-n to v16 (#359) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 84 ++++++++++++++++++-------------------------------- 2 files changed, 31 insertions(+), 55 deletions(-) diff --git a/package.json b/package.json index 5a0bfce4..8a842919 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "eslint-config-prettier": "^8.8.0", "eslint-config-standard-with-typescript": "^34.0.1", "eslint-plugin-import": "^2.27.5", - "eslint-plugin-n": "^15.7.0", + "eslint-plugin-n": "^16.0.0", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-security": "^1.7.1", "prettier": "^2.8.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 50c1bf1b..18a1cda0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,13 +27,13 @@ importers: version: 8.8.0(eslint@8.38.0) eslint-config-standard-with-typescript: specifier: ^34.0.1 - version: 34.0.1(@typescript-eslint/eslint-plugin@5.58.0)(eslint-plugin-import@2.27.5)(eslint-plugin-n@15.7.0)(eslint-plugin-promise@6.1.1)(eslint@8.38.0)(typescript@5.0.4) + version: 34.0.1(@typescript-eslint/eslint-plugin@5.58.0)(eslint-plugin-import@2.27.5)(eslint-plugin-n@16.0.0)(eslint-plugin-promise@6.1.1)(eslint@8.38.0)(typescript@5.0.4) eslint-plugin-import: specifier: ^2.27.5 version: 2.27.5(@typescript-eslint/parser@5.58.0)(eslint@8.38.0) eslint-plugin-n: - specifier: ^15.7.0 - version: 15.7.0(eslint@8.38.0) + specifier: ^16.0.0 + version: 16.0.0(eslint@8.38.0) eslint-plugin-promise: specifier: ^6.1.1 version: 6.1.1(eslint@8.38.0) @@ -899,7 +899,7 @@ packages: '@typescript-eslint/typescript-estree': 5.58.0(typescript@5.0.4) eslint: 8.38.0 eslint-scope: 5.1.1 - semver: 7.4.0 + semver: 7.5.1 transitivePeerDependencies: - supports-color - typescript @@ -1047,7 +1047,7 @@ packages: /builtins@5.0.1: resolution: {integrity: sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==} dependencies: - semver: 7.4.0 + semver: 7.5.1 dev: true /busboy@1.6.0: @@ -1307,7 +1307,7 @@ packages: eslint: 8.38.0 dev: true - /eslint-config-standard-with-typescript@34.0.1(@typescript-eslint/eslint-plugin@5.58.0)(eslint-plugin-import@2.27.5)(eslint-plugin-n@15.7.0)(eslint-plugin-promise@6.1.1)(eslint@8.38.0)(typescript@5.0.4): + /eslint-config-standard-with-typescript@34.0.1(@typescript-eslint/eslint-plugin@5.58.0)(eslint-plugin-import@2.27.5)(eslint-plugin-n@16.0.0)(eslint-plugin-promise@6.1.1)(eslint@8.38.0)(typescript@5.0.4): resolution: {integrity: sha512-J7WvZeLtd0Vr9F+v4dZbqJCLD16cbIy4U+alJMq4MiXdpipdBM3U5NkXaGUjePc4sb1ZE01U9g6VuTBpHHz1fg==} peerDependencies: '@typescript-eslint/eslint-plugin': ^5.43.0 @@ -1320,16 +1320,16 @@ packages: '@typescript-eslint/eslint-plugin': 5.58.0(@typescript-eslint/parser@5.58.0)(eslint@8.38.0)(typescript@5.0.4) '@typescript-eslint/parser': 5.58.0(eslint@8.38.0)(typescript@5.0.4) eslint: 8.38.0 - eslint-config-standard: 17.0.0(eslint-plugin-import@2.27.5)(eslint-plugin-n@15.7.0)(eslint-plugin-promise@6.1.1)(eslint@8.38.0) + eslint-config-standard: 17.0.0(eslint-plugin-import@2.27.5)(eslint-plugin-n@16.0.0)(eslint-plugin-promise@6.1.1)(eslint@8.38.0) eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.58.0)(eslint@8.38.0) - eslint-plugin-n: 15.7.0(eslint@8.38.0) + eslint-plugin-n: 16.0.0(eslint@8.38.0) eslint-plugin-promise: 6.1.1(eslint@8.38.0) typescript: 5.0.4 transitivePeerDependencies: - supports-color dev: true - /eslint-config-standard@17.0.0(eslint-plugin-import@2.27.5)(eslint-plugin-n@15.7.0)(eslint-plugin-promise@6.1.1)(eslint@8.38.0): + /eslint-config-standard@17.0.0(eslint-plugin-import@2.27.5)(eslint-plugin-n@16.0.0)(eslint-plugin-promise@6.1.1)(eslint@8.38.0): resolution: {integrity: sha512-/2ks1GKyqSOkH7JFvXJicu0iMpoojkwB+f5Du/1SC0PtBL+s8v30k9njRZ21pm2drKYm2342jFnGWzttxPmZVg==} peerDependencies: eslint: ^8.0.1 @@ -1339,7 +1339,7 @@ packages: dependencies: eslint: 8.38.0 eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.58.0)(eslint@8.38.0) - eslint-plugin-n: 15.7.0(eslint@8.38.0) + eslint-plugin-n: 16.0.0(eslint@8.38.0) eslint-plugin-promise: 6.1.1(eslint@8.38.0) dev: true @@ -1382,15 +1382,15 @@ packages: - supports-color dev: true - /eslint-plugin-es@4.1.0(eslint@8.38.0): - resolution: {integrity: sha512-GILhQTnjYE2WorX5Jyi5i4dz5ALWxBIdQECVQavL6s7cI76IZTDWleTHkxz/QT3kvcs2QlGHvKLYsSlPOlPXnQ==} - engines: {node: '>=8.10.0'} + /eslint-plugin-es-x@6.1.0(eslint@8.38.0): + resolution: {integrity: sha512-f6dHOuVDDYHOCu3w+EledZnUkDdCa71GGHxZ0DMNfalM/2Upl0t/ks0+d5W5YDQJEQmvthE3WYv7RI/9Fl+csQ==} + engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: - eslint: '>=4.19.1' + eslint: '>=8' dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.38.0) + '@eslint-community/regexpp': 4.5.0 eslint: 8.38.0 - eslint-utils: 2.1.0 - regexpp: 3.2.0 dev: true /eslint-plugin-import@2.27.5(@typescript-eslint/parser@5.58.0)(eslint@8.38.0): @@ -1426,21 +1426,21 @@ packages: - supports-color dev: true - /eslint-plugin-n@15.7.0(eslint@8.38.0): - resolution: {integrity: sha512-jDex9s7D/Qial8AGVIHq4W7NswpUD5DPDL2RH8Lzd9EloWUuvUkHfv4FRLMipH5q2UtyurorBkPeNi1wVWNh3Q==} - engines: {node: '>=12.22.0'} + /eslint-plugin-n@16.0.0(eslint@8.38.0): + resolution: {integrity: sha512-akkZTE3hsHBrq6CwmGuYCzQREbVUrA855kzcHqe6i0FLBkeY7Y/6tThCVkjUnjhvRBAlc+8lILcSe5QvvDpeZQ==} + engines: {node: '>=16.0.0'} peerDependencies: eslint: '>=7.0.0' dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.38.0) builtins: 5.0.1 eslint: 8.38.0 - eslint-plugin-es: 4.1.0(eslint@8.38.0) - eslint-utils: 3.0.0(eslint@8.38.0) + eslint-plugin-es-x: 6.1.0(eslint@8.38.0) ignore: 5.2.4 is-core-module: 2.12.0 minimatch: 3.1.2 resolve: 1.22.2 - semver: 7.4.0 + semver: 7.5.1 dev: true /eslint-plugin-promise@6.1.1(eslint@8.38.0): @@ -1474,33 +1474,6 @@ packages: estraverse: 5.3.0 dev: true - /eslint-utils@2.1.0: - resolution: {integrity: sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==} - engines: {node: '>=6'} - dependencies: - eslint-visitor-keys: 1.3.0 - dev: true - - /eslint-utils@3.0.0(eslint@8.38.0): - resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} - engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0} - peerDependencies: - eslint: '>=5' - dependencies: - eslint: 8.38.0 - eslint-visitor-keys: 2.1.0 - dev: true - - /eslint-visitor-keys@1.3.0: - resolution: {integrity: sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==} - engines: {node: '>=4'} - dev: true - - /eslint-visitor-keys@2.1.0: - resolution: {integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==} - engines: {node: '>=10'} - dev: true - /eslint-visitor-keys@3.4.0: resolution: {integrity: sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -2316,11 +2289,6 @@ packages: functions-have-names: 1.2.3 dev: true - /regexpp@3.2.0: - resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==} - engines: {node: '>=8'} - dev: true - /resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} @@ -2415,6 +2383,14 @@ packages: lru-cache: 6.0.0 dev: true + /semver@7.5.1: + resolution: {integrity: sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: true + /serialize-javascript@6.0.1: resolution: {integrity: sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==} dependencies: From 838ec9edcd32abff5644398e2ad5e54c85e95a7e Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Wed, 17 May 2023 11:12:54 +0200 Subject: [PATCH 06/37] chore(deps): Update notify to v5 and notify-debouncer-mini to v0.3 (#365) --- Cargo.lock | 78 ++++++++++++++++++++++++------------- plugins/fs-watch/Cargo.toml | 4 +- 2 files changed, 53 insertions(+), 29 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 743c68f4..28de7d51 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2522,9 +2522,9 @@ dependencies = [ [[package]] name = "notify" -version = "5.1.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58ea850aa68a06e48fdb069c0ec44d0d64c8dbffa49bf3b6f7f0a901fdea1ba9" +checksum = "4d9ba6c734de18ca27c8cef5cd7058aa4ac9f63596131e4c7e41e579319032a2" dependencies = [ "bitflags 1.3.2", "crossbeam-channel", @@ -2536,14 +2536,14 @@ dependencies = [ "mio", "serde", "walkdir", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] name = "notify-debouncer-mini" -version = "0.2.1" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e23e9fa24f094b143c1eb61f90ac6457de87be6987bc70746e0179f7dbc9007b" +checksum = "e55ee272914f4563a2f8b8553eb6811f3c0caea81c756346bad15b7e3ef969f0" dependencies = [ "crossbeam-channel", "notify", @@ -5460,13 +5460,22 @@ version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" dependencies = [ - "windows_aarch64_gnullvm 0.42.1", - "windows_aarch64_msvc 0.42.1", - "windows_i686_gnu 0.42.1", - "windows_i686_msvc 0.42.1", - "windows_x86_64_gnu 0.42.1", - "windows_x86_64_gnullvm 0.42.1", - "windows_x86_64_msvc 0.42.1", + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", ] [[package]] @@ -5475,7 +5484,22 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets", + "windows-targets 0.48.0", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", ] [[package]] @@ -5501,9 +5525,9 @@ checksum = "f838de2fe15fe6bac988e74b798f26499a8b21a9d97edec321e79b28d1d7f597" [[package]] name = "windows_aarch64_gnullvm" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" [[package]] name = "windows_aarch64_gnullvm" @@ -5525,9 +5549,9 @@ checksum = "ec7711666096bd4096ffa835238905bb33fb87267910e154b18b44eaabb340f2" [[package]] name = "windows_aarch64_msvc" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_aarch64_msvc" @@ -5549,9 +5573,9 @@ checksum = "763fc57100a5f7042e3057e7e8d9bdd7860d330070251a73d003563a3bb49e1b" [[package]] name = "windows_i686_gnu" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_gnu" @@ -5573,9 +5597,9 @@ checksum = "7bc7cbfe58828921e10a9f446fcaaf649204dcfe6c1ddd712c5eebae6bda1106" [[package]] name = "windows_i686_msvc" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_i686_msvc" @@ -5597,9 +5621,9 @@ checksum = "6868c165637d653ae1e8dc4d82c25d4f97dd6605eaa8d784b5c6e0ab2a252b65" [[package]] name = "windows_x86_64_gnu" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnu" @@ -5609,9 +5633,9 @@ checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[package]] name = "windows_x86_64_gnullvm" @@ -5633,9 +5657,9 @@ checksum = "5e4d40883ae9cae962787ca76ba76390ffa29214667a111db9e0a1ad8377e809" [[package]] name = "windows_x86_64_msvc" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[package]] name = "windows_x86_64_msvc" diff --git a/plugins/fs-watch/Cargo.toml b/plugins/fs-watch/Cargo.toml index 8431bae0..07a4b0d8 100644 --- a/plugins/fs-watch/Cargo.toml +++ b/plugins/fs-watch/Cargo.toml @@ -15,5 +15,5 @@ serde_json.workspace = true tauri.workspace = true log.workspace = true thiserror.workspace = true -notify = { version = "5" , features = ["serde"] } -notify-debouncer-mini = { version = "0.2.1" , features = ["serde"] } +notify = { version = "6" , features = ["serde"] } +notify-debouncer-mini = { version = "0.3" , features = ["serde"] } From 40e3624f371c5cfc9ff8b7fedbfa49e8f992bf31 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Wed, 17 May 2023 11:48:38 +0200 Subject: [PATCH 07/37] ci: change covector script to .cjs file extension --- .changes/config.json | 4 ++-- .../{package-latest-version.js => package-latest-version.cjs} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename .scripts/covector/{package-latest-version.js => package-latest-version.cjs} (100%) diff --git a/.changes/config.json b/.changes/config.json index 8de61c38..70ddfdd5 100644 --- a/.changes/config.json +++ b/.changes/config.json @@ -3,12 +3,12 @@ "pkgManagers": { "javascript": { "version": true, - "getPublishedVersion": "node ../../.scripts/covector/package-latest-version.js npm ${ pkgFile.pkg.name } ${ pkgFile.pkg.version }", + "getPublishedVersion": "node ../../.scripts/covector/package-latest-version.cjs npm ${ pkgFile.pkg.name } ${ pkgFile.pkg.version }", "publish": ["pnpm build", "pnpm publish --access public --no-git-checks"] }, "rust": { "version": true, - "getPublishedVersion": "node ../../.scripts/covector/package-latest-version.js cargo ${ pkgFile.pkg.package.name } ${ pkgFile.pkg.package.version }", + "getPublishedVersion": "node ../../.scripts/covector/package-latest-version.cjs cargo ${ pkgFile.pkg.package.name } ${ pkgFile.pkg.package.version }", "publish": [ { "command": "cargo package --no-verify", diff --git a/.scripts/covector/package-latest-version.js b/.scripts/covector/package-latest-version.cjs similarity index 100% rename from .scripts/covector/package-latest-version.js rename to .scripts/covector/package-latest-version.cjs From 5c05224e42b44dc1cc12f6c50a0e0180a85455c1 Mon Sep 17 00:00:00 2001 From: Vinayak <72456774+louremipsum@users.noreply.github.com> Date: Wed, 17 May 2023 19:07:18 +0530 Subject: [PATCH 08/37] docs(upload): documentation for download function (#362) * feat: documentation for download func. * fix: linguitic and header type changes --- plugins/upload/README.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/plugins/upload/README.md b/plugins/upload/README.md index b69c8eda..0f74288d 100644 --- a/plugins/upload/README.md +++ b/plugins/upload/README.md @@ -1,6 +1,7 @@ ![plugin-upload](banner.png) Upload files from disk to a remote server over HTTP. +Download files from a remote HTTP server to disk. ## Install @@ -54,10 +55,21 @@ Afterwards all the plugin's APIs are available through the JavaScript guest bind import { upload } from 'tauri-plugin-upload-api' upload( - 'https://example.com/file-upload' - './path/to/my/file.txt' - (progress, total) => console.log(`Downloaded ${progress} of ${total} bytes`) // a callback that will be called with the upload progress - { 'ContentType': 'text/plain' } // optional headers to send with the request + 'https://example.com/file-upload', + './path/to/my/file.txt', + (progress, total) => console.log(`Uploaded ${progress} of ${total} bytes`), // a callback that will be called with the upload progress + { 'Content-Type': 'text/plain' } // optional headers to send with the request +) +``` + +```javascript +import { download } from "tauri-plugin-upload-api"; + +download( + 'https://example.com/file-download-link', + './path/to/save/my/file.txt', + (progress, total) => console.log(`Downloaded ${progress} of ${total} bytes`), // a callback that will be called with the download progress + { 'Content-Type': 'text/plain' } // optional headers to send with the request ) ``` From 843800ab1e79bdb6ea4b537e96b3c770af808977 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 17 May 2023 17:52:51 +0200 Subject: [PATCH 09/37] Publish New Versions (#341) * publish new versions * Update Cargo.toml * add msrv note to changelog * changelog wording --------- Co-authored-by: FabianLars Co-authored-by: Fabian-Lars --- .changes/persisted-scope-fix-oom.md | 5 ----- plugins/persisted-scope/CHANGELOG.md | 7 +++++++ plugins/persisted-scope/Cargo.toml | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) delete mode 100644 .changes/persisted-scope-fix-oom.md create mode 100644 plugins/persisted-scope/CHANGELOG.md diff --git a/.changes/persisted-scope-fix-oom.md b/.changes/persisted-scope-fix-oom.md deleted file mode 100644 index 6e6520af..00000000 --- a/.changes/persisted-scope-fix-oom.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -persisted-scope: patch ---- - -Recursively unescape saved patterns before allowing/forbidding them. This effectively prevents `.persisted-scope` files from blowing up, which caused Out-Of-Memory issues, while automatically fixing existing broken files seamlessly. diff --git a/plugins/persisted-scope/CHANGELOG.md b/plugins/persisted-scope/CHANGELOG.md new file mode 100644 index 00000000..d1991b01 --- /dev/null +++ b/plugins/persisted-scope/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog + +## \[0.1.1] + +- The MSRV was raised to 1.64! +- The plugin now recursively unescapes saved patterns before allowing/forbidding them. This effectively prevents `.persisted-scope` files from blowing up, which caused Out-Of-Memory issues, while automatically fixing existing broken files seamlessly. + - [ebb2eb2](https://github.com/tauri-apps/plugins-workspace/commit/ebb2eb2fe2ebfbb70530d16a983d396aa5829aa1) fix(persisted-scope): Prevent out-of-memory issues, fixes [#274](https://github.com/tauri-apps/plugins-workspace/pull/274) ([#328](https://github.com/tauri-apps/plugins-workspace/pull/328)) on 2023-04-26 diff --git a/plugins/persisted-scope/Cargo.toml b/plugins/persisted-scope/Cargo.toml index 4e1f24d0..5e25f178 100644 --- a/plugins/persisted-scope/Cargo.toml +++ b/plugins/persisted-scope/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-persisted-scope" -version = "0.1.0" +version = "0.1.1" description = "Save filesystem and asset scopes and restore them when the app is reopened." authors.workspace = true license.workspace = true @@ -19,4 +19,4 @@ aho-corasick = "1.0" bincode = "1" [features] -protocol-asset = [ "tauri/protocol-asset" ] \ No newline at end of file +protocol-asset = [ "tauri/protocol-asset" ] From 794f2d5cb8d53284f0abbeb8f584185b4dce3fc1 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Wed, 17 May 2023 18:17:55 +0200 Subject: [PATCH 10/37] ci: install linux deps in covector workflow --- .github/workflows/covector-version-or-publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index b5c4ab7d..f6a67724 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -29,6 +29,11 @@ jobs: version: 7.x.x run_install: true + - name: install webkit2gtk and libudev for [authenticator] + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libudev-dev + - name: cargo login run: cargo login ${{ secrets.ORG_CRATES_IO_TOKEN }} From e2a54e9cf40345d80662899a5dc732fbadcd7ac6 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 22 May 2023 12:07:32 -0700 Subject: [PATCH 11/37] feat: remove localhost and persisted-scope from mirror list (#390) --- plugins/mirrors.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/mirrors.txt b/plugins/mirrors.txt index 4ad29c51..e981fdcb 100644 --- a/plugins/mirrors.txt +++ b/plugins/mirrors.txt @@ -2,9 +2,7 @@ authenticator autostart fs-extra fs-watch -localhost log -persisted-scope positioner sql store From 6adcedc0c2d8412d027864fa33a8cea2e97747d3 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 22 May 2023 12:30:43 -0700 Subject: [PATCH 12/37] fix(localhost): adjust documentation to work on dev, closes #388 (#389) --- plugins/localhost/README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/plugins/localhost/README.md b/plugins/localhost/README.md index 3fd7797a..410f8deb 100644 --- a/plugins/localhost/README.md +++ b/plugins/localhost/README.md @@ -41,14 +41,21 @@ fn main() { let window_url = WindowUrl::External(url); // rewrite the config so the IPC is enabled on this URL context.config_mut().build.dist_dir = AppUrl::Url(window_url.clone()); - context.config_mut().build.dev_path = AppUrl::Url(window_url.clone()); tauri::Builder::default() .plugin(tauri_plugin_localhost::Builder::new(port).build()) .setup(move |app| { - WindowBuilder::new(app, "main".to_string(), window_url) - .title("Localhost Example") - .build()?; + WindowBuilder::new( + app, + "main".to_string(), + if cfg!(dev) { + Default::default() + } else { + window_url + } + ) + .title("Localhost Example") + .build()?; Ok(()) }) .run(context) From 5676e7720993a15b30006b61642dbac1f68ecc01 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 23 May 2023 17:36:39 -0700 Subject: [PATCH 13/37] feat: update covector (#393) --- .github/workflows/covector-status.yml | 2 +- .github/workflows/covector-version-or-publish-v2.yml | 2 +- .github/workflows/covector-version-or-publish.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/covector-status.yml b/.github/workflows/covector-status.yml index abe20e35..562dd70a 100644 --- a/.github/workflows/covector-status.yml +++ b/.github/workflows/covector-status.yml @@ -14,7 +14,7 @@ jobs: with: fetch-depth: 0 # required for use of git history - name: covector status - uses: jbolda/covector/packages/action@covector-v0.8 + uses: jbolda/covector/packages/action@covector-v0 id: covector with: command: "status" diff --git a/.github/workflows/covector-version-or-publish-v2.yml b/.github/workflows/covector-version-or-publish-v2.yml index 63b14e97..2b41de66 100644 --- a/.github/workflows/covector-version-or-publish-v2.yml +++ b/.github/workflows/covector-version-or-publish-v2.yml @@ -42,7 +42,7 @@ jobs: git config --global user.email "${{ github.event.pusher.email }}" - name: covector version or publish (publish when no change files present) - uses: jbolda/covector/packages/action@covector-v0.8 + uses: jbolda/covector/packages/action@covector-v0 id: covector env: NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index f10247e0..e5986443 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -42,7 +42,7 @@ jobs: git config --global user.email "${{ github.event.pusher.email }}" - name: covector version or publish (publish when no change files present) - uses: jbolda/covector/packages/action@covector-v0.8 + uses: jbolda/covector/packages/action@covector-v0 id: covector env: NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} From 7e3034904cc990b96e7a3fb519f4e343b710e26b Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 23 May 2023 18:29:57 -0700 Subject: [PATCH 14/37] feat(os): add `locale` API (#391) --- Cargo.lock | 11 +++++++++++ plugins/os/Cargo.toml | 1 + plugins/os/guest-js/index.ts | 19 ++++++++++++++++++- plugins/os/src/api-iife.js | 2 +- plugins/os/src/commands.rs | 5 +++++ plugins/os/src/lib.rs | 8 +++++++- 6 files changed, 43 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 23b0f5f5..a5eef68e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4895,6 +4895,16 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "sys-locale" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea0b9eefabb91675082b41eb94c3ecd91af7656caee3fb4961a07c0ec8c7ca6f" +dependencies = [ + "libc", + "windows-sys 0.45.0", +] + [[package]] name = "system-deps" version = "6.0.4" @@ -5271,6 +5281,7 @@ dependencies = [ "os_info", "serde", "serde_json", + "sys-locale", "tauri", "thiserror", ] diff --git a/plugins/os/Cargo.toml b/plugins/os/Cargo.toml index 3dfc669c..5db78b58 100644 --- a/plugins/os/Cargo.toml +++ b/plugins/os/Cargo.toml @@ -12,3 +12,4 @@ tauri = { workspace = true } log = { workspace = true } thiserror = { workspace = true } os_info = "3" +sys-locale = "0.3" diff --git a/plugins/os/guest-js/index.ts b/plugins/os/guest-js/index.ts index 9bac01cc..b35813c9 100644 --- a/plugins/os/guest-js/index.ts +++ b/plugins/os/guest-js/index.ts @@ -127,5 +127,22 @@ async function tempdir(): Promise { return window.__TAURI_INVOKE__("plugin:os|tempdir"); } -export { EOL, platform, version, type, arch, tempdir }; +/** + * Returns a String with a `BCP-47` language tag inside. If the locale couldn’t be obtained, `null` is returned instead. + * @example + * ```typescript + * import { locale } from '@tauri-apps/plugin-os'; + * const locale = await locale(); + * if (locale) { + * // use the locale string here + * } + * ``` + * + * @since 2.0.0 + */ +async function locale(): Promise { + return window.__TAURI_INVOKE__("plugin:os|locale"); +} + +export { EOL, platform, version, type, arch, tempdir, locale }; export type { Platform, OsType, Arch }; diff --git a/plugins/os/src/api-iife.js b/plugins/os/src/api-iife.js index 8223ce89..3e754051 100644 --- a/plugins/os/src/api-iife.js +++ b/plugins/os/src/api-iife.js @@ -1 +1 @@ -if("__TAURI__"in window){var __TAURI_OS__=function(n){"use strict";const _=navigator.appVersion.includes("Win")?"\r\n":"\n";return n.EOL=_,n.arch=async function(){return window.__TAURI_INVOKE__("plugin:os|arch")},n.platform=async function(){return window.__TAURI_INVOKE__("plugin:os|platform")},n.tempdir=async function(){return window.__TAURI_INVOKE__("plugin:os|tempdir")},n.type=async function(){return window.__TAURI_INVOKE__("plugin:os|kind")},n.version=async function(){return window.__TAURI_INVOKE__("plugin:os|version")},n}({});Object.defineProperty(window.__TAURI__,"os",{value:__TAURI_OS__})} +if("__TAURI__"in window){var __TAURI_OS__=function(n){"use strict";const _=navigator.appVersion.includes("Win")?"\r\n":"\n";return n.EOL=_,n.arch=async function(){return window.__TAURI_INVOKE__("plugin:os|arch")},n.locale=async function(){return window.__TAURI_INVOKE__("plugin:os|locale")},n.platform=async function(){return window.__TAURI_INVOKE__("plugin:os|platform")},n.tempdir=async function(){return window.__TAURI_INVOKE__("plugin:os|tempdir")},n.type=async function(){return window.__TAURI_INVOKE__("plugin:os|kind")},n.version=async function(){return window.__TAURI_INVOKE__("plugin:os|version")},n}({});Object.defineProperty(window.__TAURI__,"os",{value:__TAURI_OS__})} diff --git a/plugins/os/src/commands.rs b/plugins/os/src/commands.rs index 314d10df..668fa82a 100644 --- a/plugins/os/src/commands.rs +++ b/plugins/os/src/commands.rs @@ -28,3 +28,8 @@ pub fn arch() -> &'static str { pub fn tempdir() -> PathBuf { crate::tempdir() } + +#[tauri::command] +pub fn locale() -> Option { + crate::locale() +} diff --git a/plugins/os/src/lib.rs b/plugins/os/src/lib.rs index 488107a4..4060c679 100644 --- a/plugins/os/src/lib.rs +++ b/plugins/os/src/lib.rs @@ -68,6 +68,11 @@ pub fn tempdir() -> PathBuf { std::env::temp_dir() } +/// Returns the locale with the `BCP-47` language tag. If the locale couldn’t be obtained, `None` is returned instead. +pub fn locale() -> Option { + sys_locale::get_locale() +} + pub fn init() -> TauriPlugin { Builder::new("os") .js_init_script(include_str!("api-iife.js").to_string()) @@ -76,7 +81,8 @@ pub fn init() -> TauriPlugin { commands::version, commands::kind, commands::arch, - commands::tempdir + commands::tempdir, + commands::locale ]) .build() } From 9bf98f68e704ed6ad955a5aafb56690cd36d7370 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 23 May 2023 19:44:05 -0700 Subject: [PATCH 15/37] chore(api): update @since tag to 2.0.0 (#395) --- plugins/app/guest-js/index.ts | 10 +- plugins/cli/guest-js/index.ts | 8 +- plugins/clipboard/guest-js/index.ts | 4 +- plugins/dialog/guest-js/index.ts | 18 +-- plugins/fs/guest-js/index.ts | 42 +++---- plugins/global-shortcut/guest-js/index.ts | 10 +- plugins/http/guest-js/index.ts | 26 ++-- plugins/notification/guest-js/index.ts | 8 +- plugins/os/guest-js/index.ts | 12 +- plugins/process/guest-js/index.ts | 4 +- plugins/shell/guest-js/index.ts | 44 ++++--- plugins/store/guest-js/index.ts | 4 + plugins/stronghold/guest-js/index.ts | 4 + plugins/window/guest-js/index.ts | 146 +++++++++++++++++----- 14 files changed, 227 insertions(+), 113 deletions(-) diff --git a/plugins/app/guest-js/index.ts b/plugins/app/guest-js/index.ts index 111a7ef7..b2420ad7 100644 --- a/plugins/app/guest-js/index.ts +++ b/plugins/app/guest-js/index.ts @@ -22,7 +22,7 @@ declare global { * const appVersion = await getVersion(); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function getVersion(): Promise { return window.__TAURI_INVOKE__("plugin:app|version"); @@ -36,7 +36,7 @@ async function getVersion(): Promise { * const appName = await getName(); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function getName(): Promise { return window.__TAURI_INVOKE__("plugin:app|name"); @@ -51,7 +51,7 @@ async function getName(): Promise { * const tauriVersion = await getTauriVersion(); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function getTauriVersion(): Promise { return window.__TAURI_INVOKE__("plugin:app|tauri_version"); @@ -66,7 +66,7 @@ async function getTauriVersion(): Promise { * await show(); * ``` * - * @since 1.2.0 + * @since 2.0.0 */ async function show(): Promise { return window.__TAURI_INVOKE__("plugin:app|show"); @@ -81,7 +81,7 @@ async function show(): Promise { * await hide(); * ``` * - * @since 1.2.0 + * @since 2.0.0 */ async function hide(): Promise { return window.__TAURI_INVOKE__("plugin:app|hide"); diff --git a/plugins/cli/guest-js/index.ts b/plugins/cli/guest-js/index.ts index ea6ce67a..87c1a97e 100644 --- a/plugins/cli/guest-js/index.ts +++ b/plugins/cli/guest-js/index.ts @@ -15,7 +15,7 @@ declare global { } /** - * @since 1.0.0 + * @since 2.0.0 */ interface ArgMatch { /** @@ -31,7 +31,7 @@ interface ArgMatch { } /** - * @since 1.0.0 + * @since 2.0.0 */ interface SubcommandMatch { name: string; @@ -39,7 +39,7 @@ interface SubcommandMatch { } /** - * @since 1.0.0 + * @since 2.0.0 */ interface CliMatches { args: Record; @@ -65,7 +65,7 @@ interface CliMatches { * } * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function getMatches(): Promise { return await window.__TAURI_INVOKE__("plugin:cli|cli_matches"); diff --git a/plugins/clipboard/guest-js/index.ts b/plugins/clipboard/guest-js/index.ts index 495371bc..fb8b38e1 100644 --- a/plugins/clipboard/guest-js/index.ts +++ b/plugins/clipboard/guest-js/index.ts @@ -32,7 +32,7 @@ type ClipResponse = Clip<"PlainText", string>; * * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0. + * @since 2.0.0 */ async function writeText( text: string, @@ -56,7 +56,7 @@ async function writeText( * import { readText } from '@tauri-apps/plugin-clipboard'; * const clipboardText = await readText(); * ``` - * @since 1.0.0. + * @since 2.0.0 */ async function readText(): Promise { const kind: ClipResponse = await window.__TAURI_INVOKE__( diff --git a/plugins/dialog/guest-js/index.ts b/plugins/dialog/guest-js/index.ts index 5300b7cc..de74217f 100644 --- a/plugins/dialog/guest-js/index.ts +++ b/plugins/dialog/guest-js/index.ts @@ -23,7 +23,7 @@ interface FileResponse { /** * Extension filters for the file dialog. * - * @since 1.0.0 + * @since 2.0.0 */ interface DialogFilter { /** Filter name. */ @@ -41,7 +41,7 @@ interface DialogFilter { /** * Options for the open dialog. * - * @since 1.0.0 + * @since 2.0.0 */ interface OpenDialogOptions { /** The title of the dialog window. */ @@ -64,7 +64,7 @@ interface OpenDialogOptions { /** * Options for the save dialog. * - * @since 1.0.0 + * @since 2.0.0 */ interface SaveDialogOptions { /** The title of the dialog window. */ @@ -80,7 +80,7 @@ interface SaveDialogOptions { } /** - * @since 1.0.0 + * @since 2.0.0 */ interface MessageDialogOptions { /** The title of the dialog. Defaults to the app name. */ @@ -164,7 +164,7 @@ async function open( * * @returns A promise resolving to the selected path(s) * - * @since 1.0.0 + * @since 2.0.0 */ async function open( options: OpenDialogOptions = {} @@ -198,7 +198,7 @@ async function open( * * @returns A promise resolving to the selected path. * - * @since 1.0.0 + * @since 2.0.0 */ async function save(options: SaveDialogOptions = {}): Promise { if (typeof options === "object") { @@ -222,7 +222,7 @@ async function save(options: SaveDialogOptions = {}): Promise { * * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0 + * @since 2.0.0 * */ async function message( @@ -252,7 +252,7 @@ async function message( * * @returns A promise resolving to a boolean indicating whether `Yes` was clicked or not. * - * @since 1.0.0 + * @since 2.0.0 */ async function ask( message: string, @@ -282,7 +282,7 @@ async function ask( * * @returns A promise resolving to a boolean indicating whether `Ok` was clicked or not. * - * @since 1.0.0 + * @since 2.0.0 */ async function confirm( message: string, diff --git a/plugins/fs/guest-js/index.ts b/plugins/fs/guest-js/index.ts index 2d1ecf37..af4d2e84 100644 --- a/plugins/fs/guest-js/index.ts +++ b/plugins/fs/guest-js/index.ts @@ -161,7 +161,7 @@ interface BackendMetadata { } /** - * @since 1.0.0 + * @since 2.0.0 */ interface FsOptions { dir?: BaseDirectory; @@ -169,7 +169,7 @@ interface FsOptions { } /** - * @since 1.0.0 + * @since 2.0.0 */ interface FsDirOptions { dir?: BaseDirectory; @@ -179,7 +179,7 @@ interface FsDirOptions { /** * Options object used to write a UTF-8 string to a file. * - * @since 1.0.0 + * @since 2.0.0 */ interface FsTextFileOption { /** Path to the file to write. */ @@ -193,7 +193,7 @@ type BinaryFileContents = Iterable | ArrayLike | ArrayBuffer; /** * Options object used to write a binary data to a file. * - * @since 1.0.0 + * @since 2.0.0 */ interface FsBinaryFileOption { /** Path to the file to write. */ @@ -203,7 +203,7 @@ interface FsBinaryFileOption { } /** - * @since 1.0.0 + * @since 2.0.0 */ interface FileEntry { path: string; @@ -225,7 +225,7 @@ interface FileEntry { * const contents = await readTextFile('app.conf', { dir: BaseDirectory.AppConfig }); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function readTextFile( filePath: string, @@ -246,7 +246,7 @@ async function readTextFile( * const contents = await readBinaryFile('avatar.png', { dir: BaseDirectory.Resource }); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function readBinaryFile( filePath: string, @@ -269,7 +269,7 @@ async function readBinaryFile( * await writeTextFile('app.conf', 'file contents', { dir: BaseDirectory.AppConfig }); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function writeTextFile( path: string, @@ -287,7 +287,7 @@ async function writeTextFile( * ``` * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0 + * @since 2.0.0 */ async function writeTextFile( file: FsTextFileOption, @@ -299,7 +299,7 @@ async function writeTextFile( * * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0 + * @since 2.0.0 */ async function writeTextFile( path: string | FsTextFileOption, @@ -347,7 +347,7 @@ async function writeTextFile( * @param options Configuration object. * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0 + * @since 2.0.0 */ async function writeBinaryFile( path: string, @@ -368,7 +368,7 @@ async function writeBinaryFile( * @param options Configuration object. * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0 + * @since 2.0.0 */ async function writeBinaryFile( file: FsBinaryFileOption, @@ -380,7 +380,7 @@ async function writeBinaryFile( * * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0 + * @since 2.0.0 */ async function writeBinaryFile( path: string | FsBinaryFileOption, @@ -439,7 +439,7 @@ async function writeBinaryFile( * } * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function readDir( dir: string, @@ -464,7 +464,7 @@ async function readDir( * * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0 + * @since 2.0.0 */ async function createDir( dir: string, @@ -488,7 +488,7 @@ async function createDir( * * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0 + * @since 2.0.0 */ async function removeDir( dir: string, @@ -511,7 +511,7 @@ async function removeDir( * * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0 + * @since 2.0.0 */ async function copyFile( source: string, @@ -536,7 +536,7 @@ async function copyFile( * * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0 + * @since 2.0.0 */ async function removeFile( file: string, @@ -559,7 +559,7 @@ async function removeFile( * * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0 + * @since 2.0.0 */ async function renameFile( oldPath: string, @@ -582,7 +582,7 @@ async function renameFile( * await exists('avatar.png', { dir: BaseDirectory.AppData }); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function exists(path: string): Promise { return await window.__TAURI_INVOKE__("plugin:fs|exists", { path }); @@ -591,7 +591,7 @@ async function exists(path: string): Promise { /** * Returns the metadata for the given path. * - * @since 1.0.0 + * @since 2.0.0 */ async function metadata(path: string): Promise { return await window diff --git a/plugins/global-shortcut/guest-js/index.ts b/plugins/global-shortcut/guest-js/index.ts index 4c1c02c8..16ef0055 100644 --- a/plugins/global-shortcut/guest-js/index.ts +++ b/plugins/global-shortcut/guest-js/index.ts @@ -32,7 +32,7 @@ export type ShortcutHandler = (shortcut: string) => void; * @param shortcut Shortcut definition, modifiers and key separated by "+" e.g. CmdOrControl+Q * @param handler Shortcut handler callback - takes the triggered shortcut as argument * - * @since 1.0.0 + * @since 2.0.0 */ async function register( shortcut: string, @@ -57,7 +57,7 @@ async function register( * @param shortcuts Array of shortcut definitions, modifiers and key separated by "+" e.g. CmdOrControl+Q * @param handler Shortcut handler callback - takes the triggered shortcut as argument * - * @since 1.0.0 + * @since 2.0.0 */ async function registerAll( shortcuts: string[], @@ -82,7 +82,7 @@ async function registerAll( * * @param shortcut shortcut definition, modifiers and key separated by "+" e.g. CmdOrControl+Q * - * @since 1.0.0 + * @since 2.0.0 */ async function isRegistered(shortcut: string): Promise { return await window.__TAURI_INVOKE__("plugin:globalShortcut|is_registered", { @@ -100,7 +100,7 @@ async function isRegistered(shortcut: string): Promise { * * @param shortcut shortcut definition, modifiers and key separated by "+" e.g. CmdOrControl+Q * - * @since 1.0.0 + * @since 2.0.0 */ async function unregister(shortcut: string): Promise { return await window.__TAURI_INVOKE__("plugin:globalShortcut|unregister", { @@ -116,7 +116,7 @@ async function unregister(shortcut: string): Promise { * await unregisterAll(); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function unregisterAll(): Promise { return await window.__TAURI_INVOKE__("plugin:globalShortcut|unregister_all"); diff --git a/plugins/http/guest-js/index.ts b/plugins/http/guest-js/index.ts index 9cc07ac1..60378402 100644 --- a/plugins/http/guest-js/index.ts +++ b/plugins/http/guest-js/index.ts @@ -31,7 +31,7 @@ declare global { } /** - * @since 1.0.0 + * @since 2.0.0 */ interface Duration { secs: number; @@ -39,7 +39,7 @@ interface Duration { } /** - * @since 1.0.0 + * @since 2.0.0 */ interface ClientOptions { /** @@ -51,7 +51,7 @@ interface ClientOptions { } /** - * @since 1.0.0 + * @since 2.0.0 */ enum ResponseType { JSON = 1, @@ -60,7 +60,7 @@ enum ResponseType { } /** - * @since 1.0.0 + * @since 2.0.0 */ interface FilePart { file: string | T; @@ -73,7 +73,7 @@ type Part = string | Uint8Array | FilePart; /** * The body object to be used on POST and PUT requests. * - * @since 1.0.0 + * @since 2.0.0 */ class Body { type: string; @@ -115,6 +115,8 @@ class Body { * @param data The body data. * * @returns The body object ready to be used on the POST and PUT requests. + * + * @since 2.0.0 */ static form(data: Record | FormData): Body { const form: Record> = {}; @@ -166,6 +168,8 @@ class Body { * @param data The body JSON object. * * @returns The body object ready to be used on the POST and PUT requests. + * + * @since 2.0.0 */ static json(data: Record): Body { return new Body("Json", data); @@ -182,6 +186,8 @@ class Body { * @param value The body string. * * @returns The body object ready to be used on the POST and PUT requests. + * + * @since 2.0.0 */ static text(value: string): Body { return new Body("Text", value); @@ -198,6 +204,8 @@ class Body { * @param bytes The body byte array. * * @returns The body object ready to be used on the POST and PUT requests. + * + * @since 2.0.0 */ static bytes( bytes: Iterable | ArrayLike | ArrayBuffer @@ -225,7 +233,7 @@ type HttpVerb = /** * Options object sent to the backend. * - * @since 1.0.0 + * @since 2.0.0 */ interface HttpOptions { method: HttpVerb; @@ -254,7 +262,7 @@ interface IResponse { /** * Response object. * - * @since 1.0.0 + * @since 2.0.0 * */ class Response { /** The request URL. */ @@ -282,7 +290,7 @@ class Response { } /** - * @since 1.0.0 + * @since 2.0.0 */ class Client { id: number; @@ -481,7 +489,7 @@ class Client { * * @returns A promise resolving to the client instance. * - * @since 1.0.0 + * @since 2.0.0 */ async function getClient(options?: ClientOptions): Promise { return window diff --git a/plugins/notification/guest-js/index.ts b/plugins/notification/guest-js/index.ts index ee157ecc..7de70375 100644 --- a/plugins/notification/guest-js/index.ts +++ b/plugins/notification/guest-js/index.ts @@ -18,7 +18,7 @@ import { /** * Options to send a notification. * - * @since 1.0.0 + * @since 2.0.0 */ interface Options { /** @@ -300,7 +300,7 @@ type Permission = "granted" | "denied" | "default"; * const permissionGranted = await isPermissionGranted(); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function isPermissionGranted(): Promise { if (window.Notification.permission !== "default") { @@ -323,7 +323,7 @@ async function isPermissionGranted(): Promise { * * @returns A promise resolving to whether the user granted the permission or not. * - * @since 1.0.0 + * @since 2.0.0 */ async function requestPermission(): Promise { return window.Notification.requestPermission(); @@ -345,7 +345,7 @@ async function requestPermission(): Promise { * } * ``` * - * @since 1.0.0 + * @since 2.0.0 */ function sendNotification(options: Options | string): void { if (typeof options === "string") { diff --git a/plugins/os/guest-js/index.ts b/plugins/os/guest-js/index.ts index b35813c9..2b4806b2 100644 --- a/plugins/os/guest-js/index.ts +++ b/plugins/os/guest-js/index.ts @@ -50,7 +50,7 @@ function isWindows(): boolean { * - `\n` on POSIX * - `\r\n` on Windows * - * @since 1.0.0 + * @since 2.0.0 * */ const EOL = isWindows() ? "\r\n" : "\n"; @@ -63,7 +63,7 @@ const EOL = isWindows() ? "\r\n" : "\n"; * const platformName = await platform(); * ``` * - * @since 1.0.0 + * @since 2.0.0 * */ async function platform(): Promise { @@ -78,7 +78,7 @@ async function platform(): Promise { * const osVersion = await version(); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function version(): Promise { return window.__TAURI_INVOKE__("plugin:os|version"); @@ -92,7 +92,7 @@ async function version(): Promise { * const osType = await type(); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function type(): Promise { return window.__TAURI_INVOKE__("plugin:os|kind"); @@ -107,7 +107,7 @@ async function type(): Promise { * const archName = await arch(); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function arch(): Promise { return window.__TAURI_INVOKE__("plugin:os|arch"); @@ -121,7 +121,7 @@ async function arch(): Promise { * const tempdirPath = await tempdir(); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function tempdir(): Promise { return window.__TAURI_INVOKE__("plugin:os|tempdir"); diff --git a/plugins/process/guest-js/index.ts b/plugins/process/guest-js/index.ts index b66ad837..853e0d29 100644 --- a/plugins/process/guest-js/index.ts +++ b/plugins/process/guest-js/index.ts @@ -24,7 +24,7 @@ declare global { * @param code The exit code to use. * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0 + * @since 2.0.0 */ async function exit(code = 0): Promise { return window.__TAURI_INVOKE__("plugin:process|exit", { code }); @@ -40,7 +40,7 @@ async function exit(code = 0): Promise { * * @returns A promise indicating the success or failure of the operation. * - * @since 1.0.0 + * @since 2.0.0 */ async function relaunch(): Promise { return window.__TAURI_INVOKE__("plugin:process|restart"); diff --git a/plugins/shell/guest-js/index.ts b/plugins/shell/guest-js/index.ts index da964f9d..32c34f6e 100644 --- a/plugins/shell/guest-js/index.ts +++ b/plugins/shell/guest-js/index.ts @@ -72,7 +72,7 @@ declare global { } /** - * @since 1.0.0 + * @since 2.0.0 */ interface SpawnOptions { /** Current working directory. */ @@ -82,7 +82,7 @@ interface SpawnOptions { /** * Character encoding for stdout/stderr * - * @since 1.1.0 + * @since 2.0.0 * */ encoding?: string; } @@ -93,7 +93,7 @@ interface InternalSpawnOptions extends SpawnOptions { } /** - * @since 1.0.0 + * @since 2.0.0 */ interface ChildProcess { /** Exit code of the process. `null` if the process was terminated by a signal on Unix. */ @@ -115,6 +115,8 @@ interface ChildProcess { * @param args Program arguments. * @param options Configuration for the process spawn. * @returns A promise resolving to the process id. + * + * @since 2.0.0 */ async function execute( onEvent: (event: CommandEvent) => void, @@ -135,7 +137,7 @@ async function execute( } /** - * @since 1.0.0 + * @since 2.0.0 */ // eslint-disable-next-line @typescript-eslint/no-explicit-any class EventEmitter> { @@ -147,7 +149,7 @@ class EventEmitter> { /** * Alias for `emitter.on(eventName, listener)`. * - * @since 1.1.0 + * @since 2.0.0 */ addListener( eventName: N, @@ -159,7 +161,7 @@ class EventEmitter> { /** * Alias for `emitter.off(eventName, listener)`. * - * @since 1.1.0 + * @since 2.0.0 */ removeListener( eventName: N, @@ -176,7 +178,7 @@ class EventEmitter> { * * Returns a reference to the `EventEmitter`, so that calls can be chained. * - * @since 1.0.0 + * @since 2.0.0 */ on( eventName: N, @@ -198,7 +200,7 @@ class EventEmitter> { * * Returns a reference to the `EventEmitter`, so that calls can be chained. * - * @since 1.1.0 + * @since 2.0.0 */ once( eventName: N, @@ -216,7 +218,7 @@ class EventEmitter> { * Removes the all specified listener from the listener array for the event eventName * Returns a reference to the `EventEmitter`, so that calls can be chained. * - * @since 1.1.0 + * @since 2.0.0 */ off( eventName: N, @@ -236,7 +238,7 @@ class EventEmitter> { * * Returns a reference to the `EventEmitter`, so that calls can be chained. * - * @since 1.1.0 + * @since 2.0.0 */ removeAllListeners(event?: N): this { if (event) { @@ -255,6 +257,8 @@ class EventEmitter> { * to each. * * @returns `true` if the event had listeners, `false` otherwise. + * + * @since 2.0.0 */ emit(eventName: N, arg: E[typeof eventName]): boolean { if (eventName in this.eventListeners) { @@ -270,7 +274,7 @@ class EventEmitter> { /** * Returns the number of listeners listening to the event named `eventName`. * - * @since 1.1.0 + * @since 2.0.0 */ listenerCount(eventName: N): number { if (eventName in this.eventListeners) @@ -287,7 +291,7 @@ class EventEmitter> { * * Returns a reference to the `EventEmitter`, so that calls can be chained. * - * @since 1.1.0 + * @since 2.0.0 */ prependListener( eventName: N, @@ -309,7 +313,7 @@ class EventEmitter> { * * Returns a reference to the `EventEmitter`, so that calls can be chained. * - * @since 1.1.0 + * @since 2.0.0 */ prependOnceListener( eventName: N, @@ -326,7 +330,7 @@ class EventEmitter> { } /** - * @since 1.1.0 + * @since 2.0.0 */ class Child { /** The child process `pid`. */ @@ -350,6 +354,8 @@ class Child { * ``` * * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async write(data: IOPayload): Promise { return window.__TAURI_INVOKE__("plugin:shell|stdin_write", { @@ -363,6 +369,8 @@ class Child { * Kills the child process. * * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async kill(): Promise { return window.__TAURI_INVOKE__("plugin:shell|kill", { @@ -399,7 +407,7 @@ interface OutputEvents { * console.log('pid:', child.pid); * ``` * - * @since 1.1.0 + * @since 2.0.0 * */ class Command extends EventEmitter { @@ -504,6 +512,8 @@ class Command extends EventEmitter { * Executes the command as a child process, returning a handle to it. * * @returns A promise resolving to the child process handle. + * + * @since 2.0.0 */ async spawn(): Promise { return execute( @@ -542,6 +552,8 @@ class Command extends EventEmitter { * ``` * * @returns A promise resolving to the child process output. + * + * @since 2.0.0 */ async execute(): Promise> { return new Promise((resolve, reject) => { @@ -633,7 +645,7 @@ type CommandEvent = * @param openWith The app to open the file or URL with. * Defaults to the system default application for the specified path type. * - * @since 1.0.0 + * @since 2.0.0 */ async function open(path: string, openWith?: string): Promise { return window.__TAURI_INVOKE__("plugin:shell|open", { diff --git a/plugins/store/guest-js/index.ts b/plugins/store/guest-js/index.ts index 49c452ca..4df455f8 100644 --- a/plugins/store/guest-js/index.ts +++ b/plugins/store/guest-js/index.ts @@ -179,6 +179,8 @@ export class Store { * @param key * @param cb * @returns A promise resolving to a function to unlisten to the event. + * + * @since 2.0.0 */ async onKeyChange( key: string, @@ -195,6 +197,8 @@ export class Store { * Listen to changes on the store. * @param cb * @returns A promise resolving to a function to unlisten to the event. + * + * @since 2.0.0 */ async onChange( cb: (key: string, value: T | null) => void diff --git a/plugins/stronghold/guest-js/index.ts b/plugins/stronghold/guest-js/index.ts index 568a281b..1a87a4b0 100644 --- a/plugins/stronghold/guest-js/index.ts +++ b/plugins/stronghold/guest-js/index.ts @@ -239,6 +239,8 @@ class ProcedureExecutor { * Gets the Ed25519 public key of a SLIP10 private key. * @param privateKeyLocation The location of the private key. Must be the `outputLocation` of a previous call to `deriveSLIP10`. * @returns A promise resolving to the public key hex string. + * + * @since 2.0.0 */ async getEd25519PublicKey(privateKeyLocation: Location): Promise { return await window @@ -260,6 +262,8 @@ class ProcedureExecutor { * @param privateKeyLocation The location of the record where the private key is stored. Must be the `outputLocation` of a previous call to `deriveSLIP10`. * @param msg The message to sign. * @returns A promise resolving to the signature hex string. + * + * @since 2.0.0 */ async signEd25519( privateKeyLocation: Location, diff --git a/plugins/window/guest-js/index.ts b/plugins/window/guest-js/index.ts index 2cf7eb8f..4b88f194 100644 --- a/plugins/window/guest-js/index.ts +++ b/plugins/window/guest-js/index.ts @@ -38,7 +38,7 @@ type TitleBarStyle = "visible" | "transparent" | "overlay"; /** * Allows you to retrieve information about a given monitor. * - * @since 1.0.0 + * @since 2.0.0 */ interface Monitor { /** Human-readable name of the monitor */ @@ -54,7 +54,7 @@ interface Monitor { /** * The payload for the `scaleChange` event. * - * @since 1.0.2 + * @since 2.0.0 */ interface ScaleFactorChanged { /** The new window scale factor. */ @@ -72,7 +72,7 @@ type FileDropEvent = /** * A size represented in logical pixels. * - * @since 1.0.0 + * @since 2.0.0 */ class LogicalSize { type = "Logical"; @@ -88,7 +88,7 @@ class LogicalSize { /** * A size represented in physical pixels. * - * @since 1.0.0 + * @since 2.0.0 */ class PhysicalSize { type = "Physical"; @@ -118,7 +118,7 @@ class PhysicalSize { /** * A position represented in logical pixels. * - * @since 1.0.0 + * @since 2.0.0 */ class LogicalPosition { type = "Logical"; @@ -134,7 +134,7 @@ class LogicalPosition { /** * A position represented in physical pixels. * - * @since 1.0.0 + * @since 2.0.0 */ class PhysicalPosition { type = "Physical"; @@ -179,7 +179,7 @@ declare global { /** * Attention type to request on a window. * - * @since 1.0.0 + * @since 2.0.0 */ enum UserAttentionType { /** @@ -240,7 +240,7 @@ export type CursorIcon = /** * Get an instance of `WebviewWindow` for the current webview window. * - * @since 1.0.0 + * @since 2.0.0 */ function getCurrent(): WebviewWindow { return new WebviewWindow(window.__TAURI_METADATA__.__currentWindow.label, { @@ -252,7 +252,7 @@ function getCurrent(): WebviewWindow { /** * Gets a list of instances of `WebviewWindow` for all available webview windows. * - * @since 1.0.0 + * @since 2.0.0 */ function getAll(): WebviewWindow[] { return window.__TAURI_METADATA__.__windows.map( @@ -273,7 +273,7 @@ export type WindowLabel = string; * A webview window handle allows emitting and listening to events from the backend that are tied to the window. * * @ignore - * @since 1.0.0 + * @since 2.0.0 */ class WebviewWindowHandle { /** The window label. It is a unique identifier for the window, can be used to reference it later. */ @@ -306,6 +306,8 @@ class WebviewWindowHandle { * @param handler Event handler. * @returns A promise resolving to a function to unlisten to the event. * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted. + * + * @since 2.0.0 */ async listen( event: EventName, @@ -339,6 +341,8 @@ class WebviewWindowHandle { * @param handler Event handler. * @returns A promise resolving to a function to unlisten to the event. * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted. + * + * @since 2.0.0 */ async once(event: string, handler: EventCallback): Promise { if (this._handleTauriEvent(event, handler)) { @@ -393,7 +397,7 @@ class WebviewWindowHandle { * Manage the current window object. * * @ignore - * @since 1.0.0 + * @since 2.0.0 */ class WindowManager extends WebviewWindowHandle { // Getters @@ -406,6 +410,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns The window's monitor scale factor. + * + * @since 2.0.0 * */ async scaleFactor(): Promise { return window.__TAURI_INVOKE__("plugin:window|scale_factor", { @@ -422,6 +428,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns The window's inner position. + * + * @since 2.0.0 * */ async innerPosition(): Promise { return window @@ -443,6 +451,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns The window's outer position. + * + * @since 2.0.0 * */ async outerPosition(): Promise { return window @@ -465,6 +475,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns The window's inner size. + * + * @since 2.0.0 */ async innerSize(): Promise { return window @@ -487,6 +499,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns The window's outer size. + * + * @since 2.0.0 */ async outerSize(): Promise { return window @@ -508,6 +522,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns Whether the window is in fullscreen mode or not. + * + * @since 2.0.0 * */ async isFullscreen(): Promise { return window.__TAURI_INVOKE__("plugin:window|is_fullscreen", { @@ -523,7 +539,7 @@ class WindowManager extends WebviewWindowHandle { * const minimized = await appWindow.isMinimized(); * ``` * - * @since 1.3.0 + * @since 2.0.0 * */ async isMinimized(): Promise { return window.__TAURI_INVOKE__("plugin:window|is_minimized", { @@ -540,6 +556,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns Whether the window is maximized or not. + * + * @since 2.0.0 * */ async isMaximized(): Promise { return window.__TAURI_INVOKE__("plugin:window|is_maximized", { @@ -556,6 +574,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns Whether the window is decorated or not. + * + * @since 2.0.0 * */ async isDecorated(): Promise { return window.__TAURI_INVOKE__("plugin:window|is_decorated", { @@ -572,6 +592,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns Whether the window is resizable or not. + * + * @since 2.0.0 * */ async isResizable(): Promise { return window.__TAURI_INVOKE__("plugin:window|is_resizable", { @@ -588,6 +610,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns Whether the window is visible or not. + * + * @since 2.0.0 * */ async isVisible(): Promise { return window.__TAURI_INVOKE__("plugin:window|is_visible", { @@ -603,7 +627,7 @@ class WindowManager extends WebviewWindowHandle { * const title = await appWindow.title(); * ``` * - * @since 1.3.0 + * @since 2.0.0 * */ async title(): Promise { return window.__TAURI_INVOKE__("plugin:window|title", { @@ -625,6 +649,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns The window theme. + * + * @since 2.0.0 * */ async theme(): Promise { return window.__TAURI_INVOKE__("plugin:window|theme", { @@ -644,6 +670,8 @@ class WindowManager extends WebviewWindowHandle { * * @param resizable * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async center(): Promise { return window.__TAURI_INVOKE__("plugin:window|center", { @@ -671,6 +699,8 @@ class WindowManager extends WebviewWindowHandle { * * @param resizable * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async requestUserAttention( requestType: UserAttentionType | null @@ -700,6 +730,8 @@ class WindowManager extends WebviewWindowHandle { * * @param resizable * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setResizable(resizable: boolean): Promise { return window.__TAURI_INVOKE__("plugin:window|set_resizable", { @@ -718,6 +750,8 @@ class WindowManager extends WebviewWindowHandle { * * @param title The new title * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setTitle(title: string): Promise { return window.__TAURI_INVOKE__("plugin:window|set_title", { @@ -735,6 +769,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async maximize(): Promise { return window.__TAURI_INVOKE__("plugin:window|maximize", { @@ -751,6 +787,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async unmaximize(): Promise { return window.__TAURI_INVOKE__("plugin:window|unmaximize", { @@ -767,6 +805,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async toggleMaximize(): Promise { return window.__TAURI_INVOKE__("plugin:window|toggle_maximize", { @@ -783,6 +823,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async minimize(): Promise { return window.__TAURI_INVOKE__("plugin:window|minimize", { @@ -799,6 +841,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async unminimize(): Promise { return window.__TAURI_INVOKE__("plugin:window|unminimize", { @@ -815,6 +859,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async show(): Promise { return window.__TAURI_INVOKE__("plugin:window|show", { @@ -831,6 +877,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async hide(): Promise { return window.__TAURI_INVOKE__("plugin:window|hide", { @@ -847,6 +895,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async close(): Promise { return window.__TAURI_INVOKE__("plugin:window|close", { @@ -864,6 +914,8 @@ class WindowManager extends WebviewWindowHandle { * * @param decorations Whether the window should have borders and bars. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setDecorations(decorations: boolean): Promise { return window.__TAURI_INVOKE__("plugin:window|set_decorations", { @@ -891,7 +943,7 @@ class WindowManager extends WebviewWindowHandle { * * @returns A promise indicating the success or failure of the operation. * - * @since 2.0 + * @since 2.0.0 */ async setShadow(enable: boolean): Promise { return window.__TAURI_INVOKE__("plugin:window|set_shadow", { @@ -910,6 +962,8 @@ class WindowManager extends WebviewWindowHandle { * * @param alwaysOnTop Whether the window should always be on top of other windows or not. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setAlwaysOnTop(alwaysOnTop: boolean): Promise { return window.__TAURI_INVOKE__("plugin:window|set_always_on_top", { @@ -928,7 +982,7 @@ class WindowManager extends WebviewWindowHandle { * * @returns A promise indicating the success or failure of the operation. * - * @since 1.2.0 + * @since 2.0.0 */ async setContentProtected(protected_: boolean): Promise { return window.__TAURI_INVOKE__("plugin:window|set_content_protected", { @@ -947,6 +1001,8 @@ class WindowManager extends WebviewWindowHandle { * * @param size The logical or physical inner size. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setSize(size: LogicalSize | PhysicalSize): Promise { if (!size || (size.type !== "Logical" && size.type !== "Physical")) { @@ -977,6 +1033,8 @@ class WindowManager extends WebviewWindowHandle { * * @param size The logical or physical inner size, or `null` to unset the constraint. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setMinSize( size: LogicalSize | PhysicalSize | null | undefined @@ -1011,6 +1069,8 @@ class WindowManager extends WebviewWindowHandle { * * @param size The logical or physical inner size, or `null` to unset the constraint. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setMaxSize( size: LogicalSize | PhysicalSize | null | undefined @@ -1045,6 +1105,8 @@ class WindowManager extends WebviewWindowHandle { * * @param position The new position, in logical or physical pixels. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setPosition( position: LogicalPosition | PhysicalPosition @@ -1080,6 +1142,8 @@ class WindowManager extends WebviewWindowHandle { * * @param fullscreen Whether the window should go to fullscreen or not. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setFullscreen(fullscreen: boolean): Promise { return window.__TAURI_INVOKE__("plugin:window|set_fullscreen", { @@ -1097,6 +1161,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setFocus(): Promise { return window.__TAURI_INVOKE__("plugin:window|set_focus", { @@ -1121,6 +1187,8 @@ class WindowManager extends WebviewWindowHandle { * * @param icon Icon bytes or path to the icon file. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setIcon(icon: string | Uint8Array): Promise { return window.__TAURI_INVOKE__("plugin:window|set_icon", { @@ -1143,6 +1211,8 @@ class WindowManager extends WebviewWindowHandle { * * @param skip true to hide window icon, false to show it. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setSkipTaskbar(skip: boolean): Promise { return window.__TAURI_INVOKE__("plugin:window|set_skip_taskbar", { @@ -1169,6 +1239,8 @@ class WindowManager extends WebviewWindowHandle { * * @param grab `true` to grab the cursor icon, `false` to release it. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setCursorGrab(grab: boolean): Promise { return window.__TAURI_INVOKE__("plugin:window|set_cursor_grab", { @@ -1193,6 +1265,8 @@ class WindowManager extends WebviewWindowHandle { * * @param visible If `false`, this will hide the cursor. If `true`, this will show the cursor. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setCursorVisible(visible: boolean): Promise { return window.__TAURI_INVOKE__("plugin:window|set_cursor_visible", { @@ -1211,6 +1285,8 @@ class WindowManager extends WebviewWindowHandle { * * @param icon The new cursor icon. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setCursorIcon(icon: CursorIcon): Promise { return window.__TAURI_INVOKE__("plugin:window|set_cursor_icon", { @@ -1229,6 +1305,8 @@ class WindowManager extends WebviewWindowHandle { * * @param position The new cursor position. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setCursorPosition( position: LogicalPosition | PhysicalPosition @@ -1265,6 +1343,8 @@ class WindowManager extends WebviewWindowHandle { * * @param ignore `true` to ignore the cursor events; `false` to process them as usual. * @returns A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async setIgnoreCursorEvents(ignore: boolean): Promise { return window.__TAURI_INVOKE__("plugin:window|set_ignore_cursor_events", { @@ -1282,6 +1362,8 @@ class WindowManager extends WebviewWindowHandle { * ``` * * @return A promise indicating the success or failure of the operation. + * + * @since 2.0.0 */ async startDragging(): Promise { return window.__TAURI_INVOKE__("plugin:window|start_dragging", { @@ -1308,7 +1390,7 @@ class WindowManager extends WebviewWindowHandle { * @returns A promise resolving to a function to unlisten to the event. * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted. * - * @since 1.0.2 + * @since 2.0.0 */ async onResized(handler: EventCallback): Promise { return this.listen(TauriEvent.WINDOW_RESIZED, (e) => { @@ -1334,7 +1416,7 @@ class WindowManager extends WebviewWindowHandle { * @returns A promise resolving to a function to unlisten to the event. * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted. * - * @since 1.0.2 + * @since 2.0.0 */ async onMoved(handler: EventCallback): Promise { return this.listen(TauriEvent.WINDOW_MOVED, (e) => { @@ -1365,7 +1447,7 @@ class WindowManager extends WebviewWindowHandle { * @returns A promise resolving to a function to unlisten to the event. * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted. * - * @since 1.0.2 + * @since 2.0.0 */ /* eslint-disable @typescript-eslint/promise-function-async */ async onCloseRequested( @@ -1399,7 +1481,7 @@ class WindowManager extends WebviewWindowHandle { * @returns A promise resolving to a function to unlisten to the event. * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted. * - * @since 1.0.2 + * @since 2.0.0 */ async onFocusChanged(handler: EventCallback): Promise { const unlistenFocus = await this.listen( @@ -1441,7 +1523,7 @@ class WindowManager extends WebviewWindowHandle { * @returns A promise resolving to a function to unlisten to the event. * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted. * - * @since 1.0.2 + * @since 2.0.0 */ async onScaleChanged( handler: EventCallback @@ -1469,7 +1551,7 @@ class WindowManager extends WebviewWindowHandle { * @returns A promise resolving to a function to unlisten to the event. * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted. * - * @since 1.0.2 + * @since 2.0.0 */ async onMenuClicked(handler: EventCallback): Promise { return this.listen(TauriEvent.MENU, handler); @@ -1500,7 +1582,7 @@ class WindowManager extends WebviewWindowHandle { * @returns A promise resolving to a function to unlisten to the event. * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted. * - * @since 1.0.2 + * @since 2.0.0 */ async onFileDropEvent( handler: EventCallback @@ -1550,7 +1632,7 @@ class WindowManager extends WebviewWindowHandle { * @returns A promise resolving to a function to unlisten to the event. * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted. * - * @since 1.0.2 + * @since 2.0.0 */ async onThemeChanged(handler: EventCallback): Promise { return this.listen(TauriEvent.WINDOW_THEME_CHANGED, handler); @@ -1558,7 +1640,7 @@ class WindowManager extends WebviewWindowHandle { } /** - * @since 1.0.2 + * @since 2.0.0 */ class CloseRequestedEvent { /** Event name */ @@ -1615,7 +1697,7 @@ class CloseRequestedEvent { * unlisten(); * ``` * - * @since 1.0.2 + * @since 2.0.0 */ class WebviewWindow extends WindowManager { /** @@ -1636,6 +1718,8 @@ class WebviewWindow extends WindowManager { * * * @param label The unique webview window label. Must be alphanumeric: `a-zA-Z-/:_`. * @returns The WebviewWindow instance to communicate with the webview. + * + * @since 2.0.0 */ constructor(label: WindowLabel, options: WindowOptions = {}) { super(label); @@ -1663,6 +1747,8 @@ class WebviewWindow extends WindowManager { * * @param label The webview window label. * @returns The WebviewWindow instance to communicate with the webview or null if the webview doesn't exist. + * + * @since 2.0.0 */ static getByLabel(label: string): WebviewWindow | null { if (getAll().some((w) => w.label === label)) { @@ -1696,7 +1782,7 @@ if ("__TAURI_METADATA__" in window) { /** * Configuration for the window to create. * - * @since 1.0.0 + * @since 2.0.0 */ interface WindowOptions { /** @@ -1762,7 +1848,7 @@ interface WindowOptions { * and on Windows 11, it will have a rounded corners. * - **Linux:** Unsupported. * - * @since 2.0 + * @since 2.0.0 */ shadow?: boolean; /** @@ -1830,7 +1916,7 @@ function mapPhysicalSize(m: PhysicalSize): PhysicalSize { * const monitor = currentMonitor(); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function currentMonitor(): Promise { return window @@ -1847,7 +1933,7 @@ async function currentMonitor(): Promise { * const monitor = primaryMonitor(); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function primaryMonitor(): Promise { return window @@ -1863,7 +1949,7 @@ async function primaryMonitor(): Promise { * const monitors = availableMonitors(); * ``` * - * @since 1.0.0 + * @since 2.0.0 */ async function availableMonitors(): Promise { return window From 07406f1c9d7817c95dc9ebf4bfe2cdb1ea352045 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 24 May 2023 10:44:48 +0200 Subject: [PATCH 16/37] fix(deps): update rust crate iota-crypto to 0.20 (#394) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 8 ++++---- plugins/stronghold/Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 28de7d51..3b180e48 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2009,9 +2009,9 @@ dependencies = [ [[package]] name = "iota-crypto" -version = "0.19.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67d2bc02591d8a0427a8650204c259d0cad04d6cde0b6a4683906dc0b6dd3887" +checksum = "0180a2a7939b4b0ae68e651bbec130b27fd5882ef552df5bb55e0320e78bacbc" dependencies = [ "autocfg", ] @@ -4392,7 +4392,7 @@ dependencies = [ [[package]] name = "tauri-plugin-persisted-scope" -version = "0.1.0" +version = "0.1.1" dependencies = [ "aho-corasick 1.0.1", "bincode", @@ -4459,7 +4459,7 @@ name = "tauri-plugin-stronghold" version = "0.0.0" dependencies = [ "hex", - "iota-crypto 0.19.0", + "iota-crypto 0.20.0", "iota_stronghold", "log", "rand 0.8.5", diff --git a/plugins/stronghold/Cargo.toml b/plugins/stronghold/Cargo.toml index 09b3fd59..0ef6436a 100644 --- a/plugins/stronghold/Cargo.toml +++ b/plugins/stronghold/Cargo.toml @@ -16,7 +16,7 @@ tauri.workspace = true log.workspace = true thiserror.workspace = true iota_stronghold = "1" -iota-crypto = "0.19" +iota-crypto = "0.20" hex = "0.4" zeroize = { version = "1", features = ["zeroize_derive"] } From 37d65620f1d990f557f11e31c3a5af5259b53eb8 Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Wed, 24 May 2023 12:36:41 +0200 Subject: [PATCH 17/37] chore: Add mirror for notification plugin (#397) --- plugins/mirrors.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/mirrors.txt b/plugins/mirrors.txt index c294bfe2..03fc3108 100644 --- a/plugins/mirrors.txt +++ b/plugins/mirrors.txt @@ -8,6 +8,7 @@ fs global-shortcut http log +notification os positioner process From a2d68e04a1eb88ea0d74e1bb64bb8d18e762131d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 24 May 2023 10:33:37 -0300 Subject: [PATCH 18/37] Publish New Versions (v2) (#374) Co-authored-by: FabianLars Co-authored-by: Lucas Nogueira --- .changes/pre.json | 5 +- .../workflows/covector-version-or-publish.yml | 5 ++ Cargo.lock | 54 +++++++++---------- examples/api/CHANGELOG.md | 7 +++ examples/api/package.json | 29 +++++----- examples/api/src-tauri/CHANGELOG.md | 7 +++ examples/api/src-tauri/Cargo.toml | 43 +++++++-------- plugins/app/CHANGELOG.md | 5 ++ plugins/app/Cargo.toml | 2 +- plugins/app/package.json | 2 +- plugins/authenticator/CHANGELOG.md | 5 ++ plugins/authenticator/Cargo.toml | 4 +- plugins/authenticator/package.json | 2 +- plugins/autostart/CHANGELOG.md | 5 ++ plugins/autostart/Cargo.toml | 6 +-- plugins/autostart/package.json | 2 +- plugins/cli/CHANGELOG.md | 5 ++ plugins/cli/Cargo.toml | 4 +- plugins/cli/package.json | 2 +- plugins/clipboard/CHANGELOG.md | 5 ++ plugins/clipboard/Cargo.toml | 2 +- plugins/clipboard/package.json | 2 +- plugins/dialog/CHANGELOG.md | 5 ++ plugins/dialog/Cargo.toml | 6 +-- plugins/dialog/package.json | 2 +- plugins/fs/CHANGELOG.md | 5 ++ plugins/fs/Cargo.toml | 12 ++--- plugins/fs/package.json | 2 +- plugins/global-shortcut/CHANGELOG.md | 5 ++ plugins/global-shortcut/Cargo.toml | 2 +- plugins/global-shortcut/package.json | 2 +- plugins/http/CHANGELOG.md | 5 ++ plugins/http/Cargo.toml | 4 +- plugins/http/package.json | 2 +- plugins/localhost/CHANGELOG.md | 5 ++ plugins/localhost/Cargo.toml | 6 +-- plugins/log/CHANGELOG.md | 5 ++ plugins/log/Cargo.toml | 10 ++-- plugins/log/package.json | 2 +- plugins/notification/CHANGELOG.md | 5 ++ plugins/notification/Cargo.toml | 8 ++- plugins/notification/package.json | 2 +- plugins/os/CHANGELOG.md | 5 ++ plugins/os/Cargo.toml | 2 +- plugins/os/package.json | 2 +- plugins/persisted-scope/CHANGELOG.md | 6 +++ plugins/persisted-scope/Cargo.toml | 6 +-- plugins/positioner/CHANGELOG.md | 4 ++ plugins/positioner/Cargo.toml | 6 +-- plugins/positioner/package.json | 2 +- plugins/process/CHANGELOG.md | 5 ++ plugins/process/Cargo.toml | 2 +- plugins/process/package.json | 2 +- plugins/shell/CHANGELOG.md | 5 ++ plugins/shell/Cargo.toml | 4 +- plugins/shell/package.json | 2 +- plugins/single-instance/CHANGELOG.md | 5 ++ plugins/single-instance/Cargo.toml | 24 ++++----- plugins/sql/CHANGELOG.md | 5 ++ plugins/sql/Cargo.toml | 14 +++-- plugins/sql/package.json | 2 +- plugins/store/CHANGELOG.md | 5 ++ plugins/store/Cargo.toml | 6 +-- plugins/store/package.json | 2 +- plugins/stronghold/CHANGELOG.md | 5 ++ plugins/stronghold/Cargo.toml | 8 ++- plugins/stronghold/package.json | 2 +- plugins/updater/CHANGELOG.md | 5 ++ plugins/updater/Cargo.toml | 3 +- plugins/updater/package.json | 2 +- plugins/upload/CHANGELOG.md | 5 ++ plugins/upload/Cargo.toml | 6 +-- plugins/upload/package.json | 2 +- plugins/websocket/CHANGELOG.md | 5 ++ plugins/websocket/Cargo.toml | 8 ++- plugins/websocket/package.json | 2 +- plugins/window-state/CHANGELOG.md | 5 ++ plugins/window-state/Cargo.toml | 4 +- plugins/window-state/package.json | 2 +- plugins/window/CHANGELOG.md | 5 ++ plugins/window/Cargo.toml | 8 +-- plugins/window/package.json | 2 +- pnpm-lock.yaml | 26 ++++----- 83 files changed, 320 insertions(+), 199 deletions(-) create mode 100644 examples/api/CHANGELOG.md create mode 100644 examples/api/src-tauri/CHANGELOG.md create mode 100644 plugins/app/CHANGELOG.md create mode 100644 plugins/authenticator/CHANGELOG.md create mode 100644 plugins/autostart/CHANGELOG.md create mode 100644 plugins/cli/CHANGELOG.md create mode 100644 plugins/clipboard/CHANGELOG.md create mode 100644 plugins/dialog/CHANGELOG.md create mode 100644 plugins/fs/CHANGELOG.md create mode 100644 plugins/global-shortcut/CHANGELOG.md create mode 100644 plugins/http/CHANGELOG.md create mode 100644 plugins/localhost/CHANGELOG.md create mode 100644 plugins/log/CHANGELOG.md create mode 100644 plugins/notification/CHANGELOG.md create mode 100644 plugins/os/CHANGELOG.md create mode 100644 plugins/persisted-scope/CHANGELOG.md create mode 100644 plugins/process/CHANGELOG.md create mode 100644 plugins/shell/CHANGELOG.md create mode 100644 plugins/single-instance/CHANGELOG.md create mode 100644 plugins/sql/CHANGELOG.md create mode 100644 plugins/store/CHANGELOG.md create mode 100644 plugins/stronghold/CHANGELOG.md create mode 100644 plugins/updater/CHANGELOG.md create mode 100644 plugins/upload/CHANGELOG.md create mode 100644 plugins/websocket/CHANGELOG.md create mode 100644 plugins/window-state/CHANGELOG.md create mode 100644 plugins/window/CHANGELOG.md diff --git a/.changes/pre.json b/.changes/pre.json index 5914ed91..dd8471fa 100644 --- a/.changes/pre.json +++ b/.changes/pre.json @@ -1,4 +1,7 @@ { "tag": "alpha", - "changes": [] + "changes": [ + ".changes/persisted-scope-fix-oom.md", + ".changes/v2-alpha.md" + ] } diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index e5986443..c5ef8161 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -33,6 +33,11 @@ jobs: version: 7.x.x run_install: true + - name: install webkit2gtk and libudev for [authenticator] + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libudev-dev + - name: cargo login run: cargo login ${{ secrets.ORG_CRATES_IO_TOKEN }} diff --git a/Cargo.lock b/Cargo.lock index a5eef68e..8cc31251 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -206,7 +206,7 @@ checksum = "7de8ce5e0f9f8d88245311066a578d72b7af3e7088f32783804676302df237e4" [[package]] name = "api" -version = "0.1.0" +version = "2.0.0-alpha.0" dependencies = [ "log", "serde", @@ -5103,14 +5103,14 @@ dependencies = [ [[package]] name = "tauri-plugin-app" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "tauri", ] [[package]] name = "tauri-plugin-authenticator" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "authenticator", "base64 0.21.0", @@ -5129,7 +5129,7 @@ dependencies = [ [[package]] name = "tauri-plugin-autostart" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "auto-launch", "log", @@ -5141,7 +5141,7 @@ dependencies = [ [[package]] name = "tauri-plugin-cli" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "clap", "log", @@ -5153,7 +5153,7 @@ dependencies = [ [[package]] name = "tauri-plugin-clipboard" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "arboard", "log", @@ -5166,7 +5166,7 @@ dependencies = [ [[package]] name = "tauri-plugin-dialog" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "glib", "log", @@ -5182,7 +5182,7 @@ dependencies = [ [[package]] name = "tauri-plugin-fs" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "anyhow", "glob", @@ -5196,7 +5196,7 @@ dependencies = [ [[package]] name = "tauri-plugin-global-shortcut" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "global-hotkey", "log", @@ -5208,7 +5208,7 @@ dependencies = [ [[package]] name = "tauri-plugin-http" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "bytes 1.4.0", "glob", @@ -5225,7 +5225,7 @@ dependencies = [ [[package]] name = "tauri-plugin-localhost" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "http", "log", @@ -5238,7 +5238,7 @@ dependencies = [ [[package]] name = "tauri-plugin-log" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "android_logger", "byte-unit", @@ -5257,7 +5257,7 @@ dependencies = [ [[package]] name = "tauri-plugin-notification" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "log", "notify-rust", @@ -5275,7 +5275,7 @@ dependencies = [ [[package]] name = "tauri-plugin-os" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "log", "os_info", @@ -5288,7 +5288,7 @@ dependencies = [ [[package]] name = "tauri-plugin-persisted-scope" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "aho-corasick 1.0.1", "bincode", @@ -5302,7 +5302,7 @@ dependencies = [ [[package]] name = "tauri-plugin-positioner" -version = "1.0.4" +version = "2.0.0-alpha.0" dependencies = [ "log", "serde", @@ -5314,14 +5314,14 @@ dependencies = [ [[package]] name = "tauri-plugin-process" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "tauri", ] [[package]] name = "tauri-plugin-shell" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "encoding_rs", "log", @@ -5337,7 +5337,7 @@ dependencies = [ [[package]] name = "tauri-plugin-single-instance" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "log", "serde", @@ -5350,7 +5350,7 @@ dependencies = [ [[package]] name = "tauri-plugin-sql" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "futures-core", "log", @@ -5365,7 +5365,7 @@ dependencies = [ [[package]] name = "tauri-plugin-store" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "log", "serde", @@ -5376,7 +5376,7 @@ dependencies = [ [[package]] name = "tauri-plugin-stronghold" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "hex", "iota-crypto 0.17.1", @@ -5393,7 +5393,7 @@ dependencies = [ [[package]] name = "tauri-plugin-updater" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "base64 0.21.0", "dirs-next", @@ -5421,7 +5421,7 @@ dependencies = [ [[package]] name = "tauri-plugin-upload" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "futures-util", "log", @@ -5437,7 +5437,7 @@ dependencies = [ [[package]] name = "tauri-plugin-websocket" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "futures-util", "log", @@ -5452,7 +5452,7 @@ dependencies = [ [[package]] name = "tauri-plugin-window" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "serde", "tauri", @@ -5461,7 +5461,7 @@ dependencies = [ [[package]] name = "tauri-plugin-window-state" -version = "1.0.0" +version = "2.0.0-alpha.0" dependencies = [ "bincode", "bitflags 2.2.1", diff --git a/examples/api/CHANGELOG.md b/examples/api/CHANGELOG.md new file mode 100644 index 00000000..4da28c4f --- /dev/null +++ b/examples/api/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog + +## \[2.0.0-alpha.0] + +### Dependencies + +- Plugins v2 alpha. diff --git a/examples/api/package.json b/examples/api/package.json index bbfe9622..a47f5a82 100644 --- a/examples/api/package.json +++ b/examples/api/package.json @@ -1,6 +1,7 @@ { "name": "svelte-app", - "version": "1.0.0", + "private": true, + "version": "2.0.0-alpha.0", "type": "module", "scripts": { "dev": "vite --clearScreen false", @@ -10,19 +11,19 @@ "dependencies": { "@tauri-apps/api": "2.0.0-alpha.4", "@zerodevx/svelte-json-view": "0.2.1", - "@tauri-apps/plugin-app": "1.0.0", - "@tauri-apps/plugin-cli": "1.0.0", - "@tauri-apps/plugin-clipboard": "1.0.0", - "@tauri-apps/plugin-dialog": "1.0.0", - "@tauri-apps/plugin-fs": "1.0.0", - "@tauri-apps/plugin-global-shortcut": "1.0.0", - "@tauri-apps/plugin-http": "1.0.0", - "@tauri-apps/plugin-notification": "1.0.0", - "@tauri-apps/plugin-os": "1.0.0", - "@tauri-apps/plugin-process": "1.0.0", - "@tauri-apps/plugin-shell": "1.0.0", - "@tauri-apps/plugin-updater": "1.0.0", - "@tauri-apps/plugin-window": "1.0.0" + "@tauri-apps/plugin-app": "2.0.0-alpha.0", + "@tauri-apps/plugin-cli": "2.0.0-alpha.0", + "@tauri-apps/plugin-clipboard": "2.0.0-alpha.0", + "@tauri-apps/plugin-dialog": "2.0.0-alpha.0", + "@tauri-apps/plugin-fs": "2.0.0-alpha.0", + "@tauri-apps/plugin-global-shortcut": "2.0.0-alpha.0", + "@tauri-apps/plugin-http": "2.0.0-alpha.0", + "@tauri-apps/plugin-notification": "2.0.0-alpha.0", + "@tauri-apps/plugin-os": "2.0.0-alpha.0", + "@tauri-apps/plugin-process": "2.0.0-alpha.0", + "@tauri-apps/plugin-shell": "2.0.0-alpha.0", + "@tauri-apps/plugin-updater": "2.0.0-alpha.0", + "@tauri-apps/plugin-window": "2.0.0-alpha.0" }, "devDependencies": { "@iconify-json/codicon": "^1.1.10", diff --git a/examples/api/src-tauri/CHANGELOG.md b/examples/api/src-tauri/CHANGELOG.md new file mode 100644 index 00000000..4da28c4f --- /dev/null +++ b/examples/api/src-tauri/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog + +## \[2.0.0-alpha.0] + +### Dependencies + +- Plugins v2 alpha. diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index e65c3044..f7ec0eec 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -1,49 +1,50 @@ [package] name = "api" -version = "0.1.0" +publish = false +version = "2.0.0-alpha.0" description = "An example Tauri Application showcasing the api" edition = "2021" rust-version = "1.65" license = "Apache-2.0 OR MIT" [lib] -crate-type = ["staticlib", "cdylib", "rlib"] +crate-type = [ "staticlib", "cdylib", "rlib" ] [build-dependencies] -tauri-build = { workspace = true, features = ["codegen", "isolation"] } +tauri-build = { workspace = true, features = [ "codegen", "isolation" ] } [dependencies] serde_json = { workspace = true } serde = { workspace = true } tiny_http = "0.11" log = { workspace = true } -tauri-plugin-app = { path = "../../../plugins/app", version = "1.0.0" } -tauri-plugin-log = { path = "../../../plugins/log", version = "1.0.0" } -tauri-plugin-fs = { path = "../../../plugins/fs", version = "1.0.0" } -tauri-plugin-clipboard = { path = "../../../plugins/clipboard", version = "1.0.0" } -tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "1.0.0" } -tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "1.0.0" } -tauri-plugin-notification = { path = "../../../plugins/notification", version = "1.0.0", features = [ "windows7-compat" ] } -tauri-plugin-os = { path = "../../../plugins/os", version = "1.0.0" } -tauri-plugin-process = { path = "../../../plugins/process", version = "1.0.0" } -tauri-plugin-shell = { path = "../../../plugins/shell", version = "1.0.0" } -tauri-plugin-window = { path = "../../../plugins/window", version = "1.0.0", features = ["devtools", "icon-ico", "icon-png"] } +tauri-plugin-app = { path = "../../../plugins/app", version = "2.0.0-alpha.0" } +tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-alpha.0" } +tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-alpha.0" } +tauri-plugin-clipboard = { path = "../../../plugins/clipboard", version = "2.0.0-alpha.0" } +tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-alpha.0" } +tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "2.0.0-alpha.0" } +tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-alpha.0", features = [ "windows7-compat" ] } +tauri-plugin-os = { path = "../../../plugins/os", version = "2.0.0-alpha.0" } +tauri-plugin-process = { path = "../../../plugins/process", version = "2.0.0-alpha.0" } +tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-alpha.0" } +tauri-plugin-window = { path = "../../../plugins/window", version = "2.0.0-alpha.0", features = [ "devtools", "icon-ico", "icon-png" ] } -[dependencies.tauri] -workspace = true -features = [ + [dependencies.tauri] + workspace = true + features = [ "icon-ico", "icon-png", "isolation", "macos-private-api", "system-tray", - "protocol-asset", + "protocol-asset" ] [target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] -tauri-plugin-cli = { path = "../../../plugins/cli", version = "1.0.0" } -tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "1.0.0" } -tauri-plugin-updater = { path = "../../../plugins/updater", version = "1.0.0" } +tauri-plugin-cli = { path = "../../../plugins/cli", version = "2.0.0-alpha.0" } +tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "2.0.0-alpha.0" } +tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.0.0-alpha.0" } [target."cfg(target_os = \"windows\")".dependencies] window-shadows = "0.2" diff --git a/plugins/app/CHANGELOG.md b/plugins/app/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/app/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/app/Cargo.toml b/plugins/app/Cargo.toml index 521ce69c..4984ae28 100644 --- a/plugins/app/Cargo.toml +++ b/plugins/app/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-app" -version = "1.0.0" +version = "2.0.0-alpha.0" edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/app/package.json b/plugins/app/package.json index 6297bbe5..f875fdb0 100644 --- a/plugins/app/package.json +++ b/plugins/app/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-app", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/plugins/authenticator/CHANGELOG.md b/plugins/authenticator/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/authenticator/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/authenticator/Cargo.toml b/plugins/authenticator/Cargo.toml index c3ca03ca..4ce3b98e 100644 --- a/plugins/authenticator/Cargo.toml +++ b/plugins/authenticator/Cargo.toml @@ -1,14 +1,12 @@ [package] name = "tauri-plugin-authenticator" -version = "1.0.0" +version = "2.0.0-alpha.0" description = "Use hardware security-keys in your Tauri App." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/authenticator/package.json b/plugins/authenticator/package.json index 51130faf..08c5a25a 100644 --- a/plugins/authenticator/package.json +++ b/plugins/authenticator/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-authenticator", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "description": "Use hardware security-keys in your Tauri App.", "license": "MIT or APACHE-2.0", "authors": [ diff --git a/plugins/autostart/CHANGELOG.md b/plugins/autostart/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/autostart/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/autostart/Cargo.toml b/plugins/autostart/Cargo.toml index 5ff1f3b9..15e757bd 100644 --- a/plugins/autostart/Cargo.toml +++ b/plugins/autostart/Cargo.toml @@ -1,18 +1,16 @@ [package] name = "tauri-plugin-autostart" -version = "1.0.0" +version = "2.0.0-alpha.0" description = "Automatically launch your application at startup." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] serde = { workspace = true } serde_json = { workspace = true } tauri = { workspace = true } log = { workspace = true } thiserror = { workspace = true } -auto-launch = "0.4" \ No newline at end of file +auto-launch = "0.4" diff --git a/plugins/autostart/package.json b/plugins/autostart/package.json index 6bb53385..5557933d 100644 --- a/plugins/autostart/package.json +++ b/plugins/autostart/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-autostart", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/plugins/cli/CHANGELOG.md b/plugins/cli/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/cli/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/cli/Cargo.toml b/plugins/cli/Cargo.toml index 2988a077..ac5035a8 100644 --- a/plugins/cli/Cargo.toml +++ b/plugins/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-cli" -version = "1.0.0" +version = "2.0.0-alpha.0" edition = { workspace = true } authors = { workspace = true } license = { workspace = true } @@ -11,4 +11,4 @@ serde_json = { workspace = true } tauri = { workspace = true } log = { workspace = true } thiserror = { workspace = true } -clap = { version = "4", features = ["string"] } +clap = { version = "4", features = [ "string" ] } diff --git a/plugins/cli/package.json b/plugins/cli/package.json index a4baf1a8..c47c63e4 100644 --- a/plugins/cli/package.json +++ b/plugins/cli/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-cli", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/plugins/clipboard/CHANGELOG.md b/plugins/clipboard/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/clipboard/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/clipboard/Cargo.toml b/plugins/clipboard/Cargo.toml index 0d3b1e5e..ab7f5f7a 100644 --- a/plugins/clipboard/Cargo.toml +++ b/plugins/clipboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-clipboard" -version = "1.0.0" +version = "2.0.0-alpha.0" edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/clipboard/package.json b/plugins/clipboard/package.json index 84b2c998..265fe33b 100644 --- a/plugins/clipboard/package.json +++ b/plugins/clipboard/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-clipboard", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/plugins/dialog/CHANGELOG.md b/plugins/dialog/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/dialog/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/dialog/Cargo.toml b/plugins/dialog/Cargo.toml index 60f31dfc..1159ff55 100644 --- a/plugins/dialog/Cargo.toml +++ b/plugins/dialog/Cargo.toml @@ -1,20 +1,18 @@ [package] name = "tauri-plugin-dialog" -version = "1.0.0" +version = "2.0.0-alpha.0" edition = { workspace = true } authors = { workspace = true } license = { workspace = true } links = "tauri-plugin-dialog" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] serde = { workspace = true } serde_json = { workspace = true } tauri = { workspace = true } log = { workspace = true } thiserror = { workspace = true } -tauri-plugin-fs = { path = "../fs", version = "1.0.0" } +tauri-plugin-fs = { path = "../fs", version = "2.0.0-alpha.0" } [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] glib = "0.16" diff --git a/plugins/dialog/package.json b/plugins/dialog/package.json index 1622c1c4..5d83f64d 100644 --- a/plugins/dialog/package.json +++ b/plugins/dialog/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-dialog", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/plugins/fs/CHANGELOG.md b/plugins/fs/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/fs/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/fs/Cargo.toml b/plugins/fs/Cargo.toml index 59b24d61..e355ff6c 100644 --- a/plugins/fs/Cargo.toml +++ b/plugins/fs/Cargo.toml @@ -1,23 +1,21 @@ [package] name = "tauri-plugin-fs" -version = "1.0.0" +version = "2.0.0-alpha.0" description = "Access the file system." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] serde = { workspace = true } tauri = { workspace = true } thiserror = { workspace = true } anyhow = "1" -uuid = { version = "1", features = ["v4"] } +uuid = { version = "1", features = [ "v4" ] } glob = "0.3" -notify = { version = "5", optional = true, features = ["serde"] } -notify-debouncer-mini = { version = "0.2.1", optional = true, features = ["serde"] } +notify = { version = "5", optional = true, features = [ "serde" ] } +notify-debouncer-mini = { version = "0.2.1", optional = true, features = [ "serde" ] } [features] -watch = ["notify", "notify-debouncer-mini"] +watch = [ "notify", "notify-debouncer-mini" ] diff --git a/plugins/fs/package.json b/plugins/fs/package.json index 0b520585..071c6f1a 100644 --- a/plugins/fs/package.json +++ b/plugins/fs/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-fs", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "description": "Access the file system.", "license": "MIT or APACHE-2.0", "authors": [ diff --git a/plugins/global-shortcut/CHANGELOG.md b/plugins/global-shortcut/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/global-shortcut/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/global-shortcut/Cargo.toml b/plugins/global-shortcut/Cargo.toml index 927c4337..7ea3ae80 100644 --- a/plugins/global-shortcut/Cargo.toml +++ b/plugins/global-shortcut/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-global-shortcut" -version = "1.0.0" +version = "2.0.0-alpha.0" edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/global-shortcut/package.json b/plugins/global-shortcut/package.json index 686cb64e..227625c1 100644 --- a/plugins/global-shortcut/package.json +++ b/plugins/global-shortcut/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-global-shortcut", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/plugins/http/CHANGELOG.md b/plugins/http/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/http/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/http/Cargo.toml b/plugins/http/Cargo.toml index cb67760d..56b78282 100644 --- a/plugins/http/Cargo.toml +++ b/plugins/http/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-http" -version = "1.0.0" +version = "2.0.0-alpha.0" edition = { workspace = true } authors = { workspace = true } license = { workspace = true } @@ -10,7 +10,7 @@ serde = { workspace = true } serde_json = { workspace = true } tauri = { workspace = true } thiserror = { workspace = true } -tauri-plugin-fs = { path = "../fs", version = "1.0.0" } +tauri-plugin-fs = { path = "../fs", version = "2.0.0-alpha.0" } glob = "0.3" rand = "0.8" bytes = { version = "1", features = [ "serde" ] } diff --git a/plugins/http/package.json b/plugins/http/package.json index a238bb68..d1fe48e2 100644 --- a/plugins/http/package.json +++ b/plugins/http/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-http", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/plugins/localhost/CHANGELOG.md b/plugins/localhost/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/localhost/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/localhost/Cargo.toml b/plugins/localhost/Cargo.toml index 5f303476..a5586cbe 100644 --- a/plugins/localhost/Cargo.toml +++ b/plugins/localhost/Cargo.toml @@ -1,14 +1,12 @@ [package] name = "tauri-plugin-localhost" -version = "1.0.0" +version = "2.0.0-alpha.0" description = "Expose your apps assets through a localhost server instead of the default custom protocol." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] serde = { workspace = true } serde_json = { workspace = true } @@ -16,4 +14,4 @@ tauri = { workspace = true } log = { workspace = true } thiserror = { workspace = true } tiny_http = "0.12" -http = "0.2" \ No newline at end of file +http = "0.2" diff --git a/plugins/log/CHANGELOG.md b/plugins/log/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/log/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/log/Cargo.toml b/plugins/log/Cargo.toml index 9e4c8508..06a19f4a 100644 --- a/plugins/log/Cargo.toml +++ b/plugins/log/Cargo.toml @@ -1,14 +1,12 @@ [package] name = "tauri-plugin-log" -version = "1.0.0" +version = "2.0.0-alpha.0" description = "Configurable logging for your Tauri app." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [build-dependencies] tauri-build = { workspace = true } @@ -18,8 +16,8 @@ serde_json = { workspace = true } tauri = { workspace = true } serde_repr = "0.1" byte-unit = "4.0" -log = { workspace = true, features = ["kv_unstable"] } -time = { version = "0.3", features = ["formatting", "local-offset"] } +log = { workspace = true, features = [ "kv_unstable" ] } +time = { version = "0.3", features = [ "formatting", "local-offset" ] } fern = "0.6" [target."cfg(target_os = \"android\")".dependencies] @@ -31,4 +29,4 @@ objc = "0.2" cocoa = "0.24" [features] -colored = ["fern/colored"] \ No newline at end of file +colored = [ "fern/colored" ] diff --git a/plugins/log/package.json b/plugins/log/package.json index 575dcfb6..388c7aa6 100644 --- a/plugins/log/package.json +++ b/plugins/log/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-log", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "description": "Configurable logging for your Tauri app.", "license": "MIT or APACHE-2.0", "authors": [ diff --git a/plugins/notification/CHANGELOG.md b/plugins/notification/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/notification/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/notification/Cargo.toml b/plugins/notification/Cargo.toml index a6660eba..1756baf2 100644 --- a/plugins/notification/Cargo.toml +++ b/plugins/notification/Cargo.toml @@ -1,13 +1,11 @@ [package] name = "tauri-plugin-notification" -version = "1.0.0" +version = "2.0.0-alpha.0" edition = { workspace = true } authors = { workspace = true } license = { workspace = true } links = "tauri-plugin-notification" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [build-dependencies] tauri-build = { workspace = true } @@ -18,8 +16,8 @@ tauri = { workspace = true } log = { workspace = true } thiserror = { workspace = true } rand = "0.8" -time = { version = "0.3", features = ["serde", "parsing", "formatting"] } -url = { version = "2", features = ["serde"] } +time = { version = "0.3", features = [ "serde", "parsing", "formatting" ] } +url = { version = "2", features = [ "serde" ] } serde_repr = "0.1" [target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] diff --git a/plugins/notification/package.json b/plugins/notification/package.json index f43df637..1b18b55c 100644 --- a/plugins/notification/package.json +++ b/plugins/notification/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-notification", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/plugins/os/CHANGELOG.md b/plugins/os/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/os/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/os/Cargo.toml b/plugins/os/Cargo.toml index 5db78b58..8a0d0494 100644 --- a/plugins/os/Cargo.toml +++ b/plugins/os/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-os" -version = "1.0.0" +version = "2.0.0-alpha.0" edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/os/package.json b/plugins/os/package.json index b6022045..e2aae9c2 100644 --- a/plugins/os/package.json +++ b/plugins/os/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-os", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/plugins/persisted-scope/CHANGELOG.md b/plugins/persisted-scope/CHANGELOG.md new file mode 100644 index 00000000..9c19d778 --- /dev/null +++ b/plugins/persisted-scope/CHANGELOG.md @@ -0,0 +1,6 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`ebb2eb2`](https://github.com/tauri-apps/plugins-workspace/commit/ebb2eb2fe2ebfbb70530d16a983d396aa5829aa1)([#274](https://github.com/tauri-apps/plugins-workspace/pull/274)) Recursively unescape saved patterns before allowing/forbidding them. This effectively prevents `.persisted-scope` files from blowing up, which caused Out-Of-Memory issues, while automatically fixing existing broken files seamlessly. +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/persisted-scope/Cargo.toml b/plugins/persisted-scope/Cargo.toml index ec7ecf86..6b3c92e8 100644 --- a/plugins/persisted-scope/Cargo.toml +++ b/plugins/persisted-scope/Cargo.toml @@ -1,14 +1,12 @@ [package] name = "tauri-plugin-persisted-scope" -version = "1.0.0" +version = "2.0.0-alpha.0" description = "Save filesystem and asset scopes and restore them when the app is reopened." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] serde = { workspace = true } serde_json = { workspace = true } @@ -17,4 +15,4 @@ log = { workspace = true } thiserror = { workspace = true } aho-corasick = "1.0" bincode = "1" -tauri-plugin-fs = { path = "../fs", version = "1.0.0" } +tauri-plugin-fs = { path = "../fs", version = "2.0.0-alpha.0" } diff --git a/plugins/positioner/CHANGELOG.md b/plugins/positioner/CHANGELOG.md index 71199780..f0814299 100644 --- a/plugins/positioner/CHANGELOG.md +++ b/plugins/positioner/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! + ## \[0.2.7] - Update Tauri to v1.0.0 diff --git a/plugins/positioner/Cargo.toml b/plugins/positioner/Cargo.toml index 11623b33..25927a26 100644 --- a/plugins/positioner/Cargo.toml +++ b/plugins/positioner/Cargo.toml @@ -1,14 +1,12 @@ [package] name = "tauri-plugin-positioner" -version = "1.0.4" +version = "2.0.0-alpha.0" description = "Position your windows at well-known locations." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] serde = { workspace = true } serde_json = { workspace = true } @@ -18,4 +16,4 @@ thiserror = { workspace = true } serde_repr = "0.1" [features] -system-tray = [ "tauri/system-tray" ] \ No newline at end of file +system-tray = [ "tauri/system-tray" ] diff --git a/plugins/positioner/package.json b/plugins/positioner/package.json index 0dea96d4..2f064127 100644 --- a/plugins/positioner/package.json +++ b/plugins/positioner/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-positioner", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "description": "Position your windows at well-known locations.", "license": "MIT or APACHE-2.0", "authors": [ diff --git a/plugins/process/CHANGELOG.md b/plugins/process/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/process/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/process/Cargo.toml b/plugins/process/Cargo.toml index 7a44f481..64e5ab9b 100644 --- a/plugins/process/Cargo.toml +++ b/plugins/process/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-process" -version = "1.0.0" +version = "2.0.0-alpha.0" edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/process/package.json b/plugins/process/package.json index 9f2542ec..d5517cf3 100644 --- a/plugins/process/package.json +++ b/plugins/process/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-process", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/plugins/shell/CHANGELOG.md b/plugins/shell/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/shell/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/shell/Cargo.toml b/plugins/shell/Cargo.toml index a9eb609d..2e4134c6 100644 --- a/plugins/shell/Cargo.toml +++ b/plugins/shell/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-shell" -version = "1.0.0" +version = "2.0.0-alpha.0" edition = { workspace = true } authors = { workspace = true } license = { workspace = true } @@ -15,4 +15,4 @@ shared_child = "1" regex = "1" open = "4" encoding_rs = "0.8" -os_pipe = "1" \ No newline at end of file +os_pipe = "1" diff --git a/plugins/shell/package.json b/plugins/shell/package.json index 56aa7f66..79d2c0c1 100644 --- a/plugins/shell/package.json +++ b/plugins/shell/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-shell", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/plugins/single-instance/CHANGELOG.md b/plugins/single-instance/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/single-instance/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/single-instance/Cargo.toml b/plugins/single-instance/Cargo.toml index 2baa69e9..9c4fc139 100644 --- a/plugins/single-instance/Cargo.toml +++ b/plugins/single-instance/Cargo.toml @@ -1,14 +1,12 @@ [package] name = "tauri-plugin-single-instance" -version = "1.0.0" +version = "2.0.0-alpha.0" description = "Ensure a single instance of your tauri app is running." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -exclude = ["/examples"] - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +exclude = [ "/examples" ] [dependencies] serde = { workspace = true } @@ -17,17 +15,17 @@ tauri = { workspace = true } log = { workspace = true } thiserror = { workspace = true } -[target.'cfg(target_os = "windows")'.dependencies.windows-sys] +[target."cfg(target_os = \"windows\")".dependencies.windows-sys] version = "0.48" features = [ - "Win32_System_Threading", - "Win32_System_DataExchange", - "Win32_Foundation", - "Win32_UI_WindowsAndMessaging", - "Win32_Security", - "Win32_System_LibraryLoader", - "Win32_Graphics_Gdi", + "Win32_System_Threading", + "Win32_System_DataExchange", + "Win32_Foundation", + "Win32_UI_WindowsAndMessaging", + "Win32_Security", + "Win32_System_LibraryLoader", + "Win32_Graphics_Gdi" ] -[target.'cfg(target_os = "linux")'.dependencies] +[target."cfg(target_os = \"linux\")".dependencies] zbus = "3" diff --git a/plugins/sql/CHANGELOG.md b/plugins/sql/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/sql/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/sql/Cargo.toml b/plugins/sql/Cargo.toml index da263e5f..a4ddf0c2 100644 --- a/plugins/sql/Cargo.toml +++ b/plugins/sql/Cargo.toml @@ -1,14 +1,12 @@ [package] name = "tauri-plugin-sql" -version = "1.0.0" +version = "2.0.0-alpha.0" description = "Interface with SQL databases." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] serde = { workspace = true } serde_json = { workspace = true } @@ -16,11 +14,11 @@ tauri = { workspace = true } log = { workspace = true } thiserror = { workspace = true } futures-core = "0.3" -sqlx = { version = "0.6", features = ["runtime-tokio-rustls", "json", "time"] } +sqlx = { version = "0.6", features = [ "runtime-tokio-rustls", "json", "time" ] } time = "0.3" -tokio = { version = "1", features = ["sync"] } +tokio = { version = "1", features = [ "sync" ] } [features] -sqlite = ["sqlx/sqlite"] -mysql = ["sqlx/mysql"] -postgres = ["sqlx/postgres"] \ No newline at end of file +sqlite = [ "sqlx/sqlite" ] +mysql = [ "sqlx/mysql" ] +postgres = [ "sqlx/postgres" ] diff --git a/plugins/sql/package.json b/plugins/sql/package.json index 86342845..faea80a8 100644 --- a/plugins/sql/package.json +++ b/plugins/sql/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-sql", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "description": "Interface with SQL databases", "license": "MIT or APACHE-2.0", "authors": [ diff --git a/plugins/store/CHANGELOG.md b/plugins/store/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/store/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/store/Cargo.toml b/plugins/store/Cargo.toml index 3386b9fb..a2ec5226 100644 --- a/plugins/store/Cargo.toml +++ b/plugins/store/Cargo.toml @@ -1,17 +1,15 @@ [package] name = "tauri-plugin-store" -version = "1.0.0" +version = "2.0.0-alpha.0" description = "Simple, persistent key-value store." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] serde = { workspace = true } serde_json = { workspace = true } tauri = { workspace = true } log = { workspace = true } -thiserror = { workspace = true } \ No newline at end of file +thiserror = { workspace = true } diff --git a/plugins/store/package.json b/plugins/store/package.json index 00882a96..9bfaabe1 100644 --- a/plugins/store/package.json +++ b/plugins/store/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-store", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "description": "Simple, persistent key-value store.", "license": "MIT or APACHE-2.0", "authors": [ diff --git a/plugins/stronghold/CHANGELOG.md b/plugins/stronghold/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/stronghold/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/stronghold/Cargo.toml b/plugins/stronghold/Cargo.toml index 80d04b0f..6dfb18f6 100644 --- a/plugins/stronghold/Cargo.toml +++ b/plugins/stronghold/Cargo.toml @@ -1,14 +1,12 @@ [package] name = "tauri-plugin-stronghold" -version = "1.0.0" +version = "2.0.0-alpha.0" description = "Store secrets and keys using the IOTA Stronghold encrypted database." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] serde = { workspace = true } serde_json = { workspace = true } @@ -18,8 +16,8 @@ thiserror = { workspace = true } iota_stronghold = "1" iota-crypto = "0.17" hex = "0.4" -zeroize = { version = "1", features = ["zeroize_derive"] } +zeroize = { version = "1", features = [ "zeroize_derive" ] } [dev-dependencies] rand = "0.8" -rusty-fork = "0.3" \ No newline at end of file +rusty-fork = "0.3" diff --git a/plugins/stronghold/package.json b/plugins/stronghold/package.json index 04c0aacd..e4c7fc2d 100644 --- a/plugins/stronghold/package.json +++ b/plugins/stronghold/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-stronghold", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "description": "Store secrets and keys using the IOTA Stronghold encrypted database.", "license": "MIT or APACHE-2.0", "authors": [ diff --git a/plugins/updater/CHANGELOG.md b/plugins/updater/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/updater/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/updater/Cargo.toml b/plugins/updater/Cargo.toml index 3230da31..ccd767ac 100644 --- a/plugins/updater/Cargo.toml +++ b/plugins/updater/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-updater" -version = "1.0.0" +version = "2.0.0-alpha.0" edition = { workspace = true } authors = { workspace = true } license = { workspace = true } @@ -10,7 +10,6 @@ tauri = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } thiserror = { workspace = true } - tokio = "1" reqwest = { version = "0.11", default-features = false, features = [ "json", "stream" ] } url = "2" diff --git a/plugins/updater/package.json b/plugins/updater/package.json index 7de4db59..1117938d 100644 --- a/plugins/updater/package.json +++ b/plugins/updater/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-updater", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/plugins/upload/CHANGELOG.md b/plugins/upload/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/upload/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/upload/Cargo.toml b/plugins/upload/Cargo.toml index 787a072c..0f4da100 100644 --- a/plugins/upload/Cargo.toml +++ b/plugins/upload/Cargo.toml @@ -1,14 +1,12 @@ [package] name = "tauri-plugin-upload" -version = "1.0.0" +version = "2.0.0-alpha.0" description = "Upload files from disk to a remote server over HTTP." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] serde = { workspace = true } serde_json = { workspace = true } @@ -24,4 +22,4 @@ read-progress-stream = "1.0.0" [features] native-tls = [ "reqwest/native-tls" ] native-tls-vendored = [ "reqwest/native-tls-vendored" ] -rustls-tls = [ "reqwest/rustls-tls" ] \ No newline at end of file +rustls-tls = [ "reqwest/rustls-tls" ] diff --git a/plugins/upload/package.json b/plugins/upload/package.json index 6bc205bb..67ecc76d 100644 --- a/plugins/upload/package.json +++ b/plugins/upload/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-upload", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "description": "Upload files from disk to a remote server over HTTP.", "license": "MIT or APACHE-2.0", "authors": [ diff --git a/plugins/websocket/CHANGELOG.md b/plugins/websocket/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/websocket/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/websocket/Cargo.toml b/plugins/websocket/Cargo.toml index 3ab8ddb3..98251f41 100644 --- a/plugins/websocket/Cargo.toml +++ b/plugins/websocket/Cargo.toml @@ -1,13 +1,11 @@ [package] name = "tauri-plugin-websocket" -version = "1.0.0" +version = "2.0.0-alpha.0" authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -exclude = ["/examples"] - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +exclude = [ "/examples" ] [dependencies] serde = { workspace = true } @@ -17,7 +15,7 @@ log = { workspace = true } thiserror = { workspace = true } rand = "0.8" futures-util = "0.3" -tokio = { version = "1", features = ["net", "sync"] } +tokio = { version = "1", features = [ "net", "sync" ] } tokio-tungstenite = { version = "0.18" } [features] diff --git a/plugins/websocket/package.json b/plugins/websocket/package.json index e2fc865c..7cc1628b 100644 --- a/plugins/websocket/package.json +++ b/plugins/websocket/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-websocket", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/plugins/window-state/CHANGELOG.md b/plugins/window-state/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/window-state/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/window-state/Cargo.toml b/plugins/window-state/Cargo.toml index cd5cc835..b1f6c802 100644 --- a/plugins/window-state/Cargo.toml +++ b/plugins/window-state/Cargo.toml @@ -1,14 +1,12 @@ [package] name = "tauri-plugin-window-state" -version = "1.0.0" +version = "2.0.0-alpha.0" description = "Save window positions and sizes and restore them when the app is reopened." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/window-state/package.json b/plugins/window-state/package.json index 01f524d8..060ae802 100644 --- a/plugins/window-state/package.json +++ b/plugins/window-state/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-window-state", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "description": "Save window positions and sizes and restore them when the app is reopened.", "license": "MIT or APACHE-2.0", "authors": [ diff --git a/plugins/window/CHANGELOG.md b/plugins/window/CHANGELOG.md new file mode 100644 index 00000000..a70b10ec --- /dev/null +++ b/plugins/window/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## \[2.0.0-alpha.0] + +- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release! diff --git a/plugins/window/Cargo.toml b/plugins/window/Cargo.toml index e274079a..140e1895 100644 --- a/plugins/window/Cargo.toml +++ b/plugins/window/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-window" -version = "1.0.0" +version = "2.0.0-alpha.0" edition = { workspace = true } authors = { workspace = true } license = { workspace = true } @@ -11,6 +11,6 @@ serde = { workspace = true } thiserror = { workspace = true } [features] -icon-png = ["tauri/icon-png"] -icon-ico = ["tauri/icon-ico"] -devtools = [] +icon-png = [ "tauri/icon-png" ] +icon-ico = [ "tauri/icon-ico" ] +devtools = [ ] diff --git a/plugins/window/package.json b/plugins/window/package.json index 2de9b3bb..1de59aeb 100644 --- a/plugins/window/package.json +++ b/plugins/window/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-window", - "version": "1.0.0", + "version": "2.0.0-alpha.0", "license": "MIT or APACHE-2.0", "authors": [ "Tauri Programme within The Commons Conservancy" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 96d380f5..3d0bc376 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -59,43 +59,43 @@ importers: specifier: 2.0.0-alpha.4 version: 2.0.0-alpha.4 '@tauri-apps/plugin-app': - specifier: 1.0.0 + specifier: 2.0.0-alpha.0 version: link:../../plugins/app '@tauri-apps/plugin-cli': - specifier: 1.0.0 + specifier: 2.0.0-alpha.0 version: link:../../plugins/cli '@tauri-apps/plugin-clipboard': - specifier: 1.0.0 + specifier: 2.0.0-alpha.0 version: link:../../plugins/clipboard '@tauri-apps/plugin-dialog': - specifier: 1.0.0 + specifier: 2.0.0-alpha.0 version: link:../../plugins/dialog '@tauri-apps/plugin-fs': - specifier: 1.0.0 + specifier: 2.0.0-alpha.0 version: link:../../plugins/fs '@tauri-apps/plugin-global-shortcut': - specifier: 1.0.0 + specifier: 2.0.0-alpha.0 version: link:../../plugins/global-shortcut '@tauri-apps/plugin-http': - specifier: 1.0.0 + specifier: 2.0.0-alpha.0 version: link:../../plugins/http '@tauri-apps/plugin-notification': - specifier: 1.0.0 + specifier: 2.0.0-alpha.0 version: link:../../plugins/notification '@tauri-apps/plugin-os': - specifier: 1.0.0 + specifier: 2.0.0-alpha.0 version: link:../../plugins/os '@tauri-apps/plugin-process': - specifier: 1.0.0 + specifier: 2.0.0-alpha.0 version: link:../../plugins/process '@tauri-apps/plugin-shell': - specifier: 1.0.0 + specifier: 2.0.0-alpha.0 version: link:../../plugins/shell '@tauri-apps/plugin-updater': - specifier: 1.0.0 + specifier: 2.0.0-alpha.0 version: link:../../plugins/updater '@tauri-apps/plugin-window': - specifier: 1.0.0 + specifier: 2.0.0-alpha.0 version: link:../../plugins/window '@zerodevx/svelte-json-view': specifier: 0.2.1 From b5aaf5d9dd568e4e6e53155ad2be6ae213f208f4 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 24 May 2023 06:51:04 -0700 Subject: [PATCH 19/37] fix(ci): adjust package-latest-version script (#398) --- .changes/pre.json | 5 +---- .scripts/covector/package-latest-version.cjs | 10 ++++++--- plugins/upload/README.md | 22 ++++++++++---------- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.changes/pre.json b/.changes/pre.json index dd8471fa..94ca7d1f 100644 --- a/.changes/pre.json +++ b/.changes/pre.json @@ -1,7 +1,4 @@ { "tag": "alpha", - "changes": [ - ".changes/persisted-scope-fix-oom.md", - ".changes/v2-alpha.md" - ] + "changes": [".changes/persisted-scope-fix-oom.md", ".changes/v2-alpha.md"] } diff --git a/.scripts/covector/package-latest-version.cjs b/.scripts/covector/package-latest-version.cjs index 9ff107c3..68203a1f 100644 --- a/.scripts/covector/package-latest-version.cjs +++ b/.scripts/covector/package-latest-version.cjs @@ -44,10 +44,14 @@ https.get(url, options, (response) => { response.on("end", function () { const data = JSON.parse(chunks.join("")); if (kind === "cargo") { - const versions = data.versions.filter((v) => v.num.startsWith(target)); - console.log(versions.length ? versions[0].num : "0.0.0"); + if (data.versions) { + const versions = data.versions.filter((v) => v.num.startsWith(target)); + console.log(versions.length ? versions[0].num : "0.0.0"); + } else { + console.log("0.0.0"); + } } else if (kind === "npm") { - const versions = Object.keys(data.versions).filter((v) => + const versions = Object.keys(data.versions || {}).filter((v) => v.startsWith(target) ); console.log(versions[versions.length - 1] || "0.0.0"); diff --git a/plugins/upload/README.md b/plugins/upload/README.md index 7738077f..31d13238 100644 --- a/plugins/upload/README.md +++ b/plugins/upload/README.md @@ -61,25 +61,25 @@ fn main() { Afterwards all the plugin's APIs are available through the JavaScript guest bindings: ```javascript -import { upload } from '@tauri-apps/plugin-upload' +import { upload } from "@tauri-apps/plugin-upload"; upload( - 'https://example.com/file-upload', - './path/to/my/file.txt', - (progress, total) => console.log(`Uploaded ${progress} of ${total} bytes`), // a callback that will be called with the upload progress - { 'Content-Type': 'text/plain' } // optional headers to send with the request -) + "https://example.com/file-upload", + "./path/to/my/file.txt", + (progress, total) => console.log(`Uploaded ${progress} of ${total} bytes`), // a callback that will be called with the upload progress + { "Content-Type": "text/plain" } // optional headers to send with the request +); ``` ```javascript import { download } from "tauri-plugin-upload-api"; download( - 'https://example.com/file-download-link', - './path/to/save/my/file.txt', - (progress, total) => console.log(`Downloaded ${progress} of ${total} bytes`), // a callback that will be called with the download progress - { 'Content-Type': 'text/plain' } // optional headers to send with the request -) + "https://example.com/file-download-link", + "./path/to/save/my/file.txt", + (progress, total) => console.log(`Downloaded ${progress} of ${total} bytes`), // a callback that will be called with the download progress + { "Content-Type": "text/plain" } // optional headers to send with the request +); ``` ## Contributing From 396f493fdb3ef8f6249972f77c912784e322ee60 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 24 May 2023 10:55:06 -0300 Subject: [PATCH 20/37] fix(ci): install deps on v2 covector workflow --- .github/workflows/covector-version-or-publish-v2.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/covector-version-or-publish-v2.yml b/.github/workflows/covector-version-or-publish-v2.yml index 2b41de66..6d1ce3a7 100644 --- a/.github/workflows/covector-version-or-publish-v2.yml +++ b/.github/workflows/covector-version-or-publish-v2.yml @@ -33,6 +33,11 @@ jobs: version: 7.x.x run_install: true + - name: install webkit2gtk and libudev for [authenticator] + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libudev-dev + - name: cargo login run: cargo login ${{ secrets.ORG_CRATES_IO_TOKEN }} @@ -59,5 +64,5 @@ jobs: title: "Publish New Versions (v2)" commit-message: "publish new versions" labels: "version updates" - branch: "release" + branch: "release-v2" body: ${{ steps.covector.outputs.change }} From 26d993cfea66c28945ea08c949372315d5e3ff40 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 24 May 2023 07:11:26 -0700 Subject: [PATCH 21/37] chore(plugins): update description field (#399) --- plugins/app/Cargo.toml | 1 + plugins/cli/Cargo.toml | 1 + plugins/clipboard/Cargo.toml | 1 + plugins/dialog/Cargo.toml | 1 + plugins/global-shortcut/Cargo.toml | 1 + plugins/http/Cargo.toml | 1 + plugins/notification/Cargo.toml | 1 + plugins/os/Cargo.toml | 1 + plugins/process/Cargo.toml | 1 + plugins/shell/Cargo.toml | 1 + plugins/updater/Cargo.toml | 1 + plugins/websocket/Cargo.toml | 1 + plugins/window/Cargo.toml | 1 + 13 files changed, 13 insertions(+) diff --git a/plugins/app/Cargo.toml b/plugins/app/Cargo.toml index 4984ae28..6ae1ca3f 100644 --- a/plugins/app/Cargo.toml +++ b/plugins/app/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "tauri-plugin-app" version = "2.0.0-alpha.0" +description = "APIs to read application metadata and change app visibility on macOS." edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/cli/Cargo.toml b/plugins/cli/Cargo.toml index ac5035a8..b3a2ca7d 100644 --- a/plugins/cli/Cargo.toml +++ b/plugins/cli/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "tauri-plugin-cli" version = "2.0.0-alpha.0" +description = "Parse arguments from your Tauri application's command line interface." edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/clipboard/Cargo.toml b/plugins/clipboard/Cargo.toml index ab7f5f7a..96522fb8 100644 --- a/plugins/clipboard/Cargo.toml +++ b/plugins/clipboard/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "tauri-plugin-clipboard" version = "2.0.0-alpha.0" +description = "Read and write to the system clipboard." edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/dialog/Cargo.toml b/plugins/dialog/Cargo.toml index 1159ff55..7ca49870 100644 --- a/plugins/dialog/Cargo.toml +++ b/plugins/dialog/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "tauri-plugin-dialog" version = "2.0.0-alpha.0" +description = "Native system dialogs for opening and saving files along with message dialogs on your Tauri application." edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/global-shortcut/Cargo.toml b/plugins/global-shortcut/Cargo.toml index 7ea3ae80..b281d2b0 100644 --- a/plugins/global-shortcut/Cargo.toml +++ b/plugins/global-shortcut/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "tauri-plugin-global-shortcut" version = "2.0.0-alpha.0" +description = "Register global hotkeys listeners on your Tauri application." edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/http/Cargo.toml b/plugins/http/Cargo.toml index 56b78282..f1fb6082 100644 --- a/plugins/http/Cargo.toml +++ b/plugins/http/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "tauri-plugin-http" version = "2.0.0-alpha.0" +description = "Access an HTTP client written in Rust." edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/notification/Cargo.toml b/plugins/notification/Cargo.toml index 1756baf2..a89a731f 100644 --- a/plugins/notification/Cargo.toml +++ b/plugins/notification/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "tauri-plugin-notification" version = "2.0.0-alpha.0" +description = "Send desktop and mobile notifications on your Tauri application." edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/os/Cargo.toml b/plugins/os/Cargo.toml index 8a0d0494..2890d540 100644 --- a/plugins/os/Cargo.toml +++ b/plugins/os/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "tauri-plugin-os" version = "2.0.0-alpha.0" +description = "Read information about the operating system." edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/process/Cargo.toml b/plugins/process/Cargo.toml index 64e5ab9b..f018daa1 100644 --- a/plugins/process/Cargo.toml +++ b/plugins/process/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "tauri-plugin-process" version = "2.0.0-alpha.0" +description = "Access the current process of your Tauri application." edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/shell/Cargo.toml b/plugins/shell/Cargo.toml index 2e4134c6..2502b782 100644 --- a/plugins/shell/Cargo.toml +++ b/plugins/shell/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "tauri-plugin-shell" version = "2.0.0-alpha.0" +description = "Access the system shell. Allows you to spawn child processes and manage files and URLs using their default application." edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/updater/Cargo.toml b/plugins/updater/Cargo.toml index ccd767ac..7342e8d8 100644 --- a/plugins/updater/Cargo.toml +++ b/plugins/updater/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "tauri-plugin-updater" version = "2.0.0-alpha.0" +description = "In-app updates for Tauri applications." edition = { workspace = true } authors = { workspace = true } license = { workspace = true } diff --git a/plugins/websocket/Cargo.toml b/plugins/websocket/Cargo.toml index f988f785..a9c00ba1 100644 --- a/plugins/websocket/Cargo.toml +++ b/plugins/websocket/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "tauri-plugin-websocket" version = "2.0.0-alpha.0" +description = "Expose a WebSocket server to your Tauri frontend." authors = { workspace = true } license = { workspace = true } edition = { workspace = true } diff --git a/plugins/window/Cargo.toml b/plugins/window/Cargo.toml index 140e1895..7e52814d 100644 --- a/plugins/window/Cargo.toml +++ b/plugins/window/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "tauri-plugin-window" version = "2.0.0-alpha.0" +description = "Interact with the Tauri window." edition = { workspace = true } authors = { workspace = true } license = { workspace = true } From b259baa17e3f0b9e192bcc3060f5820c2e09c85e Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 24 May 2023 08:06:07 -0700 Subject: [PATCH 22/37] refactor: rename clipboard plugin to clipboard-manager (#400) --- .changes/config.json | 8 +++---- .changes/v2-alpha.md | 4 ++-- .github/workflows/check-generated-files.yml | 6 ++--- .github/workflows/lint-rust.yml | 4 ++-- .github/workflows/test-rust.yml | 4 ++-- Cargo.lock | 4 ++-- examples/api/package.json | 2 +- examples/api/src-tauri/Cargo.toml | 2 +- examples/api/src-tauri/src/lib.rs | 2 +- examples/api/src/views/Clipboard.svelte | 2 +- .../.gitignore | 0 .../CHANGELOG.md | 0 .../Cargo.toml | 4 ++-- .../LICENSE.spdx | 0 .../LICENSE_APACHE-2.0 | 0 .../LICENSE_MIT | 0 .../README.md | 22 +++++++++---------- .../android/.gitignore | 0 .../android/build.gradle.kts | 0 .../android/proguard-rules.pro | 0 .../android/settings.gradle | 0 .../java/ExampleInstrumentedTest.kt | 0 .../android/src/main/AndroidManifest.xml | 0 .../android/src/main/java/ClipboardPlugin.kt | 0 .../android/src/test/java/ExampleUnitTest.kt | 0 .../{clipboard => clipboard-manager}/build.rs | 0 .../guest-js/index.ts | 4 ++-- .../ios/.gitignore | 0 .../ios/Package.swift | 8 +++---- .../ios/README.md | 0 .../ios/Sources/ClipboardPlugin.swift | 0 .../ios/Tests/PluginTests/PluginTests.swift | 0 .../package.json | 2 +- .../rollup.config.mjs | 0 plugins/clipboard-manager/src/api-iife.js | 1 + .../src/commands.rs | 0 .../src/desktop.rs | 0 .../src/error.rs | 0 .../src/lib.rs | 0 .../src/mobile.rs | 0 .../src/models.rs | 0 .../tsconfig.json | 0 plugins/clipboard/src/api-iife.js | 1 - plugins/mirrors.txt | 2 +- pnpm-lock.yaml | 6 ++--- 45 files changed, 44 insertions(+), 44 deletions(-) rename plugins/{clipboard => clipboard-manager}/.gitignore (100%) rename plugins/{clipboard => clipboard-manager}/CHANGELOG.md (100%) rename plugins/{clipboard => clipboard-manager}/Cargo.toml (88%) rename plugins/{clipboard => clipboard-manager}/LICENSE.spdx (100%) rename plugins/{clipboard => clipboard-manager}/LICENSE_APACHE-2.0 (100%) rename plugins/{clipboard => clipboard-manager}/LICENSE_MIT (100%) rename plugins/{clipboard => clipboard-manager}/README.md (74%) rename plugins/{clipboard => clipboard-manager}/android/.gitignore (100%) rename plugins/{clipboard => clipboard-manager}/android/build.gradle.kts (100%) rename plugins/{clipboard => clipboard-manager}/android/proguard-rules.pro (100%) rename plugins/{clipboard => clipboard-manager}/android/settings.gradle (100%) rename plugins/{clipboard => clipboard-manager}/android/src/androidTest/java/ExampleInstrumentedTest.kt (100%) rename plugins/{clipboard => clipboard-manager}/android/src/main/AndroidManifest.xml (100%) rename plugins/{clipboard => clipboard-manager}/android/src/main/java/ClipboardPlugin.kt (100%) rename plugins/{clipboard => clipboard-manager}/android/src/test/java/ExampleUnitTest.kt (100%) rename plugins/{clipboard => clipboard-manager}/build.rs (100%) rename plugins/{clipboard => clipboard-manager}/guest-js/index.ts (94%) rename plugins/{clipboard => clipboard-manager}/ios/.gitignore (100%) rename plugins/{clipboard => clipboard-manager}/ios/Package.swift (81%) rename plugins/{clipboard => clipboard-manager}/ios/README.md (100%) rename plugins/{clipboard => clipboard-manager}/ios/Sources/ClipboardPlugin.swift (100%) rename plugins/{clipboard => clipboard-manager}/ios/Tests/PluginTests/PluginTests.swift (100%) rename plugins/{clipboard => clipboard-manager}/package.json (92%) rename plugins/{clipboard => clipboard-manager}/rollup.config.mjs (100%) create mode 100644 plugins/clipboard-manager/src/api-iife.js rename plugins/{clipboard => clipboard-manager}/src/commands.rs (100%) rename plugins/{clipboard => clipboard-manager}/src/desktop.rs (100%) rename plugins/{clipboard => clipboard-manager}/src/error.rs (100%) rename plugins/{clipboard => clipboard-manager}/src/lib.rs (100%) rename plugins/{clipboard => clipboard-manager}/src/mobile.rs (100%) rename plugins/{clipboard => clipboard-manager}/src/models.rs (100%) rename plugins/{clipboard => clipboard-manager}/tsconfig.json (100%) delete mode 100644 plugins/clipboard/src/api-iife.js diff --git a/.changes/config.json b/.changes/config.json index 36d6e5f2..8e79bb83 100644 --- a/.changes/config.json +++ b/.changes/config.json @@ -112,12 +112,12 @@ "manager": "javascript" }, - "clipboard": { - "path": "./plugins/clipboard", + "clipboard-manager": { + "path": "./plugins/clipboard-manager", "manager": "rust" }, - "clipboard-js": { - "path": "./plugins/clipboard", + "clipboard-manager-js": { + "path": "./plugins/clipboard-manager", "manager": "javascript" }, diff --git a/.changes/v2-alpha.md b/.changes/v2-alpha.md index 6c8e7894..4083686d 100644 --- a/.changes/v2-alpha.md +++ b/.changes/v2-alpha.md @@ -7,8 +7,8 @@ "autostart-js": major "cli": major "cli-js": major -"clipboard": major -"clipboard-js": major +"clipboard-manager": major +"clipboard-manager-js": major "dialog": major "dialog-js": major "fs": major diff --git a/.github/workflows/check-generated-files.yml b/.github/workflows/check-generated-files.yml index 86502340..a5be08c0 100644 --- a/.github/workflows/check-generated-files.yml +++ b/.github/workflows/check-generated-files.yml @@ -41,10 +41,10 @@ jobs: - .github/workflows/check-generated-files.yml - plugins/cli/guest-js/** - plugins/cli/src/api-iife.js - clipboard: + clipboard-manager: - .github/workflows/check-generated-files.yml - - plugins/clipboard/guest-js/** - - plugins/clipboard/src/api-iife.js + - plugins/clipboard-manager/guest-js/** + - plugins/clipboard-manager/src/api-iife.js dialog: - .github/workflows/check-generated-files.yml - plugins/dialog/guest-js/** diff --git a/.github/workflows/lint-rust.yml b/.github/workflows/lint-rust.yml index 77ade591..720fb77d 100644 --- a/.github/workflows/lint-rust.yml +++ b/.github/workflows/lint-rust.yml @@ -53,9 +53,9 @@ jobs: tauri-plugin-cli: - .github/workflows/lint-rust.yml - plugins/cli/** - tauri-plugin-clipboard: + tauri-plugin-clipboard-manager: - .github/workflows/lint-rust.yml - - plugins/clipboard/** + - plugins/clipboard-manager/** tauri-plugin-dialog: - .github/workflows/lint-rust.yml - plugins/dialog/** diff --git a/.github/workflows/test-rust.yml b/.github/workflows/test-rust.yml index 6d4458ee..cf0de8e1 100644 --- a/.github/workflows/test-rust.yml +++ b/.github/workflows/test-rust.yml @@ -55,9 +55,9 @@ jobs: tauri-plugin-cli: - .github/workflows/test-rust.yml - plugins/cli/** - tauri-plugin-clipboard: + tauri-plugin-clipboard-manager: - .github/workflows/test-rust.yml - - plugins/clipboard/** + - plugins/clipboard-manager/** tauri-plugin-dialog: - .github/workflows/test-rust.yml - plugins/dialog/** diff --git a/Cargo.lock b/Cargo.lock index 9b2c7533..5fe18839 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -215,7 +215,7 @@ dependencies = [ "tauri-build", "tauri-plugin-app", "tauri-plugin-cli", - "tauri-plugin-clipboard", + "tauri-plugin-clipboard-manager", "tauri-plugin-dialog", "tauri-plugin-fs", "tauri-plugin-global-shortcut", @@ -5158,7 +5158,7 @@ dependencies = [ ] [[package]] -name = "tauri-plugin-clipboard" +name = "tauri-plugin-clipboard-manager" version = "2.0.0-alpha.0" dependencies = [ "arboard", diff --git a/examples/api/package.json b/examples/api/package.json index a47f5a82..74272660 100644 --- a/examples/api/package.json +++ b/examples/api/package.json @@ -13,7 +13,7 @@ "@zerodevx/svelte-json-view": "0.2.1", "@tauri-apps/plugin-app": "2.0.0-alpha.0", "@tauri-apps/plugin-cli": "2.0.0-alpha.0", - "@tauri-apps/plugin-clipboard": "2.0.0-alpha.0", + "@tauri-apps/plugin-clipboard-manager": "2.0.0-alpha.0", "@tauri-apps/plugin-dialog": "2.0.0-alpha.0", "@tauri-apps/plugin-fs": "2.0.0-alpha.0", "@tauri-apps/plugin-global-shortcut": "2.0.0-alpha.0", diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index f7ec0eec..06428b8e 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -21,7 +21,7 @@ log = { workspace = true } tauri-plugin-app = { path = "../../../plugins/app", version = "2.0.0-alpha.0" } tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-alpha.0" } tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-alpha.0" } -tauri-plugin-clipboard = { path = "../../../plugins/clipboard", version = "2.0.0-alpha.0" } +tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.0.0-alpha.0" } tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-alpha.0" } tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "2.0.0-alpha.0" } tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-alpha.0", features = [ "windows7-compat" ] } diff --git a/examples/api/src-tauri/src/lib.rs b/examples/api/src-tauri/src/lib.rs index 41be8760..812091e5 100644 --- a/examples/api/src-tauri/src/lib.rs +++ b/examples/api/src-tauri/src/lib.rs @@ -33,7 +33,7 @@ pub fn run() { ) .plugin(tauri_plugin_app::init()) .plugin(tauri_plugin_fs::init()) - .plugin(tauri_plugin_clipboard::init()) + .plugin(tauri_plugin_clipboard_manager::init()) .plugin(tauri_plugin_dialog::init()) .plugin(tauri_plugin_http::init()) .plugin(tauri_plugin_notification::init()) diff --git a/examples/api/src/views/Clipboard.svelte b/examples/api/src/views/Clipboard.svelte index d75cfbcc..f571b2ee 100644 --- a/examples/api/src/views/Clipboard.svelte +++ b/examples/api/src/views/Clipboard.svelte @@ -1,5 +1,5 @@