Skip to content

Releases: humanwhocodes/momoa

momoa-js: v3.0.0

16 Mar 20:26
37eb491
Compare
Choose a tag to compare

3.0.0 (2023-03-15)

Breaking Changes

  • The comments option to parse() and tokenize() has been removed and replaced with the mode option, which can be either "json" for JSON parsing or "jsonc" to parse JSON with C-style comments.
  • The type property on tokens has been expanded: "Punctuator" has been removed and replaced with specific token types for each of the former punctuator characters, "LBrace", "RBrace", "LBracket", "RBracket", "Comma", and "Colon"
  • The value property has been removed from tokens in order to improve performance. You can easily retrieve the value of any token via text.slice(token.loc.start.offset, token.loc.end.offset) or text.slice(token.range[0], token.range[1]) (if ranges: true is used).
  • A new Element node as been introduced to be the parent node of each array element (similar to Member in Object.members). This allows you to easily look up the AST to determine if a value is inside of an array or not.

Features

  • momoa-js: Add type checking (#64) (9dec1c7)
  • Re-add the ranges option (7ce69ee)
  • Re-add tokens option for parse (808a21e)

@humanwhocodes/momoa v2.0.4

18 Apr 18:19
971f4d4
Compare
Choose a tag to compare

Bug Fixes

  • Ensure invalid exponent numbers throw an error (332197c), closes #21

v2.0.3

15 Feb 16:51
Compare
Choose a tag to compare

v2.0.2

23 Jun 21:19
Compare
Choose a tag to compare

v2.0.1

26 Jan 01:58
Compare
Choose a tag to compare

v2.0.0

09 Jan 02:51
Compare
Choose a tag to compare

v1.0.1

08 Jan 01:19
Compare
Choose a tag to compare

v1.0.0

18 Jun 18:49
Compare
Choose a tag to compare

v0.2.1

03 Oct 17:35
Compare
Choose a tag to compare

v0.2.0

03 Oct 17:32
Compare
Choose a tag to compare

First public release