Skip to content

Releases: Elixir-Scribe/elixir-scribe

Release v0.3.0 - New Scribe Code Generators: scribe.gen.html and srcibe.gen.domain

11 Feb 20:54

Choose a tag to compare

Added

Both code generators adhere to the Scribe Domain Resource Action Pattern:

  • scribe.gen.html - Replacement for phx.gen.html.
  • scribe.gen.domain - Replacement for phx.gen.context.

Full Changelog: v0.2.1...v0.3.0

elixir-scribe-cli.mp4

Release v0.2.1 - Improves the Elixir Scribe Typed Contract behaviour

09 Sep 18:42

Choose a tag to compare

Added

  • conforms/1 and conforms!/1 to the behaviour.
  • more tests to the behaviour.

Improved

  • behaviour documentation overhaul, including doc tests.

Removed

  • conforms?/1 from the behaviour defoverridable .

Full Changelog: v0.2.0...v0.2.1

v0.2.0

06 Jun 21:56

Choose a tag to compare

Release v0.2.0

This is the first release that adds code, the ElixirScribe.Behaviour.TypedContract.

The Elixir Scribe Typed Contract guarantees the shape of data throughout the codebase. It will be used extensively through this package itself, and through all code generated by all the Elixir Scribe generators: scribe.gen.*.

To eliminate potential bugs that may be caused by creating the data with the wrong type, I strongly encourage you to also use it as a contract to guarantee the shape of your data at any point in time that your codebase needs to accept or return data. For example, for arguments, parameters, attributes or options of functions.

The usage of the Elixir Scribe Typed Contract leads to more robust code with fewer bugs and less tests needed to guarantee data correctness, compared to when a struct, a plain map or a Keyword list was previously used.

Full Changelog: https://github.com/Exadra37/elixir-scribe/commits/v0.2.0