Commit Graph

7556 Commits

Author SHA1 Message Date
Ben Newman
49a60f155b Support .babelrc presets and plugins.
In addition to package.json files with "babel" sections, BabelCompiler now
supports .babelrc files, though in both cases only the "presets" and
"plugins" fields are respected. If a .babelrc file is found, package.json
files are ignored.

Additional presets and plugins are now *prepended* to the original
babelOptions.{presets,plugins} lists, so that the custom plugins have a
chance to handle syntax differently than babel-preset-meteor would.

The inputFile.getPackageJson method has been replaced by a more general
method, inputFile.findControlFile.

Fixes #6351.
2016-05-20 12:59:08 -04:00
Ben Newman
303df5351d Merge branch 'devel' into release-1.3.3 2016-05-19 18:34:20 -04:00
Ben Newman
7c208b355b Continue using Babel's CommonJS modules compiler for packages.
Switching immediately to module.import and module.export for package code
would make it difficult for package authors to use Meteor 1.3.3 to publish
packages that still work in apps using older versions of Meteor. There's
nothing wrong with compiling import/export statements to module.import and
module.export in application code, however, because apps only need to work
with one version of Meteor.
2016-05-19 17:48:39 -04:00
Ben Newman
9fa732d588 Upgrade meteor-babel to v0.10.2.
Among other general improvements, the installed node_modules directory has
been reduced in size from 500MB+ to 30MB.
2016-05-19 17:04:10 -04:00
Ben Newman
70f9dee8f1 Make require.resolve work for built-in modules on the server. 2016-05-19 17:04:09 -04:00
Ben Newman
218a4432b1 Support module.import(id, setters) and module.export(id, getters). 2016-05-19 17:04:09 -04:00
Tom Coleman
2c23780657 Merge pull request #6916 from AlexanderS/fix/email/date-header
Insert default date header into emails
2016-05-19 11:01:52 -07:00
Tom Coleman
bb551b3192 Return a correct matching object from matchingDocument in the $eq case
For #4235. The previous version worked for most simple cases but was not actually correct. The idea is this function returns a "prototypical" document that can be tested by the oplog query -- this was returning `true` which tended to match but wasn't actually right.
2016-05-18 16:47:39 -07:00
Tom Coleman
0dd8e5d8ac Merge branch 'eq-operator' of https://github.com/ryneeverett/meteor into merge-4235 2016-05-18 16:41:47 -07:00
Tom Coleman
59d61cd44e Fix collection creation tests to pass when they re-run
cc @aldeed -- using test.id when you need a unique thing is the way to go.
2016-05-18 16:39:17 -07:00
Ben Newman
7c63a8e704 Allow custom Babel presets and plugins via package.json.
When the babel-compiler package is processing files, it will now read
their package.json files looking for a "babel" section with "presets" or
"plugins" fields. If found, these presets or plugins will be appended to
the existing babelOptions.presets or babelOptions.plugins arrays.

Note that no other Babel options are currently supported, and the
"babel-preset-meteor" preset cannot be removed, though additional presets
and/or plugins can be added to it. This is by design: Meteor cannot
support your configuration it uses babel-preset-meteor, at least.

The preset and/or plugin modules listed in package.json must be installed
locally somewhere such that the given file can import them. If they are
top-level identifiers, they will be prefixed with "babel-plugin-" or
"babel-preset-", the same as Babel does it. Otherwise they will be
required as-is, so that you can implement your own Babel plugins locally,
rather than always using plugins installed from npm.

See the included tests for a concrete example.

