mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-10 22:38:44 +02:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
30 KiB
30 KiB
Changelog
[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.
[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.
[2.5.2]
db9c5998(#3531 by @Legend-Master) Fix missingconsumer-rules.proon Gradle v9.f8053e65(#3527 by @Legend-Master) Documented Cargo feature flags in each plugin's crate-level documentation.685610ae(#3507 by @Legend-Master) Fixfs:defaultandfs:read-app-specific-dirs-recursivenot giving any command scopes3fb27bf1(#3504 by @vasfvitor) Fixeddeny-webview-datahas no effect, and on Linux, only deny access to the webview data paths instead of the entire$APPLOCALDATA
[2.5.1]
[2.5.0]
e97a4ded(#3244 by @SeijiOkuda) Addencodingoption forreadTextFileandreadTextFileLinesf75d21db(#3360 by @Legend-Master) Removed the dependency ontauri-utils'sbuildfeaturef5f68063(#3185 by @lucasfernog) Enable access for security-scoped resources on iOS by automatically callingNSURL::startAccessingSecurityScopedResourceon resource access and adding thestopAccessingSecurityScopedResourceAPI.
[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]
93426f85Fixed an issue that caused docs.rs builds to fail. No user facing changes.
[2.4.3]
6c9b61fb(#3039 by @FabianLars) On Android, updated compileSdk to 36.6b5b1053(#1939 by @amrbashir) Enhance error messages.
[2.4.2]
4eb36b0f(#2907 by @Legend-Master) Fixed callingwriteFilewithdata: ReadableStreamthrowsInvalid argument515182a1(#2915 by @samhinshaw)readFilenow returns a more specific typePromise<Uint8Array<ArrayBuffer>>instead of the defaultPromise<Uint8Array<ArrayBufferLike>
[2.4.1]
44a1f659(#2846 by @Legend-Master) FixwriteFiledoesn't create a new file by default when the data is aReadableStream
[2.4.0]
[2.3.0]
dac4d537(#2613 by @Legend-Master) Reduce the overhead ofwatchandunwatch
[2.2.1]
bug
831c35ff(#2550) FixwriteFileReadableStream handling due to missing async iterator support on macOS platform
[2.2.0]
3a79266b(#2173 by @FabianLars) Bumped all plugins tov2.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]
77b85507(#2171 by @FabianLars) Fixed docs.rs build.
[2.0.3]
ed981027(#1962 by @amrbashir) Improve performance ofreadTextFileandreadTextFileLinesAPIs3e78173d(#2018 by @amrbashir) FixreadDirfunction failing to read directories that contain broken symlinks.5092ea5e(#1964 by @amrbashir) Add support for usingReadableStream<Unit8Array>withwriteFileAPI.
[2.0.2]
77149dc4(#1965 by @amrbashir) FixwriteTextFileconverting UTF-8 characters (for exampleäöü) in the given path into replacement character (�)
[2.0.3]
14cee64c(#1958 by @bWanShiTong) Fix compilation on targets with pointer width of16or32
[2.0.1]
ae802456(#1950 by @amrbashir) Improve performance of theFileHandle.readandwriteTextFileAPIs.
[2.0.1]
a1a82208(#1873 by @lucasfernog) Downgrade MSRV to 1.77.2 to support Windows 7.
[2.0.0]
e2c4dfb6Update 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) Fixscope-app,scope-app-recursiveandscope-indexnot properly enabling the application paths.
[2.0.0-rc.4]
[2.0.0-rc.3]
-
a2fe5551(#1727 by @amrbashir) Add utility methods onFilePathandSafeFilePathenums which are:pathsimplifiedinto_path
-
a2fe5551(#1727 by @amrbashir) ImplementSerialize,Deserialize,From,TryFromandFromStrtraits forFilePathandSafeFilePathenums. -
a2fe5551(#1727 by @amrbashir) MarkErrorenum as#[non_exhuastive]. -
a2fe5551(#1727 by @amrbashir) AddSafeFilePathenum.
[2.0.0-rc.2]
f7280c88(#1710 by @Legend-Master) Fix can't use Windows paths likeC:/Users/UserName/file.txt
bug
51819c60(#1708 by @lucasfernog) FixeswriteFilecommand implementation on Android.
[2.0.0-rc.2]
e2e97db5(#1701 by @lucasfernog) Update to tauri 2.0.0-rc.8
[2.0.0-rc.1]
5f689902(#1645 by @lucasfernog) Update documentation.
[2.0.0-rc.0]
9887d1Update to tauri RC.
[2.0.0-beta.8]
99d6ac0f(#1606 by @FabianLars) The JS packages now specify the minimum@tauri-apps/apiversion instead of a single exact version.6de87966(#1597 by @Legend-Master) Update to tauri beta.25.
[2.0.0-beta.7]
22a17980(#1537 by @lucasfernog) Update to tauri beta.24.
[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 thedialog,fs, andpersisted-scopeplugins 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]
9c2fb93Enhance 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) FixeswatchandwatchImmediatewhich previously ignored thebaseDirparameter.a04ea2f(#1071) The global API script is now only added to the binary when thewithGlobalTauriconfig is true.
[2.0.0-beta.2]
[2.0.0-beta.1]
569defbUpdate to tauri beta.4.
[2.0.0-beta.0]
d198c01(#862) Update to tauri beta.ea8eadc(#865) Fix incorrectcreateoption default value forwriteFileandwriteTextFilewhich didn't match documentation.61edbbe(#885) Replacenotify-debouncer-miniwithnotify-debouncer-full. (plugins-workspace#885)
[2.0.0-alpha.6]
85f8419(#848) FixDebouncedEventtype to correctly represent the actual type.c601230(#847) AddcreateNewoption forwriteFileandwriteTextFileto create the file if doesn't exist and fail if it does.c601230(#847) Truncate files when usingwriteFileandwriteTextFilewithappend: false.2e2fc8d(#857) Fixinvalid args id for command unwatcherror when trying to unwatch a previously watched file or directory.c601230(#847) Fix panic when usingwriteFileorwriteTextFilewithout passing an option object.
[2.0.0-alpha.5]
387c2f9(#802) Update to @tauri-apps/api v2.0.0-alpha.13.69a1fa0(#751) Thefsplugin 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 toexistsfunction to specify base directory.
[2.0.0-alpha.3]
[2.0.0-alpha.2]
[2.0.0-alpha.2]
[2.0.0-alpha.1]
0bba693(#454) FixwriteBinaryFilecrashing withcommand 'write_binary_file' not foundd74fc0a(#555) Update to alpha.11.
[2.0.0-alpha.0]
717ae67(#371) First v2 alpha release! 55](https://github.com/tauri-apps/plugins-workspace/pull/555)) Update to alpha.11.