Commit Graph

17595 Commits

Author SHA1 Message Date
Ben Newman
9338fbd73f Bump package versions for 1.4.2-beta.6 release. release/METEOR@1.4.2-beta.6 2016-09-27 13:31:41 -04:00
Ben Newman
beafa8ab18 Bump $BUNDLE_VERSION to 4.2.12 before rebuilding dev bundle. 2016-09-27 12:47:18 -04:00
Ben Newman
2483fb3cb3 Update the lru-cache npm package to v4.0.1. 2016-09-27 12:47:13 -04:00
Ben Newman
67116898d9 Update History.md with recent changes for 1.4.2. 2016-09-27 12:47:13 -04:00
Ben Newman
a13d3fd938 Update the pathwatcher npm package to v6.7.1.
Also remove explicit dependency on `runas`, which is depended upon by
`pathwatcher`.
2016-09-27 12:15:04 -04:00
Ben Newman
670c305927 Update the npm npm package to v3.10.8. 2016-09-27 12:07:41 -04:00
Ben Newman
9304f76b52 Fix tests by avoiding printing inotify warning when Console.isHeadless(). 2016-09-27 11:09:46 -04:00
Ben Newman
b976cfa552 Fix reference error for file variable in tools/isobuild/compiler.js. 2016-09-27 11:03:28 -04:00
Ben Newman
0d3466b882 Be more defensive when terminating watchers. 2016-09-27 10:41:40 -04:00
Ben Newman
ea92d83744 Don't cache exceptions in optimistic functions.
I originally added the exception-caching functionality in order to avoid
calling files.stat repeatedly for files known to be missing, but now that
we're using statOrNull, knowledge of missing files (as indicated by
statOrNull returning null) is being properly cached.

