Releases: cotton-coding/loom-io
v0.12.3
Fix
- Paths of File or Directory could be starting with a slash ( maybe this will be a fix in the future) which made problems with getFullPath in the Filesystem-Adapter.
Full Changelog: v0.12.2...v0.12.3
v0.12.2
What's Changed
- Add function to get full path from filesystem adapter by @CordlessWool in #35
Full Changelog: v0.12.1...v0.12.2
v0.12.1
New
- funtion to get the filename without extension `file.getNameWithoutExtension()´
Full Changelog: v0.12.0...v0.12.1
v0.12.0
Bracking changes
- Separate conversion of file content from file object:
json
andstirngify
are removed from the file and the file must be passed directly to the parser. - Rename stringify function in converters to unify
- The
LoomFileConverter
interface is renamed toFileConverter
and is exported by the new library@loom-io/converter
. - The base package
@loom-io/base-fs
will be removed because it is no longer useful.## New
New library
@loom-io/convert
to combine several converters - https://loom-io.cotton-coding.com/converter/combined-converter.html
What's Changed
- update node version from 21 to 22 and add lts version to tests by @CordlessWool in #31
- Seperate Converter from file by @CordlessWool in #30
- add create function to each converter by @CordlessWool in #32
- Release/prepare for v0.12 by @CordlessWool in #33
Full Changelog: v0.11.0...v0.12.0
v0.11.0
v0.10.0
Bracking Changes
Importing Loom from the core package is only necessary to register converters. Adapters directly export a dir
and file
.
The source adapters are now classes, so it is necessary to create a new version of them with new
.
See the documentation for more information.
What's Changed
- Create from adapter by @CordlessWool in #26
Full Changelog: v0.9.2...v0.10.0
v0.9.2
What's Changed
- fix path for nodejs 18 by @CordlessWool in #19
- Add Symbol functions by @CordlessWool in #18
- Add front matter converter by @CordlessWool in #21
- require file extension in imports by @CordlessWool in #25
Breaking Changes
- remove type casting from read and write, have to be done with
as
now. It made problems with front matter converter because of the bedefined structure
Full Changelog: v0.8.0...v0.9.2
v0.8.0
Breaking Changes
- jsonConvert and yamlConvert now exporting functions
- defintions of converter has changed
- converter replacing extending attribute with a function to verify, which get the file as param to do a more deep check if necassery
- stringify and parse gets the file as param for more flexibility
What's Changed
- Give more possibilieteies to converters by @CordlessWool in #17
Full Changelog: v0.7.1...v0.8.0
v0.7.0
Breaking changes
The library has been restructured, there are completely new packages and the old @loom-io/fs is deprecated. Please switch to @loom-io/base-fs for a one-to-one replacement or combine the modules as needed. Have a look at the new documentation.
New
- Adapter can handle different storage systems and besides one for the filesystem there is also one for s3 and in-memory.
- Creating and writing files is now possible. You can also write JSON to json files or yml files if the jsonConvert or yamlConverter are not added by default.
- converters are not added by default to avoid unwanted dependencies.
What's Changed
- Restructure by @CordlessWool in #10
- Improve Test by @CordlessWool in #11
- Add function to write Buffer/String/JSON by @CordlessWool in #12
- Feature/base fs by @CordlessWool in #13
- prepare of release by @CordlessWool in #14
- Documentation by @CordlessWool in #15
Full Changelog: v0.6.0...v0.7.0
v0.6.0
What's Changed
- exist, create and delete functions for files by @CordlessWool in #9
Full Changelog: v0.5.0...v0.6.0