Files
tauri-plugins-workspace/.changes/fs-watch-event-format.md
T
Lucas Fernandes Nogueira 8083107a0a refactor(fs)!: drop notify's serialization-compat-6, flatten WatchEvent (#3609)
`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`.
2026-09-22 06:05:51 -03:00

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.