Skip to content

v2.0.0

Choose a tag to compare

@stoplight-bot stoplight-bot released this 22 Mar 07:26
· 44 commits to master since this release
1632d59

2.0.0 (2019-03-22)

Features

  • refactor parser results [SL-2116] (#6) (1632d59)

BREAKING CHANGES

  • pointers are no longer exposed

  • feat: bump @stoplight/types

  • feat: adjust parseWithPointers to new IParserResult

  • refactor: remove parsing options

  • fix: wrong end line for some nodes

  • fix: tslint issues

  • feat: point to actual node instead of its parent

  • fix: first lines

  • fix: errors are mapped to correct lines

  • refactor: getJsonPathForPosition and getLocationForJsonPath

  • fix: match lines properly

  • fix: potential TypeError

  • fix: getLocationForJsonPath should support sequences

  • fix: get endPosition for correct node

  • fix: cast segment to numbers when approriate

  • fix: mappings might be an empty array

  • chore: typing adjustment

  • refactor: fix codeclimate issue

  • chore: remove comments

  • feat: point to nearest key

  • refactor: findNodeAtOffset => findClosestScalar

  • chore: re-rexport new functions