Commit Graph

19988 Commits

Author SHA1 Message Date
Ben Newman
fdaa0f5145 Bump package versions for 1.6-rc.8 release. release/METEOR@1.6-rc.8 2017-10-12 17:42:21 -04:00
Ben Newman
f011bf2acc Don't add //#sourceURL comment to dynamic modules.
Dynamic modules get a dynamic //#sourceURL when they are evaluated:
948d9628f8/packages/dynamic-import/client.js (L103)
2017-10-12 17:42:21 -04:00
Ben Newman
948d9628f8 Add //#sourceURL comments to assist with source mapping on Windows.
Fixes #9166 (👋 @brucejo75).
2017-10-12 17:28:17 -04:00
Ben Newman
abd91ac7c5 Use files.rm_recursive_async to implement meteor reset.
This should hopefully prevent ENOTEMPTY errors on Windows.
2017-10-12 16:46:10 -04:00
Ben Newman
5154835c73 Allow asynchronous meteor command implementations. 2017-10-12 16:45:04 -04:00
Ben Newman
979ac73df1 Merge branch 'devel' into release-1.6 2017-10-12 14:17:26 -04:00
Ben Newman
01e4c9cfd8 Update to official versions of mongodb[-core] with @glasser's fixes.
Previously:
https://github.com/meteor/meteor/pull/9200
https://github.com/meteor/meteor/issues/8598
2017-10-12 14:13:07 -04:00
Ben Newman
2692f99f7a Merge branch 'devel' into release-1.6 2017-10-12 13:49:27 -04:00
Ben Newman
2dcc10c2cc Avoid matching exact language falsy destructuring error. 2017-10-12 12:44:41 -04:00
Ben Newman
3b93934217 Bump package versions for 1.6-rc.7 release. release/METEOR@1.6-rc.7 2017-10-12 11:23:36 -04:00
Ben Newman
074f09d829 Bump $BUNDLE_VERSION to 8.7.0 before rebuilding dev bundle. 2017-10-12 10:47:39 -04:00
Ben Newman
eebc70b1e0 Upgrade Node to version 8.7.0.
https://nodejs.org/en/blog/release/v8.7.0/
2017-10-12 10:47:37 -04:00
Geoffrey Booth
b2ec292fd2 Update another test to reflect new extension for imported CoffeeScript files 2017-10-12 10:26:05 -04:00
Geoffrey Booth
9447caf684 Update test to reflect new extension for imported CoffeeScript files 2017-10-12 10:26:05 -04:00
Geoffrey Booth
9da4605677 Update dependencies 2017-10-12 10:26:05 -04:00
Geoffrey Booth
0707a18954 Keep the same outputFilePath as the inputFilePath was, to prevent Meteor from adding a second layer of exports, to prevent a circular dependency; see https://github.com/meteor/meteor/issues/9176#issuecomment-334942137 2017-10-12 10:26:05 -04:00
Geoffrey Booth
4494d53ec5 Bump coffeescript packages versions 2017-10-12 10:26:05 -04:00
Jesse Rosenberger
5210f0cff0 Merge pull request #9207 from meteor/hwillson-code-of-conduct-tweaks
Rename .md & replace "Apollo" with "meteor" in CoC
2017-10-12 09:44:38 +03:00
Ben Newman
5da7ebdfe7 Make rate limiter tests more tolerant of slight timing variations.
This package contains some of the most fragile tests in the entire
codebase, in large part because the author did not account for the
nondeterminism of JS timers across platforms and test runs.
2017-10-11 21:08:41 -04:00
Ben Newman
f9df851134 Use module.watch live bindings to solve #9176.
Further explanation / discussion:
https://github.com/meteor/meteor/issues/9176#issuecomment-335913296

