Skip to content

v2.0.0

Compare
Choose a tag to compare
@jsdoc-type-pratt-parser-chores jsdoc-type-pratt-parser-chores released this 15 Oct 17:03
· 131 commits to main since this release

2.0.0 (2021-10-15)

Features

  • KeyValue: add discriminator for different KeyValue types and rename value to key (4cb9dd0)
  • KeyValue: enable labeled KeyValue results (576c2d8)
  • traverse: use visitorKeys and sinon-chai for tests (8a98f9a)

BREAKING CHANGES

  • KeyValue: JsdocTypeKeyValue results can have 2 different appearances. In one kind the key is a NonTerminalResult, then it is named left. The other kind has keys that are strings, this is the normal version. In this case the key was named value before and is now renamed to key to avoid confusion.
{
  type: 'JsdocTypeKeyValue',
  value: 'some-key',
  // ...
}

is now

{
  type: 'JsdocTypeKeyValue',
  key: 'some-key',
  // ...
}