The reason it's dangerous to cache exceptions is that (for example) when
an ENOENT exception indicates the file is missing, there will be no more
change events for that file, effectively making the exception permanent,
even if the file comes to exist at a later time.
2016-09-27 10:13:19 -04:00
Ben Newman
ad69d59fa7 Clear dev_bundle/.npm before tests to ensure consistent results. 2016-09-26 20:39:15 -04:00
Ben Newman
7c3fbad5d0 Use version constraint for minifier-css in standard-minifier-css. 2016-09-26 20:27:50 -04:00
Jesse Rosenberger
1c42e0fe22 Await Promise when running npm install (#7805)
I believe this is the fix for the (recent) CI server timeouts.
2016-09-26 20:12:46 -04:00
Ben Newman
c6b2a2f95e Use optimistic functions in meteorNpm.getProdPackageNames. 2016-09-26 20:12:46 -04:00
Ben Newman
8e57ecb731 Use optimistic functions in Builder#copyDirectory. 2016-09-26 20:12:46 -04:00
Ben Newman
c7b8b72e77 Never yield in files.symlink. 2016-09-26 20:04:30 -04:00
Ben Newman
5af59c58bc Always use rimraf.sync in files.rm_recursive. 2016-09-26 20:04:30 -04:00
Ben Newman
50a1f11a10 Use optimistic functions in compileUnibuild. 2016-09-26 20:04:29 -04:00
Ben Newman
978df6e043 Use optimistic functions in meteorNpm.isPortable. 2016-09-26 20:04:29 -04:00
Ben Newman
d954415752 Add profiling to PathWatcher watch function. 2016-09-26 20:04:29 -04:00
Ben Newman
83e7b38779 Break circular dependency between {files,watch,optimistic}.js. 2016-09-26 20:04:28 -04:00
Ben Newman
033a935a89 Use optimistic functions to speed up IO-bound bottlenecks. 2016-09-26 20:04:28 -04:00
Ben Newman
6b320bd64b Avoid starting optimistic watchers for node_modules files.
I've also moved both try-catch blocks out of the optimistic wrapper
function in an effort to help V8 optimize the optimistic functions.
2016-09-26 20:04:28 -04:00
Ben Newman
ae7bd2e5af Ignore meaningless initial fs.watchFile callback.
As a reminder, we use fs.watchFile only as a fallback in environments
where pathwatcher.watch is not available, such as on network or virtual
file systems.
2016-09-26 19:59:40 -04:00
Ben Newman
37647c8657 Implement optimistic versions of heavily used files.* methods. 2016-09-26 18:29:08 -04:00
Ben Newman
26597c4fbb Simplify rehashing in safe-pathwatcher.js. 2016-09-26 15:58:13 -04:00
Ben Newman
bfa67337dd Cache merging of CSS files in standard-minifier-css.
It's silly that this was happening on every reload, regardless of whether
CSS files had changed.
2016-09-23 19:22:40 -04:00
Ben Newman
d4d648c8f7 Bump package versions for 1.4.2-beta.5 release. release/METEOR@1.4.2-beta.5 2016-09-22 15:03:07 -04:00
Ben Newman
aa6b8ff10a Cleanup packages/stylus/.npm after upgrade.
This may help with the CircleCI timeout problems we've been having.
2016-09-22 15:03:07 -04:00
Ben Newman
9810562403 Test that one package can have both node_modules and Npm.depends. 2016-09-22 14:34:32 -04:00
Ben Newman
da5f6956aa Merge branch 'devel' into release-1.4.2 2016-09-22 14:32:07 -04:00
Ben Newman
03c5346873 Stop building meteorInstall bundle for server node_modules.
This saves a potentially large amount of work by the ImportScanner and the
Resolver during makeServerTarget, because it means we no longer have to
scan and resolve modules to build a server bundle as a backup for native
Node evaluation.

I've attempted this optimization before, but it wasn't really safe until
I fixed some obscure bugs that caused module.useNode() to fail during
`meteor test-packages` (see recent local-test:-related commits).
2016-09-22 14:27:32 -04:00
Ben Newman
726074689e Don't prepend node_modules/meteor/<package>/ for npm/... directories. 2016-09-22 14:27:31 -04:00
Ben Newman
bbac272530 Prefer node_modules directories from non-test packages. 2016-09-22 14:27:31 -04:00
Ben Newman
7401bad8e3 Tolerate multiple node_modules directories per package.
Revert "Write node_modules metadata as single strings."
This reverts commit f74975d0df.

Packages published with multiple node_modules directories won't be
loadable by versions of Meteor before 1.3, because older versions of
Meteor don't understand object-valued isopack "node_modules" fields, but
the vast majority of Meteor developers are now using either 1.3 or 1.4.
2016-09-22 13:06:03 -04:00
Tom Coleman
942221d07f Merge pull request #7799 from abernix/fix-issue-7445-2
Add support for `--no-release-check` to `meteor test` command
2016-09-22 15:54:02 +10:00
Tom Coleman
5f81996cdb Don't show a spinner while getting ready 2016-09-22 11:50:44 +10:00
Tom Coleman
f5bc7ae0ce Shrinkwraps and .versions files for npm-mongo and stylus 2016-09-22 11:24:48 +10:00
Tom Coleman
b8d3fb03ca This is better 2016-09-22 11:24:13 +10:00
Tom Coleman
25c03ce9ab Add a timeout to the get ready step 2016-09-22 11:19:39 +10:00
Ben Newman
3313180a6f Always use dev_bundle/.npm as the cache for meteor npm ... commands.
I believe a strange interaction with the global cache (~/.npm on Unix
systems) may have been the root cause of the problem fixed by this commit:
https://github.com/meteor/meteor/pull/7668/commits/ad61a935146c34e7
2016-09-21 18:53:33 -04:00
Jesse Rosenberger
7097f78926 Add support for --no-release-check to meteor test command
This functionality for the `test` command was overlooked when meteor/meteor#7445 was implemented.

Closes meteor/meteor#7026
2016-09-21 15:59:47 +03:00
Brian Lukoff
a3419f8ccf Update node-mongodb driver to 2.2.10 (#7780)
This release of the node-mongodb driver finally fixed performance issues we were having on our Compose MongoDB 3.2 deployment.
2016-09-20 18:31:55 -04:00
Tom Coleman
78b9a20da1 Merge pull request #7739 from meteor/stylus-version-bump
Updating stylus dependency
2016-09-20 09:05:39 +10:00
Ben Newman
d881a29de4 Bump package versions for 1.4.2-beta.4 release. release/METEOR@1.4.2-beta.4 2016-09-16 09:15:24 -04:00
Ben Newman
62b85ee36e Merge branch 'devel' into release-1.4.2 2016-09-16 09:10:33 -04:00
Ben Newman
6823ea0bca Bump boilerplate-generator package version and add version constraints.
This will allow publishing `boilerplate-generator` independently from
Meteor, so that Meteor 1.4 developers can update immediately by running
`meteor update boilerplate-generator`.
2016-09-16 09:07:25 -04:00
gsaynac
f475e379ab Add ws: and wss: sources to default CSP for Cordova (#7774)
CircleCI tests are still timing out, but I believe this change is safe to merge.
2016-09-16 09:01:44 -04:00
Ben Newman
1b25050aa8 Delay disposing of file watchers, in case acquireWatcher called again.
Typically all outstanding watchers will be closed when the development
server restarts, but we can save a lot of effort if they survive the
restart, for the small cost of keeping them open for an extra 30sec.
2016-09-15 19:44:00 -04:00
Ben Newman
d5f239e455 Use global file watching oracle to compute file hashes cheaply.
For the galaxy-server application, this reduces the time spent in
watch.isUpToDate from six seconds to a little over second. Of course we
should also try to call it less often, but making it cheaper helps!
2016-09-15 19:42:55 -04:00