Skip to content

Adding engines to package.json was a BC break #434

Description

@ooflorent

Are you submitting a bug report or a feature request?

Bug report

What is the current behavior?

Doing a minor update of final-form breaks the build when using node >= 16 because of:

// package.json
// …
  "engines": {
    "node": "14"
  },

What is the expected behavior?

Doing a minor update of final-form should not break the build.

Sandbox Link

Not relevant

What's your environment?

% node -v
v16.9.1

Other information

bocms master % yarn upgrade-interactive --latest
yarn upgrade-interactive v1.22.11
info Color legend :
 "<red>"    : Major Update backward-incompatible updates
 "<yellow>" : Minor Update backward-compatible features
 "<green>"  : Patch Update backward-compatible bug fixes
? Choose which packages to update.
? Choose which packages to update. [email protected]
info Installing "dependencies"...
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
[3/5] 🚚  Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version "14". Got "16.9.1"
✨  Done in 59.64s.

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