Commit Graph

7944 Commits

Author SHA1 Message Date
Ben Newman
f39812bd4b Bump package versions for the official 1.4.2 release. 2016-10-25 10:20:21 -07:00
Ben Newman
b40df12129 Bump package versions for 1.4.2-rc.4 release. 2016-10-24 22:44:11 -07:00
Ben Newman
7bcc50c842 Add profiling for meteorInstall-based require calls.
The options.wrapRequire API is new in install@0.8.2.
2016-10-24 18:48:16 -07:00
Ben Newman
dbf8471c1f Bump package versions for 1.4.2-rc.3 release. 2016-10-23 18:17:51 -04:00
Ben Newman
38de7373f1 Remove version constraints from packages/accounts-password/package.js.
Version constraints are unnecessary when publishing a release, and tend to
complicate things when the constraints are out of date with packages that
are updated by the release.

https://github.com/meteor/meteor/issues/7951#issuecomment-255615050
2016-10-23 17:45:48 -04:00
Ben Newman
8e9896cfcf Include server startup timings in METEOR_PROFILE output.
Meteor 1.4.2 has been mostly focused on improving rebuild times, but what
ultimately matters is the time from changing a file to being able to make
requests against the restarted server, and any code that runs before
server startup should be considered part of that critical path.

If you have a lot of packages, and they do non-trivial work on startup,
this commit should give you much better insight into where time is spent.

Credit to @stubailo for pushing me to provide Meteor developers with
better profiling tools, and thanks to @veered for this specific idea.

Note: because tools/tool-env/profile.js is now loaded as-is by boot.js,
certain ECMAScript features are off-limits, e.g. ...rest params.
2016-10-23 16:36:23 -04:00
Ben Newman
548a288c61 Call Npm.require("meteor-babel") only when needed.
In practice, the non-isopacket version of meteor-babel is only used by the
shell-server package, so this saves ~200ms of reload time.
2016-10-22 21:14:39 -04:00
Ben Newman
b938e089e6 Bump package versions for 1.4.2-rc.2 release. 2016-10-21 22:20:34 -04:00
Ben Newman
0308e38d51 Merge branch 'release-1.4.1.3' into release-1.4.2 2016-10-21 22:03:54 -04:00
Ben Newman
f419899ce7 Bump package versions for the official 1.4.1.3 release. 2016-10-21 20:15:28 -04:00
Ben Newman
247fa7b8ae Bump package versions for 1.4.1.3-rc.1 release. 2016-10-21 12:38:09 -04:00
Ben Newman
c6975d8eb7 Upgrade mongodb npm package to version 2.2.11. 2016-10-21 12:28:34 -04:00
Ben Newman
dc91fee73f Remove version constraints from packages/accounts-base/package.js.
Version constraints are unnecessary when publishing a release, and tend to
complicate things when the constraints are out of date with packages that
are updated by the release.
2016-10-21 12:27:50 -04:00
Christian Klaussner
f9b0f2f60d Update links to MongoDB driver docs 2016-10-21 11:25:18 -04:00
Ben Newman
5d3e2bd884 Bump mongo package version to 1.1.12_5. 2016-10-21 11:12:54 -04:00
Ben Newman
0344f58b06 Set mongoOptions.server.reconnectTries = Infinity.
Setting mongoOptions.server.auto_reconnect was removed by #7880 via commit
0ffb9ac824, though it seems the Server
options still respect autoReconnect, even in version 2.2 of the driver:
http://mongodb.github.io/node-mongodb-native/2.2/api/Server.html

That said, having inspected the code of the `mongodb` package, I do not
believe this change is really critical, since the default value for
autoReconnect appears to be true.

