Skip to content

fs v3.0.0-alpha.2

Choose a tag to compare

@github-actions github-actions released this 30 Sep 15:51
d9be6d0

[3.0.0-alpha.2]

  • 5c077a38 (#3605 by @lucasfernog) Breaking: Removed the read_text_file and write_text_file commands and their allow-read-text-file, deny-read-text-file, allow-write-text-file and deny-write-text-file permissions. readTextFile and writeTextFile now use the read_file and write_file commands, so grant fs:allow-read-file and fs:allow-write-file instead.
  • a315a07f (#3606 by @lucasfernog) Breaking: Removed the allow-unwatch and deny-unwatch permissions. There has been no unwatch command since v2.0 (Watcher.close() releases the resource instead), so they never granted anything.
  • 8083107a (#3609 by @lucasfernog) Breaking: The notify crate's serialization-compat-6 feature is no longer enabled, so WatchEvent now follows notify v8's format: the event kind is flattened into the event, with type holding the top-level kind (any, access, create, modify, remove or other) and kind/mode refining it. For instance { type: { modify: { kind: 'data', mode: 'content' } } } is now { type: 'modify', kind: 'data', mode: 'content' }, and attrs.flag is rescan instead of Rescan. WatchEvent.attrs is now typed as WatchEventAttributes.
  • fdfb35e5 (#3610 by @lucasfernog) Breaking: watch and watchImmediate now resolve to a Watcher resource instead of an UnwatchFn callback. Call await watcher.close() to stop watching. The UnwatchFn type has been removed and Watcher is now exported.
  • 2fd27c2d Update MSRV to 1.95 to match tauri.

Cargo Publish

Updating crates.io index
   Packaging tauri-plugin-fs v3.0.0-alpha.2 (/home/runner/work/plugins-workspace/plugins-workspace/plugins/fs)
    Updating crates.io index
    Packaged 72 files, 370.3KiB (73.3KiB compressed)
   Uploading tauri-plugin-fs v3.0.0-alpha.2 (/home/runner/work/plugins-workspace/plugins-workspace/plugins/fs)
    Uploaded tauri-plugin-fs v3.0.0-alpha.2 to registry `crates-io`
note: waiting for tauri-plugin-fs v3.0.0-alpha.2 to be available at registry `crates-io`
help: you may press ctrl-c to skip waiting; the crate should be available shortly
   Published tauri-plugin-fs v3.0.0-alpha.2 at registry `crates-io`