Releases: rdmurphy/journalize
Releases · rdmurphy/journalize
2.6.0: Tabular dates and ordinal suffixes
Added
- Adds two new date methods —
apmonthtabandapdatetab. These two are identical toapmonthandapdateexcept months are output in AP's tabular format instead. Instead ofSept.you getSep, etc. - The logic for determining the correct suffix in
ordinalhas been extracted and made into its own method calledordinalsuffix. This makes it possible to access the correct suffix for a number without modifying the original value. Great for if you'd like to style the number and suffix differently, or just want to output them separately. Credit to @sawyerclick for the suggestion in #283!
2.5.1: ES modules, man
Fixed
- Due to how Node module resolution works with ECMAScript modules, the
moduleandexports.importfiles must have.mjsextensions.
2.5.0: Export mappin'
Added
- Add export map to
package.json.
2.4.0: It's okay to be negative
Added
intwordnow supports negative integers.intcommanow has tests confirming it does support negative numbers, but no changes were made to the code.
Changed
- Bumped LICENSE to 2020.
2.3.0: Now we're ordinal'ing with words
Added
ordinalnow accepts a second boolean parameter (that defaults tofalse) that outputs 1 through 9 as spelled out (first, third, seventh, etc.) instead of as numeral ordinals, per AP style rules.
2.2.1: Oops, forgot to actually include types
Fixed
- Added missing
typesdirectory to thepackage.jsonfileslist.
2.2.0: Now we're type-ing
Added
- Added TypeScript type file.
Fixed
- Explicitly convert supplied values to strings with
toString()in functions that short circuit to guarantee it returns the correct type.
Changed
- Updated LICENSE year to 2019
- Updated dependencies
- General housekeeping of the repo
- Add Node 11 to test matrix
- Moved tests to
__tests__directory so we stop shipping them in the npm bundle
2.1.1: JavaScript arrays are weird and should feel bad
Fixed
- Fixed bug with
pluralizewhere an Array with a single number in it that's not1is considered plural due toparseFloatandNumberbeing weird when passed an Array.
2.1.0: Sometimes lines are too long, and you need to prevent a hanging word
Added
- Added
unpkgandjsdelivrfields to package.json - Added
widontfunction
Removed
- Removed
umd:mainfield from package.json
2.0.1: Noon Is Important, Too
Fixed
- Fixed bug in
aptimewhere it would return0for times at 12 p.m. when there were also minutes (thanks @jmuyskens)