Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release v0.14.1 #1793

Closed
wants to merge 1 commit into from
Closed

Conversation

hugrbot
Copy link
Collaborator

@hugrbot hugrbot commented Dec 17, 2024

🤖 New release

  • hugr: 0.14.0 -> 0.14.1 (✓ API compatible changes)
  • hugr-core: 0.14.0 -> 0.14.1 (✓ API compatible changes)
  • hugr-llvm: 0.14.0 -> 0.14.1 (✓ API compatible changes)
  • hugr-passes: 0.14.0 -> 0.14.1 (✓ API compatible changes)
  • hugr-cli: 0.14.0 -> 0.14.1 (✓ API compatible changes)
Changelog

hugr

0.14.0 - 2024-12-16

This release includes a long list of breaking changes that simplify the API, specially around
extensions and extension registry management.

Extension definitions are now tracked by each operation and type inside the hugr, so there is no
need to pass around extension registries any more.

âš  BREAKING CHANGES

Core

  • The LoadFunction::signature field has been removed. Replaced with DataflowOpTrait::signature().
  • Types which implement AsRef - both library ones such as Rc and custom ones - no longer get a blanket impl of HugrView. Workaround by manually calling as_ref() and using the &Hugr yourself.
  • Removed Array type variant from the serialization format.
  • Optrait now requires Sized and Clone and is no longer object safe.
  • DataflowOptrait now requires Sized and has an additional required method substitute.
  • ::extension::resolve operations now use WeakExtensionRegistryes.
  • ExtensionRegistry and Package now wrap Extensions in Arcs.
  • Renamed OpDef::extension and TypeDef::extension to extension_id. extension now returns weak references to the Extension defining them.
  • Extension::with_reqs moved to set_reqs, which takes &mut self instead of self.
  • Extension::add_type and Extension::add_op now take an extra parameter. See docs for example usage.
  • ExtensionRegistry::register_updated and register_updated_ref are no longer fallible.
  • Removed CustomType::new_simple. Custom types can no longer be const-constructed.
  • Added init_signature and extension_ref methods to the MakeOpDef trait.
  • Redefined the const types in the prelude to generator functions.
  • Removed resolve_opaque_op and resolve_extension_ops. Use Hugr::resolve_extension_defs instead.
  • Removed ExtensionRegistry::try_new. Use new instead, and call ExtensionRegistry::validate to validate.
  • ExtensionSet::insert and singleton take extension ids by value instead of cloning internally.
  • Removed update_validate. The hugr extensions should be resolved at load time, so we can use validate instead.
  • The builder finish_hugr function family no longer takes a registry as parameter, and the _prelude variants have been removed.
  • extension_reqs field in FunctionType and Extension renamed to runtime_reqs.
  • Removed the extension registry argument from validate calls.
  • Removed the extension registry argument from operation instantiation methods.
  • Removed most extension-specific test registries. Use EMPTY_REG, PRELUDE_REGISTRY, or STD_REG instead.

Extensions

  • Array scan and repeat ops get an additional type parameter specifying the extension requirements of their input functions. Furthermore, repeat is no longer part of ArrayOpDef but is instead specified via a new ArrayScan struct.
  • collections extension renamed to collections.list
  • Array type and operations have been moved out of prelude and into a new collections.array extension.

Passes

  • ConstantFoldPass is no longer UnwindSafe, RefUnwindSafe, nor Copy.
  • fold_leaf_op and find_consts have been removed.
  • ConstantFoldPass::new function removed. Instead use ConstantFoldPass::default.
  • Variant ConstFoldError::SimpleReplacementError was removed.

Bug Fixes

Documentation

New Features

Performance

Refactor

hugr-core

0.14.0 - 2024-12-16

This release includes a long list of breaking changes that simplify the API, specially around
extensions and extension registry management.

Extension definitions are now tracked by each operation and type inside the hugr, so there is no
need to pass around extension registries any more.

