Skip to content

diff throws w/ an unexpected error #553

Closed
@macno

Description

@macno
          Double checking #547 and I see a problem where it would have thrown with a good warning, now it throws w/ an unexpected error

v7.4.0

> semver.diff('foo', '1.2.3')
Uncaught TypeError: Invalid Version: null

now

> semver.diff('foo', '1.2.3')
Uncaught TypeError: Cannot read properties of null (reading 'compare')

Need to fix this before releasing

Originally posted by @wraithgar in #549 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions