|
1 | | -## 1.0.1 (2021-02-15) |
| 1 | +# Changelog |
2 | 2 |
|
3 | | -- Added description to package.json |
| 3 | +All notable changes to this project will be documented in this file. |
4 | 4 |
|
5 | | -## 1.0.0 (2021-02-11) |
| 5 | +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) |
| 6 | +and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). |
6 | 7 |
|
7 | | -- New build system ([tsdx](https://tsdx.io/)) |
| 8 | +## [Unreleased] |
8 | 9 |
|
9 | | -## 0.5.1 (2019-08-24) |
| 10 | +### Changed |
10 | 11 |
|
11 | | -- Fixed README.md note about return values |
| 12 | +- `numericQuantity` is now a named export; there is no default export. |
| 13 | +- UMD build assigns all exports, including `numericQuantity`, to the global object `NumericQuantity`. Previously, it assigned the main function to the global namespace as `numericQuantity`. |
12 | 14 |
|
13 | | -## 0.5.0 (2019-08-24) |
| 15 | +### Added |
14 | 16 |
|
15 | | -### Breaking change |
| 17 | +- Support for comma (`','`) and underscore (`'_'`) separators within Arabic numeral sequences. If a numeric sequence has a leading or trailing separator, that sequence will be considered invalid. This will cause `numericQuantity` to return `NaN` unless `allowTrailingInvalid` is `true` (see next item), in which case the sequence in question and everything after it will be ignored. |
| 18 | +- Options object as optional second parameter. Accepts the following options: |
| 19 | + - `allowTrailingInvalid` (`boolean`, default `false`): Allows `numericQuantity` to more closely resemble the behavior of `parseFloat` by accepting and ignoring everything from the first invalid character to the end of the string. |
| 20 | + - `romanNumerals` (`boolean`, default `false`): Enables support for Roman numerals with modern, strict rules, including the Unicode code points `U+2160` through `U+217F`. Roman numerals will only be parsed if an attempt to parse the string based on Arabic numerals fails. To parse Roman numerals unconditionally, call `parseRomanNumerals` directly. |
| 21 | + - `round` (`number | false`, default `3`): Rounds the result to the specified number of decimal places. Use `round: false` to avoid rounding. |
| 22 | +- Support for Unicode "Fraction Numerator One" code point (`'⅟'`, `U+215F`), which must be followed by a numeric sequence (the denominator) to be considered part of a valid fraction representation. |
| 23 | +- Named exports of internal utilities like regular expressions, character maps, types, etc. |
| 24 | +- Build with ([tsup](https://tsup.egoist.dev/)). |
16 | 25 |
|
17 | | -- Returns `NaN` for invalid inputs instead of `-1` |
| 26 | +## [v1.0.4] - 2022-04-16 |
18 | 27 |
|
19 | | -### Bug fixes |
| 28 | +### Fixed |
20 | 29 |
|
21 | | -- Handles negative numbers properly (fixes [#3](https://github.com/jakeboone02/numeric-quantity/issues/3)) |
| 30 | +- Corrected filenames in [package.json](./package.json). |
22 | 31 |
|
23 | | -## 0.4.2 (2019-08-23) |
| 32 | +## [v1.0.3] - 2022-04-16 |
24 | 33 |
|
25 | | -- Rewritten with TypeScript |
| 34 | +### Added |
26 | 35 |
|
27 | | -## 0.3.2 (2018-09-21) |
| 36 | +- Build with [Vite](https://vitejs.dev/). |
28 | 37 |
|
29 | | -## 0.3.1 (2015-07-16) |
| 38 | +## [v1.0.2] - 2021-08-23 |
30 | 39 |
|
31 | | -## 0.3.0 (2015-07-16) |
| 40 | +### Added |
32 | 41 |
|
33 | | -## 0.1.2 (2015-03-20) |
| 42 | +- [#21] Support for Unicode fraction slash (`⁄`, `U+2044`). |
34 | 43 |
|
35 | | -## 0.1.1 (2015-03-19) |
| 44 | +## [v1.0.1] - 2021-02-15 |
36 | 45 |
|
37 | | -## 0.1.0 (2015-03-18) |
| 46 | +### Fixed |
| 47 | + |
| 48 | +- Added description to [package.json](./package.json). |
| 49 | + |
| 50 | +## [v1.0.0] - 2021-02-11 |
| 51 | + |
| 52 | +### Added |
| 53 | + |
| 54 | +- [#12] New build system ([tsdx](https://tsdx.io/)). |
| 55 | + |
| 56 | +## [v0.5.2] - 2021-02-08 |
| 57 | + |
| 58 | +### Fixed |
| 59 | + |
| 60 | +- Updated CI badges on [README.md](./README.md). |
| 61 | + |
| 62 | +## [v0.5.1] - 2019-08-24 |
| 63 | + |
| 64 | +### Fixed |
| 65 | + |
| 66 | +- [README.md](./README.md) note about return values. |
| 67 | + |
| 68 | +## [v0.5.0] - 2019-08-24 |
| 69 | + |
| 70 | +### Changed |
| 71 | + |
| 72 | +- Returns `NaN` for invalid inputs instead of `-1`. |
| 73 | + |
| 74 | +### Fixed |
| 75 | + |
| 76 | +- [#3] Handles negative numbers. |
| 77 | + |
| 78 | +## [v0.4.2] - 2019-08-23 |
| 79 | + |
| 80 | +### Fixed |
| 81 | + |
| 82 | +- Publish `dist` directory only. |
| 83 | + |
| 84 | +## [v0.4.1] - 2019-08-23 |
| 85 | + |
| 86 | +### Changed |
| 87 | + |
| 88 | +- Rewritten in TypeScript. |
| 89 | + |
| 90 | +### Added |
| 91 | + |
| 92 | +- Build with [Rollup](https://rollupjs.org/). |
| 93 | + |
| 94 | +## [v0.4.0] - 2019-08-22 |
| 95 | + |
| 96 | +### Added |
| 97 | + |
| 98 | +- ESM and CJS builds. |
| 99 | + |
| 100 | +## [v0.3.3] - 2019-07-21 |
| 101 | + |
| 102 | +### Added |
| 103 | + |
| 104 | +- JSDoc comments for tooltips |
| 105 | + |
| 106 | +## [v0.3.2] - 2018-09-21 |
| 107 | + |
| 108 | +### Added |
| 109 | + |
| 110 | +- TypeScript types. |
| 111 | + |
| 112 | +## [v0.3.1] - 2015-07-16 |
| 113 | + |
| 114 | +### Fixed |
| 115 | + |
| 116 | +- Documentation update. |
| 117 | + |
| 118 | +## [v0.3.0] - 2015-07-16 |
| 119 | + |
| 120 | +### Added |
| 121 | + |
| 122 | +- UMD support. |
| 123 | + |
| 124 | +### Fixed |
| 125 | + |
| 126 | +- Minor bug fixes. |
| 127 | + |
| 128 | +## [v0.2.0] - 2015-05-14 |
| 129 | + |
| 130 | +### Added |
| 131 | + |
| 132 | +- [#1] Accept decimals without a leading zero. |
| 133 | + |
| 134 | +## [v0.1.2] - 2015-03-20 |
| 135 | + |
| 136 | +### Fixed |
| 137 | + |
| 138 | +- Minor performance improvement. |
| 139 | + |
| 140 | +## [v0.1.1] - 2015-03-19 |
| 141 | + |
| 142 | +### Changed |
| 143 | + |
| 144 | +- Use `parseInt`/`parseFloat` instead of `str - 0` to parse numbers from strings. |
| 145 | + |
| 146 | +## [v0.1.0] - 2015-03-18 |
| 147 | + |
| 148 | +### Added |
| 149 | + |
| 150 | +- Initial release. |
| 151 | + |
| 152 | +<!-- Issue/PR links --> |
| 153 | + |
| 154 | +[#1]: https://github.com/jakeboone02/numeric-quantity/issues/1 |
| 155 | +[#3]: https://github.com/jakeboone02/numeric-quantity/issues/3 |
| 156 | +[#21]: https://github.com/jakeboone02/numeric-quantity/pull/21 |
| 157 | +[#12]: https://github.com/jakeboone02/numeric-quantity/pull/12 |
| 158 | + |
| 159 | +<!-- Release comparison links --> |
| 160 | + |
| 161 | +[unreleased]: https://github.com/jakeboone02/numeric-quantity/compare/v1.0.4...HEAD |
| 162 | +[v1.0.4]: https://github.com/jakeboone02/numeric-quantity/compare/v1.0.3...v1.0.4 |
| 163 | +[v1.0.3]: https://github.com/jakeboone02/numeric-quantity/compare/v1.0.2...v1.0.3 |
| 164 | +[v1.0.2]: https://github.com/jakeboone02/numeric-quantity/compare/v1.0.1...v1.0.2 |
| 165 | +[v1.0.1]: https://github.com/jakeboone02/numeric-quantity/compare/v1.0.0...v1.0.1 |
| 166 | +[v1.0.0]: https://github.com/jakeboone02/numeric-quantity/compare/v0.5.2...v1.0.0 |
| 167 | +[v0.5.2]: https://github.com/jakeboone02/numeric-quantity/compare/v0.5.1...v0.5.2 |
| 168 | +[v0.5.1]: https://github.com/jakeboone02/numeric-quantity/compare/v0.5.0...v0.5.1 |
| 169 | +[v0.5.0]: https://github.com/jakeboone02/numeric-quantity/compare/v0.4.2...v0.5.0 |
| 170 | +[v0.4.2]: https://github.com/jakeboone02/numeric-quantity/compare/v0.4.1...v0.4.2 |
| 171 | +[v0.4.1]: https://github.com/jakeboone02/numeric-quantity/compare/v0.4.0...v0.4.1 |
| 172 | +[v0.4.0]: https://github.com/jakeboone02/numeric-quantity/compare/v0.3.3...v0.4.0 |
| 173 | +[v0.3.3]: https://github.com/jakeboone02/numeric-quantity/compare/v0.3.2...v0.3.3 |
| 174 | +[v0.3.2]: https://github.com/jakeboone02/numeric-quantity/compare/v0.3.1...v0.3.2 |
| 175 | +[v0.3.1]: https://github.com/jakeboone02/numeric-quantity/compare/v0.3.0...v0.3.1 |
| 176 | +[v0.3.0]: https://github.com/jakeboone02/numeric-quantity/compare/v0.2.0...v0.3.0 |
| 177 | +[v0.2.0]: https://github.com/jakeboone02/numeric-quantity/compare/v0.1.2...v0.2.0 |
| 178 | +[v0.1.2]: https://github.com/jakeboone02/numeric-quantity/compare/v0.1.1...v0.1.2 |
| 179 | +[v0.1.1]: https://github.com/jakeboone02/numeric-quantity/compare/v0.1.0...v0.1.1 |
| 180 | +[v0.1.0]: https://github.com/jakeboone02/numeric-quantity/tree/v0.1.0 |
0 commit comments