1
0
Fork 0
Commit Graph

9 Commits

Author SHA1 Message Date
Sean Sube ceda879c1d fix: use module imports, upgrade js-utils to module 2022-10-08 16:11:43 -05:00
ssube 51038a412a
fix(include): return schema setter, default to default schema
BREAKING CHANGE: the include type will make a copy of its options
and return a setter for the `schema`, fixing a bug in createSchema
and allowing it to take readonly options rather than mutating them.
2021-03-27 19:31:44 -05:00
ssube fc1f4d01a2
feat: update to js-yaml 4, default schema
BREAKING CHANGE: updates the underlying js-yaml from v3 to v4,
thus including all of the breaking changes from that:
https://github.com/nodeca/js-yaml/blob/master/migrate_v3_to_v4.md.
The API of this module has not changed, but some documents
may be parsed differently, so this is breaking.
2021-03-27 18:34:47 -05:00
ssube 6985a2343e
feat: switch to instantiated API, add `createSchema` entrypoint
BREAKING CHANGE: this allows multiple schemas to coexist, but requires
each schema to be created with a call to `createSchema`, taking a set
of options that includes the former `includeOptions` singleton.
2020-08-08 20:01:34 -05:00
ssube 1d07d7c3ed
feat: add join callback to include options
BREAKING CHANGE: usage of the include type now requires a join option
2020-08-04 00:14:13 -05:00
ssube 972c7f2746
fix(include): schema callback types, tests 2020-06-30 19:34:02 -05:00
ssube 87e55c873b
fix(test): cover app main and stream type 2020-03-31 17:47:10 -05:00
ssube 859baa33f9
fix: refactor duplicate utils into js-utils, export symbols
BREAKING CHANGE: extract typed errors and use the equivalent
from js-utils
2020-03-29 08:13:57 -05:00
ssube 133880c9f8
feat(type): add env, include, regexp, and stream 2019-11-13 08:20:34 -06:00