This is weird. I did meteor show --show-all orionjs:core and got:
...
0.7.7 April 16th, 2015 installed
1.0.0 April 27th, 2015
1.1.0 June 1st, 2015 installed
Something is corrupt in this project. Even if I do meteor remove orionjs:core, the above still show as installed. I tried doing rm -rf .meteor/local and that didn’t help. I’m at a loss here.
Nope, it is indeed autoform. I just added all of autoform’s dependencies, and then installed the orion core, and it was 1.1.0. Try it yourself, you’ll see. I did this on a freshly installed Ubuntu VM, too:
I wonder if this has something to do with Orion using autoform@5.1.2? So if autoform 5.3.0 is installed first, something goes haywire? There’s obviously a dependency breakage here.
Yeah, I can manually install 1.1.0, but I’m still wondering why, when autoform is installed, orion installs version 0.7.7. I was a bit flipped out because it was holding me up on a deadline and I couldn’t figure out why orion was behaving strangely.
So I have worked out the reason, sort of. So orionjs:core actually uses aldeed:autoform version 5.1.2 so if you try to add orionjs after autoform, the version of autoform will be too recent. The package solver then tries to find the best combination of packages that doesn’t effect the 1. currently installed packages 2. transitive dependencies 3. direct dependencies. So for whatever reason, the cost function of the solver decided that using orionjs 0.7.7 was the best solution. If imagine it has to do with versions of aldeed:collection2 and aldeed:simple-schema (i.e. changing just orionjs was l but I am guessing at this point.
@entropy: Good find! So, I’m wondering if installing orionjs:core@1.1.0 explicitly will cause anything to break, if the latest version of autoform is installed. Will orionjs still use the older version of autoform it depends on, and my app will use the latest version of autoform—is that how it works?
This is definitely a bug on orion’s part. Autoform has no dependencies to orion and has no possible way of finding out if orion is depending on an older version of itself.
The dependency resolver also does its part well. It is actually doing what it is designed to do.
In all this, orion is the one saying "hey I’m not going to be able to operate with a recent version of autoform so the solver should do its best to find the common denominator, which appears to be a very old version of orion.
If however, changing the order in which you add autoform and orion to your project does indeed change versions, than you may also want to raise this as a possible issue on meteor’s issue tracker.