Skip to content

Commit

Permalink
feat(fs): improved API (#751)
Browse files Browse the repository at this point in the history
* feat(fs): improved API

* fmt

* fix unix builds

* again

* clippy

* clippy

* fix import in docs examples

* fmt, clippy

* Update linux.rs

* add API for watch

* fix with `watcher` feature flag

* use baseDir for all commands

* do not export close function

* fix build

* organize and address review comments

* fmt

* generated files

* rename FsFile to FileHandle, move APIs and docs

* extend example

* extend `Resource`

* actually extend it

---------

Co-authored-by: FabianLars <fabianlars@fabianlars.de>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
  • Loading branch information
3 people authored Dec 20, 2023
1 parent 2cf8faa commit 69a1fa0
Show file tree
Hide file tree
Showing 16 changed files with 2,065 additions and 875 deletions.
6 changes: 6 additions & 0 deletions .changes/fs-improved-apis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"fs": "patch"
"fs-js": "patch"
---

The `fs` plugin received a major overhaul to add new APIs and changed existing APIs to be closer to Node.js and Deno APIs.
Loading

0 comments on commit 69a1fa0

Please sign in to comment.