Skip to content

Semver <1 issue with @figma/rest-api-spec #99

@Benji1

Description

@Benji1

Hey! Thank you for this great package!

I noticed that in your package.json you have

"@figma/rest-api-spec": "^0.27.0",

Which is probably not what you want.
Because if a package version is below 1.0.0 semver behaves differently. It treats minor versions as major, hence

"@figma/rest-api-spec": "^0.27.0",

will only ever install 0.27.0, 0.27.1, etc but never 0.28.0 or higher. See https://jubianchi.github.io/semver-check/#/^0.27.0/0.28.0

To solve this you can change this to

"@figma/rest-api-spec": ">=0.27.0 <1.0.0",

see https://jubianchi.github.io/semver-check/#/%3E%3D0.27.0%20%3C1.0.0/1.0.0

In our project we also depend on "@figma/rest-api-spec": "^0.36.0", with this fix we can unify our dependencies to use only one version instead of both.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions