You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,17 @@
1
1
# Changelog
2
2
3
+
## v4.0.0
4
+
-[[Major]: Remove Moment and Node 10](https://github.com/offirgolan/ember-validators/pull/100);
5
+
- Remove Node 10 minimum requirement in favor of Node 12
6
+
- removed custom String 'now' argument.
7
+
- remove momentjs
8
+
- Remove `precision` argument. If you need to compare based on precision, you can use the Intl.DateTimeFormat [APIs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options) to hone in on the comparison - `{ year: 'numeric' }`
9
+
- Added `locale` option. Defaults to en-us when creating date times using `Intl.DateTimeFormat` API.
* @param {Boolean} options.allowBlank If true, skips validation if the value is empty
16
-
* @param {String} options.before The specified date must be before this date
17
-
* @param {String} options.onOrBefore The specified date must be on or before this date
18
-
* @param {String} options.after The specified date must be after this date
19
-
* @param {String} options.onOrAfter The specified date must be on or after this date
20
-
* @param {String} options.precision Limit the comparison check to a specific granularity.
21
-
* Possible Options: [`year`, `month`, `week`, `day`, `hour`, `minute`, `second`].
22
-
* @param {String} options.format Input value date format
23
-
* @param {String} options.errorFormat Error output date format. Defaults to `MMM Do, YYYY`
24
-
* @param {Object} model
25
-
* @param {String} attribute
14
+
* @param {String|Date} options.before The specified date must be before this date
15
+
* @param {String|Date} options.onOrBefore The specified date must be on or before this date
16
+
* @param {String|Date} options.after The specified date must be after this date
17
+
* @param {String|Date} options.onOrAfter The specified date must be on or after this date
18
+
* @param {String} options.format Input value date format - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat
0 commit comments