convert

The smallest & fastest library for really easy, totally type-safe unit conversions in TypeScript & JavaScript.

MIT License

Downloads
124.8K
Stars
105
Committers
9

Bot releases are visible (Hide)

convert - v4.5.0

Published by github-actions[bot] over 2 years ago

4.5.0 (2022-03-29)

Features

convert - v4.4.2

Published by github-actions[bot] over 2 years ago

4.4.2 (2022-03-02)

Bug Fixes

  • stop using dynamic imports in React Native entrypoint (#428) (ef84db6)
convert - v4.4.1

Published by github-actions[bot] over 2 years ago

4.4.1 (2022-02-17)

Bug Fixes

convert - v4.4.0

Published by github-actions[bot] over 2 years ago

4.4.0 (2022-01-25)

Features

convert - v4.3.2

Published by github-actions[bot] almost 3 years ago

4.3.2 (2022-01-01)

Bug Fixes

  • fix compilation errors in typings declaration (ac4a005)
convert - v4.3.1

Published by github-actions[bot] almost 3 years ago

4.3.1 (2021-12-31)

Bug Fixes

  • use Babel instead of Rollup to generate UMD wrapper (#362) (dd3abc3)
convert - v4.3.0

Published by github-actions[bot] almost 3 years ago

4.3.0 (2021-11-09)

Bug Fixes

  • fix converting negative quantities to the best unit (9a49b98)

Features

  • ms: support converting a number to a string (387251c)
convert - v4.2.5

Published by github-actions[bot] almost 3 years ago

4.2.5 (2021-11-09)

Bug Fixes

  • volume: fix conversion ratios for US customary units (ee0c6dd), closes #317
convert - v4.2.4

Published by github-actions[bot] about 3 years ago

4.2.4 (2021-10-15)

Bug Fixes

  • temperature: fix a bug that provided incorrect conversions when using bigints with certain units (3ed04c6)

Performance Improvements

  • reduce bundle size with pure_getters Terser option (5a25506)
convert - v4.2.3

Published by github-actions[bot] about 3 years ago

4.2.3 (2021-10-15)

Performance Improvements

  • temperature: improve performance of kelvins aliases check (b3df44f)
convert - v4.2.2

Published by github-actions[bot] about 3 years ago

4.2.2 (2021-10-14)

Bug Fixes

  • fix return type of .to() with bigints (c1214d8)

Performance Improvements

  • use bound functions instead of closures (17303e2)
convert - v4.2.1

Published by github-actions[bot] about 3 years ago

4.2.1 (2021-10-13)

Bug Fixes

  • fix converting to "best" for imperial volume and imperial area (d43a91c)
convert - v4.2.0

Published by github-actions[bot] about 3 years ago

4.2.0 (2021-10-07)

Features

  • use API extractor for safer releases (0959ca1)
convert - v4.1.3

Published by github-actions[bot] about 3 years ago

4.1.3 (2021-10-04)

Bug Fixes

  • data: fix a bug introduced in v2.2.1 that removed SI prefixes for bits (cdd445c)
convert - v4.1.2

Published by github-actions[bot] about 3 years ago

4.1.2 (2021-09-27)

Bug Fixes

  • include file extensions in imports (198e5b3)
  • pressure: fix typo in atmosphere (de41502)
convert - v4.1.1

Published by github-actions[bot] about 3 years ago

4.1.1 (2021-09-25)

Bug Fixes

convert - v4.1.0

Published by github-actions[bot] about 3 years ago

4.1.0 (2021-09-25)

Features

  • support configuring types of units to use when converting to best (8144aba), closes #216
  • temperature: add SI prefixed units for kelvin (c51d8f1)
convert - v4.0.2

Published by github-actions[bot] about 3 years ago

4.0.2 (2021-09-23)

Bug Fixes

  • throw a TypeError if the given quantity is the wrong type (dc3415f)
  • temperature: fix a bug where converting kelvin would not work (4bd1e93)

Performance Improvements

  • avoid unnecessary conversions if the from and to types are the same (f669a30)
  • minor reductions to bundle size (dcc0159)
convert - v4.0.1

Published by github-actions[bot] about 3 years ago

4.0.1 (2021-09-23)

Performance Improvements

  • check types once instead of every conversion (c5a7f38)
convert - v4.0.0

Published by github-actions[bot] about 3 years ago

4.0.0 (2021-09-22)

Bug Fixes

  • fix temperature conversions to and from kelvins (a0109b7)
  • temperature: fix certain conversions (ba3e797), closes #267

BREAKING CHANGES

  • temperature: Converting with delisle or De has been removed.