libcachebust/CHANGELOG.md

64 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2023-10-17 00:18:20 +05:30
## 0.3.0
Change name to libcachebust
## 0.2.1
Updated dependencies
2021-04-30 20:37:56 +05:30
## 0.2.0
2021-07-05 14:39:35 +05:30
### Added:
2021-12-17 11:54:34 +05:30
- `Buster.no_hash` Option to exclude select files from processing. These
files will be copied over without any processing for cache
busting(i.e, no renaming)
2021-07-05 14:39:35 +05:30
2021-12-17 11:54:34 +05:30
- `Buster.source` is tracked by cargo
## Removed:
- `copy` in `Processor`: current implementation copies all files by
default. That field was redundant.
2021-07-14 21:41:46 +05:30
2021-04-30 20:37:56 +05:30
### Changed:
2021-12-17 11:54:34 +05:30
- `Files::new()` takes a `&str`: Earlier versions were using
environment variables to pass filemap information from `build.rs`
component to program code but this proved to be unreliable. Starting
with `0.2.0`, `cache_buster` will write filemap to
`CACHE_BUSTER_DATA_FILE`(`./src/cache_buster_data.json`) and the user
is requested to read and pass the value to `File::new()`
2021-04-30 20:37:56 +05:30
2021-12-17 11:54:34 +05:30
- `Files.mime_types` now accepts an `Option<Vec<mime::Mime>>`. When it
is unset(i.e `None`), no mime based filtering is done and all files
inside source directory is considered for processing.
2021-07-05 15:44:34 +05:30
2021-12-17 11:54:34 +05:30
- `Files::get_full_path()` and `Files::get()` now accept `impl AsRef<str>` for path argument.
2021-04-30 21:27:56 +05:30
### Fixed:
2021-12-17 11:54:34 +05:30
- `Files::get()` now behaves as it is described in the documentation
2021-04-30 21:27:56 +05:30
## 0.1.1
2021-04-12 18:23:56 +05:30
### Added:
2021-04-30 20:37:56 +05:30
2021-12-17 11:54:34 +05:30
- Optional route prefix to `Processor`
2021-04-12 18:23:56 +05:30
### Changed:
2021-04-30 20:37:56 +05:30
2021-12-17 11:54:34 +05:30
- `Files::load()` became `Files::new()`
### Removed:
2021-04-30 20:37:56 +05:30
2021-12-17 11:54:34 +05:30
- Some methods on `Files` were for internal use only but they had a
public API, they were modified to private.
2021-04-10 17:45:00 +05:30
## 0.1.0
### Added:
2021-04-30 20:37:56 +05:30
2021-12-17 11:54:34 +05:30
- `SHA-256`-based cache-buster
- runtime filemap loading