Skip to content

Commit 446c066

Browse files
authored
Date-fns v4 support (#412)
* chore: Bump version * feat(date-fns): Add date-fns v4 support. Closes #410 BREAKING: Bump date-fns peer dependency version to v4 * chore: bump version to v12
1 parent 7fff968 commit 446c066

File tree

5 files changed

+33
-11
lines changed

5 files changed

+33
-11
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111

1212
- [Requirememnts](#requirememnts)
1313
- [Installation](#installation)
14-
- [date-fns v3 support](#installation)
14+
- [date-fns v4 support](#installation)
15+
- [date-fns v3 support](#v3-support)
1516
- [date-fns v2 support](#v2-support)
1617
- [date-fns v1 support](#v1-support)
18+
- [Issues / feature requests](#issues-and-feat-reqs)
1719
- [Basic Usage](#usage)
1820
- [Working with locales](#locales)
1921
- [Changing locale globally](#locale-globally)
@@ -38,7 +40,7 @@
3840

3941
The latest version of this library requires:
4042

41-
- [date-fns](https://date-fns.org/) `>= v3.0.0`.
43+
- [date-fns](https://date-fns.org/) `= v4.x.x`.
4244
- Angular `>= v17.0.0`.
4345

4446
<a name="installation" />
@@ -48,6 +50,14 @@ The latest version of this library requires:
4850
- `npm install --save date-fns`
4951
- `npm install --save ngx-date-fns`
5052

53+
<a name="v3-support" />
54+
55+
#### Installation for date-fns v3
56+
57+
- `npm install --save [email protected]`
58+
- `npm install --save [email protected]`
59+
- [[email protected] docs](https://github.com/joanllenas/ngx-date-fns/tree/v11.0.1)
60+
5161
<a name="v2-support" />
5262

5363
#### Installation for date-fns v2
@@ -66,6 +76,12 @@ The latest version of this library requires:
6676
- `npm install --save [email protected]`
6777
- [[email protected] docs](https://github.com/joanllenas/ngx-date-fns/tree/v4.0.3)
6878

79+
<a name="issues-and-feat-reqs" />
80+
81+
## Issues and Feature Requests
82+
83+
This library has been around for more than 8 years and is largely complete, so don’t expect frequent new releases. If you notice missing functionality or encounter a bug, though, don’t hesitate to visit https://github.com/joanllenas/ngx-date-fns/issues and open an issue!
84+
6985
<a name="usage" />
7086

7187
## Basic Usage

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-date-fns-workspace",
3-
"version": "11.0.0",
3+
"version": "12.0.0",
44
"description": "date-fns pipes for Angular",
55
"repository": {
66
"type": "git",
@@ -48,7 +48,7 @@
4848
"@angular/platform-browser": "^17.0.0",
4949
"@angular/platform-browser-dynamic": "^17.0.0",
5050
"@angular/router": "^17.0.0",
51-
"date-fns": "^3.0.6",
51+
"date-fns": "^4.1.0",
5252
"rxjs": "~7.8.0",
5353
"tslib": "^2.3.0",
5454
"zone.js": "~0.14.2"

projects/app/src/styles.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ ul {
1111
flex-direction: column;
1212
gap: 2px;
1313
}
14+
15+
a.active {
16+
font-weight: bold;
17+
text-decoration: none;
18+
}

projects/ngx-date-fns/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"peerDependencies": {
55
"@angular/common": ">=17",
66
"@angular/core": ">=17",
7-
"date-fns": ">=3"
7+
"date-fns": ">=4"
88
},
99
"dependencies": {
1010
"tslib": "^2.3.0"

0 commit comments

Comments
 (0)