Skip to content

Releases: ash-project/ash_typescript

v0.11.2

09 Dec 21:27

Choose a tag to compare

Bug Fixes:

  • rpc: simplify field mapping module selection with ActionIntrospection by @Torkan

v0.11.1

09 Dec 19:06

Choose a tag to compare

Bug Fixes:

  • rpc: preserve empty arrays in JSON serialization (fixes #32) by @Torkan

v0.11.0

09 Dec 18:53

Choose a tag to compare

Breaking changes:

  • All field mapping dsls and callbacks now require strings instead of atoms.
  • Fields requested from calculations without arguments no longer need to be wrapped in {fields: [...]}

Features:

  • add VerifyActionTypes and VerifyUniqueInputFieldNames verifiers by @Torkan

  • add ResourceFields helper and extend Introspection by @Torkan

  • add FieldSelector for unified type-driven field selection by @Torkan

  • add ValueFormatter for unified type-aware value formatting by @Torkan

Bug Fixes:

  • remove underscore in Zod schema name generation by @Torkan

  • cast struct inputs fully using Ash.Type by @zachdaniel

  • handle private arguments in action_inputs lookup by @Torkan

  • don't include private arguments in typescript codegen by @zachdaniel

v0.10.2

05 Dec 09:48

Choose a tag to compare

Bug Fixes:

  • codegen: use field formatters for generated TypeScript config interfaces & rename hardcoded primaryKey fields to identity @Torkan

v0.10.1

04 Dec 17:18

Choose a tag to compare

Bug Fixes:

  • rpc: consolidate field formatting and format error field names for by @Torkan

  • rpc: flatten multiple error responses by removing nested wrapper by @Torkan

  • test: generate TypeScript inline instead of reading from file by @Torkan

v0.10.0

04 Dec 12:26

Choose a tag to compare

Breaking Changes:

primaryKey input field for update & destroy rpc actions are now replaced by the more flexible identities-field

Features:

  • identities: add compile-time identity verification by @Torkan

  • identities: add identity-based record lookup for update/destroy actions by @Torkan

Bug Fixes:

  • codegen: raise error instead of System.halt on generation failure by @Torkan

v0.9.1

01 Dec 15:52

Choose a tag to compare

Bug Fixes:

  • struct-args: support Ash resources as struct action arguments by @Torkan

v0.9.0

30 Nov 17:34

Choose a tag to compare

Features:

  • codegen: generate TypeScript types for get? and get_by actions by @Torkan

  • rpc: add compile-time verification for get options by @Torkan

  • rpc: implement get? and get_by runtime execution by @Torkan

  • rpc: add get?, get_by, and not_found_error? DSL options by @Torkan

v0.8.4

25 Nov 17:13

Choose a tag to compare

Bug Fixes:

  • codegen: support calculation fields in aggregates across all modules by @Torkan

  • rpc: respect allow_nil_input and require_attributes for input type optionality by @Torkan

  • support sum aggregates over calculations and discover calculation argument types by Oliver Severin Mulelid-Tynes (#23)

v0.8.3

24 Nov 12:32

Choose a tag to compare

Bug Fixes:

  • improved error message for missing AshTypescript.Resource extension or missing typescript dsl-block
  • add closing backticks on the code example for composite type field selection by Jacob Bahn (#21)