Meteor version solver: why are the "meteor update" service packs being lowered?

I have this in the package:

  api.use([
    'kestanous:herald@1.1.3',
    'kestanous:herald-email',
  ]);

As expected, Meteor uses version 1.1.3 of the Herald package.

If I uninstall the version @1.1.3, the package versions.jsonwill not change.

But now, if I run meteor update kestanous:herald, here is what I get:

$ meteor update kestanous:herald

Changes to your project package version selections from updating package versions:

kestanous:herald  downgraded from 1.1.3 to 1.0.1

It doesn't make sense to me that updating a package will actually reduce it. Moreover, it is kestanous:heraldno longer used in the application. Even a stranger, despite this message, there are still no changes in the package versions.json.

So it seems like I don’t understand how package versioning works, or is something not working correctly?

+4
source share
1 answer

, 100%, .

Meteor . Meteor, , , Meteor 0.9.2, Meteor 0.1.0, blaze.

, , , blaze, , , .

, , herald Meteor - .

, api.versionsFrom("XXX").

Meteor .

, semver, - , , . .

package.js kestanous:herald:

api.versionsFrom('METEOR@0.9.2');
api.use(['check', 'underscore', 'tracker','accounts-base', 'blaze', 'artwells:queue@0.0.3']);

, , .

versionsFrom, .

https://github.com/Meteor-Reaction/Herald/blob/master/package.js#L9

0

Source: https://habr.com/ru/post/1570247/


All Articles