- publish workflow
- remove wrapper around cljs-node-io.file/File.
- File now takes a path only..is not polymorphic like java.io.File
- use cljs-node-io.core/file
- various type + docstring fixes
- removed andare; started clashing with figwheel
- add wire-report
- add async ns, converts nodejs event emitters into core.async message passers
cljs-node-io.async/go-procwill read from anything with a core.async readport implementation- converted all async functions in
cljs-node-io.fsto return promise-chans, like they should have been to begin with cljs-node-io.core/copynow returns a promise-chan that closes when it finishes writing.- You can ignore this at the repl or use it to chain a operations.
- Copy will still throw; if you need fine grained control use the underlying streams manually.
- added
cljs-node-io.procns. The ChildProcess object itself is subject to change but this is a super useful bunch of functions
- add
cljs-node-io.fs/watch&cljs-node-io.fs/watchFile. Both have platform specific usage details - added
cljs-node-io.async/mux. Instead of having a million infinite go-loops/go-procs everywhere , shrink them down into one extensible readloop. - stream->ch functions and IChildProcess' now have channel close semantics. When their underlying resources emit shutdown events, their associated ports will close.
- Breaking Change: Wrapped ChildProcess instances... async spawn + fork, have been move to the
cljs-node-io.spawnnamespace and refactored to be more obvious (though opinionated) in their use. - people keep searching for "readline" so I added a primitive
cljs-node-io.fs/readline. - fix watcher to use key
- misc decrufting
IOFactory,io/reader,io/writer,io/input-stream,io/output-streametc all return native streams whenever they canio/readable&io/writabledefer to IOFactory but are friendlier names for node devs. Additionally,io/readablewill create a stream an iterablesio/copyassumes args are files or string file-paths and uses native copyFileSync. It returns nil and throws on error.io/acopyuses IOFactory to create and then pipe streams, returns ch<?err>io/file-seqnow returns files, was string names previouslyfs/stat& variants now return edn automatically, not fs.statfs/lchmodremoved, deprecated in native fs- notable new stuff in
cljs-node-io.fsfs/exists?instead offs/fexists?fs/crawlrun a fn on every entry in a directoryfs/lock-fileprovides lock-files for simple advisory lockingfs/rm-rfrecursively delete a dir and ignore if missing.
- externs are packaged in the jar as
cljs_node_io.ext.js