âš  BREAKING CHANGES

Core

  • The LoadFunction::signature field has been removed. Replaced with DataflowOpTrait::signature().
  • Types which implement AsRef - both library ones such as Rc and custom ones - no longer get a blanket impl of HugrView. Workaround by manually calling as_ref() and using the &Hugr yourself.
  • Removed Array type variant from the serialization format.
  • Optrait now requires Sized and Clone and is no longer object safe.
  • DataflowOptrait now requires Sized and has an additional required method substitute.
  • ::extension::resolve operations now use WeakExtensionRegistryes.
  • ExtensionRegistry and Package now wrap Extensions in Arcs.
  • Renamed OpDef::extension and TypeDef::extension to extension_id. extension now returns weak references to the Extension defining them.
  • Extension::with_reqs moved to set_reqs, which takes &mut self instead of self.
  • Extension::add_type and Extension::add_op now take an extra parameter. See docs for example usage.
  • ExtensionRegistry::register_updated and register_updated_ref are no longer fallible.
  • Removed CustomType::new_simple. Custom types can no longer be const-constructed.
  • Added init_signature and extension_ref methods to the MakeOpDef trait.
  • Redefined the const types in the prelude to generator functions.
  • Removed resolve_opaque_op and resolve_extension_ops. Use Hugr::resolve_extension_defs instead.
  • Removed ExtensionRegistry::try_new. Use new instead, and call ExtensionRegistry::validate to validate.
  • ExtensionSet::insert and singleton take extension ids by value instead of cloning internally.
  • Removed update_validate. The hugr extensions should be resolved at load time, so we can use validate instead.
  • The builder finish_hugr function family no longer takes a registry as parameter, and the _prelude variants have been removed.
  • extension_reqs field in FunctionType and Extension renamed to runtime_reqs.
  • Removed the extension registry argument from validate calls.
  • Removed the extension registry argument from operation instantiation methods.
  • Removed most extension-specific test registries. Use EMPTY_REG, PRELUDE_REGISTRY, or STD_REG instead.

Extensions

  • Array scan and repeat ops get an additional type parameter specifying the extension requirements of their input functions. Furthermore, repeat is no longer part of ArrayOpDef but is instead specified via a new ArrayScan struct.
  • collections extension renamed to collections.list
  • Array type and operations have been moved out of prelude and into a new collections.array extension.

Bug Fixes

Documentation

New Features

Performance

Refactor

hugr-llvm

0.13.3 - 2024-11-25

No changes - version bump to catch up with other hugr crates in repository move.

hugr-passes

0.14.0 - 2024-12-16

âš  BREAKING CHANGES

  • Updated to hugr 0.14, which includes breaking changes to the serialization format.

  • ConstantFoldPass is no longer UnwindSafe, RefUnwindSafe, nor Copy.

  • fold_leaf_op and find_consts have been removed.

  • ConstantFoldPass::new function removed. Instead use ConstantFoldPass::default.

  • Variant ConstFoldError::SimpleReplacementError was removed.

Bug Fixes

New Features

Performance

hugr-cli

0.14.1 - 2024-12-17

New Features


This PR was generated with release-plz.

@hugrbot hugrbot added the release Release PR label Dec 17, 2024
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.52%. Comparing base (66745bf) to head (f238918).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1793   +/-   ##
=======================================
  Coverage   86.52%   86.52%           
=======================================
  Files         188      188           
  Lines       34205    34205           
  Branches    31076    31076           
=======================================
  Hits        29597    29597           
  Misses       2923     2923           
  Partials     1685     1685           
Flag Coverage Δ
python 92.58% <ø> (ø)
rust 85.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hugrbot hugrbot force-pushed the release-plz-2024-12-17T11-59-36Z branch from 32dfd6d to f238918 Compare December 17, 2024 12:08
@hugrbot hugrbot closed this Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Release PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant