Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

#### v8.3.1
- Add back missing import for `Formatter` type

#### v8.3.0
- Exported Formatter, Unit, and Suffix types which were present in v7

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-timeago",
"version": "8.3.0",
"version": "8.3.1",
"description": "A simple Time-Ago component for ReactJs",
"main": "lib/index.js",
"types": "es6/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useEffect, useState } from 'react'
import dateParser from './dateParser'
import defaultFormatter from './defaultFormatter'
export type { Formatter, Suffix, Unit } from './types'
import type { Formatter } from './types'

export type Props = $ReadOnly<{
/** If the component should update itself over time */
Expand Down