Repository navigation
Releases
v1.2.0
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
defnsyntax
instead ofdefprotocolto reduce ambiguity.All static protocol method specs are now stored within a vector under
:malt/specson 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/specsinterface. - 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
Changelog
- Ensure malt data on method vars is fully resolved by @julienvincent in df7fc58
For the full changelog visit v1.1.1...v1.1.2
v1.1.1
Changelog
- Fix IllegalArgumentException. reflection warning by @julienvincent in b706ba3
For the full changelog visit v1.1.0...v1.1.1
v1.1.0
Changelog
- Expand
throwsto include non-malt errors by @julienvincent in 3c58e53Right now if you want to make use of checked exceptions you are forced
to use themalt.errorAPIs to throw exceptions.This excluded use-cases that involve native Java error classes, bespoke
clojure.lang.ExceptionInfodata formats, or custom error classes which
implementclojure.lang.IExceptionInfo.This patch expands on the
throwsinterface to allow describing
class-based thrown exceptions, and :schemas which match on whatever is
returned fromex-data. - Improve check-exceptions documentation by @julienvincent in b7a7a6d
- Fixed check-exceptions applying to malt validation by @julienvincent in f9880eb
- Make
throwsrequired for methods that throw by @julienvincent in d0b1004This 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 makethrows
required for methods which are expected to throw.
For the full changelog visit v1.0.0...v1.1.0
v1.0.0
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