-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
feat(material-date-fns-adapter): add date adapter for date-fns #23262
Conversation
403f448
to
691a88d
Compare
691a88d
to
06a5c85
Compare
@@ -10,20 +10,20 @@ import {inject, InjectionToken, LOCALE_ID} from '@angular/core'; | |||
import {Observable, Subject} from 'rxjs'; | |||
|
|||
/** InjectionToken for datepicker that can be used to override default locale code. */ | |||
export const MAT_DATE_LOCALE = new InjectionToken<string>('MAT_DATE_LOCALE', { | |||
export const MAT_DATE_LOCALE = new InjectionToken<{}>('MAT_DATE_LOCALE', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason to not just use unknown?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that might be a breaking change, I went with {}
since it's what we discussed on Monday.
Adds a new date adapter that supports the `date-fns` library.
06a5c85
to
75bba63
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, couple of minor comments
This comment has been minimized.
This comment has been minimized.
0fae60a
to
b75ab6e
Compare
Fix saucelabs unit tests and the integration test for partial compilation.
b75ab6e
to
a1c2bfc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on the tooling changes.
c863da6
to
9ced7bc
Compare
presubmit (internal). Tests ran last night with 117 failures. A few look like flakes, and many of them are timeouts. |
Could we re-run it without spending more time investigating it? This is an entirely new package so I doubt that anything in Google would be broken by it. There is a small change to a type in |
kk, I kicked off a re-run 🤞 |
Hi, curious about what advantages this adapter has.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Adds a new date adapter that supports the
date-fns
library.