Commit Graph

2595 Commits

Author SHA1 Message Date
Avital Oliver
f6ffe668c4 Allow more than one dash in package version names
This is consistent with the semver spec, and should fix
2014-09-30 16:16:38 -07:00
Avital Oliver
fcb3e09dd0 Fix meteor update from an app created from a checkout 2014-09-30 16:16:31 -07:00
Avital Oliver
e540d72070 Don't crash when failing to contact the package server
Fixes #2713
2014-09-30 16:16:26 -07:00
ekatek
86c0b2b2aa we don't have an apprecord for old releases, so if a project is using an old version, we have to be careful 2014-09-30 16:16:21 -07:00
ekatek
96cc3193a5 docs for the new stuff in 0.9.3 2014-09-25 18:18:01 -07:00
ekatek
0e8f8e5039 we now print this message to stderr instead of stdout 2014-09-25 17:46:22 -07:00
Emily Stark
41d8c71185 Use project.setRootDir instead of reload in stats test.
As of 3e64bd78, this usage of `reload` no longer works (if we set a
project's root dir to a fresh app, and then run the app which computes
versions.json, and then call `reload`, we'll end up with the project's
dependencies being empty). Maybe this is a bug in `reload`, but it
probably doesn't matter for any usage other than this test, and maybe
this test was misusing `reload` in the first place.
2014-09-25 14:58:10 -07:00
Emily Stark
e3c5743cec Simplify packageList in stats.js 2014-09-25 14:57:39 -07:00
Nick Martin
648a4e2a09 Revert "Correct but failing test for lenient parsing of bad version number"
This reverts commit c496bd716b.
2014-09-25 11:42:16 -07:00
Nick Martin
3cb6ea87be Revert "Uncomment test for meteor search with malformed versions"
This reverts commit cb0811a10a.
2014-09-25 11:42:07 -07:00
Nick Martin
1db094b411 Revert "Ignore packages with malformed versions or malformed constraints"
This reverts commit 8fe23b418b.
2014-09-25 11:41:56 -07:00
ekatek
64b0ea4f5b increment package numbers 2014-09-24 23:41:17 -07:00
Avital Oliver
1cf8b1d4d5 Merge branch 'release-0.9.3-lenient-version-numbers' into release-0.9.3
Conflicts:
	tools/package-version-parser.js
2014-09-24 23:21:01 -07:00
Avital Oliver
8fe23b418b Ignore packages with malformed versions or malformed constraints
This allows us to later increase the pool for well-formed versions without requiring
moving the catalog's data.json into a new folder, which would require re-syncing
the entire catalog.
2014-09-24 23:19:59 -07:00
ekatek
58c110499e fix the test for updating RCs and make list tell you about new rcs sometimes
1. Fixes the test for updating to a new rc. First, change the ordering -- since we order RCs now, it means that if you add rc.3 while
rc.4 is available it just adds rc.4. So, now, we publish rc.4 after rc.3 has been added, run update (with the right options) and
check that it worked.

2. When you run list, we check if there are newer versions of packages. Usually we just look at mainline versions. But if you are already
using an rc version of a package, you might care about new rcs too. So, in that case, we check the latest of *all* available versions.
2014-09-24 22:35:05 -07:00
ekatek
245059ef49 if we are asking for a prerelease, we should run the same comparison as normal
Previously, if we were asking for a pre-release, we would only return true if it was the
same pre-release, or at least on the same release. But that's not true. 1.2.4 should be valid
if we want 1.2.4-rc0, for example, and, even 1.2.3-rc0. (I mean, if it has the same ecv, which
it might not). This is also what was causing some of the issues around 0.9.1 rollout, we think. So,
we are going to try treating rcs like normal versions as far as comparisons go. We still don't want to
give you an rc unless you asked for it though.
2014-09-24 21:28:36 -07:00
Avital Oliver
6feb5da948 Let pre-release versions upgrade to later pre-release versions
But only if they're on the same base version.
2014-09-24 21:07:09 -07:00
ekatek
3278265b52 also testing correct behavior when there are two rcs: running update should move you to the newer rcs ifff you are already using an rc. Does not currently work. 2014-09-24 20:52:22 -07:00
ekatek
88936518d8 test reproducing this bug: when you add a package with rcs, you end up adding the rcs, even if you did not explicitly ask for them. 2014-09-24 19:23:55 -07:00
Avital Oliver
cb0811a10a Uncomment test for meteor search with malformed versions 2014-09-24 18:30:41 -07:00
Avital Oliver
573f881531 Simplify a test 2014-09-24 18:29:33 -07:00
Avital Oliver
0d128ffbb5 Change output range for PackageVersionParser.versionMagnitude
It's now back to returning 10000 for "1.0.0", as it was before
the recent changes to allow for wrapped package version numbers
and prerelease versions. Given that there are other constants
in the cost function used in the constraint solver, this gives
us much more confidence that we haven't fundamentally changed
the behavior of `meteor add` or `meteor update` in 0.9.3.
2014-09-24 17:47:18 -07:00
Avital Oliver
2a71dbfc41 Change output range for PackageVersionParser.versionMagnitude
It's now back to returning 10000 for "1.0.0", as it was before
the recent changes to allow for wrapped package version numbers
and prerelease versions. Given that there are other constants
in the cost function used in the constraint solver, this gives
us much more confidence that we haven't fundamentally changed
the behavior of `meteor add` or `meteor update` in 0.9.3.
2014-09-24 17:44:44 -07:00
Avital Oliver
c496bd716b Correct but failing test for lenient parsing of bad version number 2014-09-24 16:16:39 -07:00
Avital Oliver
782c0ac1bb Support semver prerelease versions
The semver library's compare functions already did the right thing,
but our `PackageVersion.versionMagnitude` did not. It now almost
correctly works for prerelease versions with a few caveats described
in a [* XXX!] comment.

