- many functions got overloads for
Matcher
type propagation in less common scenarios; condition
function now accepts Parsers/Matchers with different value types, result value type is the union of the two;- added type tests for overloads using expect-type.
- Targeting Node.js version 14 and ES2020;
- Now should be discoverable with denoify.
otherwise
function now has two overloads -Parser * Matcher -> Matcher
andParser * Parser -> Parser
;otherwise
function now accepts Parsers/Matchers with different value types, result value type is the union of the two;otherwise
function now has an alias calledeitherOr
which might be more natural for combining parsers.
- ensure local imports have file extensions - fix "./core module cannot be found" issue.
- remove terser, source-map files;
- use only
rollup-plugin-cleanup
to condition published files.
- source-map files;
- minor documentation update.
peek
function keeps Parser/Matcher distinction;
- documentation updates;
- package marked as free of side effects for tree shaking.
- Initial release;
- Aiming at Node.js version 12 and up.