Changes for version 0.054 - 2023-10-24
- [test] Skip node.js tests if Nodejs::Util or node.js is not available (fix RT#144472).
Modules
Coercion rules for Data::Sah
Coerce 0 to false and 1 to true
Coerce from common true/false words (e.g. "true","yes","on" for true, and "false","no","off" to false)
Coerce date from number (assumed to be epoch)
Coerce date from Date object
Coerce date from string using Date.parse()
Coerce date from number (assumed to be epoch)
Coerce date from Date object
Coerce date from string using Date.parse()
Coerce date from number (assumed to be epoch)
Coerce date from Date object
Coerce date from string using Date.parse()
Coerce duration from number (assumed to be number of seconds)
Coerce duration from (subset of) ISO8601 string (e.g. "P1Y2M", "P14M")
Coerce timeofday from string of the form hh:mm:ss
Convert common true/false words (e.g. "yes","true","on","1" to "1", and "no","false","off","0" to "")
Coerce date from number (assumed to be epoch)
Coerce date from number (assumed to be epoch)
Coerce date from number (all range assumed to be epoch) (Asia/Jakarta time zone)
Coerce date from number (all range assumed to be epoch) (local time zone)
Coerce date from number (assumed to be epoch) (Asia/Jakarta time zone)
Coerce date from number (assumed to be epoch) (local time zone)
Coerce date from DateTime object
Coerce date from Time::Moment object
Coerce date from (a subset of) ISO8601 string
Coerce date from number (assumed to be epoch)
Coerce date from number (assumed to be epoch)
Coerce date from DateTime object
Coerce date from Time::Moment object
Coerce datenotime from (a subset of) ISO8601 string
Coerce date from number (assumed to be epoch)
Coerce date from number (assumed to be epoch)
Coerce date from DateTime object
Coerce date from Time::Moment object
Coerce datetime from (a subset of) ISO8601 string
Coerce duration from float (assumed to be number of seconds)
Coerce duration from DateTime::Duration object
Coerce duration from string in the form of hh:mm:ss (or hh:mm)
Coerce duration from human notation string (e.g. "2 days 10 hours", "3h")
Coerce duration from (subset of) ISO8601 string (e.g. "P1Y2M", "P14M")
Coerce float from percent string (e.g. "100.5%")
Coerce int from percent string (e.g. "100%")
Coerce num from percent string (e.g. "100.5%")
Coerce timeofday from Date::TimeOfDay object
Coerce timeofday from string in the form of hh:mm:ss
Common stuffs for Data::Sah::Coerce and Data::Sah::CoerceJS
Generate coercer code