[2.6.0]
97e865bc(#3623) Added anoptionsparameter withbaseDirtosize, 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 Androidcontent://URIs withappendor withwrite,truncateandappendtogether: the options were turned into invalid modes such asraorwta. They now map to the modes Android accepts (r,w,wt,wa,rw,rwt),appendtaking precedence overreadsince there is no read and append mode.1cae06a5(#3625) FixedreadTextFileLinesyielding 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) FixedreadTextFileLinesleaving the file open until the webview is destroyed when afor awaitloop over it exits early (break,returnorthrow). The iterator now implementsreturn(), 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)writeFileandwriteTextFilenow fail when their options cannot be parsed instead of silently ignoring them (includingbaseDir,appendandcreateNew) 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 withapp.withGlobalTauri) now resolves the core API fromwindow.__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. anImagefromwindow.__TAURI__.imagepassed toclipboardManager.writeImage, which previously failed theinstanceofcheck against the plugin's private copy), and the script is considerably smaller.9b29b601Update MSRV to 1.90 to match tauri.a87a3c7dUpdate documentation.
PNPM Publish
npm warn publish npm auto-corrected some errors in your package.json when publishing. Please run "npm pkg fix" to address these errors.
npm warn publish errors corrected:
npm warn publish "repository" was changed from a string to an object
npm warn publish "repository.url" was normalized to "git+https://github.com/tauri-apps/plugins-workspace.git"
npm notice
npm notice 📦 @tauri-apps/plugin-fs@2.6.0
npm notice Tarball Contents
npm notice 888B LICENSE.spdx
npm notice 2.4kB README.md
npm notice 39.8kB dist-js/index.cjs
npm notice 41.1kB dist-js/index.d.ts
npm notice 39.1kB dist-js/index.js
npm notice 697B package.json
npm notice Tarball Details
npm notice name: @tauri-apps/plugin-fs
npm notice version: 2.6.0
npm notice filename: tauri-apps-plugin-fs-2.6.0.tgz
npm notice package size: 25.6 kB
npm notice unpacked size: 124.0 kB
npm notice shasum: 44e6f5e02f22a3b800b4cc70060f45348dee45f3
npm notice integrity: sha512-MhBAZ4rryd+h9[...]JAY0ehQd/v6Uw==
npm notice total files: 6
npm notice
npm notice npm tokens that bypass 2FA are being restricted for account changes and direct publishing. Learn how to prepare: https://gh.io/npm-gat-bypass2fa-deprecation
npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access
npm notice publish Signed provenance statement with source and build information from GitHub Actions
npm notice publish Provenance statement published to transparency log: https://search.sigstore.dev/?logIndex=2969523608
npm notice Your package is being processed and may take a few minutes to become available.
+ @tauri-apps/plugin-fs@2.6.0