Fixes #6351.
2016-05-18 16:37:38 -04:00
Sashko Stubailo
65957b1713 Make setDefault compatible with object type argument (#7021) 2016-05-17 16:00:42 -07:00
Tom Coleman
3546da6105 Merge pull request #7066 from gsuess/devel
Minimongo: Allow `_id` in `$setOnInsert`.
2016-05-17 18:46:07 -04:00
Eric Dobbertin
2ddf14575a Allow new Mongo.Collection to be called multiple times for the same collection name
- No error is thrown when constructing a Mongo.Collection twice for the same name if _suppressSameNameError option is true
- If mutation methods were already created for a named collection, we skip them and do not throw an error
- Mongo.Collection constructor takes a new option, defineMutationMethods, which can be set to false to skip creating the default mutation methods
- _defineMutationMethods function performance is slightly improved by returning earlier if there is no need to loop through method types
2016-05-17 09:59:41 -05:00
Ben Newman
355e850829 Avoid more uses of fs.exists and fs.existsSync.
Part of #6921.
2016-05-16 18:21:13 -04:00
Ben Newman
747d4e0451 Upgrade meteor-{promise,babel} and regenerator-runtime.
TODO Remember to bump $BUNDLE_VERSION before the next release.
2016-05-16 18:21:11 -04:00
Ben Newman
3d8e5e31c9 Upgrade meteor-promise to 0.7.1.
Note that this may be a breaking change for server-side code that uses
Promise.denodeify, Promise.nodeify, Function.prototype.async, or
Function.prototype.asyncApply, since those APIs have been removed for the
sake of simplicity.
2016-05-16 18:21:10 -04:00
Jesse Rosenberger
796d8bbd66 Try to make the test more clear and use ES6 2016-05-16 18:21:10 -04:00
Jesse Rosenberger
ef2469a54d Added ecmascript and changed Npm.require to import 2016-05-16 18:21:10 -04:00
Jesse Rosenberger
32a8a707b8 DDP Buffering Tests for Meteor 1.3.3
This is an adaptation of @tmeasday's 74230beba8 test that he created for meteor/meteor#5680.  Due to occasional failures, it now uses sinon's `lolex` npm library to allow us to control the setTimeout/setInterval within the test itself, providing for tick-accurate testing. Also nifty because it allows the test to finish in less time than it actually takes.
2016-05-16 18:21:09 -04:00
Ben Newman
51c84d67fe Re-merge pull request #5680 from mitar/batch-process-updates.
This reverts commit 00929e8751.
2016-05-16 18:21:08 -04:00
gsuess
9b09d3bad4 Minimongo: Allow _id in $setOnInsert. 2016-05-16 21:48:23 +02:00
Tom Coleman
bf1332d47c Merge pull request #7039 from abernix/issue-7038
[tests] Change destination IP for http error test to something more invalid
2016-05-12 15:26:50 -07:00
Jesse Rosenberger
d7472226f5 [tests] Change destination IP for http test to something more invalid
Previously 0.0.0.0 was used, but that _can_ refer to the local machine and was causing problems when the test was run on a machine that had something (e.g. Apache, etc.) listening on 0.0.0.0:80.

Fixes meteor/meteor#7038
2016-05-12 15:21:37 +03:00
Dean Radcliffe
aa2fedc46d Implements Tracker.Computation#flush, and #run 2016-05-11 19:53:11 -05:00
Zoltan Olah
377acdb792 Merge pull request #6757 from ocdtrekkie/update-google-api-instructions
Update Google Client ID instructions
2016-05-11 16:12:11 -07:00
Ben Newman
c1cd2883fc Merge pull request #6987 from nuvipannu/twitter-force-login
Handle force_login parameter in Twitter package.
2016-05-11 15:48:15 -04:00
Nuvi
3c03fae147 Encode the authType parameter. 2016-05-11 10:21:20 +03:00
Nuvi
3d3c7edc6d Handle the authentication type when using Facebook login
Allow using authType in Facebook login
Facebook API Docs: https://developers.facebook.com/docs/facebook-login/reauthentication
2016-05-11 10:21:20 +03:00
Nuvi
001a3f3128 Handle force_login parameter in Twitter package
Adding support for force_login:
https://dev.twitter.com/oauth/reference/get/oauth/authenticate ❇️
2016-05-11 10:21:05 +03:00
Alexander Sulfrian
70b6898af9 Insert default date header into emails
This will insert a default date header into all emails, if you do not
specify such a header by your self. This way it will work for the emails
send by accounts-password and all emails from user code. So this will
fix #3940.
2016-05-11 01:32:31 +02:00
Jacob Weisz
2438f90886 Update Google Client ID instructions
The Google API Manager has changed it's interface since this was last updated. I've corrected the instructions with as little change as possible to accurately describe the current workflow.
2016-05-10 18:28:08 -05:00
Tom Coleman
2961030112 Merge pull request #6981 from meteor/fix-selftest-errors
Use longjohn to repair stacktraces on self-test
2016-05-06 16:50:19 -07:00
Ben Newman
a499c4abc3 Allow .styl files in imports/ directories to be imported.
Analogous to cd8bc10b1d, which implemented
the same change in logic for .less files.
2016-05-06 13:05:46 -04:00
Wexpo Lyu
29bdb8300d Don't reminify *.min.js 2016-05-06 15:23:54 +08:00
Tom Coleman
48cc1078a4 Merge pull request #6983 from mitar/patch-29
Typo
2016-05-05 15:23:00 -07:00
skirunman
555822730e Meteor no longer provides jquery history or layout (#6868) 2016-05-04 23:18:10 -07:00
Tom Coleman
0857771192 Fixed failing livedata test 2016-05-03 14:12:55 -07:00
Tom Coleman
70209d91ab Fix issue with noRetry in docs 2016-05-03 09:40:27 -07:00
Ben Newman
4e81417281 Bump meteor-tool version for 1.3.2.4 patch release. 2016-04-20 14:17:56 -04:00
Ben Newman
e2cbda30b0 Add version suffixes for 1.3.2.3 patch release. 2016-04-20 09:16:17 -04:00
Ben Newman
00929e8751 Revert "Merge pull request #5680 from mitar/batch-process-updates"
This reverts commit a06ff81de5, reversing
changes made to c5e7de42f6.

Today I learned you can revert an entire merge (not just the merge commit)
by doing `git revert -m n <merge commit hash>`, where `n` is the index of
the parent commit of the merge commit that you want to keep. In this case
the command was:

  git revert -m 1 a06ff81de5
2016-04-20 09:14:33 -04:00
Ben Newman
af97b5b301 Bump versions for Meteor patch release 1.3.2.2. 2016-04-18 11:14:44 -04:00
Mitar
356fb83ea4 Typo. 2016-04-18 04:16:04 -07:00
Jamie Loberman
322d606b56 Remove handle.stop() after update (#6819)
Removed handle.stop() so that live query continues to run after the first code push, and newer versions continue to download.
2016-04-16 05:45:43 +02:00
Ben Newman
7a6026516e Bump versions for Meteor patch release 1.3.2.1. 2016-04-15 17:10:41 -04:00
Ben Newman
baa3f6a152 Merge branch 'master' into devel 2016-04-15 12:47:42 -04:00
Ben Newman
83c2f7a790 Bump package versions for the official 1.3.2 release. 2016-04-15 11:05:16 -04:00
Tom Coleman
a06ff81de5 Merge pull request #5680 from mitar/batch-process-updates
Process DDP updates in batches
2016-04-14 10:16:25 -07:00
Ben Newman
295e3d7819 Fix less plugin tests. 2016-04-14 12:45:50 -04:00