Skip to content

"Meta packages" do not specify versions #882

@callumlocke

Description

@callumlocke

I just tracked down a weird bug to the codeceptjs-webdriverio package.

It seems to depend on * (any version) of its two components (see package.json):

  "dependencies": {
    "codeceptjs": "*",
    "webdriverio": "*"
  },

Is this intentional? It means if you upgrade your codeceptjs-webdriverio dependency, and then run npm install or yarn, it may not actually upgrade either of the sub-dependencies, because * covers anything, and it will just follow your lockfile. In my case this means installing codecept-webdriverio@1.1.0 gets me very old versions of both codecept and webdriverio.

I'm not clear on the benefit of these meta-packages in general. I initially assumed they contained some kind of compatibility layer between codecept and the driver, but it seems they don't do anything besides pull in other packages. I can't see any advantage of npm install codeceptjs-webdriverio over npm install codeceptjs webdriverio.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions