Repository navigation
v0.3.1
This version lets a log take a validator of the Standard Schema as its parse. The change is backward compatible.
- The
parseofeventLog,openEventLogandsalvageEventLogis a function or a validator of the Standard Schema, for example a schema of zod 4. The log gets the output type of the schema. - When the schema refuses a stored value, the read throws, and its
causeis the newSchemaErrorwith each problem. A schema that validates asynchronously gives an error. - The types
Parse,StandardSchema,StandardResultandStandardIssueare new. They copy the part of the specification that the log uses, so the package does not depend on a validator.
Runtime dependencies: none.