Moo Versions Save

Optimised tokenizer/lexer generator! 🐄 Uses /y for performance. Moo.

v0.5.2

1 year ago

Changes:

  • Avoid fall through in the keyword transform, thanks to @lrowe in #164
  • Replace the keyword transform with a Map, to avoid triggering unsafe-eval Content-Security-Policy warnings, thanks to @jsharkey13 in #173
  • Fix a bug in reset() relating to queuedText, thanks to @hikerpig in #169
  • Improve error reporting and add additional context lines, thanks to @airportyh in #129

Documentation tweaks:

  • Correct states example to use pop: 1, thanks to @evanpurkhiser in #140
  • Replace itt example with modern js example, thanks to @AlansCodeLog in #147

Full Changelog: https://github.com/no-context/moo/compare/v0.5.1...v0.5.2

v0.5.1

4 years ago

Published v0.5.1 to NPM.

  • #116, #125 Allow Unicode flag if all RegExps use it
  • #114 Allow calling formatError without a token
  • 13e1157 Fix a bug with fast matching when include is used

v0.5.0

5 years ago

Version 0.5.0 is now published to NPM.

Highlights:

v0.4.1

6 years ago

Breaking changes:

  • Keyword support is now explicit.
  • Capture groups are no longer supported. Use slice() yourself, or use the value transform.
  • {pop: 1} will now throw an error; use {pop: true}.
  • The size property has been removed. Use text.length instead.

v0.3

7 years ago
  • Prettier syntax errors
  • Remove feed()
  • Include state in save()
  • reset() now goes back to start state

v0.2

7 years ago

I just published v0.2 to NPM:

  • Don't re-compile RegExp in clone()
  • Remove index() & remaining()