UNPKG

2 kBMarkdownView Raw
11.1.0 / 19.05.2022
2==================
3
4* Moved to "ES Modules" export.
5
61.0.6 / 27.09.2021
7==================
8
9 * Added locale data `*.json` files:
10
11```js
12import en from "relative-time-format/locale/en.json"
13```
14
15 * Added TypeScript "typings".
16
171.0.0 / 22.06.2019
18==================
19
20 * Bumped version to `1.0.0`. It's just to display the fact that the library is production-ready. No API changes or anything.
21
220.2.0 / 23.02.2019
23==================
24
25 * `locale` messages are now single `${locale}.json` bundles instead of being `${locale}` folders having a bunch of files like `long.js`/`short.js`/`narrow.js`/`quantify.js`/`index.js`. This was [requested](https://github.com/catamphetamine/relative-time-format/issues/4) for being able to use this library in scenarios when no "bundlers" are involved (for example, in a web browser).
26
27 * `locale` messages no longer contain `quantify` function because they're in JSON format now. All `quantify` functions are now stored in `source/quantify.js` file and are part of the main code. Their size is about 5 kilobytes (minified) which is an equivalent of including `make-plural` library for generating quantifiers at runtime.
28
29 * Fixed the browser bundle: it's now built using Rollup instead of Webpack, and also fixed the export being `RelativeTimeFormat` instead of `{ default: RelativeTimeFormat }`.
30
31<!--
32 * `locale` property inside `locale/${locale}/index.js` files was renamed to `id`.
33-->
34
350.1.3 / 14.01.2019
36===================
37
38 * Fixed a bug when `.format()` threw an error in some cases.
39
400.1.1 / 13.01.2019
41===================
42
43 * Added "the day after tomorrow" / "the day before yesterday" messages (for example, for German language).
44
45 * Fixed "yesterday"/"tomorrow" being applied only to days (can now be applied, say, to seconds returning "now").
46
47 * Formatting numbers now uses `Intl.NumberFormat` when available.
48
490.1.0 / 12.01.2019
50===================
51
52 * Initial release.
\No newline at end of file