Skip to content

v0.16.0

Choose a tag to compare

@TimothyJones TimothyJones released this 01 Oct 16:41
98a35a5

0.16.0 (2024-10-01)

⚠ BREAKING CHANGES

  • Slightly improve the description of and matchers. This is a breaking change for anyone relying on the autogenerated example names.
  • Replace test-equivalence-matchers and case-example-mock-types with one package named "case-definition-dsl"
  • Export plugin as the default export instead of named
  • Split HTTP mock and matchers to their own packages

Features

  • Add ability for plugins to specify their own configuration (bf636c2)
  • Add function caller mocks (e05b370)
  • Add function plugin for mocking function execution (de74428)
  • Add getPluginConfig convenience method for extracting the value of mockConfig[pluginName] (50de742)
  • Add loadPlugin message to both contract definition and verification grpc streams (5845808)
  • Add mockConfig configuration property (f82a394)
  • Add MockFunctionCall to the definition dsl (172fbe2)
  • Add plugin loader methods to ContractDefiner and ContractVerifier (1112f40)
  • Allow loading of plugins via PluginLoader class (0968917)
  • Allow specifying baseUrlUnderTest via mockConfig (052ea3f)
  • Extract proto to its own package (6a64dbe)
  • Include function plugin by default (7c2a0f3)
  • Introduce mockConfig to configuration object (225ab61)
  • Load matchers from plugin (8bd1bf0)

Bug Fixes

  • Avoid channel unavailable messages during normal shutdown (0ccdbf7)
  • Correct documentation for And matcher (70ed28d)
  • Correct issue where correctly configured http plugins said they weren't correctly configured (df386cb)
  • Extract sourcemap for better stack traces (e465b96)
  • Fix issue where tests could hang on node 18 (e023711)
  • Hardcode error names so that they're robust to minification (3106196)
  • Improve hasErrors function (9b82033)
  • Improve location reporting when function return types don't match (1f32560)
  • Improve plugin configuration error messages (11d44bb)
  • Improve plugin configuration errors and documentation (30e5987)
  • Remove unnecessary dependencies (3bc3f37)
  • Slightly improve the description of and matchers. This is a breaking change for anyone relying on the autogenerated example names. (176eb01)
  • Support null responses, eg for void returns in functions (1c2eeb1)

Miscellaneous Chores

  • Split HTTP mock and matchers to their own packages (bfc2e4f)

Code Refactoring

  • Export plugin as the default export instead of named (78397d2)
  • Replace test-equivalence-matchers and case-example-mock-types with one package named "case-definition-dsl" (031ce1e)

Dependencies

  • The following workspace dependencies were updated
    • devDependencies
      • @contract-case/eslint-config-case-maintainer bumped from 0.1.0 to 0.1.1