Releases: ash-project/ash
v3.23.1
Bug Fixes:
- ensure is/_not/_distinct_from cast parameters to the same type by @zachdaniel
v3.23.0
Features:
Bug Fixes:
-
ensure that update timestamps are properly updated in atomic updates by @zachdaniel
-
ensure
get_dataraises on data not available by @zachdaniel
Improvements:
v3.22.1
Bug Fixes:
- just to be extra-safe also prevent when loading modules by @zachdaniel
v3.22.0
Features:
- add batch_validate callback to Ash.Resource.Validation (#2650) by @RylandBangerter85
Bug Fixes:
-
remove
Module.concatfromAsh.Type.Module.cast_input/2by @zachdaniel -
handle nil return from generic actions with load option and enforce allow_nil? (#2649) by @barnabasJ (#2649)
Improvements:
v3.21.3
v3.21.1
Bug Fixes:
- ensure that Ash.calculate works with non-field calculations by @zachdaniel
v3.21.0
Features:
- support
:autotype in calculations (#2643) by @zachdaniel (#2643)
Bug Fixes:
- show value in invalid errors for Ash.TypedStruct by @zachdaniel
Improvements:
v3.20.0
Features:
-
add
required!expression shorthand (#2636) by dallingson (#2636) -
add mix ash.gettext.extract for i18n support (#2615) by @nallwhy (#2615)
-
Add attribute_always_select? option to belongs_to relationships (#2627) by @emadshaaban92 (#2627)
-
redact sensitive values in built-in validation errors w/ backwards compatibility flag (#2608) by @nallwhy (#2608)
Bug Fixes:
-
ensure
__metadata__.tenantis present in bulk action after hooks by @zachdaniel -
preserve input order in bulk manage_relationship (#2639) by @nallwhy (#2639)
-
support before_action? validations in bulk_create and bulk_update (#2634) by @nallwhy (#2634)
-
return {:not_atomic, ...} for before_action? validations in run_atomic_validation by @nallwhy (#2634)
-
support atomic-only changes in bulk_create (#2635) by @barnabasJ (#2635)
-
honor scope option in Ash.can/can? (#2631) by @emadshaaban92 (#2631)
-
bulk create/update/destroy global validation ordering (#2628) by @nallwhy (#2628)
-
Preserve explicit select when merging duplicate relationship loads (#2626) by @mikaelweiss (#2626)
-
use inidividually overridden callbacks within array callbacks (#2610) by Jesse Williams (#2610)
-
add [] as fallback for modules = Application.spec(app, :modules) (#2620) by Torkild Gundersen Kjevik (#2620)
-
Add tenant for notification load (#2617) by Torkild Gundersen Kjevik (#2617)
-
propagate errors from cascade_update instead of silently swallowing them by @zachdaniel
-
soft destroy with return_notifications? loses notifications (#2616) by @nallwhy (#2616)
-
don't nest
%Ash.Filterexpressions when combining join filters by @zachdaniel -
remove unreachable is_list guard in soft destroy path (#2613) by djgoku (#2613)
-
ensure stacked aggregates honor authorization rules while reading by @zachdaniel
-
use Enum.member? instead of in-macro to mitigate 1.20-rc.2 compiler (#2612) by Torkild Gundersen Kjevik (#2612)
Improvements:
-
Allow marking actions as internal to prevent exposing them via APIs #1271 (#2629) by Dgoz101 (#2629)
-
expand gettext i18n support to types, changes, and changeset (#2637) by @nallwhy (#2637)
-
add filename and content_type functions to Ash.Type.File by @zachdaniel
-
use bulk actions for managed relationship actions by @zachdaniel
-
more informative errors on
ash.setupfailures (#2595) by celeste-wahlquist (#2595) -
add generate/1 and bingenerate/1 accepting a DateTime to Ash.UUIDv7 (#2609) by @nallwhy (#2609)
v3.19.2
Bug Fixes:
-
add Tuple.apply_constraints nil guard and propagate allow_nil? in Struct field derivation by @zachdaniel
-
preserve meta state in Ash.Type.Struct.apply_constraints (#2602) by @nallwhy (#2602)
v3.19.0
Features:
-
Allow dumping and casting instance_of union types (#2597) by @Munksgaard (#2597)
-
make enum label/description overridable (#2594) by Hannes Wüthrich (#2594)
-
add touch_update_defaults? option to bulk_create (#2590) by Michael Bärtschi (#2590)
Bug Fixes:
- call manage_relationships in single hard destroy path (#2596) by @barnabasJ (#2596)
Improvements:
- add new trace types for bulk actions by @zachdaniel