Releases: axodotdev/axoasset
0.9.4 - 2024-05-22
Maintenace
Updates several dependencies.
0.9.3 - 2024-04-16
๐ ๏ธ Fixes
Reduces the dependency tree when the remote
feature isn't in use by properly scoping the image
dependency.
0.9.2 - 2024-04-15
๐ ๏ธ Fixes
Fixes a branching error in the previous release which prevented the ZIP fix from being usable.
0.9.1 - 2024-03-26
๐ ๏ธ Fixes
- Zipping directory trees on Windows - mistydemeo, pr94
Recursive directory trees on Windows would be zipped with mangled filenames; this has been fixed by preprocessing the file names before passing them to the zip
crate.
0.9.0 - 2024-03-14
๐ Features
- Parsing JSON containing byte order marks - mistydemeo, pr87
This fixes an issue parsing JSON from files containing a byte order mark. This is rare, but can occur with JSON files created in Windows with certain software, including data written to disk in PowerShell.
The underlying JSON parsing library used by axoasset doesn't currently support parsing JSON files that begin with a byte order mark. In this release, we strip it from files that contain it before passing it to serde in order to work around this limitation.
0.8.0 - 2024-03-06
๐ Features
- Extract archives - mistydemeo, pr84
Adds the ability to decompress tarballs and ZIP files from LocalAsset
. Users can extract an entire archive to a directory via the untar_gz_all
/untar_xz_all
/untar_zstd_all
/unzip_all
methods, or extract individual files to bytearrays of their contents via the untar_gz_file
/untar_xz_file
/untar_zstd_file
/unzip_file
methods.
0.7.0 - 2024-02-15
Updates dependencies, including a breaking upgrade to miette. Users of this crate will need to update to at least miette 6.0.0.
0.6.0 - 2023-10-31
๐ Features
-
New reexports - mistydemeo, pr68
Reexports
toml
,toml_edit
andserde_json
. Types from these three crates
appear in certain axoasset function signatures.
0.5.1 - 2023-09-14
๐ ๏ธ Fixes
-
Reduce dependency tree size - mistydemeo, pr66
Reduces the size of axoasset's dependency tree by not installing unused
features from theimages
dependency.
v0.5.0 - 2023-08-08
๐ Features
-
Add a with_root argument to compression methods - Gankra, pr61
The compression methods take a path to a directory to tar/zip up. The
with_root argument specifies a root prefix of directories that the
archive's contents should be nested under. If None then the dir's contents
are flattened into the root of the archive.e.g. to make a tar.gz that matches the npm package format (which
wants the tarball to contain a dir named "package"), you can
compress:"path/to/contents/", Some("package")
-
Add more copying APIs to LocalAsset - Gankra, pr62
LocalAsset now includes
copy_named
,copy_dir
, andcopy_dir_named
.
Allcopy
functions were change to return aUtf8PathBuf
instead of aPathBuf
.