Skip to content

Commit c1486fb

Browse files
committed
fix(material-luxon-adapter): remove deprecated factory functions
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone. BREAKING CHANGE: * `MAT_LUXON_DATE_ADAPTER_OPTIONS_FACTORY` has been removed.
1 parent bc10a87 commit c1486fb

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

src/material-luxon-adapter/adapter/luxon-date-adapter.ts

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,13 @@ export const MAT_LUXON_DATE_ADAPTER_OPTIONS = new InjectionToken<MatLuxonDateAda
4141
'MAT_LUXON_DATE_ADAPTER_OPTIONS',
4242
{
4343
providedIn: 'root',
44-
factory: MAT_LUXON_DATE_ADAPTER_OPTIONS_FACTORY,
44+
factory: () => ({
45+
useUtc: false,
46+
defaultOutputCalendar: 'gregory',
47+
}),
4548
},
4649
);
4750

48-
/**
49-
* @docs-private
50-
* @deprecated No longer used, will be removed.
51-
* @breaking-change 21.0.0
52-
*/
53-
export function MAT_LUXON_DATE_ADAPTER_OPTIONS_FACTORY(): MatLuxonDateAdapterOptions {
54-
return {
55-
useUtc: false,
56-
defaultOutputCalendar: 'gregory',
57-
};
58-
}
59-
6051
/** Creates an array and fills it with values. */
6152
function range<T>(length: number, valueFunction: (index: number) => T): T[] {
6253
const valuesArray = Array(length);

0 commit comments

Comments
 (0)