@date-io/core
Advanced tools
Comparing version 2.16.0 to 2.17.0
@@ -19,3 +19,6 @@ const nodeResolve = require("rollup-plugin-node-resolve"); | ||
}, | ||
plugins: [nodeResolve({ extensions }), typescriptPlugin({ typescript })], | ||
plugins: [ | ||
nodeResolve({ extensions }), | ||
typescriptPlugin({ typescript, target: "ES6" }), | ||
], | ||
}, | ||
@@ -30,5 +33,8 @@ { | ||
}, | ||
plugins: [nodeResolve({ extensions }), typescriptPlugin({ typescript })], | ||
plugins: [ | ||
nodeResolve({ extensions }), | ||
typescriptPlugin({ typescript, target: "ES6" }), | ||
], | ||
}, | ||
]; | ||
}; |
@@ -89,3 +89,6 @@ export interface DateIOFormats<TLibFormatToken = string> { | ||
is12HourCycleInCurrentLocale(): boolean; | ||
/** Returns user readable format (taking into account localized format tokens), useful to render helper text for input (e.g. placeholder). For luxon always returns empty string. */ | ||
/** | ||
* Returns user readable format (taking into account localized format tokens), useful to render helper text for input (e.g. placeholder). | ||
* If helper can not be created and **for luxon** always returns empty string. | ||
* */ | ||
getFormatHelperText(format: string): string; | ||
@@ -105,7 +108,9 @@ | ||
isAfterDay(value: TDate, comparing: TDate): boolean; | ||
isAfterMonth(value: TDate, comparing: TDate): boolean; | ||
isAfterYear(value: TDate, comparing: TDate): boolean; | ||
isBefore(value: TDate, comparing: TDate): boolean; | ||
isBeforeDay(value: TDate, comparing: TDate): boolean; | ||
isBeforeMonth(value: TDate, comparing: TDate): boolean; | ||
isBeforeYear(value: TDate, comparing: TDate): boolean; | ||
isBefore(value: TDate, comparing: TDate): boolean; | ||
@@ -112,0 +117,0 @@ isWithinRange(value: TDate, range: [TDate, TDate]): boolean; |
{ | ||
"name": "@date-io/core", | ||
"version": "2.16.0", | ||
"version": "2.17.0", | ||
"description": "Abstraction over common javascript date management libraries", | ||
@@ -32,5 +32,5 @@ "scripts": { | ||
"rollup": "^2.0.2", | ||
"typescript": "^3.7.2" | ||
"typescript": "^5.0.0" | ||
}, | ||
"gitHead": "e9eddac85299013881e8bf005f5030fdf46d4756" | ||
"gitHead": "e497a04c456f04211c8b0877d002c85e72ea98a2" | ||
} |
9500
180