1
0
Fork 0
Commit Graph

28 Commits

Author SHA1 Message Date
Sean Sube 66a8fc3979 fix(build): reduce coverage requirements to match previous, fix typedef warnings 2022-10-08 16:11:43 -05:00
Sean Sube ceda879c1d fix: use module imports, upgrade js-utils to module 2022-10-08 16:11:43 -05:00
Sean Sube f6ef1f4b35 feat(build): remove rollup, do not bundle the output
BREAKING CHANGE: the library will now be published as loose ES modules.
Library users are better informed on bundling needs, and repeated bundling introduces extra boilerplate code.
2022-10-08 16:11:43 -05:00
Sean Sube 06726e91fc fix: replace deprecated utility fns 2022-10-08 16:11:43 -05:00
Sean Sube 8a12ab2244 fix: remove broken schema re-export
this should not be a breaking change, since the symbol being exported
does not exist (therefore, it is already broken).
2022-10-08 14:23:38 -05:00
Sean Sube f4c5d4e28f fix: improve error handling for include 2022-02-06 17:52:35 -06:00
ssube 4761532c37
feat: export include schema helper 2021-08-05 22:26:10 -05:00
ssube 25b5651ae9
feat(build): update eslint config, remove tslint plugins 2021-07-10 17:38:08 -05:00
ssube 800f6bb5b2
feat(schema): remove include type from default schema
BREAKING CHANGE: the include type requires a significant subset of
the synchronous fs API to be provided when creating a schema, even
if the include type is never used. Since the resolution must be
synchronous, the include type is limited to local fs and memory
access, and not very useful with network loading. It has been
removed from the default schema, but can be included by calling
`createIncludeSchema` instead.
2021-07-10 15:12:59 -05:00
ssube 5ef7e15c60
fix: selectively copy mutable schema options 2021-04-17 18:57:18 -05:00
ssube 05d5acfb1e
feat: add optional base schema to schema options 2021-04-17 18:56:33 -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 2a9d5e9ee7 feat: list allowed encodings, include ASCII 2020-09-07 07:08:58 -05:00
ssube 0e6880bc53
feat(include): add flag option to includes 2020-08-09 09:44:11 -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 143e9f5627
fix: remove export alias for include options 2020-08-04 23:06:18 -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 70a5fdab3c
lint: annotate exported types with release status 2020-08-01 10:57:05 -05:00
ssube 349803de05
lint: remove lodash 2020-08-01 10:16:31 -05:00
ssube 4a58c20ba5 fix(config): update lint to naming-convention rule 2020-07-29 08:32:06 -05:00
ssube 6f5a4aa13e
fix: require encoding overload for include read callback 2020-07-09 06:40:08 -05:00
ssube 972c7f2746
fix(include): schema callback types, tests 2020-06-30 19:34:02 -05:00
ssube 77b6f4cc74
feat(include): allow consumer to provide fs functions via include schema
BREAKING CHANGE: rather than use the `fs` functions (`existsSync`,
`readSync`, etc) to include files, this uses fields of the `includeSchema`.
To maintain the previous functionality, fields should be set as follows:

- `exists = existsSync`
- `read = readSync`
- `resolve = realpathSync`
2020-06-30 08:08:03 -05:00
ssube 3361099729
fix(test): remove problematic invocation of main from index 2020-06-29 18:56:08 -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
ssube 33c2936275
feat: new project from template 2019-11-13 08:01:51 -06:00