Updated bundled JavaScript dependencies in
inst/bundle.js: fast-uri 3.1.8 → 3.1.9 (#94)
and ajv 8.18.0 → 8.20.0 (#93).
Errors from oneOf schemas now show only the relevant
error: branches that do not match the value’s type are left out, and a
single remaining error is shown with its own path and value
(#88).
Errors from anyOf schemas are shortened the same way
as oneOf errors (#100).
Validators are cached by schema content and shared between objects, so validate() no longer rebuilds the validator on every call (#81, #78).
Errors from S7schema(.data =) and missing files now
reference the user’s call instead of internal functions (#77).
Errors from validate(), write_config(),
@<- and S7::set_props() now reference the
user’s call instead of internal functions (#90).
to_yaml() and write_config() write
POSIXct and POSIXlt values as ISO 8601 strings
in UTC (2025-08-06T08:00:00Z) instead of the number of
seconds since 1970-01-01, so they are validated as strings in
S7schema objects (#75).
yaml::read_yaml() reads them,
S7schema objects as write_config() writes them
and R reads them back, and list objects in
validate_list() as they are. Previously the YAML was parsed
again by a JavaScript parser, which could read values differently. This
changes some validation results:
y, n, yes,
no, on, and off in lowercase,
title case, or uppercase (e.g. Yes, YES) are
logical values. This also applies to map keys: y: is read
as the key "TRUE" and n: as
"FALSE". Quote them to keep them as strings.2025-08-06 and values such as
1e3, 0o17, and 0b101 are
strings.<<: *anchor) resolve as in R: a key
from the merged mapping wins over the same key set next to
<<.[a] in files and
S7schema objects are single values. Use oneOf
in the schema for fields that can hold one or more values.NA, NaN, and Inf are
validated as null. Allow null in the schema
for fields that may be missing.Date values in list and
S7schema objects are validated as strings.S7schema objects are validated as
write_config() writes them, which rounds numbers that need
17 significant digits, such as 0.1 + 0.2.to_yaml() and write_config():
NA is written as .na, so R reads
it back as NA. Previously it was written as
NA, which R read back as the string "NA".Date values are written as ISO 8601 strings
(2025-08-06) instead of the number of days since
1970-01-01.validate_yaml() and S7schema() no longer
warn when a YAML file has no final newline.jsonlite is now a required dependency, and
js-yaml is no longer bundled.fast-uri is
updated to 3.1.8, which has security fixes.S7schema() object in memory
using the new .data argument (#62).inst/bundle.js with updated JavaScript
dependencies: ajv 8.17.1 → 8.18.0, js-yaml
4.1.0 → 4.3.1, and fast-uri → 3.1.5.write_config() to use NULL as the
default for the output path instead of x@file, and renamed
the file argument to path (#48).