Compare commits

..

4 Commits

Author SHA1 Message Date
5621f6e5ef chore(deps): update dependency tailwindcss to v4
Some checks failed
Check / Lint and Check (push) Failing after 40s
Check / Lint and Check (pull_request) Failing after 37s
2025-05-09 09:50:50 +00:00
d888565bfc chore(deps): update dependency turbo to v2.5.3
All checks were successful
Check / Lint and Check (push) Successful in 47s
2025-05-09 11:47:04 +02:00
cf7cafdf67 chore(deps): update dependency eslint to v9 2025-05-09 11:45:31 +02:00
a969fb90fc fix(deps): update dependency date-fns to v4 (#7)
All checks were successful
Check / Lint and Check (push) Successful in 41s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [date-fns](https://github.com/date-fns/date-fns) | dependencies | major | [`^3.6.0` -> `^4.0.0`](https://renovatebot.com/diffs/npm/date-fns/3.6.0/4.1.0) |

---

### Release Notes

<details>
<summary>date-fns/date-fns (date-fns)</summary>

### [`v4.1.0`](https://github.com/date-fns/date-fns/blob/HEAD/CHANGELOG.md#v410---2024-09-17)

[Compare Source](https://github.com/date-fns/date-fns/compare/v4.0.0...v4.1.0)

This release adds time zone support to format functions (that I somehow missed when working on the feature) and fixes a few bugs.

Make sure also upgrade `TZDate` to v1.0.2 as it [includes a bunch of critical bug fixes](https://github.com/date-fns/tz/blob/main/CHANGELOG.md#v102---2024-09-14).

##### Fixed

-   Fixed internal `constructFrom` throwing an exception on `null` arguments. While `null` isn't allowed, the functions should rather return `Invalid Date` or `NaN` in such cases. See [#&#8203;3885](https://github.com/date-fns/date-fns/issues/3885).

##### Added

-   Added missing time zone support to `format`, `formatISO`, `formatISO9075`, `formatRelative` and `formatRFC3339`. See [#&#8203;3886](https://github.com/date-fns/date-fns/issues/3886).

### [`v4.0.0`](https://github.com/date-fns/date-fns/blob/HEAD/CHANGELOG.md#v400---2024-09-16)

[Compare Source](https://github.com/date-fns/date-fns/compare/v3.6.0...v4.0.0)

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

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.

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

\- [Sasha @&#8203;kossnocorp](https://twitter.com/kossnocorp)

##### Added

-   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.

-   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:

    ```ts
    import { addDays, startOfDay } from "date-fns";
    import { tz } from "@&#8203;date-fns/tz";

    startOfDay(addDays(Date.now(), 5, { in: tz("Asia/Singapore") }));
    //=> "2024-09-16T00:00:00.000+08:00"
    ```

    In the example, `addDays` will get the current date and time in Singapore and add 5 days to it. `startOfDay` will inherit the date type and return the start of the day in Singapore.

##### Changed

-   The function arguments, as well as `Interval`'s `start` and `end`, now can be of different types, allowing you to mix `UTCDate`, `TZDate`, `Date`, and other extensions, as well as primitives (strings and numbers).

    The functions will normalize these values, make calculations, and return the result in the same type, preventing any bugs caused by the discrepancy. If passed, the type will be inferred from the context `in` option or the first encountered argument object type. The `Interval`'s `start` and `end` will be considered separately, starting from `start`.

    In the given example, the result will be in the `TZDate` as the first argument is a number, and the `start` takes precedence over the `end`.

    ```ts
    clamp(Date.now(), {
      start: new TZDate(start, "Asia/Singapore"),
      end: new UTCDate(),
    });
    //=> TZDate
    ```

-   **BREAKING**: This release contains a bunch of types changes that should not affect the library's expected usage. The changes are primarily internal and nuanced, so rather than listing them here, I recommend you running the type checker after the upgrade. If there are unfixable problems, please [open an issue](https://github.com/date-fns/date-fns/issues/new).

-   **BREAKING**: The package now is ESM-first. The CommonJS is still support and It should not affect most users, but it might break in certains environments. If you encounter any issues, please [report them](https://github.com/date-fns/date-fns/issues/new).

##### Fixed

-   Fixed CDN build compatibility with jQuery and other tools that expose `$` by properly wrapping the code in an IIFE.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4xLjIiLCJ1cGRhdGVkSW5WZXIiOiI0MC4xLjIiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIiLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://git.schulze.network/schulze/bam/pulls/7
Co-authored-by: Renovate Bot <renovatebot@schulze.network>
Co-committed-by: Renovate Bot <renovatebot@schulze.network>
2025-05-09 11:44:58 +02:00
2 changed files with 925 additions and 262 deletions

1181
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,7 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cssnano": "^7.0.1",
"date-fns": "^3.6.0",
"date-fns": "^4.0.0",
"lucide-react": "^0.509.0",
"next": "^15.2.1",
"next-plausible": "^3.12.0",
@ -36,12 +36,12 @@
"@types/node": "22.15.17",
"@types/react": "19.1.3",
"@types/react-dom": "19.1.3",
"eslint": "8.57.1",
"eslint": "9.26.0",
"eslint-config-next": "15.3.2",
"eslint-config-prettier": "^10.0.2",
"postcss": "8.5.3",
"tailwindcss": "4.1.5",
"turbo": "2.1.3",
"turbo": "2.5.3",
"typescript": "5.8.3"
},
"packageManager": "npm@11.3.0"