Skip to content

breaking change missing 3.0.0: findNodeAtLocation() can return undefined; parseTree() can return undefined in more cases #105

@grafanauser

Description

@grafanauser

Breaking change in 3.0.0 is not just "fixed API spec for parseTree. Can return undefine for empty input.".
But also findNodeAtLocation() type is fixed: it can return undefined.

"Can return undefine for empty input" is incomplete. It will return undefined in those cases and probably even more, too:

'' empty string
' ' blank
'   ' tab
'// test' comment only
'/* test */' comment only
'+'
'-'
'}'
'} {}'
']'
':'
','
"'foo'"
"abc"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions