Commit Graph

19142 Commits

Author SHA1 Message Date
Hugh Willson
3fd393764b Bump mongo version to replace currently broken 1.1.20 version.
https://github.com/meteor/meteor/pull/8931
cbeba459ab (commitcomment-23208660)
2017-07-21 13:43:18 +03:00
Jesse Rosenberger
55cb31a275 Bump package version of mongo in preparation for publishing. 2017-07-21 13:43:17 +03:00
Jesse Rosenberger
6e0e4211b4 Un-pin version of npm-mongo used in mongo package. 2017-07-21 13:43:16 +03:00
Jesse Rosenberger
8fe5bdf99b Merge pull request #8870 from sprohaska/p/mongodb-arbiter-login
npm-mongo: Upgrade to npm mongo@2.2.29 to fix arbiter login attempts
2017-07-21 13:43:12 +03:00
Ben Newman
25f003d0bc Throttle requestGarbageCollection to once per 500ms.
With Meteor 1.6 / Node 8, I noticed _buildLocalPackages taking multiple
seconds on initial server startup and restart, and the problem seems to be
that we call the global.gc function too often. This wasn't a problem in
previous versions of Node, as far as I know, but it makes sense to heed
the comment in tools/utils/gc.js, now that it matters.
2017-07-13 20:10:37 -04:00
Ben Newman
46fefdefc5 Allow programmatic garbage collection via gc(). 2017-07-13 20:10:37 -04:00
Ben Newman
bfc8a60b8c Merge pull request #8788 from meteor/release-1.5.1
Release 1.5.1
2017-07-12 18:33:31 -04:00
Ben Newman
50a630318e Bump package versions for the official 1.5.1 release. release/METEOR@1.5.1 2017-07-12 16:07:33 -04:00
Ben Newman
90c982baa6 Add the webapp@1.3.17 constraint back to server-render.
Previously: 3a1f446105
2017-07-12 16:04:57 -04:00
Ben Newman
94073ec513 Update History.md with final notes for Meteor 1.5.1. 2017-07-12 16:04:20 -04:00
Rob Fallows
7d2416435b (re)fixes #8879 Build phase command line output jumps 2017-07-12 14:43:45 -04:00
Ben Newman
3b171b1cf8 Merge branch 'master' into release-1.5.1 2017-07-11 21:48:33 -04:00
Ben Newman
68f7e25f49 Bump package versions for 1.5.1-rc.5 release. release/METEOR@1.5.1-rc.5 2017-07-11 21:18:23 -04:00
Ben Newman
242aaed6bd Bump $BUNDLE_VERSION to 4.8.21 before rebuilding dev bundle. 2017-07-11 21:06:21 -04:00
Ben Newman
afbe59dafa Upgrade Node to version 4.8.4.
https://nodejs.org/en/blog/release/v4.8.4/

Fixes #8896.
2017-07-11 21:05:58 -04:00
Ben Newman
692602ac46 Set METEOR_WATCH_PRIORITIZE_CHANGED to "false" in "update during run" self-test. 2017-07-10 22:11:33 -04:00
Ben Newman
a5fe404876 Add additional timeouts to "update during run" self-test. 2017-07-10 15:22:51 -04:00
Ben Newman
eb1284e06c Reduce default TIMEOUT_SCALE_FACTOR to hasten long test failures. 2017-07-10 15:22:39 -04:00
Ben Newman
fdf17e01eb Bump package versions for 1.5.1-rc.4 release. release/METEOR@1.5.1-rc.4 2017-07-10 12:52:38 -04:00
Ben Newman
82b0419035 Mention lazy prioritized file watching in History.md. 2017-07-10 12:47:48 -04:00
Ben Newman
86eedd4bc6 Make METEOR_WATCH_PRIORITIZE_CHANGED opt-out instead of opt-in.
This restores the behavior of 8c70716954 by
default, with the option of disabling the prioritized file watching system
by setting METEOR_WATCH_PRIORITIZE_CHANGED explicitly to "false".

The self-tests where the environment variable is explicitly set form a
nice to-do list of tests that should be improved to be more robust to cope
with differences in file watcher timing.

Helps with #8648 and similar issues.
2017-07-10 12:31:11 -04:00
Ben Newman
4835418695 Bump $BUNDLE_VERSION to 4.8.20 before rebuilding dev bundle. 2017-07-10 12:26:12 -04:00
Ben Newman
c90801c24e Upgrade meteor-babel to version 0.22.0. 2017-07-10 12:26:11 -04:00
Ben Newman
2b79dc7cd1 Bump boilerplate-generator package version to 1.1.1.
This version includes a01be34618.
2017-06-30 13:08:36 -04:00
Ben Newman
4051780fc1 Bump package versions for 1.5.1-rc.3 release. release/METEOR@1.5.1-rc.3 2017-06-30 11:43:14 -04:00
Ben Newman
54c4dbcbf7 Require opting into the behavior introduced by the previous commit.
Although I think 8c70716954 is a good idea
in practice, it altered the timing of self-tests enough to cause a number
of failures, so for now that behavior will be gated behind the environment
variable METEOR_WATCH_PRIORITIZE_CHANGED.
2017-06-30 11:41:00 -04:00
Ben Newman
8c70716954 Use native file watchers only to watch recently changed files.
This drastically reduces the number of open file descriptors by not
preemptively acquiring a file descriptor for every watched file.

The downside is that the first time you edit a particular file, you may
have to wait up to DEFAULT_POLLING_INTERVAL milliseconds before Meteor
notices the change. The upside is that changes will be detected
instantaneously for that file in the future, even after restart.

