UNPKG

@financial-times/o-date

Version:

JavaScript utilities for formatting and updating dates in the FT style. Also useful for formatting dates relative to the current time.

97 lines (50 loc) 4.95 kB
# Changelog ## [7.0.0](https://github.com/Financial-Times/origami/compare/o-date-v6.1.0...o-date-v7.0.0) (2025-02-20) ### ⚠ BREAKING CHANGES This introduces a new design language and visually breaking changes. Including mobile optimised typography, icons, and buttons (see [MIGRATION.md](./MIGRATION.md)). #### Origami 3: Principles, Purpose, and Impact For anyone in P&T. We covered what’s new in Origami 3 (o3), why it matters, and what’s next. [Slides](https://docs.google.com/presentation/d/1Qs8RHpMrDxxP5LyrVlnsUHnS3AriRK5-IboUeneRyMs/edit#slide=id.g764506c38c_0_357) | [Recording](https://drive.google.com/file/d/1OMW9zdTOEUvWyW1trsFqL3XhpTejYelO/view) #### Origami 3: Bridging design & code For designers and engineers alike. How to work with design guidelines, design foundations, and techniques for designer–engineer collaboration. [Slides](https://docs.google.com/presentation/d/1pGBKFNv-g8RbY2g3SJ7v823XBI-MQqpjHrdgg9B6bzI/edit#slide=id.g764506c38c_0_357) | [Recording](https://drive.google.com/file/d/14hWVKM690arNEWROPHx9gmebnOUa6wlM/view) #### Origami 3: Engineers’ Deep Dive We got into the technical detail. Working with Origami CSS (no more Sass), custom elements, JSX templates, etc. [Slides](https://docs.google.com/presentation/d/1s1S959CwZYnd0Q89EhsDFLFUuy2HZ9UnpBVaDHDFX7A/edit#slide=id.g3347c4befb5_0_402) | [Recording](https://drive.google.com/file/d/1hDtSN8Ce_P0Vr_dv0KXuXhs5Q9aHfvAp/view) ## [6.1.0](https://github.com/Financial-Times/origami/compare/o-date-v6.0.1...o-date-v6.1.0) (2024-03-04) ### Features - ci-2129 o-date allow users to set text case ([#1469](https://github.com/Financial-Times/origami/issues/1469)) ([0f88827](https://github.com/Financial-Times/origami/commit/0f88827e82eea1f179c5ce2edc6970c97ba15a1e)) ## [6.0.1](https://github.com/Financial-Times/origami/compare/o-date-v6.0.0...o-date-v6.0.1) (2023-10-27) ### Bug Fixes - Update node and npm ([c371fc3](https://github.com/Financial-Times/origami/commit/c371fc3f7f2d66266dbca95862ecef3ddeb1f339)) ## [6.0.0](https://www.github.com/Financial-Times/origami/compare/o-date-v5.4.0...o-date-v6.0.0) (2023-03-16) ### ⚠ BREAKING CHANGES - introduce FT editorial time formatting ### Features - introduce FT editorial time formatting ([491d132](https://www.github.com/Financial-Times/origami/commit/491d1326f82395532fcb2ff30fed34196b648565)) ## [5.4.0](https://www.github.com/Financial-Times/origami/compare/o-date-v5.3.0...o-date-v5.4.0) (2022-10-12) ### Features - o-date, publish tsx ([720c57b](https://www.github.com/Financial-Times/origami/commit/720c57b33c9c66baf1ba585f4747ca50ffb4ab52)) ## [5.3.0](https://www.github.com/Financial-Times/origami/compare/o-date-v5.2.2...o-date-v5.3.0) (2022-05-30) ### Features - add stories for o-date demos ([7a8d77a](https://www.github.com/Financial-Times/origami/commit/7a8d77a15ade1356ec9bdf5ec72710693294ad31)) - create date printer JSX component ([bced601](https://www.github.com/Financial-Times/origami/commit/bced601f3184ddc1100c9b1369687be22cf1e51b)) ### Bug Fixes - don't inline descriptions for o-date stories ([e8816b3](https://www.github.com/Financial-Times/origami/commit/e8816b331952f0db705270cd86123a8bbd8ec2d0)) ### [5.2.2](https://www.github.com/Financial-Times/origami/compare/o-date-v5.2.1...o-date-v5.2.2) (2022-04-21) ### Bug Fixes - Adds basic existence checking to most module entry points ([#714](https://www.github.com/Financial-Times/origami/issues/714)) ([7ba3a61](https://www.github.com/Financial-Times/origami/commit/7ba3a61d0de2a32d3a27a225fd4258b3820c7bda)) ### [5.2.1](https://www.github.com/Financial-Times/origami/compare/o-date-v5.2.0...o-date-v5.2.1) (2022-01-13) ### Bug Fixes - expand all uses of docs to documentation ([26f8d9d](https://www.github.com/Financial-Times/origami/commit/26f8d9d8cbbe3e78902d8c3951b37e08150a77bd)) ## [5.2.0](https://www.github.com/Financial-Times/origami/compare/o-date-v5.1.0...o-date-v5.2.0) (2021-11-24) ### Features - allow npm 8 in engines config ([eeb1cae](https://www.github.com/Financial-Times/origami/commit/eeb1cae6e7f0379e647f2b41240b1f294997d528)) ## [5.1.0](https://www.github.com/Financial-Times/origami/compare/o-date-v5.0.2...o-date-v5.1.0) (2021-10-29) ### Features - o-date, deprecate abbreviated time options. ([43cbe14](https://www.github.com/Financial-Times/origami/commit/43cbe14b164d48dc7f0b9e43fdade80b4d472549)) ### [5.0.2](https://www.github.com/Financial-Times/origami/compare/o-date-v5.0.1...o-date-v5.0.2) (2021-09-21) ### Bug Fixes - Add homepage, bugs and support email to the package.json ([6c0de60](https://www.github.com/Financial-Times/origami/commit/6c0de60ebd6e64c4dd16d000fcc6b79412ce30f4)) - update bugs urls ([3ea0ca0](https://www.github.com/Financial-Times/origami/commit/3ea0ca03bcb6e55142a77387ad0fff5ddf056d44)) - update origami json urls ([c757653](https://www.github.com/Financial-Times/origami/commit/c7576532b5a14f0462d5346dfb63238be025602e))