Commit Graph

18676 Commits

Author SHA1 Message Date
Ben Newman
fb2290960c Bump package versions for 1.5-beta.14 release. release/METEOR@1.5-beta.14 2017-04-07 13:28:39 -04:00
Ben Newman
fc45372e7b Bump $BUNDLE_VERSION to 4.8.5 before rebuilding dev bundle. 2017-04-07 12:45:45 -04:00
Ben Newman
43d339d087 Merge branch 'devel' into release-1.5 2017-04-07 12:45:29 -04:00
Ben Newman
f96464f3d4 Add heading to History.md for Meteor 1.4.4. 2017-04-07 12:29:02 -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
Jesse Rosenberger
f285bffed8 Merge pull request #8544 from abernix/abernix/fix-windows-dev-bundle-extract-error
Detect dev_bundle download errors and fail appropriately on Windows.
2017-03-30 20:04:46 +03:00
Jesse Rosenberger
ab111e7800 Detect dev_bundle download errors and fail appropriately on Windows.
This is in an attempt to resolve a situation which could occur when the
extraction of the dev_bundle.tar fails with an EOF error, but the tool
continues as if the file was fine.  Ultimately the, error preference
set in the PS1 script is only observed in the case of PowerShell
ErrorLevel and not just an error condition encountered in a command.
2017-03-30 16:12:19 +03: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
Jesse Rosenberger
455bf5b6e0 Add TOOL_NODE_FLAGS support for Windows in the same way as Unix. (#8517)
In Unix we support adding `TOOL_NODE_FLAGS` when debugging the Meteor
tool itself, however Windows did not currently support it.  This should
add that support.  As this is a .bat file, I have every reason to
believe that this syntax should work on older versions of Windows as the
syntax of .bat files hasn't changed much.

Helps with meteor/meteor#8513.
2017-03-29 11:25:33 -04: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
Jesse Rosenberger
50d10aeb36 Fix bullet-point numbering on Development.md, part 2.
Follow-up to 326d17d241
2017-03-29 01:24:43 +03:00
Jesse Rosenberger
326d17d241 Fix bullet-point numbering on Development.md.
While I'm fairly sure that `0.` bullet points were always changed to correctly-ordered lists in the past on GitHub, however this no longer seems to be the case now and the first bullet-pointed number actually matters (the subsequent points do not and can be zeroes)
2017-03-29 01:22:58 +03:00
Ben Newman
b490d270f1 Bump package versions for 1.5-beta.13 release. release/METEOR@1.5-beta.13 2017-03-27 16:22:40 -04:00
Ben Newman
48255a38d6 Bump $BUNDLE_VERSION to 4.8.4 before rebuilding dev bundle. 2017-03-27 15:55:14 -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
10127cea1f Fix modules test app now that exports.__esModule is non-enumerable.
3973bbad7f
2017-03-25 12:00:18 -04: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. release/METEOR@1.4.3.3-rc.1 2017-03-22 16:02:53 -04:00
Jesse Rosenberger
8cc3233b19 Leave note for the next BUNDLE_VERSION bumper to avoid 4.7.19.
It's been used on `devel` via b145c7ed4e.

Normally this isn't a problem, but just to avoid issues, this reminder
should help.  Can be removed, of course.
2017-03-22 20:58:26 +02:00
Jesse Rosenberger
6b4a4ccca1 Aggressively prevent CircleCI from using the wrong cache.
https://discuss.circleci.com/t/git-submodule-url-isnt-playing-nice-with-the-cache/549/3
2017-03-22 20:35:59 +02:00
Jesse Rosenberger
6bbd432081 Be more understanding of Windows' filesystem limitations.
Presently, the renaming of directories that are in-use will fail on
Windows.  This is already compensated for when `process.platform` is
set to `win32`.  However, within BashOnWindows/WSL (Windows Subsystem
for Linux), `process.platform` is equal to `linux`, though the
underlying filesystem is still the same.

Microsoft has stated that it is unlikely that they will remove
`Microsoft` from the `os.release()` value so we check for that.
2017-03-22 20:35:43 +02:00
Jesse Rosenberger
b145c7ed4e Bump $BUNDLE_VERSION to 4.7.19 before rebuilding dev bundle. 2017-03-22 20:24:26 +02:00
Jesse Rosenberger
33567f8d9a Merge pull request #8500 from abernix/abernix/wsl-fs-fix
Be more understanding of Windows' filesystem limitations.
2017-03-22 20:16:51 +02:00
Jesse Rosenberger
78364d501d Update submodule to latest minifier-babili. 2017-03-22 20:02:48 +02:00
Jesse Rosenberger
b2f8b7ea09 Aggressively prevent CircleCI from using the wrong cache.
https://discuss.circleci.com/t/git-submodule-url-isnt-playing-nice-with-the-cache/549/3
2017-03-22 19:13:02 +02:00
Jesse Rosenberger
d9c3f80dbf Be more understanding of Windows' filesystem limitations.
Presently, the renaming of directories that are in-use will fail on
Windows.  This is already compensated for when `process.platform` is
set to `win32`.  However, within BashOnWindows/WSL (Windows Subsystem
for Linux), `process.platform` is equal to `linux`, though the
underlying filesystem is still the same.

Microsoft has stated that it is unlikely that they will remove
`Microsoft` from the `os.release()` value so we check for that.
2017-03-22 19:13:01 +02:00
Jeremy Shimko
20baddf7b7 Use fs.move() from fs-extra to fix EXDEV cross device error in docker builds. (#8491)
Use fs.move to fix EXDEV cross device error in docker builds.

Fixes #7852.
2017-03-22 12:54:07 -04:00
Jesse Rosenberger
41cef97664 Automatically trim DEPLOY_HOSTNAME of leading/trailing spaces. (#8508)
This simple fix prevents the disappointment of trying to deploy your app
but failing because there's a space on the end of the `DEPLOY_HOSTNAME`
environment variable.

`process.env` always contains string values and assigning a property on
`process.env` implicitly converts the value to a string so it should not
be necessary to check if `typeof` is a `string`.

Fixes Dev Experience.
2017-03-22 12:50:28 -04: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
d0f179b2f5 Merge pull request #8502 from hwillson/issue-6945
Updated the builder whitelist to allow "@" in filenames.
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
Jesse Rosenberger
6621a63025 Automatically trim DEPLOY_HOSTNAME of leading/trailing spaces. (#8508)
This simple fix prevents the disappointment of trying to deploy your app
but failing because there's a space on the end of the `DEPLOY_HOSTNAME`
environment variable.

`process.env` always contains string values and assigning a property on
`process.env` implicitly converts the value to a string so it should not
be necessary to check if `typeof` is a `string`.

Fixes Dev Experience.
2017-03-22 12:01:53 -04:00
Ben Newman
af4531a069 Merge pull request #8502 from hwillson/issue-6945
Updated the builder whitelist to allow "@" in filenames.
2017-03-22 11:57:42 -04:00