Skip to content

Conversation

@b-a-b-i-s
Copy link
Contributor

@b-a-b-i-s b-a-b-i-s commented May 31, 2025

Add dayjs dependency in external rollup configuration option. As it is a peer dependency it shouldn't be included in the bundle.
Consuming applications have to add dayjs as a dependency. This also allows changing locale in consuming applications.

Issue Number

Fixes #964. This allows using a dayjs locale other than English in consuming applications so the dates in the Timeline header (months, days of week) use this locale.

Overview of PR

Add the dayjs in rollup's external configuration option.

Remove dayjs devDependency and use its version in the peerDependency.
The devDependency is thus not needed As of npm v7, peerDependencies are installed by default. npm v7 and higher is included in node>=15 and since node 20 is the lowest maintained version it will be safe to remove it.

b-a-b-i-s and others added 4 commits June 1, 2025 01:46
Add dayjs dependency in `external` rollup configuration option. As it is a peer dependency it shouldn't be included in the bundle.
Consuming applications have to add dayjs as a dependency. This also allows changing locale in consuming applications.
@Ilaiwi Ilaiwi merged commit 164ba2d into namespace-ee:master Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Beta 0.30 Bug: Dayjs locale cannot be changed

2 participants