If holding open too many file descriptors is indeed a contributing factor
to issues such as #8648, then this change should go a long way towards
mitigating those problems.

cc @abernix @hwillson
2017-06-30 10:24:11 -04:00
Ben Newman
e86600b52b Rename "watchers" to "entries" where appropriate in safe-watcher.js. 2017-06-30 10:06:19 -04:00
Jesse Rosenberger
d97c916c19 Merge pull request #8858 from hasantayyar/patch-1
Update Facebook api version in loginUrl
2017-06-30 11:33:58 +03:00
Jesse Rosenberger
384e3a5d94 Bump accounts-facebook version in preparation for publishing.
As a required bump for `facebook-oauth` dependency bump in
6f92ae9838b19914016e8c77a976d006279fc0b9 for
https://github.com/meteor/meteor/pull/8858.
2017-06-30 10:54:53 +03:00
Jesse Rosenberger
d72c55f0a2 Bump facebook-oauth version in preparation for publishing.
For https://github.com/meteor/meteor/pull/8858.
2017-06-30 10:54:50 +03:00
Ben Newman
e0565d5d16 Bump package versions for 1.5.1-rc.2 release. release/METEOR@1.5.1-rc.2 2017-06-29 16:21:11 -04:00
Ben Newman
fb73388ce3 Make server-render API more flexible and isomorph-ish.
Render callbacks can now inject HTML content into multiple different
elements, and may also append content to the <head> or <body> elements, on
both the client and the server.

This new API was inspired by trying to use the styled-components npm
package on the server, which involves not only rendering and injecting
static HTML somewhere in the <body>, but also appending the resulting
<style> tag(s) into the <head>:

  import { onPageLoad } from "meteor/server-render";
  import { renderToString } from "react-dom/server";
  import { ServerStyleSheet } from "styled-components";

  onPageLoad(sink => {
    const sheet = new ServerStyleSheet();
    const html = renderToString(sheet.collectStyles(
      <App location={sink.request.url} />
    ));

    sink.renderIntoElementById("app", html);
    sink.appendToHead(sheet.getStyleTags());
  });

Note that the server-render package now exports an onPageLoad function,
rather than the old renderIntoElementById function. The functionality of
renderIntoElementById is now exposed by the {Client,Server}Sink API.

I say the client-side version of this API is 'isomorphish' to the
server-side version, because ClientSink methods can accept DOM nodes in
addition to raw HTML strings, whereas DOM nodes don't really make sense on
the server.
2017-06-29 15:08:32 -04:00
Hasan Tayyar BEŞİK
3096dac5b2 Update Facebook api version in loginUrl
The most recent version of the API is Version 2.9, which was introduced on April 18th, 2017 https://developers.facebook.com/docs/apps/changelog
2017-06-29 10:31:25 +02:00
Ben Newman
576641658c Bump package versions for 1.5.1-rc.1 release. release/METEOR@1.5.1-rc.1 2017-06-27 20:06:58 -04:00
Ben Newman
0ad123db5b Bump accounts-password minor (not major) version.
Previously: 4be0fbd594
2017-06-27 16:59:40 -04:00
Ben Newman
fe3284644c Fix typo in webapp_server error handler. 2017-06-27 13:32:54 -04:00
Ben Newman
02b4b6b2b7 Bump package versions for 1.5.1-rc.0 release. release/METEOR@1.5.1-rc.0 2017-06-27 11:13:17 -04:00
Ben Newman
4e8917db98 Bump shell-server package version to 0.2.4. 2017-06-27 11:12:48 -04:00
Ben Newman
ac2595ad92 Merge branch 'devel' into release-1.5.1 2017-06-27 09:36:42 -04:00
Antonio Tapiador del Dujo
0b1a1ef59f Make require and module visible for meteor shell scripts 2017-06-27 09:31:43 -04:00
Antonio Tapiador del Dujo
2bcfb073c4 Remove parentheses wrapper of evaluateAndExit commmand
The prevented to run certain commands in scripts,
like `import { Foo } from './bar'`

See https://github.com/meteor/meteor/issues/8823
2017-06-27 09:31:43 -04:00
Ben Newman
fd400434b4 Bump package versions for 1.5.1-beta.5 release. release/METEOR@1.5.1-beta.5 2017-06-26 19:26:00 -04:00
Ben Newman
3a1f446105 Remove webapp version constraint for now.
The server-render package requires webapp@1.3.17 or later, but using a
non-prerelease version contraint for a package involved in the release
(i.e., webapp) is tricky during the prerelease phase, since the -beta.n
version is strictly enforced.
2017-06-26 19:25:56 -04:00
Ben Newman
d411229206 Merge branch 'devel' into release-1.5.1 2017-06-26 19:07:05 -04:00
Ben Newman
395e43258b Go back to defining the main function inside runWebAppServer.
This should fix at least some of the recent Circle CI test failures.
2017-06-26 19:05:18 -04:00
Ben Newman
a4ba6bd5cd Mention the server-render package prominently in History.md. 2017-06-26 16:02:23 -04:00
Ben Newman
cf3c8270c6 Display PhantomJS stderr after tests finish, if not empty string. 2017-06-26 15:29:25 -04:00
Ben Newman
49f566d765 Implement a generic server-render package. 2017-06-26 14:52:29 -04:00
Ben Newman
44fd232489 Allow boilerplate data callbacks to return promises.
https://github.com/meteor/meteor/pull/8841#issuecomment-310848373
2017-06-26 14:52:29 -04:00