Skip to content

Releases: humanwhocodes/momoa

momoa-js: v3.0.5

21 Jun 20:52
88da79a
Compare
Choose a tag to compare

3.0.5 (2024-06-21)

Bug Fixes

momoa-js: v3.0.4

21 Jun 20:36
87e0879
Compare
Choose a tag to compare

3.0.4 (2024-06-21)

Bug Fixes

  • types: Node#loc is not optional (1982367)

momoa-js: v3.0.3

19 Jun 15:14
195c5e7
Compare
Choose a tag to compare

3.0.3 (2024-06-19)

Bug Fixes

  • Parsing of incomplete object should throw unexpected EOF error (b661d79)
  • Type definitions (9c41c91)

momoa-js: v3.0.2

18 Apr 19:07
1a0f46f
Compare
Choose a tag to compare

3.0.2 (2024-04-18)

Bug Fixes

  • docs: Update incorrect example (6c2b9ba)

momoa-rs: v3.0.1

12 Feb 23:37
07aa154
Compare
Choose a tag to compare

3.0.1 (2024-02-12)

Bug Fixes

  • deps: update rust crate thiserror to 1.0.57 (#68) (e96a540)

momoa-js: v3.0.1

12 Feb 23:37
07aa154
Compare
Choose a tag to compare

3.0.1 (2024-02-12)

Bug Fixes

  • types: Ensure proper types in Momoa JS (4ffe83b)

momoa-rs: v3.0.0

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

3.0.0 (2023-03-15)

Bug Fixes

  • deps: update rust crate serde-wasm-bindgen to 0.5 (#58) (538e5d2)
  • deps: update rust crate thiserror to 1.0.39 (#57) (373de08)
  • Separate debug output from error messages. (98a8c2e)

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