Another (complementary) solution to the same problem: #9190
2017-10-11 21:08:41 -04:00
Hugh Willson
42b3051f77 Fix case of remaining policy files 2017-10-11 14:52:27 -04:00
Hugh Willson
9caf9fd583 Adjust policy doc filenames to use capital snake case 2017-10-11 14:47:21 -04:00
Hugh Willson
23caffa394 Replace ReactDOM.render with ReactDOM.hydrate (#9204)
As of React 16, using `ReactDOM.render` in the manner
demonstrated in the `server-render` README will cause a
React deprecation warning. Switching to `ReactDOM.hydrate`
will avoid this. From the React docs:

> Using ReactDOM.render() to hydrate a server-rendered
> container is deprecated and will be removed in React 17.
> Use hydrate() instead.

Source: https://reactjs.org/docs/react-dom.html#render
2017-10-11 11:41:34 -04:00
Amitosh Swain Mahapatra
a39917730f Switch to bright colors on Windows Powershell (#9170)
* Switch to bright colors on Powershell

Fixes #9118
2017-10-11 11:23:27 -04:00
Hugh Willson
68fae209cd Replace Apollo references with Meteor 2017-10-11 06:37:01 -04:00
Thea Lamkin
e2352e4588 Create code-of-conduct.md
Based on Apollo Code of Conduct: https://github.com/apollographql/apollo/blob/master/CODE-OF-CONDUCT.md
2017-10-10 20:02:59 -07:00
Ben Newman
7315c7ea59 Regression test for #9185 (fixed by #9187). 2017-10-10 14:52:15 -04:00
Ben Newman
49db3bd0cc Merge branch 'devel' into release-1.6 2017-10-10 11:41:29 -04:00
Ben Newman
5a6cb704ad Bump minimongo package version to 1.3.3 to republish. 2017-10-10 11:37:27 -04:00
Hugh Willson
9d59fe4835 Adjust to use template literals instead of string concatenation 2017-10-10 11:34:12 -04:00
seke
25679cef8d Fix for https://github.com/meteor/meteor/issues/9167 2017-10-10 11:34:12 -04:00
Ben Newman
a3bba3a21d Bump accounts-password package version to 1.4.1 to republish. 2017-10-10 11:08:45 -04:00
Golfo Vasiliou
c5035f5e4b Changed ambiguous error message (#9161)
Fixes #9019
2017-10-10 11:07:32 -04:00
Ben Newman
40ecbb27f2 Bump package versions for 1.6-rc.6 release. release/METEOR@1.6-rc.6 2017-10-10 10:05:36 -04:00
Ben Newman
305a1e3942 Merge branch 'devel' into release-1.6 2017-10-10 10:02:00 -04:00
Ben Newman
8b319f11e9 Reinstate meteor debug help text, but recommend --inspect-brk. 2017-10-10 09:52:02 -04:00
Ben Newman
7485d50ff6 Support --inspect and --inspect-brk for all meteor test/run commands. (#9201)
The syntax of these flags is the same as the equivalent Node.js options:
https://nodejs.org/en/docs/inspector/#command-line-options

When no port value is provided, the default is 9229.

Two notable differences:

  * The flags affect the server process spawned by the parent build
    process, rather than affecting the build process itself.

  * The --inspect-brk flag causes the server process to pause just after
    server code has loaded but before it begins to execute. This timing is
    more useful than the Node.js --inspect-brk behavior, which is to pause
    on the first instruction executed by the process, since that is too
    early to set any useful breakpoints.

Implements https://github.com/meteor/meteor-feature-requests/issues/194.
2017-10-10 09:23:46 -04:00
Jesse Rosenberger
9e3945dc9a Add missing character to circle.yml configuration.
This was preventing the proper group name from being displayed on test
group "2", though the test was still working properly.

Refs: https://github.com/meteor/meteor/pull/9190 where it was spotted.
2017-10-10 10:23:17 +03:00
David Glasser
e4367acdf1 npm-mongo: use fork of mongodb-core for #8598 (#9200) 2017-10-09 21:22:25 -04:00
skirunman
8279f12377 Fix iOS icon and launch screen sizes (#9198) 2017-10-09 21:08:57 -04:00
David Glasser
008cb568ba npm-mongo: use fork of mongodb-core for #8598 (#9200) 2017-10-09 21:02:36 -04:00
Ben Newman
670fb6d247 Make --driver-package work like --extra-packages.
Now you can run `meteor test --driver-package dispatch:mocha-browser`
without first running `meteor add dispatch:mocha-browser`, yay!
2017-10-09 19:04:24 -04:00
Ben Newman
b5abf43616 Stop using file.imported to mark fake files in the ImportScanner.
Using a Symbol ensures compiler plugins can't mark files fake accidentally
(or maliciously) when calling inputFile.addJavaScript(options).
2017-10-09 16:45:16 -04:00
Ben Newman
7a57c5ccc2 Bump $BUNDLE_VERSION to 8.6.2 before rebuilding dev bundle. 2017-10-09 14:52:45 -04:00
Ben Newman
bc145acd77 Update internal meteor-babel to 7.0.0-beta.2-1.
cbd6bb5643
2017-10-09 14:51:25 -04:00
Ben Newman
0679e7a8bf Enable native file watching on Windows unless explicitly disabled.
Native file watching is notoriously unreliable on several Windows file
systems (e.g. NTFS, since network file systems have trouble supporting
change notifications).

However, disabling native file watching for all Windows developers was
probably a step too far, since it *could* work just fine, and we still
have the fs.watchFile-based safety net, which no longer hogs idle CPU
cycles for unchanged files.

You can explicitly disable native file watching and use polling instead by
setting METEOR_WATCH_FORCE_POLLING to a truthy value.

Should help with #9175.
2017-10-09 12:19:49 -04:00
Ben Newman
da9dac4bfc Continue polling changed files at the higher watch frequency.
Meteor attempts to use native file watchers to detect changes as soon as
possible, but we also employ an fs.watchFile-based safety net to detect
changes by polling, which adds reliability on platforms with poor (or
nonexistent) support for native file watching.

However, fs.watchFile tends to consume more idle CPU cycles when many
files are watched, so we use a relatively long (5000ms) polling interval
to watch files that have not yet been changed. After we detect the first
change to a file, we promote it to a much shorter (500ms) interval and
attempt to start a native file watcher.

Even if we were able to create a native file watcher using the pathwatcher
library, it may not fire notifications reliably on some file systems, so
this commit keeps polling changed files at the higher frequency, rather
than lowering the polling interval back to 5000ms.

The number of files the developer has changed by hand should never come
close to the total number of files watched by Meteor, so keeping them at
the elevated polling interval should pose no problem for idle CPU (#9175).
2017-10-09 12:19:15 -04:00
Ben Newman
7aeeaeb816 Fix typo in ImportScanner#_scanFile.
Introduced by 3faee05eed.

cc @cpury @JanMP
2017-10-09 09:48:29 -04:00
Ben Newman
0c7f4b89a7 Bump package versions for 1.6-rc.5 release. release/METEOR@1.6-rc.5 2017-10-08 20:04:53 -04:00
Ben Newman
b8ee80e1fc Remove target directory in files.rename to avoid Windows EPERM errors.
These errors are especially harmful because they cause files.rename to
fall back to copying rather than atomically renaming, which is both much
slower and not even remotely atomic.
2017-10-08 20:00:01 -04:00