Skip to content

v0.22.0

Choose a tag to compare

@TimothyJones TimothyJones released this 14 Apr 13:57
dff38bc

0.22.0 (2025-04-14)

⚠ BREAKING CHANGES

  • core: New behaviour of using contacts like snapshots - the new setting changedContracts changes the behaviour when contracts are changed. Either 'FAIL' for fail when a contract is changed, or 'OVERWRITE' for overwriting when a contract is changed. Default is to FAIL, so this is a breaking change.

Features

  • cli: Add ability to invoke can-i-deploy from the CLI (b2351ca)
  • cli: Add option to specify the download directory (dd95f1b)
  • connector: Expose a CJS version as @contract-case/case-connector/cjs (bbc490d)
  • core: Add ability to ask broker if it is safe to deploy (17a3ec5)
  • core: New behaviour of using contacts like snapshots - the new setting changedContracts changes the behaviour when contracts are changed. Either 'FAIL' for fail when a contract is changed, or 'OVERWRITE' for overwriting when a contract is changed. Default is to FAIL, so this is a breaking change. (b8dcd1f)
  • core: Write a main contract file alongside the hashed contract file when in contractDir mode. Useful for spotting changes to the main branch (afb2e66)

Bug Fixes

  • cli: Fix issue where CLI wasn't executable on some systems (cc67662)
  • cli: Fix issue where CLI wouldn't listen to some arguments (8cf4062)
  • core: Contract hashes no longer include metadata or broker-provided fields. This means that broker downloaded contracts will match the uploaded hash (60f4f5f)
  • core: Improve error message when non-brokered contract verification is published (0cfbfa0)
  • core: State-handler provided variables were accidentally included in the contract hash, now they aren't (1f3045f)
  • Improve reporting of stack traces when triggers fail (deedb53)
  • jest: Expose package as CJS so that it plays better with jest (34e8a3b)

Dependencies

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