Files
tauri-plugins-workspace/plugins/fs/CHANGELOG.md
T
github-actions[bot]andLucas Nogueira cbfd428bcc Publish New Versions (v2) (#3618)
* publish new versions

* clippy

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-09-26 17:21:49 -03:00

26 KiB

Changelog

[2.6.0]

  • 97e865bc (#3623) Added an options parameter with baseDir to size, so relative paths can be measured, like the other functions and like the JSDoc example already showed. The Rust command already accepted it.
  • 9106093f (#3624) Fixed opening Android content:// URIs with append or with write, truncate and append together: the options were turned into invalid modes such as ra or wta. They now map to the modes Android accepts (r, w, wt, wa, rw, rwt), append taking precedence over read since there is no read and append mode.
  • 1cae06a5 (#3625) Fixed readTextFileLines yielding empty lines forever when reading fails (e.g. on a directory). The read error is now reported: the iterator rejects and the file is closed.
  • 1cae06a5 (#3625) Fixed readTextFileLines leaving the file open until the webview is destroyed when a for await loop over it exits early (break, return or throw). The iterator now implements return(), which closes the file.
  • 0c84c917 (#3621) File watcher errors (e.g. the watched directory was removed or the inotify limit was reached) are now logged instead of being silently dropped.
  • b46a88ff (#3622) writeFile and writeTextFile now fail when their options cannot be parsed instead of silently ignoring them (including baseDir, append and createNew) and writing to the raw path. Data sent as a JSON array is rejected if it contains values that are not bytes, instead of truncating them.
  • ae3c808e (#3602) The plugin's global API script (used with app.withGlobalTauri) now resolves the core API from window.__TAURI__ instead of bundling its own copy of @tauri-apps/api. Values created with the core API are now accepted by plugin APIs in global mode (e.g. an Image from window.__TAURI__.image passed to clipboardManager.writeImage, which previously failed the instanceof check against the plugin's private copy), and the script is considerably smaller.
  • 9b29b601 Update MSRV to 1.90 to match tauri.
  • a87a3c7d Update documentation.

[2.5.2]

[2.5.1]

[2.5.0]

  • e97a4ded (#3244 by @SeijiOkuda) Add encoding option for readTextFile and readTextFileLines
  • f75d21db (#3360 by @Legend-Master) Removed the dependency on tauri-utils's build feature
  • f5f68063 (#3185 by @lucasfernog) Enable access for security-scoped resources on iOS by automatically calling NSURL::startAccessingSecurityScopedResource on resource access and adding the stopAccessingSecurityScopedResource API.

[2.4.5]

  • 521cd8b3 (#3155 by @EliasStar) Fix off by one error in the implementation of readTextFileLines causing all lines to end with an (additional) null byte. Issue: #3154 PR: #3155

[2.4.4]

  • 93426f85 Fixed an issue that caused docs.rs builds to fail. No user facing changes.

[2.4.3]

[2.4.2]

  • 4eb36b0f (#2907 by @Legend-Master) Fixed calling writeFile with data: ReadableStream throws Invalid argument
  • 515182a1 (#2915 by @samhinshaw) readFile now returns a more specific type Promise<Uint8Array<ArrayBuffer>> instead of the default Promise<Uint8Array<ArrayBufferLike>

[2.4.1]

[2.4.0]

[2.3.0]

[2.2.1]

bug

  • 831c35ff (#2550) Fix writeFile ReadableStream handling due to missing async iterator support on macOS platform

[2.2.0]

  • 3a79266b (#2173 by @FabianLars) Bumped all plugins to v2.2.0. From now, the versions for the Rust and JavaScript packages of each plugin will be in sync with each other.

[2.0.4]

[2.0.3]

[2.0.2]

  • 77149dc4 (#1965 by @amrbashir) Fix writeTextFile converting UTF-8 characters (for example äöü) in the given path into replacement character (�)

[2.0.3]

[2.0.1]

[2.0.1]

[2.0.0]

  • e2c4dfb6 Update to tauri v2 stable release.

[2.0.0-rc.6]

  • fc9b189e (#1837 by @FabianLars) Fix failing to deserialize capability file when using an OS specific path in the scope that is not available on the current OS.

[2.0.0-rc.5]

  • cc03ccf5 (#1774) Fix scope-app, scope-app-recursive and scope-index not properly enabling the application paths.

[2.0.0-rc.4]

[2.0.0-rc.3]

[2.0.0-rc.2]

bug

[2.0.0-rc.2]

[2.0.0-rc.1]

[2.0.0-rc.0]

[2.0.0-beta.8]

[2.0.0-beta.7]

[2.0.0-beta.6]

[2.0.0-beta.5]

[2.0.0-beta.4]

[2.0.0-beta.3]

[2.0.0-beta.6]

  • b115fd22(#1221) Fixes an issue that caused the app to freeze when the dialog, fs, and persisted-scope plugins were used together.

[2.0.0-beta.5]

  • bb51a41(#1168) Breaking Change: All apis that return paths to the frontend will now remove the \\?\ UNC prefix on Windows.
  • e3d41f4(#1191) Internally use the webview scoped resources table instead of the app one, so other webviews can't access other webviews resources.
  • e3d41f4(#1191) Update for tauri 2.0.0-beta.15.

[2.0.0-beta.4]

  • 9c2fb93 Enhance the scope type to also allow a plain string representing the path to allow or deny.
  • 772f2bc(#1136) Update for tauri 2.0.0-beta.14.

[2.0.0-beta.3]

  • cb96aa0(#1082) Fixes watch and watchImmediate which previously ignored the baseDir parameter.
  • a04ea2f(#1071) The global API script is now only added to the binary when the withGlobalTauri config is true.

[2.0.0-beta.2]

[2.0.0-beta.1]

[2.0.0-beta.0]

[2.0.0-alpha.6]

  • 85f8419(#848) Fix DebouncedEvent type to correctly represent the actual type.
  • c601230(#847) Add createNew option for writeFile and writeTextFile to create the file if doesn't exist and fail if it does.
  • c601230(#847) Truncate files when using writeFile and writeTextFile with append: false.
  • 2e2fc8d(#857) Fix invalid args id for command unwatch error when trying to unwatch a previously watched file or directory.
  • c601230(#847) Fix panic when using writeFile or writeTextFile without passing an option object.

[2.0.0-alpha.5]

  • 387c2f9(#802) Update to @tauri-apps/api v2.0.0-alpha.13.
  • 69a1fa0(#751) The fs plugin received a major overhaul to add new APIs and changed existing APIs to be closer to Node.js and Deno APIs.

[2.0.0-alpha.4]

  • 387c2f9(#802) Update to @tauri-apps/api v2.0.0-alpha.12.
  • 88d260d(#744) Add second argument to exists function to specify base directory.

[2.0.0-alpha.3]

  • e438e0a(#676) Update to @tauri-apps/api v2.0.0-alpha.11.

[2.0.0-alpha.2]

  • 5c13736(#673) Update to @tauri-apps/api v2.0.0-alpha.9.

[2.0.0-alpha.2]

[2.0.0-alpha.1]

  • 0bba693(#454) Fix writeBinaryFile crashing with command 'write_binary_file' not found
  • d74fc0a(#555) Update to alpha.11.

[2.0.0-alpha.0]

[2.0.0-alpha.0]