-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Configurable date utility or native for date validators #69
Comments
Supporting date-fns would be nice to have too. I'm able to help on that front. |
@jherdman I'm not sure what library you need for this. For e-c-v, we have a basic date validator. We need to improve it with comparing Date as a String. That is probably good enough (w/o date-fns). But if you had another opinion regarding use of a standardized library, I'm all ears (and would love for us to fix in this library) adopted-ember-addons/ember-changeset-validations#204 (comment) |
@jherdman Do you have write and publish access to this repo? |
Sadly I do not. |
@offirgolan 👋 Do you think James or I could get contributor + publish rights? There are some changes needed here to support embroider - specifically dynamic resolution + compat with ember-changeset-validations. The only other option I might have is to copy and paste the files we need in e-c-v direction. But hopefully we can continue maintaining this package! |
@snewcomer In the meanwhile, how would one use
|
Apologies for being MIA, I've unfortunately been out of the ember scene for quite some time. @snewcomer I've added you as a collaborator and given you publish access on npm. |
@offirgolan Thank you and completely understandable! One last issue is we will need the "Required" CI check turned off in order for us to migrate from travis to github actions. I think this is in the "Settings" tab, which I don't have access to. I can't see the travis run for some reason. Travis still is free with Linux builds but it seems sane to migrate to Actions for better support. |
@snewcomer I've completely removed the travis.ci webhook, hopefully that should be enough to let you fully migrate to GH actions. |
Hi @offirgolan ! Sry to bother again. It looks like it is in Settings > Branch > Branch protection rules as well that is requiring Travis. |
ah! my bad, I thought just disconnecting the webhook would do that. Should be good to go now! |
As apps have more options available to them (luxon, date-fns) and moment-core recommends using luxon, we could make this configurable and fallback to browser native. We can also include some of the pitfalls of parsing strings with the Date constructor so ppl know if they might have any issues.
This would allow this validator to have broader use. I'd be happy to do the work.
ref adopted-ember-addons/ember-changeset-validations#208
The text was updated successfully, but these errors were encountered: