Commit Graph

11894 Commits

Author SHA1 Message Date
David Glasser
30499812e7 use bindEnvironment in forkJoin 2014-11-05 17:53:16 -08:00
David Glasser
d072249bdf Use util.format for Console print functions
Should be basically backwards compatible (they both join on spaces) but
has the following advantages:

- Objects are printed with util.inspect rather than toString, which
  means no more [object Object].  (We shouldn't be passing objects to
  end-user messages, but they can be useful in Console.debug.)

- The first string can optionally be a printf-style format string, if
  that's a better fit for your message.
2014-11-05 17:09:43 -08:00
David Glasser
cf271511cb document unicode characters 2014-11-05 17:09:43 -08:00
David Glasser
06b5c1fb6b console: use utils.sleepMs 2014-11-05 17:09:43 -08:00
David Glasser
e5380d06b7 console: missing vars 2014-11-05 17:09:42 -08:00
Slava Kim
f881b02f58 Check for the downloaded tarball plugin matching the requested name
Hackily parse XML with a regex (omg, never do this again) and check the plugin
id declared with id requested.

Should fix #2862.
2014-11-05 15:50:01 -08:00
David Glasser
6720d1c850 Revert "console: avoid division by zero"
This reverts commit 2d83bad8f3.

Whoops, that's not how division by zero works in JS! The existing
isFinite check is fine.
2014-11-05 12:25:23 -08:00
David Glasser
2d83bad8f3 console: avoid division by zero 2014-11-05 12:23:18 -08:00
David Glasser
02637a10ef progress: remove duplicate assignment 2014-11-05 12:04:30 -08:00
David Glasser
4b2d0d5174 de-globalize console.js constants 2014-11-05 11:30:14 -08:00
David Glasser
5e1086775d Remove more unnecessary buildmessage.captures
Part of #3003.
2014-11-04 17:34:54 -08:00
David Glasser
fb4655dbea drop unnecessary dangerous buildmessage.capture
unnecessary: because dontRunConstraintSolver now means we don't need to
be in a buildmessage.capture

dangerous: because if you don't check the result of
buildmessage.capture, you leak errors.
2014-11-04 17:13:27 -08:00
David Glasser
1a2249d159 Get rid of many calls to doOrDie/doOrThrow
The things they wrap no longer make buildmessages.
2014-11-04 16:43:38 -08:00
David Glasser
6fbf762f8d Move misplaced comment 2014-11-04 16:33:08 -08:00
Slava Kim
00d6682e23 Docs correction: DOMNode -> DOMElement
Because CSS selectors match only elements and not nodes
2014-11-04 16:21:55 -08:00
David Glasser
831ca7d20c cleanup test-packages
- Errors in merging the cordova branch against 273b70bea4 left
  in an unnecessary getLocalPackages function

- LocalCatalog.getLocalPackageNames is unnecessary (it's the same as
  getAllPackageNames!)  CompleteCatalog.getLocalPackageNames is OK I
  guess.

