Ben Newman
8ca458c5e4
Bump package versions for 1.6-alpha.1 release.
2017-06-05 19:33:25 -04:00
Ben Newman
6418026e15
Update all new Buffer usage to Buffer.from for Node 6+.
...
https://github.com/nodejs/node/wiki/Breaking-changes-between-v5-and-v6
2017-06-05 18:16:03 -04:00
Ben Newman
9e0ec68181
Merge branch 'devel' into release-1.6
2017-06-05 17:40:41 -04:00
Ben Newman
b75cdbfe6e
Add 10px margin to left of bundle-visualizer path blocks.
2017-06-02 14:39:00 -04:00
Jesse Rosenberger
76a6e0eee9
Merge pull request #8707 from edemaine/devel
...
Email package improvements
2017-06-02 19:01:49 +03:00
Jesse Rosenberger
fba42daca8
Slight adjustment to smtp:// warning message.
...
Just to clarify that port 465 is typically a secure port and our
assumption is based on that (in case they're curious how we decided
to show the message).
2017-06-02 18:07:51 +03:00
Ben Newman
1df553172e
Fix #8751 by replacing ':'s in dynamic module paths with '_'s.
2017-06-02 10:51:16 -04:00
Ben Newman
c4730c6af5
Upgrade reify to version 0.11.22.
...
This fixes a bug affecting namespace imports/exports such as
export * from "module"
import * as ns from "module"
where "module" is a CommonJS module that sets module.exports to an
object-like value that is not actually an object, e.g. a function.
The reify commit that fixed this bug includes a test demonstrating an
example of one such library (lodash):
benjamn/reify@b69a600e65
2017-06-01 20:46:39 -04:00
Ben Newman
7472916236
Remove underscore as a dependency from the modules package.
2017-06-01 20:46:39 -04:00
Ben Newman
906aab4447
Merge pull request #8692 from bpartridge/5932-mongo-hint-maxtimems
...
Add Mongo hint and maxTimeMS options (#5932 )
2017-05-31 11:29:41 -04:00
Hugh Willson
049ed969e7
Merge branch 'devel' into zimme/ddp-current-invocation
2017-05-31 10:44:25 -04:00
Jesse Rosenberger
791d0cdd59
Add a README for the bundle-visualizer package.
2017-05-31 13:26:21 +03:00
Ben Newman
68b840f8d5
Bump package versions for 1.6-alpha.0 release.
2017-05-30 17:03:28 -04:00
Ben Newman
0d7c9e8481
Merge branch 'wip-upgrade-to-node-6' into release-1.6
2017-05-30 15:41:12 -04:00
Ben Newman
42ab2fd607
Merge branch 'master' into devel
2017-05-30 15:27:50 -04:00
Ben Newman
a362e20a37
Bump package versions for the official 1.5 release.
2017-05-30 14:18:48 -04:00
Ben Newman
f1e628802e
Bump package versions for 1.5-rc.13 release.
2017-05-30 13:23:38 -04:00
Ben Newman
bfb2c95462
Upgrade meteor-promise to version 0.8.4.
...
This is a change that was necessary on the wip-upgrade-to-node-6 branch,
and it seems better to ship it sooner rather than waiting:
meteor/meteor@d823812e85
2017-05-30 13:03:17 -04:00
Ben Newman
bfc79eea9b
Add //# sourceURL=<module id> comment to dynamic modules.
...
Fixes #8719 by displaying a recognizable (and even clickable) file name in
stack traces for errors thrown by dynamic code.
2017-05-29 21:29:22 -04:00
Ben Newman
4351b89904
Bump package versions for 1.5-rc.12 release.
2017-05-29 19:17:43 -04:00
Ben Newman
81a07ed84f
Upgrade reify to prevent accidental override of namespace.default.
...
The `winston` npm package is not an ECMAScript module, but it does export
a "default" property, and this property was accidentally clobbering the
"default" property of the namespace object, thus interfering with default
import syntax:
import winston from "winston"
Specifically, the `winston` variable would end up referring to
`require("winston").default`, rather than `require("winston")`.
Nothing is lost by fixing this problem, as you can still refer to
`winston.default` if you need to access that property.
Reported by @fermuch here:
https://github.com/meteor/meteor/pull/8327#issuecomment-304721401
Fixed by this commit:
20fdd10d04
2017-05-29 19:07:25 -04:00
Ben Newman
aff0fbcc12
Bump package versions for 1.5-rc.11 release.
2017-05-29 12:27:45 -04:00
Ben Newman
5dd7b4cfc0
Upgrade uglify-js to latest version.
2017-05-29 12:17:54 -04:00
Ben Newman
cd4fc028f8
Upgrade reify to version 0.11.20 to fix getNamespace bug.
...
Reported here:
https://github.com/meteor/meteor/pull/8327#issuecomment-304582864
Fixed by:
aeb46dcd61
2017-05-29 12:02:56 -04:00
Ben Newman
d11cf771cd
Bump package versions for 1.5-rc.10 release.
2017-05-28 20:46:42 -04:00
Ben Newman
bfea780495
Upgrade meteor-babel and reify to latest versions.
2017-05-28 20:25:32 -04:00
Ben Newman
ee6235147c
Bump package versions for 1.5-rc.9 release.
2017-05-27 16:58:55 -04:00
Ben Newman
8ff00a26e8
Upgrade uglify-js to version 3.0.12.
...
Fixes #8704 .
2017-05-27 16:10:20 -04:00
Ben Newman
122f0d2cb3
Bump package versions for 1.5-rc.8 release.
2017-05-27 12:28:54 -04:00
Ben Newman
6c29e19a94
Upgrade reify to latest version, 0.11.15.
2017-05-27 12:00:56 -04:00
Ben Newman
b1f6904a4e
Bump package versions for 1.5-rc.7 release.
2017-05-26 20:14:56 -04:00
Ben Newman
b94443391a
Upgrade reify to version 0.11.14 to polyfill WeakMap.
2017-05-26 20:12:10 -04:00
Ben Newman
e2210ef01d
Update Reify API usage for version 0.11.13.
2017-05-26 18:22:02 -04:00
Ben Newman
93cf550c17
Upgrade meteor-babel to version 0.21.3 and reify to 0.11.13.
...
Fixes #8720 .
2017-05-26 18:21:55 -04:00
Brenton Partridge
97508702af
Add documentation and fix capitalization for maxTimeMs and hint options
2017-05-24 21:33:30 -04:00
Brenton Partridge
75a54ece56
Add Mongo hint and maxTimeMS options ( #5932 )
2017-05-24 20:57:40 -04:00
Simon Fridlund
3438609cd0
Set context of this.onStop callbacks and bind the environment
...
This will make `this` inside the onStop callback be the same as in the
publish function where it was added and using `bindEnvironment` will
preserve `DDP._CurrentPublicationInvocation` too.
2017-05-24 18:13:14 +02:00
Simon Fridlund
563136f688
Update comments and @locus
2017-05-24 18:13:14 +02:00
Simon Fridlund
35c9ffec30
Use DDP._CurrentMethodInvocation instead of DDP._CurrentInvocation
2017-05-24 18:13:13 +02:00
Simon Fridlund
22bfe41f69
Rewrite test for publication context
...
This also covers the test case when a user logs in.
2017-05-24 18:13:13 +02:00
Simon Fridlund
b01899bbba
Unset DDP._CurrentInvocation with undefined
...
Do this to avoid getting different results when DDP._CurrentInvocation
is not set.
2017-05-24 18:13:13 +02:00
Simon Fridlund
3ccfb7d1ea
Split DDP._CurrentInvocation and DDP._CurrentMethodInvocation assignment
2017-05-24 18:13:13 +02:00
Simon Fridlund
4372f59655
Update AccountsServer.userId to also check the publication invocation
...
This change will make `Meteor.userId()` available in publications as
well as methods.
2017-05-24 18:13:13 +02:00
Simon Fridlund
3effe52839
Add test for MethodInvocation created from DDP._CurrentPublicationInvocation
2017-05-24 18:13:13 +02:00
Simon Fridlund
1e31ea57b9
Add DDP._CurrentMethodInvocation
...
Now that we have DDP._CurrentPublicationInvocation adding
DDP._CurrentMethodInvocation will make the distinction between them
clearer.
2017-05-24 18:13:13 +02:00
Simon Fridlund
3b67040e3d
Create MethodInvocation from CurrentPublicationInvocation
...
When a method is called from a publication we create the
MethodInvocation for the method from DDP._CurrentPublicationInvocation.
This will allow the method to be aware of the current connection.
2017-05-24 18:13:13 +02:00
Simon Fridlund
c6be32bfa0
Add DDP._CurrentPublicationInvocation
...
This will make it possible to determine if code that is running has
been called from a publish function.
2017-05-24 18:13:13 +02:00
Mitar
f31870302b
Added test.
2017-05-24 18:13:13 +02:00
Mitar
bdc4abbdd5
Make sure DDP._CurrentInvocation is never set inside publish functions.
2017-05-24 18:13:13 +02:00
Loren Sands-Ramshaw
d8ddeb7047
Link ddp-rate-limiter README to the docs ( #8710 )
2017-05-24 10:27:06 -04:00