Skip to content

Commit ff54281

Browse files
feat: support date-fns v4 (#674)
* chore(deps): bump date-fns to v4 * Unlbock CI * Update lock file --------- Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>
1 parent 2133e0d commit ff54281

File tree

4 files changed

+2836
-2109
lines changed

4 files changed

+2836
-2109
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,12 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v2
10+
- uses: actions/checkout@v4
11+
- name: Set up Node.js
12+
uses: actions/setup-node@v4
1213
with:
13-
node-version: "18"
14-
- name: Get yarn cache directory path
15-
id: yarn-cache-dir-path
16-
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
17-
- uses: actions/cache@v2
18-
id: yarn-cache
19-
with:
20-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
21-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22-
restore-keys: |
23-
${{ runner.os }}-yarn-
14+
node-version: 23
15+
cache: "yarn"
2416

2517
- name: Install
2618
run: yarn install --frozen-lockfile

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Abstraction over common JavaScript date management libraries.
99
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
1010
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
1111

12-
The project exposes an abstraction interface over [luxon](https://moment.github.io/luxon/), [date-fns v3](https://github.com/date-fns/date-fns), [dayjs](https://github.com/iamkun/dayjs) and [moment](https://momentjs.com/).
12+
The project exposes an abstraction interface over [luxon](https://moment.github.io/luxon/), [date-fns v4](https://github.com/date-fns/date-fns), [dayjs](https://github.com/iamkun/dayjs) and [moment](https://momentjs.com/).
1313
It allows you to build any UI date or time components while utilizing the same date management library in use within your user's project.
1414

1515
It simplifies timezone management, allows your code to return the exact same type that your user expects and works with specific calendar systems (e.g. [Jalali calendar](https://en.wikipedia.org/wiki/Jalali_calendar))

packages/date-fns/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"license": "MIT",
3232
"peerDependencies": {
33-
"date-fns": "^3.2.0"
33+
"date-fns": "^3.2.0 || ^4.1.0"
3434
},
3535
"peerDependenciesMeta": {
3636
"date-fns": {
@@ -41,7 +41,7 @@
4141
"@date-io/core": "^3.2.0"
4242
},
4343
"devDependencies": {
44-
"date-fns": "^3.2.0",
44+
"date-fns": "^4.1.0",
4545
"rollup": "^2.0.2",
4646
"typescript": "^5.0.0"
4747
},

0 commit comments

Comments
 (0)