Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add registerDateLibrary to allow register every date library & allow ember-truth-helpers v4 #335

Merged
merged 4 commits into from
Nov 15, 2023

Conversation

mkszepp
Copy link
Collaborator

@mkszepp mkszepp commented Sep 3, 2023

fix #333

After this changes, there is necessary that the dateUtils will be registered in app.js.

Use case with meta package moment

// app.js
import { registerDateLibrary } from 'ember-power-calendar';
import DateUtils from 'ember-power-calendar-moment';

registerDateLibrary(DateUtils);

For luxon:

// app.js
import { registerDateLibrary } from 'ember-power-calendar';
import DateUtils from 'ember-power-calendar-luxon';

registerDateLibrary(DateUtils);

@mkszepp mkszepp mentioned this pull request Sep 4, 2023
9 tasks
@mkszepp mkszepp changed the title Add registerDateLibrary to allow register every date library Add registerDateLibrary to allow register every date library & allow ember-truth-helpers v4 Sep 4, 2023
@mkszepp mkszepp added dependencies Pull requests that update a dependency file breaking labels Nov 15, 2023
@mkszepp mkszepp merged commit 547c4fa into cibernox:master Nov 15, 2023
12 checks passed
@mkszepp mkszepp deleted the add-date-libary-register branch November 15, 2023 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Impossible to use any other date library
1 participant