mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
`WatchEvent` now follows notify v8's format: the event kind is flattened
into the event, with `type` holding the top-level kind and `kind`/`mode`
refining it, e.g. `{ type: 'modify', kind: 'data', mode: 'content' }`
instead of `{ type: { modify: { kind: 'data', mode: 'content' } } }`.
`attrs` is now typed as `WatchEventAttributes` and its `flag` is
`rescan` instead of `Rescan`.
587 B
587 B
fs, fs-js
| fs | fs-js |
|---|---|
| major | major |
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.