# Changelog

<!-- changelog -->

## [v0.1.7]

### Updates

- Add automatic `:many_to_many` relationship field derivation using `Backpex.Fields.HasMany`.
- Update the demo with article tags modeled as an Ash `many_to_many` relationship generated through Ash migrations.

## [v0.1.6]

### Fixes

- Remove the root Decimal override/dependency so the package can be published and consumers can resolve Decimal at the application level.
- Remove `mix_audit` because the current Backpex/number dependency graph requires top-level applications to own the Decimal 3 override.

## [v0.1.5]

### Fixes

- Add a Decimal 3 override to the demo app so its top-level dependency resolution matches the library audit fix.

## [v0.1.4]

### Updates

- Add `mix_audit` and run dependency auditing as part of `mix ci`.
- Refresh locked Ash dependencies and override Decimal to 3.x so dependency audits pass.

### Fixes

- Normalize blank list form values submitted by Backpex `HasMany` and `MultiSelect` fields before passing params into Ash changesets.

## [v0.1.3]

### Updates

- Bump Backpex dependency to 0.19.0.

### Fixes

- Fix index-editable fields by routing Backpex index updates through the configured AshBackpex changeset.

## [v0.1.2]

### Fixes

- Fix MultiSelect filters for SQLite-backed Ash array attributes.

## [v0.1.1]

### Updates

- Bump Backpex dependency to 0.18.0 and update AshBackpex for Backpex 0.18 filter and adapter compatibility.
- Add usage rules to the package for LLM-assisted development workflows.
- Expand the demo app with authors, comments, relationships, item actions, panels, filters, and richer sample data.

## [v0.1.0]

### Updates

- Bump Backpex dependency to 0.17.0. Backpex has dropped its built-in Ash integration in favor of this community project.
- Add Getting Started guide

## [v0.0.13]

### Fixes

- [fix: fix: one more init_order fix](https://github.com/enoonan/ash_backpex/pull/18) by [kepi](https://github.com/kepi)

### Fixes

- [fix: add catch-all can?/3 clause for custom item actions](https://github.com/enoonan/ash_backpex/pull/13) by [psoukry](https://github.com/pshoukry) 

## [v0.0.12]

### Updates

- Add missing ability to specify primary_key

## [v0.0.11]

### Fixes

- [fix: add catch-all can?/3 clause for custom item actions](https://github.com/enoonan/ash_backpex/pull/13) by [psoukry](https://github.com/pshoukry) 🎉

## [v0.0.10]

- fix: can?/3 returns false for missing actions instead of crashing. Thank you [psoukry](https://github.com/pshoukry)!

## [v0.0.9]

### Updates

- Bump Backpex version to 0.16
- Fix [adapter load bug](https://github.com/enoonan/ash_backpex/issues/6)
- Add sorting support. [Closes pull request #4](https://github.com/enoonan/ash_backpex/pull/4/files)
- Update demo to use an expression calculation.

## [v0.0.8]

### Updates

Implement changes required for upgrading Backpex to version 0.15.0 within AshBackpex and demo

- Can now use `layout &DemoWeb.Layouts.admin/1` when declaring Resource layout
- Updated resource adapter function signatures and incorporate it.
- Other v15 updates happen transparently

Return `{:ok, nil}` from `AshBackpex.Adapter.get\4` when item is not found.

## [v0.0.7]

### Updates

Just use main Backpex Hex repo. Still learning about Hex!

## [v0.0.6]

### Updates

Improve support for Ash `{:array, type}` parameters including MultiSelect

Ensure errors display correctly

Use up-to-date fork of main Backpex repo with AshBackpex-specific fixes (temporary!)

## [v0.0.5]

### Updates

Update to Backpex 0.14.0

## [v0.0.4]

### Improvements

Add `demo` app

Add `credo`, `ex_check`, `dialyxir`, `sobelow`, with various code-quality refactors.

## [v0.0.3]

### Improvements

Learn more about `ex_doc` and get main docs to land on README.md.

## [v0.0.2]

### Improvements

Generate documentation with `ex_doc`.

## [v0.0.1]

### Initial Release

Spark DSL with ability to derive Backpex configuration from an Ash resource. Currently supports top-level configurations, fields and filters.