While at it, add many tests which caught a separate bug due to
adding a number to a string for versions such as "1.2.3_50".
(That version would have been chosen over "5.0.0"!)
2014-09-23 15:19:20 -07:00
Justin SB
0c35bff3e2 Minimal fix for progress bar preventing 'meteor mongo' from exiting 2014-09-23 10:58:40 -07:00
ekatek
e35e64b30c user the underscore instead of a tilde 2014-09-22 21:57:23 -07:00
ekatek
559983ea07 fix versionsFrom 2014-09-21 11:37:34 -07:00
ekatek
3c9d7e26d0 push does not work like that 2014-09-19 22:36:30 -07:00
ekatek
5d8fb6d05b release constraints are weak and also increment 2014-09-19 22:34:39 -07:00
ekatek
35513fd745 fixed a bug in a more final way 2014-09-19 22:24:01 -07:00
ekatek
c8f4152f04 fix running from release to work 2014-09-19 21:47:05 -07:00
ekatek
78f36994e3 do not start line with space 2014-09-19 20:48:21 -07:00
ekatek
7e50a51d2b do not crash on maintainers of unknown package 2014-09-19 20:48:21 -07:00
Justin SB
d26387fdd7 More delays in JS HCP self-test 2014-09-19 20:45:07 -07:00
Justin SB
715c13ff7c Update self-test with new 'up to date' language 2014-09-19 20:21:31 -07:00
Justin SB
4d572fcc1d Insert some pauses to see if this does indeed fix the self-test
This would be a hack, but it does seem to work
2014-09-19 20:17:58 -07:00
ekatek
0403d545c7 slightly better wording on some commands 2014-09-19 20:02:25 -07:00
Nick Martin
e76d6dc787 comment on style. 2014-09-19 20:00:19 -07:00
Justin SB
9c5abcc8fa Use cleanup onExit instead of process.on('exit', ) 2014-09-19 19:53:16 -07:00
Justin SB
27a1a66039 Make sure the progress bar is hidden when we exit the process
Otherwise it leaves artifacts when we call process.exit
2014-09-19 19:49:23 -07:00
ekatek
18ffeafe20 start patience messages on a new line 2014-09-19 19:42:01 -07:00
ekatek
06434cfefb wrap this output to fewer columns 2014-09-19 19:39:30 -07:00
ekatek
8e9dbe6513 a less obnoxious banner that only comes up once 2014-09-19 19:34:14 -07:00
Justin SB
cfefbcf28f Revert 7282c0ee5b, now that 0ac1855166 has reverted bdcf0d188 2014-09-19 19:10:37 -07:00
ekatek
c5f87bc3e0 fixed the reduce of empty array bug 2014-09-19 18:57:18 -07:00
Justin SB
2c6e615d17 Auto-agree to the license in self-test; wait for the huge download 2014-09-19 18:42:48 -07:00
Justin SB
30442946cf Set warning as an alias for warn on Console.prototype, not on the singleton 2014-09-19 18:42:47 -07:00
ekatek
b97032b85e get rid of other Console.warning too 2014-09-19 18:41:52 -07:00
ekatek
099cb726ee use right index, use Console.warn 2014-09-19 18:41:19 -07:00