Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 2.1 KB

CHANGELOG.md

File metadata and controls

60 lines (41 loc) · 2.1 KB

Changelog

[Unreleased]

[3.1.0] 2025-01-29

Changed

  • Added or_insert, or_insert_with, or_insert_with_key and or_default for better match the standard hashmap api

Fixed

  • VacantEntry::insert after remove causes corrupted data

[3.0.1] 2025-01-12

Changed

  • Avoid re-hashing (twice!) in VacantEntry::insert

[3.0.0] 2024-12-09

Changed

  • IntMap::new is now const and creates an instance with zero capacity, thus will not allocate. The latter is also true for IntMap::default. Previously the initial capacity was 4. If you want to restore the old behavior, you can use IntMap::with_capacity(4).
  • The prime for hashing u64 keys has changed. The previous one was 11400714819323198549u64. If you want to restore the old prime, you can create a wrapper type for the u64 key and implement IntKey for it.
  • Make all iterator structs public.

Changed Breaking!

  • IntMap and co. have now a new type parameter K that represents the key type. The key can be any primitive integer. Custom types that wrap primitive integers are also supported if they implement IntKey.
  • The iterator structs return the key by value instead of by reference.

[2.0.0] 2022-07-17

Added Breaking!

  • insert now matches behavior of built-in insert
  • Old insert has been renamed to insert_checked

[1.1.0] 2022-06-11

Added

Fixed

Changed

  • Change default load factor to 90.9

[1.0.0] 2022-06-10

  • Bump to 1.0 as we are feature complete!

Added

[0.8.0] 2022-06-09

Added

  • Added changelog!
  • Add support for Serde behind "serde" feature flag, disabled by default @roman-kashitsyn

Changed