All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Add an IGuardOptions parameter to Guard.guard() method, including propertyName and customMessage parameters (BREAKING CHANGE).
- Rewrite Tyr.string().isUuid() method, in order to check multiple UUID versions (BREAKING CHANGE).
- Fix Tyr.string().isMacAddress() error messages.
- Rename IGuardOptions overriding parameter to overrideRule (BREAKING CHANGE).
- Add an optional parameter to Tyr.string().contains() method, accepted values are 'start' or 'end'.
- Add Tyr.string().isBoolean() method.
- Fix Tyr.string().isLatLong() error messages.
- Fix Tyr.string().isLatitude() error messages.
- Fix Tyr.string().isLongitude() error messages.
- Add Tyr.number().isBetween() method, with the same behavior as the old Tyr.number().isIn() method.
- Add Tyr.number().isNotIn() method.
- Add Tyr.string().isNotIn() method.
- Add an optional parameter to Tyr.string().isIso639Part2Alpha3() method, accepted values are 'bibliographic' or 'terminologic'.
- Add an optional parameter to Tyr.string().isMacAddress() method, accepted values are 'IEEE' or 'IETF'.
- Add an optional parameter to Codex.iso639Part2Alpha3Codes() method, accepted values are 'bibliographic' or 'terminologic'.
- Rewrite Tyr.number().isIn() method, in order to check if a number is in an array of allowed number values (BREAKING CHANGE).
- Fix Tyr.number().isNetworkPort() error messages.
- Fix Tyr.string().isIn() method signature.
- Add optional parameter 'gajs-latin' to Tyr.string().isAlpha() method.
- Convert Codex Enums to readonly Arrays (BREAKING CHANGE).
- Add optional parameters 'dan', 'est', 'fin', 'gle', 'hun', 'nld' and 'pol' to Tyr.string().isAlpha() method.
- Add optional parameters 'isl, 'ita', 'nor', 'por', 'spa' and 'swe' to Tyr.string().isAlpha() method.
- Rewrite Tyr.string().isAlphaNumeric() method TSDoc.
- Rewrite Tyr.string().isCapitalized() method TSDoc.
- Fix Tyr.string().isAlpha() default parameter to 'basic-latin'.
- Add optional parameters 'deu' and 'fra' to Tyr.string().isAlpha() method.
- Fix Tyr.string().isAlpha('precomposed-latin') method, supported sets are Basic Latin, Latin-1_Supplement, Latin Extended A, Latin Extended B, Latin Extended Additional, one IPA Extension letter (ʒ), and one Latin trigram letter (C'h).
- Add an optional parameter to Tyr.string().isAlpha() method, accepted values are 'basic-latin' or 'precomposed-latin'.