- getPackagesForTest returned some extra data that was only used to call
  the nonexistent catalog.removeLocalPackage method.  Meh, we don't
  clean up the catalog when the command ends now (which doesn't happens
  unless you're using --once anyway). We'll probably fix this by making
  catalog.complete less global soon anyway (ie, it should be build-specific).

- Fix a duplicate test runner app cp_r
2014-11-04 10:47:34 -08:00
David Glasser
90caf16ee7 remove unused var 2014-11-04 10:40:50 -08:00
David Glasser
2964c68fcb Fix failure for local packages to depend on built
Bug introduced in 0.9.4. This only seems to occur in some contexts; a
way to consistently reproduce is:

  $ rm -rf packages/test-in-browser/.build.test-in-browser && curmeteor test-packages
  [[[[[ Tests ]]]]]

  => Started proxy.
  => Started MongoDB.
  => Errors prevented startup:

  While Building package `test-in-browser`:
  error: package not available: bootstrap
2014-11-04 10:31:24 -08:00
Slava Kim
50e6d3143d Update data.js and names.json 2014-11-03 17:38:26 -08:00
Slava Kim
cc82180925 More return tags for Collections 2014-11-02 03:28:37 -08:00
Slava Kim
44832cbbdc Add return types and properties types in JSDoc to a lot of methods 2014-11-02 02:45:17 -08:00
David Glasser
b5d2cce308 Refactor LocalCatalog
- Simplify internal data structure to just have one map of name ->
  various data instead of a whole bunch of different unsynchronized data
  structures (most of which were used with frequent O(n) operations).

- Move the getLoadPathForPackage logic which combines local and remote
  packages into LayeredCatalog from LocalCatalog, and delete the
  unnecessary copy in BootstrapCatalogCheckout.

- Rename a bunch of fields to make it explicit which ones contain
  package objects, which ones contain package directories, and which
  ones contain package *search* directories

- Replace random version IDs and a long comment about why random is safe
  with sequential. (I don't think these version IDs are ever used
  anyway.)

- Drop unused "initializing" option to refresh

- Drop redundant call to _recomputeEffectiveLocalPackages in
  addLocalPackage (it is called immediately below by refresh).
2014-10-30 22:43:13 -07:00
David Glasser
ca33c4111a Two other build calls are only on catalog.official
getAllBuilds and getBuildWithPreciseBuildArchitectures
2014-10-30 21:38:58 -07:00
David Glasser
371a21d5bc getBuildsForArches is only on catalog.official 2014-10-30 21:34:54 -07:00
David Glasser
30fb11f1fa Merge branch 'upgrade-everything' into devel 2014-10-30 15:12:36 -07:00
David Glasser
f64e369888 self-test updates files 2014-10-30 15:12:30 -07:00
David Glasser
d5afd1b6a9 Update shrinkwrap 2014-10-30 15:12:30 -07:00
David Glasser
34aac459a0 Upgrade esprima to 1.2.2 from pre-1.1 2014-10-30 15:12:30 -07:00
David Glasser
e79e04fd60 Upgrade Mongo to 2.4.12 from 2.4.9
Not quite ready to take 2.6 yet
2014-10-30 15:12:29 -07:00
David Glasser
fc375be7c8 Upgrade openssl in mongo to 1.0.1j from 1.0.1g 2014-10-30 15:12:29 -07:00
David Glasser
d91667a941 Upgrade http-proxy to 1.6.0 from 1.0.2
The patch was integrated in 1.0.3.
2014-10-30 15:12:29 -07:00
David Glasser
66bd817382 Upgrade phantomjs to 1.9.12 from 1.8.1-1 2014-10-30 15:12:29 -07:00
David Glasser
8b9771420b upgrade sqlite3 to 3.0.2 from 3.0.0 2014-10-30 15:12:29 -07:00
David Glasser
80f8eec669 Upgrade source-map to 0.1.40 from 0.1.32 2014-10-30 15:12:29 -07:00
David Glasser
5d84fd2b7c Upgrade tar to 1.0.2 from 1.0.1 2014-10-30 15:12:29 -07:00
David Glasser
92b1bf1369 Upgrade request to 2.47.0 from 2.33.0
Looks like it now auto-detects $HTTP_PROXY so we could drop that code
from http-helpers (but not from the faye stuff).
2014-10-30 15:12:29 -07:00
David Glasser
d4feca7703 Upgrade semver to 4.1.0
I believe all the backwards-incompatible changes are to features we
don't use, like range expressions and the inc function.
2014-10-30 15:12:28 -07:00
David Glasser
5db7b27153 upgrade source-map-support: 0.2.8 (from 0.2.5) 2014-10-30 15:12:28 -07:00
David Glasser
4d2499ed7d Explain why not upgrading underscore 2014-10-30 15:12:28 -07:00
David Glasser
a6cce36f8d Explain why not upgrading fibers 2014-10-30 15:12:28 -07:00
David Glasser
c2a4134d97 Update Node to 0.10.33 from 0.10.29
Our npm patch is not yet in a Node 0.10 release (it's in npm 2.1.0).
2014-10-30 15:12:28 -07:00
Emily Stark
25951b3fb8 Fix 'meteor add' output for nonexistent packages/versions.
Fixes #2898.
2014-10-30 12:08:15 -07:00
David Glasser
f3cc623615 Add missing requires 2014-10-30 10:34:50 -07:00
Wonkyung Lyu
f8333123ba Fix typo error on docs 2014-10-30 10:17:53 -07:00
David Glasser
7ac4a838e3 Remove some catalog buildmessage.asserts 2014-10-29 19:25:13 -07:00
David Glasser
17f16160e5 Remove buildmessage usage by release.js 2014-10-29 19:15:51 -07:00
David Glasser
280d0afcfc Fix test 2014-10-29 19:12:32 -07:00
David Glasser
6382bd8474 Remove buildmessage usage by stats code 2014-10-29 19:10:05 -07:00
David Glasser
63e91e1f54 Remove buildmessage usage in updater.js 2014-10-29 19:04:36 -07:00
David Glasser
1ed619378f Fix resolveConstraints indentation 2014-10-29 18:52:07 -07:00