Commit Graph

7586 Commits

Author SHA1 Message Date
Ben Newman
23b8b1d5c4 Bump package versions for 1.3.3-beta.2 release. 2016-06-01 15:18:14 -04:00
Ben Newman
db8d4f4dab Merge branch 'devel' into release-1.3.3 2016-06-01 14:24:24 -04:00
Ben Newman
fd808913c1 Merge pull request #7132 from JesperWe/patch-1
Correct Spacebars readme link.
2016-06-01 12:58:36 -04:00
Ben Newman
8a82a7af90 Use Resolver class to implement inputFile.resolve(id). 2016-06-01 01:39:23 -04:00
Ben Newman
826143bb8b Use inputFile.readAndWatchFileWithHash for relative plugins.
Follow-up to #7131.
2016-06-01 01:39:23 -04:00
Ben Newman
09c86548ba Merge pull request #7131 from gadicc/babelrc-cache-deps
Use babel preset/plugin versions/hash for cache invalidation.
2016-05-31 14:46:37 -04:00
Ben Newman
b1df82ac0a Merge branch 'devel' into release-1.3.3 2016-05-31 14:09:46 -04:00
Ben Newman
108d79ef7e Upgrade meteor-babel to v0.10.5 in babel-compiler and dev bundle. 2016-05-31 14:06:30 -04:00
Gadi Cohen
ffc44493a5 packageNameFromTopLevelModuleId: id.replace() -> id.split() 2016-05-31 09:52:59 +02:00
Gadi Cohen
dfee72792f Proper import chain for Meteor packages (closes #6907)
Don't include the ", false" for install() on traditional packages

add tests
2016-05-28 20:30:34 +02:00
Jesper We
8f65c49bed Correct link into docs 2016-05-28 13:10:57 +02:00
Gadi Cohen
74d3de3db4 Use babel preset/plugin versions/hash for cache invalidation 2016-05-28 10:13:58 +02:00
Jesse Rosenberger
07698571b6 Improve Tests for the email package
* Added `smokeEmailTest` function which sets up test stream
* Splits the previously combined tests into multiple tests
* Created test that catches error in PR #6916, caught in #7123
* Confirmed regression without 6e071838af
2016-05-27 13:59:04 +03:00
Ben Newman
bae5983d59 Merge branch 'devel' into release-1.3.3 2016-05-27 00:02:48 -04:00
Ben Newman
a62d89519d Merge pull request #7125 from meteor/7087-fix-flaky-tests
Fix flaky tests
2016-05-26 14:59:00 -04:00
Tom Coleman
9bc1055f1d Use modules require to avoid yielding
The previous use of `Npm.require()` yielded at this point of logging,
which could lead to logging out of order (!) and failing self-tests
in particular.
2016-05-25 12:30:20 -07:00
Ben Newman
4788557f5a Let compiler plugins pass source to processOneFileForTarget. 2016-05-24 18:56:01 -04:00
Tom Coleman
acaf998b13 Commenting out intermittently failing test 2016-05-24 15:46:41 -07:00
Tom Coleman
90dc0d7c70 Merge pull request #7011 from marceloschmidt/patch-2
Don't decode username and password from auth
2016-05-24 15:45:53 -07:00
Tom Coleman
6e071838af Fix issue with email introduced by Date header PR 2016-05-24 15:45:04 -07:00
Ben Newman
b0f5125112 Expose BabelCompiler.prototype.processOneFileForTarget.
This method is intended to help compiler plugins other than ecmascript
process inputFiles using the BabelCompiler.

For example: https://github.com/meteor/meteor/pull/6691
2016-05-24 18:38:09 -04:00
Tom Coleman
b783613017 Merge pull request #7003 from meteor/docs-server-connection
Explain that connection is provided when call recurse into other methods
2016-05-24 15:28:28 -07:00
Mitar
233b24ed33 Bump the sockjs package. (#6838) 2016-05-24 15:18:06 -07:00
Ben Newman
f65193c7a7 Bump package versions for 1.3.3-beta.1 release. 2016-05-24 15:20:02 -04:00
Ben Newman
f97f528f33 Address some of @gadicc's feedback on .babelrc implementation.
Full comments: https://github.com/meteor/meteor/issues/6351#issuecomment-220944251

This commit implements optional "babel-{plugin,preset}-" prefixing and
.__esModule logic (point 2), and gives users more control over load order
by turning their plugins into a preset that loads between
babel-preset-meteor and the default plugins (point 4.i).

As time goes on, Meteor should consider moving some transforms out of the
babel-preset-meteor preset and into the babelOptions.plugins list, so that
they can be preempted by user presets.
2016-05-24 13:34:36 -04:00
Ben Newman
58c82d92dc Fix typo pointed out by @abernix. 2016-05-22 12:23:04 -04:00
Ben Newman
b932c79944 Bump package versions for 1.3.3-beta.0 release. 2016-05-20 18:07:13 -04:00
Ben Newman
76fdf0975c Restart server when package.json or .babelrc files change. 2016-05-20 12:59:09 -04:00
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