From 4c0852f3fd676cbc3b07834ab1b1b97926de83db Mon Sep 17 00:00:00 2001 From: Andres Morey Date: Sat, 26 Jul 2025 23:07:57 +0300 Subject: [PATCH] new: exported formatter, unit and suffix types Signed-off-by: Andres Morey --- CHANGELOG.md | 3 +++ package.json | 2 +- src/index.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2861d5..57d4cd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +#### v8.3.0 +- Exported Formatter, Unit, and Suffix types which were present in v7 + #### v8.1.0 - Fixed bug where `nextFormatter` no longer worked without passing arguments - Calling `nextFormatter()` without arguments should work once again. diff --git a/package.json b/package.json index e449ea2..72d0b44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-timeago", - "version": "8.2.0", + "version": "8.3.0", "description": "A simple Time-Ago component for ReactJs", "main": "lib/index.js", "types": "es6/index.d.ts", diff --git a/src/index.js b/src/index.js index 054e939..a83e53d 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ import * as React from 'react' import { useEffect, useState } from 'react' import dateParser from './dateParser' import defaultFormatter from './defaultFormatter' -import type { Formatter, Suffix, Unit } from './types' +export type { Formatter, Suffix, Unit } from './types' export type Props = $ReadOnly<{ /** If the component should update itself over time */