Skip to content

v4.0.0

Choose a tag to compare

@pdphilip pdphilip released this 23 Feb 01:22
· 22 commits to main since this release

This release is compatible with Laravel 10, 11 & 12

The engine has been rewritten from the ground up. The core indexing, observer, and build systems were gutted and rebuilt with cleaner internals, typed signatures, and proper error boundaries. The package now has a full test suite (unit + integration) running against a real Elasticsearch instance in CI - something that didn't exist before.

Full documentation now lives at elasticlens.pdphilip.com

What's New

  • viaIndex()->get() now returns base models directly - no more getBase() needed
  • Conditional Indexing - control which records get indexed via excludeIndex()
  • Soft Delete Support - configurable globally or per index model
  • Full test suite with Elasticsearch service container in CI

Breaking Changes (NB)

  • viaIndex()->get() returns base model collection (was index model collection; use ->get() directly instead of ->getBase())
  • getBase() and paginateBase() still work but are no longer necessary for the default case
  • use getIndex() and paginateIndex() if you would like to return the index values directly

See the upgrade guide for migration details.

Full Changelog: v3.1.2...v4.0.0