Skip to content

Commit 24a5251

Browse files
BryanBryan
authored andcommitted
Update documenation (new release notes, minor fix)
1 parent e7dadc3 commit 24a5251

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

docs/content/release_notes.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
<!-- releases_open -->
22

3+
## 4.1.1
4+
**Refactor price formatting and parsing. As a result, breaking changes may have been introduced.**
5+
6+
* The price format function has refactored.
7+
* Function signature is unchanged.
8+
* Function behavior has changed.
9+
* A string is always returned.
10+
* Passing a non-numeric value will yield a zero-length string.
11+
* Passing an invalid unit code will yield a zero-length string.
12+
* The price parse function has been refactored.
13+
* Function signature was expanded.
14+
* New arguments were appended. The same values used to format a value should be used when parsing.
15+
* fractionSeparator
16+
* specialFractions
17+
* thousandsSeparator
18+
* Function behavior has changed.
19+
* Passing a value which cannot will yield Number.NaN.
20+
* Passing an invalid unit code will yield Number.NaN.
21+
* A formal enumeration, called UnitCode, was added.
22+
23+
324
## 4.0.25
425
* Added parsing logic for equity options.
526

docs/content/sdk/lib-utilities-parse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
| unitCode | <code>String</code> | |
1818
| [fractionSeparator] | <code>String</code> | Can be zero or one character in length. If invalid or omitted, the separator will be inferred based on the value being parsed. |
1919
| [specialFractions] | <code>Boolean</code> | If fractional notation is used, indicates is "special" factor (i.e. denominator) was used to calculate the numerator of the value being parsed. |
20-
| [thousandsSeparator] | <code>String</code> | = Can be zero or one character in length. If invalid or omitted, the parameter will be ignored. |
20+
| [thousandsSeparator] | <code>String</code> | Can be zero or one character in length. If invalid or omitted, the parameter will be ignored. |
2121

2222
>Converts a string-formatted price into a number. If the value cannot be parsed,
2323
the [Number.NaN](Number.NaN) value is returned.

0 commit comments

Comments
 (0)