github onflow/cadence v0.27.0

24 months ago

What's Changed

This release contains a brand new framework for writing tests in Cadence, new standard library features, and many performance improvements.

⭐ Features

🛠 Improvements

  • Optimize and make visitor generic by @turbolent in #1907
  • Improve the AST visitor further by @turbolent in #1919
  • Remove values from tokens, make all code byte slices by @turbolent in #1930
  • Use WriteByte instead of WriteRune by @turbolent in #1944
  • Export environment checker and interpreter config to allow customization by @turbolent in #1910
  • Refactor activations to be truly generic by @turbolent in #1945
  • Move the fail() function to native implementation by @SupunS in #1960
  • Update wasmtime-based VM by @turbolent in #1946
  • Optimize type ID generation, remove location ID by @turbolent in #1932
  • Export functionality required by debugger by @turbolent in #1924
  • Add method to get function value's sema function type by @turbolent in #1991
  • Improve type information in interpreter errors by @turbolent in #1994
  • [LS] General improvements by @sideninja in #1877
  • [LS] Update to Cadence v0.26.0 by @turbolent in #1970
  • [Test Framework] Remove test-framework field from interpreter by @SupunS in #1886
  • [Test Framework] Move matcher implementation to cadence by @SupunS in #1895
  • [Test Framework] Refactor and cleanup the test-stdlib by @SupunS in #1897
  • [Test Framework] Start development of Cadence test framework by @SupunS in #1827
  • [Test Framework] Add support for importing and initializing contracts by @SupunS in #1832
  • [Test Framework] Use FVM as the environment provider for test runner by @SupunS in #1835
  • [Test Framework] Add transaction execution support by @SupunS in #1849
  • [Test Framework] Run setup/teardown before/after tests by @SupunS in #1864
  • [Test Framework] Add support for loading programs from local files by @SupunS in #1869
  • [Test Framework] Add helper function for contract deployment by @SupunS in #1868
  • [Test Framework] Add initial support for Matchers by @SupunS in #1863
  • [Test Framework] Provide a way to specify addresses for the imports by @SupunS in #1893
  • [Test Framework] Update Cadence by @turbolent in #1955
  • [Test Framework] Separate import resolver and file resolver by @SupunS in #1954

🐞 Bug Fixes

📖 Documentation

🧪 Testing

  • Add test case to check optional-chaining argument evaluation order by @turbolent in #1925

Chores

New Contributors

Full Changelog: v0.26.2...v0.27.0

Don't miss a new cadence release

NewReleases is sending notifications on new releases.