cedar-model-typescript-library 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -103,8 +103,16 @@ JavaScript number cannot recover the original digits; use a raw source or a stri
103
103
  Raw readers reject duplicate decoded keys, trailing JSON, multiple YAML documents, nonfinite numbers,
104
104
  custom YAML tags and recursive aliases. YAML uses core scalar resolution: `yes` is a string, `012`
105
105
  is decimal twelve, and timestamps stay strings until their model property reads them. Keys retain
106
- their exact spelling. Malformed sources raise an error; readers never replace them with empty artifacts.
106
+ their exact spelling. An instance field value is always a string, so an unquoted number or boolean
107
+ in one keeps the text it was written with, and `value: 007` reads as `"007"`. The YAML instance
108
+ reader refuses what the Java reader refuses in an instance's data. A null, an empty mapping or an
109
+ empty list is refused there, except a null value beside a label, a preferred label or a notation,
110
+ which reads as no value. A field value must be a string, a number or a boolean, and a child or an
111
+ attribute must be a mapping. Malformed sources raise an error; readers never replace them with
112
+ empty artifacts.
107
113
  `JsonSourcePolicy` is also available from `/policy`; `YamlSourcePolicy` is in the full package.
114
+ Browser bundlers resolve `/policy` to its ES module bundle; CommonJS consumers retain the
115
+ CommonJS entry point.
108
116
 
109
117
  `TimestampPolicy` and `IsoDate` preserve the source calendar, explicit UTC offset and up to nine
110
118
  fractional-second digits. Missing offsets and impossible dates are rejected. Minute-only times,