- Modernize dependencies to correct installation warnings, and eliminate use of
var.
sms:urls are now accepted. Thanks to Ruben for this change.
- The
datemethod now correctly returnsnullif the date argument is unparseable and thedefparameter is explicitlynull. As was always documented, a default ofundefinedstill returns the current date.
- The
urlmethod now accepts a third argument,httpsFix. If it istrueand the URL passed in has no protocol, the URL will be prepended withhttps://rather thanhttp://.
tel:urls are now accepted.
booleanOrNullaccepts the string'null'as a synonym fornull. Note that'any'was already accepted.'null'can be an attractive choice when the user will not see it in the query string and conflict with other uses of'any'is a concern.
idRegExpoption may be passed to change the rules forlaunder.id.
- linting.
- for improved bc,
launder.selectdoes not crash if some of the choices given toselectare null or undefined. Although this is a developer error rather than a sanitization issue, versions prior to 1.1.0 did tolerate this situation, so 1.1.1 does so as well. Thanks to Anthony Tarlao for his code contributions, and to Michelin for making this fix possible via Apostrophe Enterprise Support.
launder.selectnow handles numeric values for choices gracefully. Specifically, if the value passed in is a string, it will be validated as a match for a choice that is a number, as long as they have the same string representation, and the number (not the string) will be returned. Previously there was no match in this situation.
Thanks to Michelin for making this possible via Apostrophe Enterprise Support.
launder.timewill now also accept a.(dot) as the separator (until now only:colon was recognized). Thanks to Lars Houmark.
- switched to a maintained, secure fork of lodash 3, declared 1.0.0 as this has been a stable part of Apostrophe for years.
launder.booleanOrNullbroken out fromlaunder.addBooleanFilterCriteriaso that you can get the tri-state value without modifying a criteria object.
launder.tagsalso accepts a comma-separated string.
- removed never-used and undocumented
parseTimemethod.
- initial release. Based on stable code recently refactored from Apostrophe 0.5.x.