Commit Graph

22356 Commits

Author SHA1 Message Date
Jesse Rosenberger
ca9034147b Change some var constants to use const. 2017-07-10 12:42:04 -07:00
Jesse Rosenberger
bc044092dd Finish changing ProgessBarRenderer to an ES class. 2017-07-10 12:42:04 -07:00
Jesse Rosenberger
bf67d802fc Begin changing ProgressBarRenderer to an ES class. 2017-07-10 12:42:03 -07:00
Jesse Rosenberger
edeaa5814e Finish changing ProgessDisplayStatus to an ES class. 2017-07-10 12:42:02 -07:00
Jesse Rosenberger
95cdc19795 Begin changing ProgressDisplayStatus to an ES class. 2017-07-10 12:42:01 -07:00
Jesse Rosenberger
eafb26aac9 Finish changing StatusPoller to an ES class. 2017-07-10 12:42:01 -07:00
Jesse Rosenberger
bfed1ab7b5 Begin changing StatusPoller to an ES class. 2017-07-10 12:42:00 -07:00
Jesse Rosenberger
e077a71fed Change SpinnerRenderer into an ES class. 2017-07-10 12:41:59 -07:00
Jesse Rosenberger
cee5a3e5d6 Finish moving ProgressDisplayFull to an ES class. 2017-07-10 12:41:58 -07:00
Jesse Rosenberger
1187034bb9 Begin changing ProgressDisplayFull into a ES class. 2017-07-10 12:41:58 -07:00
Jesse Rosenberger
1b7b4cffbc Move the CARRIAGE_RETURN constant with the other constants. 2017-07-10 12:41:57 -07:00
Jesse Rosenberger
b01a2fe0be Change self to this in new Console class.
This also involved changing `function`s into arrow-functions, sometimes
for the sake of posterity.
2017-07-10 12:41:56 -07:00
Jesse Rosenberger
dc242340a8 Preserve the LEVEL_* static properties above the Console class.
Though they don't appear to actually be used anywhere by Meteor, it's
probably worth preserving them in case they are somehow exposed
elsewhere.  Static class properties would avoid this, but the TC39
proposal is still progressing.
2017-07-10 12:41:55 -07:00
Jesse Rosenberger
f757154c12 Begin changing Console to an ES class. 2017-07-10 12:41:54 -07:00
Jesse Rosenberger
774ac5fdba Change ConsoleOptions into a class. 2017-07-10 12:41:54 -07:00
Jesse Rosenberger
7fda52c681 Move LEVEL_CODE_* constants above where they are used. 2017-07-10 12:41:53 -07:00
Jesse Rosenberger
8e5ad19f17 Console#readLine into existing _.extend(Console.prototype, {...});. 2017-07-10 12:41:49 -07: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
Radosław Miernik
53b3e59b3e Removed underscore from minimongo. 2017-07-10 20:03:34 +02:00
Steven Hao
98b02f363f Boilerplate refactor (#8820)
* boilerplate refactor wip

* rename files

* make switching between old/new easier

* refactor and modernize boilerplate-generator

* add cordova template code

* delete old boilerplate-generator

* small style fixes

* address comments

* address review comments again

* remove boilerplate generated-by comment

* delete spacebars templates

* add boilerplate-generator-tests

* bump boilerplate-generator version

* dummy commit

* Revert "dummy commit"

This reverts commit 54fe867690.

* update tests

*  refactor parameter destructuring

* fix style

* modernize boilerplate generator a bit

* refactor boilerplate-generator

* fix web browser template

* refactor boilerplate-generator-tests

* rename files using hyphens

* Remove spaces after object-shorthand method names.

Per the comment in
  https://github.com/meteor/meteor/pull/8820#discussion_r123635284

Previously, only the `constructor` method was addressed and this expands
on that.

* Add some space for legibility between conditionals.
2017-07-10 10:56:37 -07:00
Ben Newman
80f629f0a5 Bump $BUNDLE_VERSION to 8.1.6 before rebuilding dev bundle. 2017-07-10 13:29:37 -04:00
Ben Newman
adade1de2b Upgrade Node to 8.1.3 and npm to 5.1.0. 2017-07-10 13:29:37 -04:00
Ben Newman
7ac2a5c229 Update various shrinkwraps to include integrity hashes. 2017-07-10 13:23:47 -04:00
Ben Newman
5146864012 Merge branch 'release-1.5.1' into release-1.6 2017-07-10 13:22:45 -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
Mitar
7cff1fa500 Make Minimongo cursor iterable. 2017-07-09 11:24:12 -07:00
Hugh Willson
6bde360b9c Added mention of how to use TINYTEST_FILTER to filter which tests are run. (#8865)
* Added mention of how to use TINYTEST_FILTER to control which tests are run.

* Add a "specific tests" header.
2017-07-03 12:34:58 +03:00
Steffen Prohaska
30ba90cb45 npm-mongo: Upgrade to npm mongo@2.2.29 to fix arbiter login attempts
Meteor 1.4.3.2 upgraded npm mongo to 2.2.24 in order to fix an issue
with MongoDB arbiter login attempts, see Meteor issue 8449 and Meteor
1.4.3.2 changelog.

But the MongoDB upstream fix was incomplete.

This commits upgrades npm mongo further to 2.2.29 in order to get the
fix for the related arbiter login issue NODE-981 on the MongoDB Jira,
which requires `mongo-core@>=2.1.10`, which requires `mongodb@>=2.2.26`;
see references below.

References:

 - Meteor issue 8449: <https://github.com/meteor/meteor/issues/8449>.
 - Meteor 1.4.3.2: <https://github.com/meteor/meteor/blob/devel/History.md#v1432-2017-03-14>
 - NODE-981 in MongoDB Jira: <https://jira.mongodb.org/browse/NODE-981>
 - mongodb-core 2.1.10 changelog: <https://github.com/christkv/mongodb-core/blob/2.0/HISTORY.md#2110-2017-04-18>,
 - mongodb 2.2.26 changelog: <https://github.com/mongodb/node-mongodb-native/blob/2.2/HISTORY.md#2226-2017-04-18>.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2017-07-02 17:50:09 +02:00
Ben Newman
662f889b28 Don't modify boilerplate.baseData when adding extraData.
This is a bug that will be fixed by @stevenhao's boilerplate-generator
refactoring (#8820), but I need it fixed now :)
2017-06-30 13:13:49 -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
684ac9c79e Add History.md entry for #8858. 2017-06-30 11:43:45 +03:00
Jesse Rosenberger
6ab936af81 Merge branch 'master' into devel 2017-06-30 11:35:54 +03: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
eee519ad58 Reduce default TIMEOUT_SCALE_FACTOR to hasten long test failures. 2017-06-28 13:32:12 -04:00
Ben Newman
38b7c051d1 Bump package versions for 1.6-beta.4 release. release/METEOR@1.6-beta.4 2017-06-28 11:37:27 -04:00
Ben Newman
9ce9563b89 Bump minor versions of packages dependent on accounts-password. 2017-06-28 10:08:33 -04:00