Skip to content

Releases: solancer/two-way-map

v1.0.3

19 Nov 20:28
Compare
Choose a tag to compare

Now turbocharged with tsup for lightning-fast builds! This release is all about speed and efficiency, ensuring you get the most out of your two-way mapping without any performance drag. 🚀

We've harnessed the power of tsup to streamline our build process, which means:

📦 Smaller bundle sizes
⏱ Quicker compilation times
🔄 Effortless ESM and CommonJS module support
Whether you're handling complex data structures on the server-side or need a reliable mapping solution in the browser, @solancer/two-way-map has got you covered with a modern, dual-format build ready to integrate seamlessly into your workflow.

v1.0.0

18 Nov 20:46
Compare
Choose a tag to compare

Version 1.0.0 Release

The first official release of the Two-Way Map library!

Key Highlights:

  • Two-way mapping functionality for bidirectional lookups.
  • Order preservation of elements.
  • Full TypeScript support for type safety.

Changelog:

  • Added the set method for adding key-value pairs.
  • Introduced get and getByValue methods for retrieving values and keys.
  • Implemented delete method for removing entries.
  • Added convenience methods: keys, values, entries.
  • Introduced pop and popitem methods for more advanced use cases.
  • Implemented the copy method for creating shallow copies.
  • Added the clear method for removing all entries.

Breaking Changes:

  • None in this release.

Enjoy using Two-Way Map!