More importantly, I can't find any support in the code of the `mongodb`
npm package or its dependencies for the claim that setting
mongoOptions.server.reconnectTries to 0 is the same as making it infinite,
so this commit sets it to Infinity.
2016-10-21 11:12:54 -04:00
Ben Newman
037e9b8820 Use npm-mongo@2.2.10_1 in mongo@1.1.12_4. 2016-10-21 11:12:54 -04:00
Ben Newman
ef4f547a94 Make npm-mongo package version match npm mongodb package. 2016-10-21 11:12:53 -04:00
Tom Coleman
554eb628eb Reconnect to mongo indefinitely. (#7880)
* Reconnect to mongo indefinitely.

A fix for https://github.com/meteor/meteor/issues/7822

It seems the driver now always autoReconnects, but only for 30s.

To get the old (sensible) behavior of endlessly reconnecting, we set `reconnectTries` to 0.

* Releasing an rc of mongo package
2016-10-21 11:12:53 -04:00
Ben Newman
9ff66d11c7 Ugrade the meteor-promise npm package to version 0.8.0.
Most notably, this update provides error stack traces that include context
from Promise.await calls and await expressions, so (for example) you can
tell where a certain yielding files.* method was originally called,
instead of only getting a useless native stack trace.
2016-10-20 17:51:03 -04:00
Ben Newman
0f7d725ebe Bump package versions for 1.4.1.3-rc.0 release. 2016-10-20 13:56:00 -04:00
Ben Newman
04056db28f Bump package versions for 1.4.2-rc.1 release. 2016-10-19 18:12:27 -04:00
Ben Newman
fec8303c21 Use Array#forEach in twitter_client.js. 2016-10-19 16:00:00 -04:00
Jesse Rosenberger
c67f782743 Support additional params on oAuth1 authorize URL
Using a the previously-supported ability to pass a function (versus a string) for an oAuth1 URL, this commit implements (and relocates) a function which safely applies whitelisted params to that URL.

This introduces a twitter_common.js file shared between server and client which indicates which Twitter-supported params are permitted on the authorize step.  The two params which Twitter supports right now are `force_login` and `screen_name`.  (See: https://dev.twitter.com/oauth/reference/get/oauth/authenticate)

This commit removes the non-functional implementation of `force_login` introduced by meteor/meteor#6987 and implements it via the aforementioned method.

As a precaution (and since neither `ecmascript` nor `es5-shim` are used by this package), I stuck with JS ES3.

Closes meteor/meteor#7584
2016-10-19 16:00:00 -04:00
dhrubins
3e1a449f5e Fix CSP2 script digests in browser policy (#7911). 2016-10-19 14:56:06 -04:00
Ramez Rafla
eef23a30b4 Adding gap: into CSP
In UIWebView on iOS10 we get CSP failure to load gap://ready, this resolves it on both simulator and device
2016-10-18 16:50:32 -04:00
Ben Newman
8142521610 Merge pull request #7935 from klaussner/mongodb-driver-links
Update links to MongoDB driver docs.
2016-10-18 16:49:37 -04:00
Christian Klaussner
a171938daf Update links to MongoDB driver docs 2016-10-18 22:31:45 +02:00
Ben Newman
ccd960eeb3 Bump package versions for 1.4.2-rc.0 release. 2016-10-18 14:32:13 -04:00
Ben Newman
1ac4bbaa84 Bump package versions for 1.4.2-beta.13 release. 2016-10-17 11:51:55 -04:00
Ben Newman
592e2d68d4 Merge branch 'devel' into release-1.4.2 2016-10-17 10:40:26 -04:00
Ben Newman
580e84d64a Merge pull request #7817 from alphanso/iss7794
Separate timeouts for expiration of password reset and enrollment.
2016-10-17 10:02:36 -04:00
Ben Newman
492021b8df Provide babel-runtime/helpers/defineProperty at runtime. 2016-10-16 16:41:14 -04:00
Ben Newman
dfa8c343ce Export checkHelper function from babel-runtime package. 2016-10-16 16:29:29 -04:00
Jesse Rosenberger
8de559a967 Change Facebook oAuth param from authType to auth_type
According to the Facebook docs:

https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow

The parameter should be `auth_type`, not `authType`.  A cursory look through their API history didn't show anything about it being changed, but I can confirm that using this feature does not work with `authType` in the current implementation.

Related meteor/docs#94
Related meteor/meteor#7584
Closes meteor/meteor#7078
2016-10-14 20:39:48 -04:00
Ben Newman
168351c472 Bump package versions for 1.4.2-beta.12 release. 2016-10-14 16:47:59 -04:00
Ben Newman
53304c487b Set extraFeatures.jscript on the server too for better caching.
The jscript transform is perfectly safe for server code, and relatively
cheap compared to the cost of having to compile every file for both the
client and the server, just because the set of plugins is different.
2016-10-14 14:49:26 -04:00
Ben Newman
f42ca04fdb Bump package versions for 1.4.2-beta.11 release. 2016-10-13 21:46:35 -04:00
Rishabh Singhal
5f0303699a Separate timeouts for expiration of password reset and enrollment 2016-10-12 16:40:44 +05:30
Ben Newman
6bb4bd739b Update the meteor-babel npm package to version 0.13.0. 2016-10-11 22:35:10 -04:00
Ben Newman
3dd94b120a Merge branch 'devel' into release-1.4.2 2016-10-11 21:23:07 -04:00
Ben Newman
9a85f0cbb3 Add package version constraints to observe-sequence package.js. 2016-10-11 21:21:43 -04:00
Ben Newman
fe143dd847 Merge pull request #7851 from rodrigopalhares/7850-observer-sequence_null_values
observe-sequence: Bug, array with null values. fixes #7850
2016-10-11 18:59:26 -04:00
Ben Newman
78bcad5196 Merge branch 'devel' into release-1.4.2 2016-10-08 15:35:51 -04:00
Ben Newman
0c324f3145 Bump mongo package version to 1.1.12_5. 2016-10-08 14:58:45 -04:00
Ben Newman
3ee0cd73e1 Set mongoOptions.server.reconnectTries = Infinity.
Setting mongoOptions.server.auto_reconnect was removed by #7880 via commit
0ffb9ac824, though it seems the Server
options still respect autoReconnect, even in version 2.2 of the driver:
http://mongodb.github.io/node-mongodb-native/2.2/api/Server.html

That said, having inspected the code of the `mongodb` package, I do not
believe this change is really critical, since the default value for
autoReconnect appears to be true.

More importantly, I can't find any support in the code of the `mongodb`
npm package or its dependencies for the claim that setting
mongoOptions.server.reconnectTries to 0 is the same as making it infinite,
so this commit sets it to Infinity.
2016-10-08 14:53:24 -04:00
Ben Newman
cc5bb86611 Use npm-mongo@2.2.10_1 in mongo@1.1.12_4. 2016-10-08 13:58:37 -04:00
Ben Newman
39046e4eb8 Make npm-mongo package version match npm mongodb package. 2016-10-08 13:58:37 -04:00
Ben Newman
2553958c38 Merge branch 'devel' into release-1.4.2 2016-10-07 19:30:30 -04:00
Ben Newman
68347cdb76 Bump standard-minifier-css version to 1.3.1.
Because I previously published a 1.2.3 version with the same code as
1.3.0, I have also published a 1.2.4 with the same code as 1.3.1, though
of course you should use the latest version (1.3.1) if possible.
2016-10-07 18:48:57 -04:00