[2.7.0]
a934743b(#3637) Added thescopeDroppedPathsplugin config option (plugins > fs > scopeDroppedPathsintauri.conf.json). Set it tofalseto stop adding the paths dropped onto any window to the fs scope, which otherwise gives every webview with an fs permission access to them (directories recursively). Defaults totrue, the current behaviour.085a0283(#3636) Fixed a panic on Android when a content provider returns no file descriptor for acontent://URI (e.g. virtual files). The fs command now fails with an error instead.f81f0447(#3635) Fixed reading uncompressed Android assets ($RESOURCEfiles such as images or audio that are stored uncompressed in the APK) returning the bytes of the APK instead of the asset. Assets are now always read from a copy in the app cache, like compressed ones.e03dca60(#3628)startAccessingSecurityScopedResourceandstopAccessingSecurityScopedResourcenow accept absolute paths on iOS, as documented, instead of silently doing nothing unless given afile://URL.5de7ebfc(#3634) Security: theopencommand no longer accepts acustomFlagsoption from the webview. It was not part of the JavaScript types and let the webview pass arbitraryopen(2)flags (e.g.O_TRUNC) to files it may only read.OpenOptionsExt::custom_flagsstill works from Rust.5e6c023a(#3626)FileHandle.readno longer allocates a buffer of the requested size up front: the length is capped to the rest of the file (64 MiB for files of unknown size), an allocation failure is reported as an error instead of aborting the app, and only the bytes that were read are sent back to the webview.3a900017(#3627) Security: the fs scope check now resolves symlinks in the ancestors of paths that do not exist yet, and resolves relative symlink targets against the link's directory instead of the process working directory. Previously a new file created below a symlinked directory inside the scope (writeFile,mkdir,create,rename,copyFile, ...) was written outside of the scope. Deny patterns now also apply to the path as given, so they can name a symlink, and a path whose symlinks cannot be resolved (e.g. a loop) is rejected.77d00a4f(#3633)FileHandle.seeknow rejects a negative offset withSeekMode.Startinstead of seeking to a huge position.5c144e74(#3631) FixedreadTextFileLineswith a UTF-16 encoding splitting lines on a0x0A 0x00(LE) or0x00 0x0A(BE) byte sequence that is not aligned on a code unit, e.g.ਗĀ, which garbled every following line.dcc8cb03(#3629) FixedwriteFilewith aReadableStreamleaving the end of the previous contents in place when the new data is shorter. The file is now truncated first unlessappendis set, like when writing a buffer.
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.7.0
npm notice Tarball Contents
npm notice 888B LICENSE.spdx
npm notice 2.4kB README.md
npm notice 39.9kB dist-js/index.cjs
npm notice 41.1kB dist-js/index.d.ts
npm notice 39.2kB dist-js/index.js
npm notice 697B package.json
npm notice Tarball Details
npm notice name: @tauri-apps/plugin-fs
npm notice version: 2.7.0
npm notice filename: tauri-apps-plugin-fs-2.7.0.tgz
npm notice package size: 25.6 kB
npm notice unpacked size: 124.3 kB
npm notice shasum: e76d4d07b05063de6911fd1c42948ab0264ac20e
npm notice integrity: sha512-8RQbPkuYuLZ2r[...]GdKJVqDokyDgQ==
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=3189606635
npm notice Your package is being processed and may take a few minutes to become available.
+ @tauri-apps/plugin-fs@2.7.0