Open renovate[bot] opened 4 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
π Inspect: https://vercel.com/xcv58/grocery-delivery/77vhshiy7
β
Preview: https://grocery-delivery-git-renovate-javascript-time-ago-2x.xcv58.vercel.app
This PR contains the following updates:
2.0.7
->2.3.4
Release Notes
catamphetamine/javascript-time-ago
### [`v2.3.4`](https://togithub.com/catamphetamine/javascript-time-ago/compare/284da4a50690ec5eb1fa4deaa8c64ece2cd1cff8...2cc83065c75b8bb41c1fab7e1b33215389de184e) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/284da4a50690ec5eb1fa4deaa8c64ece2cd1cff8...2cc83065c75b8bb41c1fab7e1b33215389de184e) ### [`v2.3.3`](https://togithub.com/catamphetamine/javascript-time-ago/blob/master/CHANGELOG.md#233--11112020) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/337bece0d45c9361e0b5f78df5cf1a58b625d734...284da4a50690ec5eb1fa4deaa8c64ece2cd1cff8) ================== - Changed the default `style` from `"approximate"` (legacy) to `"round-minute"`. This isn't a "breaking change" because no application would be "broken" by something like that, and relative time would still be shown in a similar way, only without too much approximation. ### [`v2.3.2`](https://togithub.com/catamphetamine/javascript-time-ago/compare/cbf0c5f94c32cd2ca0b659bdcc40ee6c97b5b7ea...337bece0d45c9361e0b5f78df5cf1a58b625d734) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/cbf0c5f94c32cd2ca0b659bdcc40ee6c97b5b7ea...337bece0d45c9361e0b5f78df5cf1a58b625d734) ### [`v2.3.1`](https://togithub.com/catamphetamine/javascript-time-ago/blob/master/CHANGELOG.md#231--20102020) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/e97901e62f5daad81ba40c78db3a99e50dcee313...cbf0c5f94c32cd2ca0b659bdcc40ee6c97b5b7ea) ================== - (advanced) Renamed `getMinTimeToFrom()` to `getMinTimeForUnit()`. ### [`v2.3.0`](https://togithub.com/catamphetamine/javascript-time-ago/blob/master/CHANGELOG.md#230--14102020) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/53352a7c687c109928df6f3b069be60eed60bb19...e97901e62f5daad81ba40c78db3a99e50dcee313) ================== - `test(timestamp)` function of a step is now deprecated. Use `minTime(timestamp)` function instead. - Fixed `getTimeToNextUpdate()`. - Renamed `"mini-time"` labels to `"mini"`. - Added styles: `"mini"`, `"mini-now"`, `"mini-minute"`, `"mini-minute-now"`. - Added a new `round` property (described in the readme): it can be `"round"` or `"floor"`. The default is `"round"`. - (Could be a breaking change for those who read `"tiny"` from JSON files directly) Removed "tiny" labels from JSON files. `"tiny"` labels type name still works. ### [`v2.2.9`](https://togithub.com/catamphetamine/javascript-time-ago/blob/master/CHANGELOG.md#229--14102020) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/acbf9e8a4793ff32ac12092f21e1251b569c1f9e...53352a7c687c109928df6f3b069be60eed60bb19) ================== - Fixed `"twitter-..."` styles. ### [`v2.2.8`](https://togithub.com/catamphetamine/javascript-time-ago/blob/master/CHANGELOG.md#228--12102020) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/648ffe19e4b54d6df9d881b853a038259ff13fd7...acbf9e8a4793ff32ac12092f21e1251b569c1f9e) ================== - Added `"twitter-minute-now"` style. - The threshold for `"now"` -> `"1m"`/`"1 minute ago"` is now 30 seconds rather than 40 seconds. ### [`v2.2.7`](https://togithub.com/catamphetamine/javascript-time-ago/compare/23a214ccd9a06029c5c0fca516746e24513e7888...648ffe19e4b54d6df9d881b853a038259ff13fd7) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/23a214ccd9a06029c5c0fca516746e24513e7888...648ffe19e4b54d6df9d881b853a038259ff13fd7) ### [`v2.2.6`](https://togithub.com/catamphetamine/javascript-time-ago/blob/master/CHANGELOG.md#226--12102020) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/88f2e9e7273b73a72cfff518c557d4921e9fbf5a...23a214ccd9a06029c5c0fca516746e24513e7888) ================== - Changed `"twitter"` style: doesn't output `"now"` for 0 seconds. - Added `"twitter-now"` style that outputs `"now"` for 0 seconds. ### [`v2.2.5`](https://togithub.com/catamphetamine/javascript-time-ago/blob/master/CHANGELOG.md#225--11102020) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/7bb99f8b36c1b10902075b2b4fc0542391e35d75...88f2e9e7273b73a72cfff518c557d4921e9fbf5a) ================== - Added `addDefaultLocale()` static function (similar to `addLocale()` but also calls `setDefaultLocale()`). - `"twitter"` style used to output `"now"` for 0 seconds. Then it was changed to `"0s"`. Now it has been [changed](https://togithub.com/catamphetamine/javascript-time-ago/issues/38) to `"now"` again. - Added "CDN" section in the readme that documents using the library with `` tags (without a bundler). ### [`v2.2.3`](https://togithub.com/catamphetamine/javascript-time-ago/compare/adcf7a4fde9ab4fcdb2b43f6ab0782589ab76793...7bb99f8b36c1b10902075b2b4fc0542391e35d75) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/adcf7a4fde9ab4fcdb2b43f6ab0782589ab76793...7bb99f8b36c1b10902075b2b4fc0542391e35d75) ### [`v2.2.2`](https://togithub.com/catamphetamine/javascript-time-ago/compare/d3e05a5e8867bf10467340ec7b6c0c144c091b13...adcf7a4fde9ab4fcdb2b43f6ab0782589ab76793) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/d3e05a5e8867bf10467340ec7b6c0c144c091b13...adcf7a4fde9ab4fcdb2b43f6ab0782589ab76793) ### [`v2.2.1`](https://togithub.com/catamphetamine/javascript-time-ago/compare/53d66d6127766c4d95ecffbf4cbbd760889cb92c...d3e05a5e8867bf10467340ec7b6c0c144c091b13) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/53d66d6127766c4d95ecffbf4cbbd760889cb92c...d3e05a5e8867bf10467340ec7b6c0c144c091b13) ### [`v2.2.0`](https://togithub.com/catamphetamine/javascript-time-ago/blob/master/CHANGELOG.md#220--09102020) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/27a33bb5643ebea01a7a7a06c2d9d90d48f8b020...53d66d6127766c4d95ecffbf4cbbd760889cb92c) ================== - Renamed steps' `unit` to `formatAs`. The older name still works. Maybe it will be renamed to something else in some future. - Renamed steps' `threshold` to `minTime`. The older name still works but is considered deprecated. - Renamed steps' `threshold_for_idOrUnit: value` to `minTime: { id: value }`. The older way still works but is considered deprecated. Maybe `minTime: {}` object will be deprecated too in some future. - Added `test(date, { now, future })` function to steps: it can be an alternative to `minTime`. See "twitter" style for an example. - Added a third argument to steps' `format()` function: an object having shape `{ formatAs(unit, value): string, future: boolean }`. - Added `TimeAgo.addLabels(locale, name, labels)` function, that can be used to expand localized time labels. - Added `"twitter-first-minute"` style: same as `"twitter"` but doesn't output anything before the first minute. This is how `"twitter"` style worked initially. - Added `getTimeToNextUpdate` feature (see README). - Updated `relative-time-format` to the latest version: `0.1.x` -> `1.0.0`. - Locale files are now `*.json` files. There's no `quantify` function there now: now it's just labels. `{locale}/index.js` files are still there just for legacy compatibility. - Added the ability to use native [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat) and [`Intl.PluralRules`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules) instead of the polyfills: in this case, pass `polyfill: false` option when creating a `TimeAgo` instance. - The bundle is now generated by Rollup rather than Webpack. ### [`v2.1.5`](https://togithub.com/catamphetamine/javascript-time-ago/blob/master/CHANGELOG.md#215--07102020) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/21586537543504b09f5e1e4f5b7b652260347a6b...27a33bb5643ebea01a7a7a06c2d9d90d48f8b020) ================== - Custom styles: renamed `gradation` to `steps` and `flavour` to `labels`. The older names still work but are considered deprecated. - `factor` property of a "step" is now not required: if not present, it's assumed equal to the `unit` in seconds (for example, the default `factor` is `60 * 60` for `unit: "hour"`). ### [`v2.1.4`](https://togithub.com/catamphetamine/javascript-time-ago/blob/master/CHANGELOG.md#214--06102020) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/cd656824a6a838f66ea96f390ef3bf3a09c40c78...21586537543504b09f5e1e4f5b7b652260347a6b) ================== - Renamed `"default"` style to `"round"`. The older name still works but is considered deprecated. - Added `"round-minute"` style: same as `"round"` but without seconds. - Renamed `"time"` style to `"approximate-time"`. The older name still works but is considered deprecated. - Renamed `"canonical"` gradation to `"round"`. The older name still works but is considered deprecated. - Renamed `"tiny"` time labels style to `"mini-time"`. `"tiny"` time labels style still works but is considered deprecated. - (internals) Renamed `tiny.json` locale files to `mini-time.json`. Removed `now` unit from `mini-time.json`. - (internals) `"approximate"` (previously `"convenient"`) style now uses `long` labels instead of `long-convenient.json`. - (internals) Removed `now` unit from `mini-time.json` files. - (internals) Removed `long-convenient.json` and `short-convenient.json` files: `long.json` and `short.json` in combination with `now.json` are used instead. ### [`v2.1.3`](https://togithub.com/catamphetamine/javascript-time-ago/compare/291d7110866c04f410818151bdec9aaacb04eb53...cd656824a6a838f66ea96f390ef3bf3a09c40c78) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/291d7110866c04f410818151bdec9aaacb04eb53...cd656824a6a838f66ea96f390ef3bf3a09c40c78) ### [`v2.1.2`](https://togithub.com/catamphetamine/javascript-time-ago/compare/150d08551312915bf08766f7fa9c15dd90925594...291d7110866c04f410818151bdec9aaacb04eb53) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/150d08551312915bf08766f7fa9c15dd90925594...291d7110866c04f410818151bdec9aaacb04eb53) ### [`v2.1.1`](https://togithub.com/catamphetamine/javascript-time-ago/compare/f5e59d45636ed7b69750e486304d49f0a73e3c56...150d08551312915bf08766f7fa9c15dd90925594) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/f5e59d45636ed7b69750e486304d49f0a73e3c56...150d08551312915bf08766f7fa9c15dd90925594) ### [`v2.1.0`](https://togithub.com/catamphetamine/javascript-time-ago/blob/master/CHANGELOG.md#210--05102020) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/5c940f68f09377bc98f3007d5f1876535ca784d5...f5e59d45636ed7b69750e486304d49f0a73e3c56) ================== - (could be considered a breaking change, but it doesn't actually break any apps) `"twitter"` style now outputs something like `"1s"` in case of `"1 second ago"`. Previously it didn't output anything when the time difference was less than a minute. The rationale for the change is that Twitter actually does output seconds when the time difference is less than a minute. There's still a small difference from Twitter: Twitter outputs `"now"` in case of `"0 seconds ago"` while this library outputs `"0s"` β the rationale is that "now" could be too long is different languages, and also it would look too contrasty compared to its "sibling" `"Xs"` time labels. - Added `"default"` style (`long` time labels + `canonical` gradation). Update: it's now called `"round"` instead of `"default"`. - Added `future` option on `.format(value, style, options)` function: it determines, whether to use the `"future"` variant of `"now"` when formatting `0` time difference. By default, it uses the `"past"` variant of `"now"` when formatting `0` time difference: `"just now"` instead of `"in a moment"`. - (miscellaneous) Added dedicated `"now.json"` labels for `"now"` time unit. ### [`v2.0.13`](https://togithub.com/catamphetamine/javascript-time-ago/compare/e3e98a9c01958b547e0b5fa926e849c26840a601...5c940f68f09377bc98f3007d5f1876535ca784d5) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/e3e98a9c01958b547e0b5fa926e849c26840a601...5c940f68f09377bc98f3007d5f1876535ca784d5) ### [`v2.0.12`](https://togithub.com/catamphetamine/javascript-time-ago/compare/911857d8d65a7349fdccca154422f4245b9a8927...e3e98a9c01958b547e0b5fa926e849c26840a601) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/911857d8d65a7349fdccca154422f4245b9a8927...e3e98a9c01958b547e0b5fa926e849c26840a601) ### [`v2.0.11`](https://togithub.com/catamphetamine/javascript-time-ago/compare/839543a97dc94fd719eb668ae8edec1bb9f5d284...911857d8d65a7349fdccca154422f4245b9a8927) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/839543a97dc94fd719eb668ae8edec1bb9f5d284...911857d8d65a7349fdccca154422f4245b9a8927) ### [`v2.0.10`](https://togithub.com/catamphetamine/javascript-time-ago/blob/master/CHANGELOG.md#2010--16072020) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/9a3b8e9dc229e3dc7eed8125e061315356a40976...839543a97dc94fd719eb668ae8edec1bb9f5d284) ================== - Added `"tiny"` time labels for `"de"` locale. ### [`v2.0.9`](https://togithub.com/catamphetamine/javascript-time-ago/compare/351bcba80d16c648aeb2508a108c595cd166ee02...9a3b8e9dc229e3dc7eed8125e061315356a40976) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/351bcba80d16c648aeb2508a108c595cd166ee02...9a3b8e9dc229e3dc7eed8125e061315356a40976) ### [`v2.0.8`](https://togithub.com/catamphetamine/javascript-time-ago/compare/9cd3d47bbae7db26a52bf3d476b9f94543c0d3de...351bcba80d16c648aeb2508a108c595cd166ee02) [Compare Source](https://togithub.com/catamphetamine/javascript-time-ago/compare/9cd3d47bbae7db26a52bf3d476b9f94543c0d3de...351bcba80d16c648aeb2508a108c595cd166ee02)Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.