Skip to content

Latest commit

 

History

History
99 lines (57 loc) · 1.92 KB

CHANGELOG.md

File metadata and controls

99 lines (57 loc) · 1.92 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[3.2.1] - 2022-10-29

Fixed

  • Allow loading Encrypter in Node.js without enabling "--experimental-global-webcrypto" flag.

[3.2.0] - 2022-09-03

Added

  • Encrypter class that encrypts ids into 128-bit values using AES encryption of Web Crypto API.

Changed

  • Renamed ObjectId64 class into Encoder.

[3.1.1] - 2022-08-03

Changed

  • Simplify binary conversion methods.

[3.1.0] - 2022-08-03

Add

  • Add methods to support encoding and decoding binary representations of UUID and ObjectId.

[3.0.3] - 2022-08-02

Add

  • Allow skipping lookup table creation upon instantiation of an encoder instance.

[3.0.2] - 2022-07-30

Changed

  • Optimize integer and bigint encoding.

[3.0.1] - 2022-07-20

Changed

  • Use Map for lookup tables to improve performance.

Fixed

  • Add README.md to the NPM package.

[3.0.0] - 2022-07-19

Changed

  • (BREAKING) Class ObjectID64 renamed into ObjectId64
  • (BREAKING) ObjectID64#encode & ObjectID64#decode renamed into respectfully ObjectId64#fromObjectId & ObjectId64#toObjectId

Added

  • Support for encoding UUIDs with ObjectId64#fromUUID & ObjectId64#toUUID
  • Support for encoding 32 bit integers with ObjectId64#fromInt & ObjectId64#toInt
  • Support for encoding bigints with ObjectId64#fromBigInt & ObjectId64#toBigInt

[2.0.0] - 2021-04-20

Added

  • Make ObjectID64 instantiable to simplify using multiple instances of encoder.
  • Rewrite in TypeScript and port to Deno.

[1.0.3] - 2020-04-10

Added

  • Add TypeScript definitions.

[1.0.1] - 2017-06-30

Fixed

  • Fix one off error in lookup table generation.

[1.0.0] - 2016-11-6