Commit Graph

8371 Commits

Author SHA1 Message Date
Ben Newman
fb2290960c Bump package versions for 1.5-beta.14 release. 2017-04-07 13:28:39 -04:00
Ben Newman
43d339d087 Merge branch 'devel' into release-1.5 2017-04-07 12:45:29 -04:00
Ben Newman
ac5131d1d7 Replace module.importSync with module.import in older Meteor versions.
Also bumping the ecmascript version because it registers a compiler plugin
that uses babel-compiler.

Fixes #8572, albeit somewhat hackily.
2017-04-07 11:53:46 -04:00
Jesse Rosenberger
948ec2b05f Merge branch 'master' into devel 2017-04-07 18:50:17 +03:00
Max Nowack
759671dc6c add function to expose tracker inFlush variable (#8565) 2017-04-05 11:54:40 -04:00
ScaY
52fb594659 test(accounts-password): tests email verification for same email (#8555)
Test that email verification is case-insensitive.
2017-04-05 11:41:28 -04:00
mutdmour
9bcb3a47b6 Store expiresAt for all OAuth providers (#8547).
Fixes #576.
2017-04-05 11:33:05 -04:00
Hugh Willson
f4e41cbf1b Adjust Mongo.Collection._rewriteSelector to allow a custom fallback _id. (#8525)
* Adjust Mongo.Collection._rewriteSelector to allow a custom fallback _id.

* Adjusted insertedId fallback handling to include the options.insertedId.

* Adjusted _rewriteSelector to use an options object for fallbackId.
2017-04-05 11:25:09 -04:00
Ben Newman
337a61c426 Disable dynamic module fetching in Cordova apps.
Instead of fetching a bundle of JavaScript from the server, Cordova apps
include the complete bundle in the installed app, so there's no compelling
reason to allow dynamic module fetching.

The dynamic import(...) function will still work on Cordova, of course.
It will just never have to fetch anything from the server.
2017-04-04 19:09:26 -04:00
vix3
26544d696f Fix typo in comment (#8540)
Fixed small word typo in comments (meteor/packages/tracker/tracker.js).
2017-03-29 19:44:31 -04:00
Jesse Rosenberger
3a9bd40c81 Merge pull request #8520 from dhrubins/accounts-password-ambiguous-errors
Add ambiguous error messages option to Accounts config
2017-03-29 23:49:49 +03:00
Jesse Rosenberger
ac4decbdae Maintain braces on if conditionals + other style changes.
This file leaves a lot to be desired, but strong preference to not
remove existing curly-braces on if-statements.

Also removed trailing whitespaces and slight indentation changes
following the changes in meteor/meteor#8520.
2017-03-29 21:57:27 +03:00
Gabriel Engel
43a7e174d1 Remove ES6 from ddp-client (#8516)
Follow-up to 05be2c784c which added new ES6 syntax, but failed to add `ecmascript`.

* Remove ecmascript Object function shorthand notation.
   as the `rate-limit` package doesn't currently use `ecmacsript` and using it for just this one instance of ES6 isn't worth it.
* Remove `ecmascript` from `rate-limit` as it is now unused.
* Bump `rate-limit` version in preparation for publishing.
Fixes #8515
2017-03-29 18:30:11 +03:00
mutdmour
1f8314348c [fix #8218] cleaning up reset tokens also cleans up enroll tokens (#8474)
* solved issue 8218 with expireresettoken removing enroll tokens

* style fix

* tests fix

* solved issue 8218 with expireresettoken removing enroll tokens

* style fix
2017-03-29 18:21:14 +03:00
Ben Newman
b490d270f1 Bump package versions for 1.5-beta.13 release. 2017-03-27 16:22:40 -04:00
Ben Newman
5cf603ce82 Merge branch 'release-1.4.3.x' into release-1.5 2017-03-27 15:37:11 -04:00
Ben Newman
0bc4e2e804 Make sure Module.prototype.import === M.p.importSync for now.
The latest version of Reify generates module.importSync calls instead of
module.import calls, but we're not using module.import for anything else
(yet), so we might as well handle older generated code gracefully.

https://github.com/benjamn/reify/pull/85
https://github.com/benjamn/reify/issues/84
2017-03-27 12:34:34 -04:00
Ben Newman
0d657ed24a Use UglifyJS when possible, but fall back to Babel.minify.
This gives us all the benefits of @sethmurphy18's great work without the
additional performance hit of using Babili for everything.

With this commit:

  % meteor create min-test
  % cd min-test
  % time meteor build ../min-build
  meteor build ../min-build  39.26s user 5.49s system 112% cpu 39.647 total

Without this commit:

  meteor build ../min-build  59.28s user 5.23s system 107% cpu 1:00.08 total

Keep in mind this is the best-case scenario for Babili (a very small app).
Larger apps take much longer for Babili to minify.

cc @abernix @glasser @sethmurphy18
2017-03-27 10:02:38 -04:00
Dan Rubins
9c688d1bc6 Consolidate error handling
Per @hwillson’s comments
2017-03-26 12:40:58 -07:00
Dan Rubins
e1099dad19 Add ambiguous error messages option to Accounts
Add boolean option 'ambiguousErrorMessages' to Accounts config that sends ambiguous error messages to the client in order to mitigate user enumeration. User enumeration still possible via inference upon registration failure, but at least we’re not being as explicit about the failures.
2017-03-25 14:39:29 -07:00
Ben Newman
0eb52a1fd8 Upgrade meteor-babel to v0.19.1 and reify to v0.6.6. 2017-03-25 11:12:52 -04:00
Ben Newman
25a89b5887 Revamp .babelrc processing.
Key changes:

  1. Custom Babel plugins from .babelrc files (or "babel" sections of
     package.json files) are now treated as plugins rather than presets.

  2. Nested presets and plugins are now resolved, whereas previously only
     the top-level "plugins" and "presets" properties were examined.
2017-03-25 10:31:40 -04:00
Ben Newman
d03b352bca Convert packages/ddp-client to use ecmascript. 2017-03-24 14:24:41 +02:00
Ben Newman
5ffccdc356 Decompose requireWithPrefix helper function. 2017-03-22 18:14:00 -04:00
Ben Newman
e8b5ae6730 Convert packages/ddp-client to use ecmascript. 2017-03-22 16:45:55 -04:00
Ben Newman
91ac26b4d7 Bump package versions for 1.4.3.3-rc.1 release. 2017-03-22 16:02:53 -04:00
Jesse Rosenberger
78364d501d Update submodule to latest minifier-babili. 2017-03-22 20:02:48 +02:00
Ahmed Akram
b54ec698c6 Fix #8457 by filtering exceptions when 'noRetry' flag is set. (#8496) 2017-03-22 12:50:28 -04:00
Ben Newman
ba635df14d Rebase packages/non-core/blaze submodule onto latest master. 2017-03-22 12:50:27 -04:00
Ahmed Akram
b59513540e Fix #8457 by filtering exceptions when 'noRetry' flag is set. (#8496) 2017-03-22 11:47:49 -04:00
Erik Demaine
fe380e3efc Upgrade to mailcomposer@4 and smtp-connection@2. Fix #8425 (#8495)
* Switch from mailcomposer 0.1.15 -> 4.0.1 (latest, still MIT license).
* Switch from simplesmtp (which only supports mailcomposer 0.1)
  to smtp-connection (which supports any mail composer).
* Use smtp-connection@2 (instead of latest) which shares
  nodemailer-shared codebase with mailcomposer 4.0.1.
* Add test for long header lines (the original bug being fixed here)
* Add extra test for HTML + text messages
* Document some extra options arguments supported by new mailcomposer
2017-03-22 11:31:54 -04:00
Phuc Nguyen
7949e90ea6 Make sure manifest.json contains AUTOUPDATE_VERSION (if specified) (#8480)
Fixes https://github.com/meteor/meteor/issues/8479
2017-03-22 11:16:52 -04:00
Ben Newman
a6061bf4c7 Bump package versions for 1.4.3.3-rc.0 release. 2017-03-21 15:55:23 -04:00
Ben Newman
9a057f4e51 Upgrade meteor-babel to v0.18.2 and reify to v0.5.7. 2017-03-21 15:23:03 -04:00
Ben Newman
59fcf8d94d Revert "Upgrade the reify npm package to version 0.5.6."
This reverts commit 624187a23c.
2017-03-20 19:55:53 -04:00
Ben Newman
624187a23c Upgrade the reify npm package to version 0.5.6. 2017-03-20 11:10:08 -04:00
Ben Newman
e972fa3eb1 Bump meteor-babel to v0.18.1 to fix strict minification errors. 2017-03-17 21:26:15 -04:00
Ben Newman
6842ec9c8a Bump meteor-babel to v0.18.1 to fix strict minification errors. 2017-03-17 21:12:29 -04:00
Ben Newman
7d770c1dda Bump package versions for 1.5-beta.12 release. 2017-03-17 19:58:30 -04:00
Ben Newman
10ded86338 Bump modules package version to 0.8.1-beta.4.
The 0.8.0 version line was colliding with release-1.5, causing the modules
package not to be published during the release-1.4.3.x release process,
similar to what was happening with the ecmascript package:
https://github.com/meteor/meteor/issues/8423#issuecomment-287332131
2017-03-17 19:15:45 -04:00
Ben Newman
953e9a4e2d Merge branch 'release-1.4.3.x' into release-1.5 2017-03-17 19:13:27 -04:00
Ben Newman
5ab626cead Bump package versions for 1.4.3.3-beta.4 release. 2017-03-17 18:42:07 -04:00
Ben Newman
c8d69b2717 Bump ecmascript package version to 0.7.1-beta.3.
The 0.7.0 version line was colliding with release-1.4.3.x, causing
ecmascript not to be published during that release process:
https://github.com/meteor/meteor/issues/8423#issuecomment-287332131
2017-03-17 18:40:23 -04:00
Ben Newman
69cf204f88 Bump packages/ddp-server version to 1.3.14-beta.3. 2017-03-17 18:39:58 -04:00
Ben Newman
029bd95832 Update packages/non-code/blaze submodule to latest master. 2017-03-16 18:59:57 -04:00
Ben Newman
b8513774cb Bump package versions for 1.4.3.3-beta.3 release. 2017-03-16 18:57:40 -04:00
Ben Newman
6d11b05803 Rebase packages/non-core/blaze submodule against master.
This will include https://github.com/meteor/blaze/pull/243.
2017-03-16 18:57:32 -04:00
Ben Newman
718414d388 Reinstate @abernix's revert of Blaze HTML5 attribute tests.
These changes can be found on the minifier-babili branch:
https://github.com/meteor/blaze/tree/minifier-babili
2017-03-16 18:29:43 -04:00
Ben Newman
0cbd25111d Implement Promise-returning server-side Meteor.{call,apply}Async methods.
This is a partial revival of my old #5005 pull request. While we never
came up with a good idiom for Promise-based method stubs on the client,
the server-side changes in this commit should fix #8367.
2017-03-16 18:23:45 -04:00
Ben Newman
046b3f0e92 Bump package versions for 1.4.3.3-beta.2 release. 2017-03-16 17:40:44 -04:00