Skip to content

1.13.0

Choose a tag to compare

@JacobJoergensen JacobJoergensen released this 17 Jun 19:47
· 24 commits to main since this release

What's Changed

  • Added a benchmark suite (composer bench) measuring query performance across directory sizes
  • Added chunk and each to process records in batches over the lazy iterator
  • Added firstOrNew to return the first matching record or a new unsaved instance
  • Added findOr and firstOr to run a callback when no record matches
  • Added a key argument to pluck to key the results by a second column
  • Improved PaperRule exists and unique messages to use Laravel's validation translation lines so they respect the app locale
  • Improved unordered queries to return records in a stable slug order
  • Optimized paginate and simplePaginate to read only the current page's files when the query has no where clause and isn't ordered by a frontmatter field
  • Optimized updated_at to read each content file's modification time once instead of twice
  • Fixed whereNotBetween to exclude records whose column is missing, matching whereNotIn

Full Changelog: 1.12.0...1.13.0