Skip to content

Commit 99b4e67

Browse files
committed
Prepare v4.0
1 parent 8df1706 commit 99b4e67

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ This change log follows the format documented in [Keep a CHANGELOG].
88
[semantic versioning]: http://semver.org/
99
[keep a changelog]: http://keepachangelog.com/
1010

11-
## v4.0.0 - 2024-09-??
11+
## v4.0.0 - 2024-09-16
1212

1313
I have great news! First, ten years after its release, date-fns finally gets first-class time zone support.
1414

1515
Another great news is that there aren't many breaking changes in this release. All of them are type-related and will affect only those explicitly using internal date-fns types. Finally, it has been less than a year since the last major release, which is an improvement over the previous four years between v2 and v3. I plan on keeping the pace and minimizing breaking changes moving forward.
1616

17-
[Read more about the release in the announcement blog post](#TODO).
17+
[Read more about the release in the announcement blog post](https://blog.date-fns.org/v40-with-time-zone-support/).
1818

1919
\- [Sasha @kossnocorp](https://twitter.com/kossnocorp)
2020

2121
### Added
2222

23-
- Added time zones support via [@date-fns/tz](https://github.com/date-fns/tz)'s `TZDate` class and `tz` helper function. See its [README](https://github.com/date-fns/tz) for the details about the API.
23+
- Added time zones support via [`@date-fns/tz`](https://github.com/date-fns/tz)'s `TZDate` class and `tz` helper function. See its [README](https://github.com/date-fns/tz) for the details about the API.
2424

2525
- All relevant functions now accept the context `in` option, which allows to specify the time zone to make the calculations in. If the function also returns a date, it will be in the specified time zone:
2626

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
🎉**NEW**: [date-fns v3 is out!](https://blog.date-fns.org/v3-is-out/)
1+
🔥**NEW**: [date-fns v4.0 with first-class time zone support is out!](https://blog.date-fns.org/v40-with-time-zone-support/)
22

33
<img alt="date-fns" title="date-fns" src="https://raw.githubusercontent.com/date-fns/date-fns/master/docs/logotype.svg" width="150" />
44

@@ -52,7 +52,6 @@ npm install date-fns --save
5252
and other docs.
5353

5454
<br />
55-
<!-- END OF README-JOB SECTION -->
5655

5756
## License
5857

docs/timeZones.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Starting from v4, date-fns has first-class support for time zones. It is provide
44

55
Just like with everything else in date-fns, the time zones support has a minimal bundle size footprint with `UTCDateMini` and `TZDateMini` being `239 B` and `761 B`, respectively.
66

7-
If you're looking for time zone support prior to date-fns v4, see the third-party [date-fns-tz](https://github.com/marnusw/date-fns-tz) package.
7+
If you're looking for time zone support prior to date-fns v4, see the third-party [`date-fns-tz`](https://github.com/marnusw/date-fns-tz) package.
88

9-
See the announcement blog post for details about the motivation and implementation.
9+
[See the announcement blog post](https://blog.date-fns.org/v40-with-time-zone-support/) for details about the motivation and implementation and [the change log entry for the list of changes in v4.0](https://date-fns.org/v4.0.0/docs/Change-Log#v4.0.0-2024-09-16).
1010

1111
## Working with time zones
1212

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "date-fns",
3-
"version": "4.0.0-beta.1",
3+
"version": "4.0.0",
44
"contributors": [
55
"Sasha Koss <koss@nocorp.me>",
66
"Lesha Koss <regiusprod@gmail.com>"

0 commit comments

Comments
 (0)