Skip to content

Releases

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 24 Aug 09:16
73269e7

Changelog

  • Add support for multi-arity protocol methods by @julienvincent in fdcf1e4

    Currently malt only has support for single-arity protocol methods. This
    was a pretty big oversight in its original design and fixing this has
    had significant implications for backwards compatibility.

    This patch adds support for multi-arity, defined using the defn syntax
    instead of defprotocol to reduce ambiguity.

    All static protocol method specs are now stored within a vector under
    :malt/specs on the protocol sig. The vector contains one spec per
    arity.

    This is a significant deviation from the previous design which stored
    all malt spec data directly on the protocol signature using :malt/
    prefixed keys.

    The previous format is still preserved for backwards compatibility -
    however this is only done for single-arity methods and will be removed
    in the future in favour of the new :malt/specs interface.

  • Ensure method metadata includes full method specs by @julienvincent in 73269e7

    Previously malt excluded the precompiled schema validators from method
    metadata specs.

    This patch brings method specs up to speed such that they are now
    identical to protocol specs.

For the full changelog visit v1.1.2...v1.2.0

v1.1.2

Choose a tag to compare

@github-actions github-actions released this 17 Aug 18:44
df7fc58

Changelog

For the full changelog visit v1.1.1...v1.1.2

v1.1.1

Choose a tag to compare

@github-actions github-actions released this 17 Aug 10:24
b706ba3

Changelog

For the full changelog visit v1.1.0...v1.1.1

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 16 Aug 11:37
d0b1004

Changelog

  • Expand throws to include non-malt errors by @julienvincent in 3c58e53

    Right now if you want to make use of checked exceptions you are forced
    to use the malt.error APIs to throw exceptions.

    This excluded use-cases that involve native Java error classes, bespoke
    clojure.lang.ExceptionInfo data formats, or custom error classes which
    implement clojure.lang.IExceptionInfo.

    This patch expands on the throws interface to allow describing
    class-based thrown exceptions, and :schemas which match on whatever is
    returned from ex-data.

  • Improve check-exceptions documentation by @julienvincent in b7a7a6d
  • Fixed check-exceptions applying to malt validation by @julienvincent in f9880eb
  • Make throws required for methods that throw by @julienvincent in d0b1004

    This is a breaking change.

    Now that there is a mechanism to fully describe the various exceptions
    an implementation can thrown, and a simple catch-all escape hatch
    (throws [Exception]) - there is no reason not to make throws
    required for methods which are expected to throw.

For the full changelog visit v1.0.0...v1.1.0

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 13 Aug 22:06
a33e7ab

Changelog

  • Add support for 3-arg variant of ex and throw! by @julienvincent in fef648e
  • Provide detailed docstrings for the error API by @julienvincent in 828d752
  • Add a docstring for the ?ErrorDefinition schema by @julienvincent in 9deef83
  • Fix protos with refs storing unresolved schemas by @julienvincent in 7934c81

    Currently when you construct a protocol that references surrounding vars
    from the current (or other) namespace, those forms were exposed verbatim
    in the resulting protocol var.

    This is a bug which this patch now fixes. Schema forms are fully
    resolved before being stored in the protocol metadata.

  • Refactored core API for maintainability by @julienvincent in ea2c87e

    The current implementation was very messily implemented by an early LLM
    model which wrote hard to read, non-idiomatic Clojure, all in a single
    namespace.

    This patch forms the basis for a cleaner and more maintainable code
    base. It was fully factored using Fable 5, but did a pretty good job on
    this pass.

  • Create a github release with changelog on release by @julienvincent in a33e7ab

For the full changelog visit v1.0.0-alpha.14...v1.0.0