Releases: BenWoodworth/Parameterize
Releases · BenWoodworth/Parameterize
v0.3.3
v0.3.2
Fixes
- Fix
KProperty.equals
on Wasm when validating declared parameters
v0.3.1
v0.3.0
Changes
- Re-license Parameterize under Apache 2.0
- Redesign
parameterize {}
to be aninline
function- Now supports use with colored functions
- #20 Support use with
suspend
code @Composable
functions in Jetpack Compose
- #20 Support use with
- Can now be used within Kotest DSLs
- Cleaner stack traces
- Non-local returns
- Now supports use with colored functions
- Re-worked
parameterize
overloads to avoid instantiating configurations where the default configuration could be reused instead - Change default behavior to match that of normal loops
- #21 Change default
onFailure
to not catch failures
- #21 Change default
- #22 Replace contextual
parameterize
configuration with a better alternative - Change
onFailure
to run after thedecorator
has completed- Eliminates interaction between them, making it easier to reason about
- Reorder the configuration options, so they're listed in the order they're executed
- Expose the
parameterize
overload that takes only a configuration - Add
parameter
overloads that take aSequence
for arguments - Enable the
parameter()
API to be extended- Expose
Parameter
's constructor andarguments
- Expose
Breaking Changes From v0.2
Contains breaking changes, and is incompatible with previous versions
Binary/source
ParameterizeContext
and the contextualparameterize {}
have been removeddecorator
is now asuspend
lambda- Accommodates
parameterize
being inline - Likely not a source-breaking change
- Accommodates
parameterize(...) {}
options have been re-ordered- Only source-breaking if unnamed arguments were used
parameter(Iterable)
function is now top-level
Behavioral
onFailure
no longer catches failures by defaultdecorator
now completes beforeonFailure
is invoked
v0.2.1
Changes
- #4 Add a
decorator
configuration option, enabling shared "before each" and "after each" logic - #13 Better failure tooling on JVM, with multiple failures and expect/actual comparison
- #12 More consistent and debuggable arguments, in case their computation fails
Dependencies
- Kotlin updated to 1.9.21
v0.2.0
Changes
- #11 Compute arguments iterator immediately, instead of on first use
- #10 Support captured parameters being used after the iteration completes
- A parameter's argument combinations will now always be iterated through, when previously unused parameters would be ignored
Fixes
- With nested
parameterize
calls,ParameterizeException
from the innerparameterize
would also abort the unrelated outerparameterize
Breaking Changes From v0.1
- No binary or source breaking changes
- Only behavioral changes with the order parameter arguments are lazily computed
v0.1.0
First release!
With the core parameterize
DSL, and configurable onFailure
and onComplete
handlers enabling failures to be recorded and a comprehensive error to be thrown afterwards.