1.13.0
What's Changed
- Added a benchmark suite (
composer bench) measuring query performance across directory sizes - Added
chunkandeachto process records in batches over the lazy iterator - Added
firstOrNewto return the first matching record or a new unsaved instance - Added
findOrandfirstOrto run a callback when no record matches - Added a key argument to
pluckto key the results by a second column - Improved
PaperRuleexists and unique messages to use Laravel'svalidationtranslation lines so they respect the app locale - Improved unordered queries to return records in a stable slug order
- Optimized
paginateandsimplePaginateto read only the current page's files when the query has nowhereclause and isn't ordered by a frontmatter field - Optimized
updated_atto read each content file's modification time once instead of twice - Fixed
whereNotBetweento exclude records whose column is missing, matchingwhereNotIn
Full Changelog: 1.12.0...1.13.0