You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java-dsl: Remove the RunTestCallback versions of the Verifier constructor - they have been deprecated for several releases, and the RunTestCallback parameter was ignored anyway
definition-dsl: Deprecate io.contract_testing.contractcase.definitions, it is no longer published by this package. Ultimately, we will remove @contract-case/case-definition-dsl in favour of the new generator package. This is a breaking change because the definitions package is no longer required (or usable by) the java packages.
java-dsl: Remove JSii. This is a substantial ergonomic improvement, but it also means that the previous DSL classes in `io.contract_testing.contractcase.definitions` need to be replaced with the classes in `io.contract_testing.contractcase.dsl`. The functionality has been preserved, but there are minor differences in the way the DSL is expressed. Please see the documentation or official test code for examples of usage.
In order to support the upcoming replacement of JSii, the function invocation matcher has changed to no longer have the function name associated with it, it is now injected by the plugin at runtime. This is not a functional change, but it is still a breaking change as contracts with function plugins will have different definitions and will need to be updated.
Now plugins can control how the unique name constraint is set up. However, this is a breaking change for existing plugin authors, as now a mock executor is two functions. This is the beginning of the work needed to move away from requiring every interaction to have a request / response pair.
Features
Add a clear error code and documentation for when a function needs to be provided, but is missing (59ad728)
java: Generated DSL classes now all have the ContractCaseDsl annotation on the class, to assist with custom serialisation (77f3fca)
Now plugins can control how the unique name constraint is set up. However, this is a breaking change for existing plugin authors, as now a mock executor is two functions. This is the beginning of the work needed to move away from requiring every interaction to have a request / response pair. (bfcb019)
Bug Fixes
core: Add Advice Override option for MISSING_REGISTERED_FUNCTION (3ed93e0)
core: Now the core ArrayLength matcher knows the default values (previously, it was the matcher DSL) (1d7704a)
java-dsl: Move jetbrains annotations to the correct (compileOnly) scope (4af9222)
Miscellaneous Chores
definition-dsl: Deprecate io.contract_testing.contractcase.definitions, it is no longer published by this package. Ultimately, we will remove @contract-case/case-definition-dsl in favour of the new generator package. This is a breaking change because the definitions package is no longer required (or usable by) the java packages. (bf1c94c)
Code Refactoring
In order to support the upcoming replacement of JSii, the function invocation matcher has changed to no longer have the function name associated with it, it is now injected by the plugin at runtime. This is not a functional change, but it is still a breaking change as contracts with function plugins will have different definitions and will need to be updated. (d1e5762)
java-dsl: Remove JSii. This is a substantial ergonomic improvement, but it also means that the previous DSL classes in `io.contract_testing.contractcase.definitions` need to be replaced with the classes in `io.contract_testing.contractcase.dsl`. The functionality has been preserved, but there are minor differences in the way the DSL is expressed. Please see the documentation or official test code for examples of usage. (6fa0d75)
java-dsl: Remove the RunTestCallback versions of the Verifier constructor - they have been deprecated for several releases, and the RunTestCallback parameter was ignored anyway (26a34d2)
Dependencies
The following workspace dependencies were updated
devDependencies
@contract-case/eslint-config-case-maintainer bumped from 0.27.3 to 0.28.0