Skip to content

Commit

Permalink
Merge pull request #1106 from oasisprotocol/renovate/date-fns-3.x
Browse files Browse the repository at this point in the history
Update dependency date-fns to v3
  • Loading branch information
buberdds authored Jan 5, 2024
2 parents 47daf13 + 7b79c25 commit b831300
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 17 deletions.
1 change: 1 addition & 0 deletions .changelog/1106.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update dependency date-fns to v3
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"axios": "1.6.4",
"bignumber.js": "9.1.2",
"bip39": "^3.1.0",
"date-fns": "2.30.0",
"date-fns": "3.0.6",
"ethers": "^6.9.2",
"i18next": "23.7.11",
"react": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/app/hooks/useFormattedTimestamp.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import formatDistanceStrict from 'date-fns/formatDistanceStrict'
import { formatDistanceStrict } from 'date-fns/formatDistanceStrict'
import { useTranslation } from 'react-i18next'
import { useScreenSize } from './useScreensize'

Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/ParatimeDashboardPage/ActiveAccounts.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FC } from 'react'
import { TFunction } from 'i18next'
import { useTranslation } from 'react-i18next'
import startOfMonth from 'date-fns/startOfMonth'
import { startOfMonth } from 'date-fns/startOfMonth'
import { SnapshotCard } from '../../components/Snapshots/SnapshotCard'
import { SnapshotCardDurationLabel } from '../../components/Snapshots/SnapshotCardDurationLabel'
import { BarChart } from '../../components/charts/BarChart'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { FC, memo } from 'react'
import { SnapshotCard } from '../../components/Snapshots/SnapshotCard'
import { SnapshotCardDurationLabel } from '../../components/Snapshots/SnapshotCardDurationLabel'
import { PercentageGain } from '../../components/PercentageGain'
import startOfHour from 'date-fns/startOfHour'
import { startOfHour } from 'date-fns/startOfHour'
import { SearchScope } from '../../../types/searchScope'

const getLabels = (t: TFunction): Record<ChartDuration, string> => ({
Expand Down
8 changes: 4 additions & 4 deletions src/app/utils/chart-utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import startOfHour from 'date-fns/startOfHour'
import startOfDay from 'date-fns/startOfDay'
import isSameMonth from 'date-fns/isSameMonth'
import startOfMonth from 'date-fns/startOfMonth'
import { startOfHour } from 'date-fns/startOfHour'
import { startOfDay } from 'date-fns/startOfDay'
import { isSameMonth } from 'date-fns/isSameMonth'
import { startOfMonth } from 'date-fns/startOfMonth'
import { GetLayerStatsTxVolumeParams, type TxVolume, type ActiveAccounts } from '../../oasis-nexus/api'

const fiveMinutesWindowSize = 60 * 5
Expand Down
4 changes: 2 additions & 2 deletions src/app/utils/dateFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
secondsInWeek,
secondsInYear,
} from 'date-fns/constants'
import differenceInSeconds from 'date-fns/differenceInSeconds'
import intlFormatDistance from 'date-fns/intlFormatDistance'
import { differenceInSeconds } from 'date-fns/differenceInSeconds'
import { intlFormatDistance } from 'date-fns/intlFormatDistance'

const dateFormat = new Intl.DateTimeFormat()

Expand Down
12 changes: 5 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1956,7 +1956,7 @@
resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310"
integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==

"@babel/runtime@^7.1.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.8", "@babel/runtime@^7.18.3", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.22.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2":
"@babel/runtime@^7.1.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.8", "@babel/runtime@^7.18.3", "@babel/runtime@^7.20.7", "@babel/runtime@^7.22.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2":
version "7.22.11"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.11.tgz#7a9ba3bbe406ad6f9e8dd4da2ece453eb23a77a4"
integrity sha512-ee7jVNlWN09+KftVOu9n7S8gQzD/Z6hN/I8VBRXW4P1+Xe7kJGXMwu8vds4aGIMHZnNbdpSWCfZZtinytpcAvA==
Expand Down Expand Up @@ -7254,12 +7254,10 @@ data-urls@^3.0.2:
whatwg-mimetype "^3.0.0"
whatwg-url "^11.0.0"

[email protected]:
version "2.30.0"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz#f367e644839ff57894ec6ac480de40cae4b0f4d0"
integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==
dependencies:
"@babel/runtime" "^7.21.0"
[email protected]:
version "3.0.6"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.0.6.tgz#fe3aeb7592d359f075ffc41cb16139828810ca83"
integrity sha512-W+G99rycpKMMF2/YD064b2lE7jJGUe+EjOES7Q8BIGY8sbNdbgcs9XFTZwvzc9Jx1f3k7LB7gZaZa7f8Agzljg==

[email protected], debug@^2.6.9:
version "2.6.9"
Expand Down

0 comments on commit b831300

Please sign in to comment.