Patch Changes
-
#5177
32ba77aThanks @johtso! - Fix KeyValueStore.make type mismatch -
#5174
d5e25b2Thanks @schickling! - feat(platform): add recursive option to FileSystem.watchAdded a
recursiveoption toFileSystem.watchthat allows watching for changes in subdirectories. When set totrue, the watcher will monitor changes in all nested directories.Note: The recursive option is only supported on macOS and Windows. On other platforms, it will be ignored.
Example:
import { FileSystem } from "@effect/platform" import { Effect, Stream } from "effect" Effect.gen(function* () { const fs = yield* FileSystem.FileSystem // Watch directory and all subdirectories yield* fs .watch("src", { recursive: true }) .pipe(Stream.runForEach(console.log)) })