From e2a54e9cf40345d80662899a5dc732fbadcd7ac6 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 22 May 2023 12:07:32 -0700 Subject: [PATCH 1/9] 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 2/9] 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 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 3/9] 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 393667b547c099c1ad68b7e6858454ef55e15560 Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Fri, 2 Jun 2023 13:30:44 +0200 Subject: [PATCH 4/9] chore: update pnpm version to 7.33 (#413) * chore: update pnpm version to 7.33 * fmt --- .npmrc | 1 + package.json | 2 +- plugins/upload/README.md | 22 +++++++++++----------- pnpm-lock.yaml | 6 +++++- 4 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..f87a0443 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +auto-install-peers=true \ No newline at end of file diff --git a/package.json b/package.json index 8a842919..f25a88ae 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,6 @@ "typescript": "^5.0.4" }, "engines": { - "pnpm": ">=7.24.2" + "pnpm": ">=7.33.0" } } diff --git a/plugins/upload/README.md b/plugins/upload/README.md index 0f74288d..48fe0153 100644 --- a/plugins/upload/README.md +++ b/plugins/upload/README.md @@ -52,25 +52,25 @@ fn main() { Afterwards all the plugin's APIs are available through the JavaScript guest bindings: ```javascript -import { upload } from 'tauri-plugin-upload-api' +import { upload } from "tauri-plugin-upload-api"; 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 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 18a1cda0..69468078 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,4 +1,8 @@ -lockfileVersion: '6.0' +lockfileVersion: '6.1' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false importers: From 29bf8a2ab45ad0f16c467d2a1bcb7a26424cc634 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 2 Jun 2023 13:48:49 +0200 Subject: [PATCH 5/9] chore(deps): update dependency eslint-config-standard-with-typescript to v35 (#412) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index f25a88ae..8872a988 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@typescript-eslint/parser": "^5.58.0", "eslint": "^8.38.0", "eslint-config-prettier": "^8.8.0", - "eslint-config-standard-with-typescript": "^34.0.1", + "eslint-config-standard-with-typescript": "^35.0.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-n": "^16.0.0", "eslint-plugin-promise": "^6.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 69468078..c5ee8389 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,8 +30,8 @@ importers: specifier: ^8.8.0 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@16.0.0)(eslint-plugin-promise@6.1.1)(eslint@8.38.0)(typescript@5.0.4) + specifier: ^35.0.0 + version: 35.0.0(@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) @@ -1311,10 +1311,10 @@ 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@16.0.0)(eslint-plugin-promise@6.1.1)(eslint@8.38.0)(typescript@5.0.4): - resolution: {integrity: sha512-J7WvZeLtd0Vr9F+v4dZbqJCLD16cbIy4U+alJMq4MiXdpipdBM3U5NkXaGUjePc4sb1ZE01U9g6VuTBpHHz1fg==} + /eslint-config-standard-with-typescript@35.0.0(@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-Xa7DY9GgduZyp0qmXxBF0/dB+Vm4/DgWu1lGpNLJV2d46aCaUxTKDEnkzjUWX/1O9S0a+Dhnw7A4oI0JpYzwtw==} peerDependencies: - '@typescript-eslint/eslint-plugin': ^5.43.0 + '@typescript-eslint/eslint-plugin': ^5.50.0 eslint: ^8.0.1 eslint-plugin-import: ^2.25.2 eslint-plugin-n: ^15.0.0 From b3d7d11ae32e0970184f53be26e2c5530f78cdf0 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 6 Jun 2023 04:50:05 -0700 Subject: [PATCH 6/9] fix(stronghold): remove constructor, add static load function (#416) --- .changes/stronghold-constructor.md | 5 +++++ plugins/stronghold/guest-js/index.ts | 11 +++++------ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 .changes/stronghold-constructor.md diff --git a/.changes/stronghold-constructor.md b/.changes/stronghold-constructor.md new file mode 100644 index 00000000..99966095 --- /dev/null +++ b/.changes/stronghold-constructor.md @@ -0,0 +1,5 @@ +--- +"stronghold-js": minor +--- + +Added `Stronghold.load` and removed its constructor. diff --git a/plugins/stronghold/guest-js/index.ts b/plugins/stronghold/guest-js/index.ts index 3339f87f..071eabf1 100644 --- a/plugins/stronghold/guest-js/index.ts +++ b/plugins/stronghold/guest-js/index.ts @@ -395,21 +395,20 @@ export class Stronghold { * @param path * @param password */ - constructor(path: string, password: string) { + private constructor(path: string) { this.path = path; - void this.reload(password); } /** - * Force a reload of the snapshot. The password must match. + * Load the snapshot if it exists (password must match), or start a fresh stronghold instance otherwise. * @param password * @returns */ - private async reload(password: string): Promise { + static async load(path: string, password: string): Promise { return await invoke("plugin:stronghold|initialize", { - snapshotPath: this.path, + snapshotPath: path, password, - }); + }).then(() => new Stronghold(path)); } /** From ea63b40224fa63b6827f09984ff69943fcacf92b Mon Sep 17 00:00:00 2001 From: Alexandre Dang <124160233+vdang-crabnebula@users.noreply.github.com> Date: Wed, 7 Jun 2023 13:09:43 +0200 Subject: [PATCH 7/9] fix(stronghold): change wrong argument name for `remove` (#422) --- .changes/stronghold-arg-name.md | 5 +++++ plugins/stronghold/guest-js/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/stronghold-arg-name.md diff --git a/.changes/stronghold-arg-name.md b/.changes/stronghold-arg-name.md new file mode 100644 index 00000000..61efc0ed --- /dev/null +++ b/.changes/stronghold-arg-name.md @@ -0,0 +1,5 @@ +--- +"stronghold-js": patch +--- + +Change the argument name of the `Stronghold.remove` from `location` to `recordPath` to match the Stronghold command argument diff --git a/plugins/stronghold/guest-js/index.ts b/plugins/stronghold/guest-js/index.ts index 071eabf1..9272f9a9 100644 --- a/plugins/stronghold/guest-js/index.ts +++ b/plugins/stronghold/guest-js/index.ts @@ -378,7 +378,7 @@ export class Vault extends ProcedureExecutor { snapshotPath: this.path, client: this.client, vault: this.name, - location, + recordPath: location.payload.record, }); } } From 523bcdc5288dd990ee7905a8c762c165d44d612c Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Wed, 7 Jun 2023 14:19:29 +0200 Subject: [PATCH 8/9] fix(window-state): correctly set decoration state if no saved state exists, fixes #421 (#424) --- plugins/window-state/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/window-state/src/lib.rs b/plugins/window-state/src/lib.rs index 2a23f35d..676baf5e 100644 --- a/plugins/window-state/src/lib.rs +++ b/plugins/window-state/src/lib.rs @@ -175,7 +175,7 @@ impl WindowExt for Window { } if flags.contains(StateFlags::DECORATIONS) { - metadata.visible = self.is_visible()?; + metadata.decorated = self.is_decorated()?; } if flags.contains(StateFlags::FULLSCREEN) { From 0984fc8374c7d623ddc5f56cab1b235020337af2 Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Mon, 12 Jun 2023 11:20:59 +0200 Subject: [PATCH 9/9] chore: Add branch to install instructions that use git (#433) --- plugins/authenticator/README.md | 6 +++--- plugins/autostart/README.md | 6 +++--- plugins/fs-extra/README.md | 6 +++--- plugins/fs-watch/README.md | 6 +++--- plugins/log/README.md | 6 +++--- plugins/positioner/README.md | 6 +++--- plugins/sql/README.md | 6 +++--- plugins/store/README.md | 6 +++--- plugins/stronghold/README.md | 6 +++--- plugins/upload/README.md | 6 +++--- plugins/websocket/README.md | 6 +++--- plugins/window-state/README.md | 6 +++--- shared/template/README.md | 2 ++ 13 files changed, 38 insertions(+), 36 deletions(-) diff --git a/plugins/authenticator/README.md b/plugins/authenticator/README.md index 89fa6e29..41a38510 100644 --- a/plugins/authenticator/README.md +++ b/plugins/authenticator/README.md @@ -28,11 +28,11 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa > Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. ```sh -pnpm add https://github.com/tauri-apps/tauri-plugin-authenticator +pnpm add https://github.com/tauri-apps/tauri-plugin-authenticator#v1 # or -npm add https://github.com/tauri-apps/tauri-plugin-authenticator +npm add https://github.com/tauri-apps/tauri-plugin-authenticator#v1 # or -yarn add https://github.com/tauri-apps/tauri-plugin-authenticator +yarn add https://github.com/tauri-apps/tauri-plugin-authenticator#v1 ``` ## Usage diff --git a/plugins/autostart/README.md b/plugins/autostart/README.md index 7c9f8ddb..eaf79ec9 100644 --- a/plugins/autostart/README.md +++ b/plugins/autostart/README.md @@ -26,11 +26,11 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa > Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. ```sh -pnpm add https://github.com/tauri-apps/tauri-plugin-autostart +pnpm add https://github.com/tauri-apps/tauri-plugin-autostart#v1 # or -npm add https://github.com/tauri-apps/tauri-plugin-autostart +npm add https://github.com/tauri-apps/tauri-plugin-autostart#v1 # or -yarn add https://github.com/tauri-apps/tauri-plugin-autostart +yarn add https://github.com/tauri-apps/tauri-plugin-autostart#v1 ``` ## Usage diff --git a/plugins/fs-extra/README.md b/plugins/fs-extra/README.md index 3eeaf003..52f65e13 100644 --- a/plugins/fs-extra/README.md +++ b/plugins/fs-extra/README.md @@ -26,11 +26,11 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa > Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. ```sh -pnpm add https://github.com/tauri-apps/tauri-plugin-fs-extra +pnpm add https://github.com/tauri-apps/tauri-plugin-fs-extra#v1 # or -npm add https://github.com/tauri-apps/tauri-plugin-fs-extra +npm add https://github.com/tauri-apps/tauri-plugin-fs-extra#v1 # or -yarn add https://github.com/tauri-apps/tauri-plugin-fs-extra +yarn add https://github.com/tauri-apps/tauri-plugin-fs-extra#v1 ``` ## Usage diff --git a/plugins/fs-watch/README.md b/plugins/fs-watch/README.md index 29f6cc11..84b65109 100644 --- a/plugins/fs-watch/README.md +++ b/plugins/fs-watch/README.md @@ -26,11 +26,11 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa > Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. ```sh -pnpm add https://github.com/tauri-apps/tauri-plugin-fs-watch +pnpm add https://github.com/tauri-apps/tauri-plugin-fs-watch#v1 # or -npm add https://github.com/tauri-apps/tauri-plugin-fs-watch +npm add https://github.com/tauri-apps/tauri-plugin-fs-watch#v1 # or -yarn add https://github.com/tauri-apps/tauri-plugin-fs-watch +yarn add https://github.com/tauri-apps/tauri-plugin-fs-watch#v1 ``` ## Usage diff --git a/plugins/log/README.md b/plugins/log/README.md index e4326f38..f50a7eec 100644 --- a/plugins/log/README.md +++ b/plugins/log/README.md @@ -26,11 +26,11 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa > Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. ```sh -pnpm add https://github.com/tauri-apps/tauri-plugin-log +pnpm add https://github.com/tauri-apps/tauri-plugin-log#v1 # or -npm add https://github.com/tauri-apps/tauri-plugin-log +npm add https://github.com/tauri-apps/tauri-plugin-log#v1 # or -yarn add https://github.com/tauri-apps/tauri-plugin-log +yarn add https://github.com/tauri-apps/tauri-plugin-log#v1 ``` ## Usage diff --git a/plugins/positioner/README.md b/plugins/positioner/README.md index 464e3cfb..924598e5 100644 --- a/plugins/positioner/README.md +++ b/plugins/positioner/README.md @@ -40,11 +40,11 @@ yarn add tauri-plugin-positioner-api Or through git: ```sh -pnpm add https://github.com/tauri-apps/tauri-plugin-positioner +pnpm add https://github.com/tauri-apps/tauri-plugin-positioner#v1 # or -npm add https://github.com/tauri-apps/tauri-plugin-positioner +npm add https://github.com/tauri-apps/tauri-plugin-positioner#v1 # or -yarn add https://github.com/tauri-apps/tauri-plugin-positioner +yarn add https://github.com/tauri-apps/tauri-plugin-positioner#v1 ``` ## Usage diff --git a/plugins/sql/README.md b/plugins/sql/README.md index 2522848d..9f263742 100644 --- a/plugins/sql/README.md +++ b/plugins/sql/README.md @@ -28,11 +28,11 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa > Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. ```sh -pnpm add https://github.com/tauri-apps/tauri-plugin-sql +pnpm add https://github.com/tauri-apps/tauri-plugin-sql#v1 # or -npm add https://github.com/tauri-apps/tauri-plugin-sql +npm add https://github.com/tauri-apps/tauri-plugin-sql#v1 # or -yarn add https://github.com/tauri-apps/tauri-plugin-sql +yarn add https://github.com/tauri-apps/tauri-plugin-sql#v1 ``` ## Usage diff --git a/plugins/store/README.md b/plugins/store/README.md index 4aef4a96..6ab5809f 100644 --- a/plugins/store/README.md +++ b/plugins/store/README.md @@ -26,11 +26,11 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa > Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. ```sh -pnpm add https://github.com/tauri-apps/tauri-plugin-store +pnpm add https://github.com/tauri-apps/tauri-plugin-store#v1 # or -npm add https://github.com/tauri-apps/tauri-plugin-store +npm add https://github.com/tauri-apps/tauri-plugin-store#v1 # or -yarn add https://github.com/tauri-apps/tauri-plugin-store +yarn add https://github.com/tauri-apps/tauri-plugin-store#v1 ``` ## Usage diff --git a/plugins/stronghold/README.md b/plugins/stronghold/README.md index 5c486b96..1a1724d8 100644 --- a/plugins/stronghold/README.md +++ b/plugins/stronghold/README.md @@ -26,11 +26,11 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa > Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. ```sh -pnpm add https://github.com/tauri-apps/tauri-plugin-stronghold +pnpm add https://github.com/tauri-apps/tauri-plugin-stronghold#v1 # or -npm add https://github.com/tauri-apps/tauri-plugin-stronghold +npm add https://github.com/tauri-apps/tauri-plugin-stronghold#v1 # or -yarn add https://github.com/tauri-apps/tauri-plugin-stronghold +yarn add https://github.com/tauri-apps/tauri-plugin-stronghold#v1 ``` ## Usage diff --git a/plugins/upload/README.md b/plugins/upload/README.md index 48fe0153..64e1a891 100644 --- a/plugins/upload/README.md +++ b/plugins/upload/README.md @@ -27,11 +27,11 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa > Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. ```sh -pnpm add https://github.com/tauri-apps/tauri-plugin-upload +pnpm add https://github.com/tauri-apps/tauri-plugin-upload#v1 # or -npm add https://github.com/tauri-apps/tauri-plugin-upload +npm add https://github.com/tauri-apps/tauri-plugin-upload#v1 # or -yarn add https://github.com/tauri-apps/tauri-plugin-upload +yarn add https://github.com/tauri-apps/tauri-plugin-upload#v1 ``` ## Usage diff --git a/plugins/websocket/README.md b/plugins/websocket/README.md index 7c34af4a..9ca516c5 100644 --- a/plugins/websocket/README.md +++ b/plugins/websocket/README.md @@ -26,11 +26,11 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa > Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. ```sh -pnpm add https://github.com/tauri-apps/tauri-plugin-websocket +pnpm add https://github.com/tauri-apps/tauri-plugin-websocket#v1 # or -npm add https://github.com/tauri-apps/tauri-plugin-websocket +npm add https://github.com/tauri-apps/tauri-plugin-websocket#v1 # or -yarn add https://github.com/tauri-apps/tauri-plugin-websocket +yarn add https://github.com/tauri-apps/tauri-plugin-websocket#v1 ``` ## Usage diff --git a/plugins/window-state/README.md b/plugins/window-state/README.md index 02a1bdd1..c0c49de6 100644 --- a/plugins/window-state/README.md +++ b/plugins/window-state/README.md @@ -26,11 +26,11 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa > Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. ```sh -pnpm add https://github.com/tauri-apps/tauri-plugin-window-state +pnpm add https://github.com/tauri-apps/tauri-plugin-window-state#v1 # or -npm add https://github.com/tauri-apps/tauri-plugin-window-state +npm add https://github.com/tauri-apps/tauri-plugin-window-state#v1 # or -yarn add https://github.com/tauri-apps/tauri-plugin-window-state +yarn add https://github.com/tauri-apps/tauri-plugin-window-state#v1 ``` ## Usage diff --git a/shared/template/README.md b/shared/template/README.md index 413618b9..56a9c27d 100644 --- a/shared/template/README.md +++ b/shared/template/README.md @@ -25,6 +25,8 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa > Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. + + ```sh pnpm add # or