Commit Graph

7121 Commits

Author SHA1 Message Date
Sashko Stubailo
0578686ca7 Bump meteor tool 2015-10-22 13:22:06 -07:00
Sashko Stubailo
1ca879fc7e Bump LESS to avoid version conflicts 2015-10-22 13:13:03 -07:00
Sashko Stubailo
23e2cd601b Bump all version numbers 2015-10-22 11:41:20 -07:00
martijndeh
e37d75bce6 throws error when passing falsey values in allow and deny 2015-10-15 20:12:14 +02:00
wh0
4f79c60acd Return instead of throw internally in the check package 2015-10-13 10:45:12 -07:00
Max Nowack
53a1c013c7 Make Template.dynamic work as a block helper
Fixes #4756
2015-10-12 22:03:46 -07:00
John Pinkerton
004a404112 Fix typo 2015-10-12 21:58:38 -07:00
Eric Terpstra
412e502fa9 Allow PORT as a string if it matches named pipe pattern. Fixes #4413 2015-10-12 21:49:13 -07:00
Evan You
17b4ba7f96 fix email templates syntax error 2015-10-11 19:14:06 -04:00
Ben Newman
04e93efccf Merge pull request #5345 from kencheung/clone-refactoring-email-templates
Refactor duplicated function expression for greeting.
2015-10-07 13:34:25 -04:00
Ken Cheung
c1770adffc Fixed a typo 2015-10-07 22:29:28 +08:00
Ken Cheung
012ea238fd Apply template string 2015-10-07 13:44:33 +08:00
Dean Brettle
d0535fa822 Fix typo in comment. 2015-10-06 15:24:13 -07:00
Aram Kocharyan
0e22996547 Check type of onException argument to bindEnvironment
Meteor.bindEnvironment() can have an invalid error handler accidentally
passed as the second argument, especially in CoffeeScript where the
issue is not easy to find. This can cause a cryptic error message about
an exception being thrown when onException() itself is being called.
2015-10-06 15:10:12 -07:00
Brad Vogel
a67e688df3 Added comment per PR feedback in https://github.com/meteor/meteor/pull/5313#issuecomment-145672177 2015-10-05 15:15:39 -07:00
Brad Vogel
24718debfd Deprecate login option userEmail in favor of loginHint, also use with Google signin. 2015-10-05 14:19:17 -07:00
Ben Newman
d3878f08bc Rename ecmascript-collections to ecmascript-runtime, and add more to it.
Now that we're including more than just collections-related polyfills, a
more generic name seems appropriate.
2015-10-03 14:39:24 -04:00
Mitar
60eaf91624 Extract handler result publish code.
This allows easier extending by packages.
2015-10-02 16:35:22 -07:00
Sashko Stubailo
99e8ddaa51 Update Email docs to point to specific v. of mailcomposer
It's 0.1.15, which is quite far behind. Maybe we should update at some point.
2015-10-02 14:34:24 -07:00
Ken Cheung
e51932cb1e Refactor duplicated function expression for greeting 2015-10-01 19:52:41 +08:00
Sashko Stubailo
ca4b798cdd Merge branch 'master' into devel
Conflicts:
	History.md
	packages/crosswalk/package.js
2015-09-28 17:24:49 -07:00
Sashko Stubailo
9654a7c436 Bump packages for 1.2.0.2 2015-09-28 14:58:52 -07:00
DAB0mB
787b8b56c3 (minimongo) Fix pull modifier not excepting null values 2015-09-28 16:04:07 -04:00
Evan You
dc3cd6eb92 Merge pull request #5289 from DAB0mB/fix/minimongo-pull-null
(minimongo) Fix pull modifier not excepting null values
2015-09-28 15:38:39 -04:00
DAB0mB
96fc599455 (minimongo) Fix pull modifier not excepting null values 2015-09-25 19:28:18 +03:00
Avital Oliver
d1ae8f25be Merge branch 'reliable-id-gen-performance' into devel 2015-09-25 09:15:10 -07:00
David Greenspan
fc0839d2e2 Avoid invalidation setting absent key to undefined
Fixes a test-breaking aspect of 60aa9f7, which is that while it made
setting an absent value to "undefined" work, doing so would cause an
invalidation that didn't happen before.

While we're at it, clean up the code and make sure that setting an
absent key to 'undefined' does invalidate "all()".

Unit tests in "session" and "reactive-dict" now pass.
2015-09-25 10:29:48 -04:00
David Greenspan
90e5d3ea73 Avoid invalidation setting absent key to undefined
Fixes a test-breaking aspect of 60aa9f7, which is that while it made
setting an absent value to "undefined" work, doing so would cause an
invalidation that didn't happen before.

While we're at it, clean up the code and make sure that setting an
absent key to 'undefined' does invalidate "all()".

Unit tests in "session" and "reactive-dict" now pass.
2015-09-24 20:58:44 -07:00
Martijn Walraven
9e4f404f60 Update Crosswalk plugin to 1.3.1 2015-09-24 21:34:20 +02:00
Sashko Stubailo
d326a8bf90 Make static html depend on jQuery so that adding attrs works 2015-09-24 13:55:38 -04:00
Sashko Stubailo
539342471b Revert "Don't use jQuery to add attributes to body"
This reverts commit e6bc9413f3.
2015-09-24 13:55:04 -04:00
Ben Newman
2554c7cfde Upgrade meteor-promise to v0.5.0.
Most notably, this upgrade allows the global (native) Promise constructor
to be used, if available.
2015-09-24 16:06:22 +02:00
Martijn Walraven
04df52a72e Update Crosswalk to 1.3.0 2015-09-24 15:58:48 +02:00
Martijn Walraven
08bfe9c664 Update Crosswalk to 1.3.0 2015-09-24 14:48:42 +02:00
Ben Newman
ef1fc31b0e Upgrade meteor-promise to v0.5.0.
Most notably, this upgrade allows the global (native) Promise constructor
to be used, if available.
2015-09-22 16:53:11 -04:00
Sashko Stubailo
dcbd65215a Merge branch 'master' into devel 2015-09-22 04:02:37 -04:00
Sashko Stubailo
5949f2a8dc Bump release version and package versions 2015-09-22 03:05:44 -04:00
Sashko Stubailo
a23cc02492 Merge branch 'master' into devel
Conflicts:
	History.md
	packages/babel-compiler/.npm/package/npm-shrinkwrap.json
	packages/babel-compiler/package.js
	packages/ecmascript/package.js
	packages/sha/package.js
	tools/upgraders.js
2015-09-21 20:12:55 -04:00
Sashko Stubailo
cf6d7f109b Remove RC qualifier from all version numbers 2015-09-21 15:43:03 -04:00
Sashko Stubailo
5d95e0a733 Bump package versions for RC 19 2015-09-21 14:59:18 -04:00
Sashko Stubailo
e6bc9413f3 Don't use jQuery to add attributes to body 2015-09-21 14:40:06 -04:00
Sashko Stubailo
f4d2a3b20a Bump versions for RC 18 2015-09-21 12:49:26 -04:00
Sashko Stubailo
9cefc33b4f Bump meteor to get new es5-shim dependency 2015-09-21 12:40:27 -04:00
Sashko Stubailo
2cfd9b3fb5 Update tests to sort output
Apparently, the order of Object.keys is different in mobile safari
2015-09-21 00:11:36 -04:00
Sashko Stubailo
58cc6fa30f Commit new shrinkwrap 2015-09-21 00:10:35 -04:00
Avital Oliver
f21ba1dfc3 Glasser code review on #5161 2015-09-20 13:31:39 -07:00
Avital Oliver
baaa0a0db9 Use fast PRNG to generate _id for documents created outside methods
This change harmonizes server document ID generation regardless of whether
it happens inside of a method or not, by using Alea in both cases.

This cuts time of inserting small documents outside of methods
on the server by over 30%, and more importantly makes it easier to be
confident in benchmarking numbers.

---

BACKGROUND

When calling `coll.insert()` on the server within methods, we use the Alea PRNG
(which is fast, can be seeded, and not cryptographically secure) to generate
the `_id` field for the newly created document (unless an `_id` field was
explicitly passed).

The reason we use Alea is so that we can seed the PRNG from the client, as to
ensure consistently chosen IDs for methods that create multiple documents and
run on both client and server.

Prior to this change, when calling `coll.insert()` on the server *not* inside
methods, we'd use Node's cryptographically secure `crypto.getRandomBytes()`
which is slower (due to allocating buffers that need to cross from JS
into native code).

With this change, we always use Alea when generating a document ID.

---

CRYPTOGRAPHICALLY SECURE IDS STILL AVAILABLE

If an app wants to guarantee using a cryptographically secure PRNG
when generating IDs, just generate IDs yourself:
`coll.insert({_id: Random.id(), ...})`.

`Random.id()` still uses a CSPRNG (unless you're on IE, or
on the server and not enough entropy has been collected, which is
basically never the case).

If you *want* the faster Alea algorithm, use `Random.fast.id()`
(The `Random.fast` object has all the same methods as on `Random`)

---

BENCHMARK RESULTS

Here are the measured times for inserting 5000 documents, before
and after this change (on my machine):

Benchmark                         | Before | After
--------------------------------- | ------ | ------
direct insert from `meteor shell` | 2179ms | 1520ms
a method called from a browser    | 1617ms | 1570ms
a method called from the server   | 1491ms | 1487ms
direct insert from the server     | 2272ms | 1445ms

(The benchmark can be found here:
f32ea073b7/benchmark2.sh)
2015-09-20 13:13:35 -07:00
Sashko Stubailo
b65da1f7b5 Bump package versions 2015-09-18 13:41:04 -07:00
Ben Newman
461ee8285e Upgrade meteor-babel other and dev bundle NPM dependencies.
Fixes #4933.
2015-09-18 16:13:05 -04:00
Ben Newman
80e23067d1 Upgrade meteor-babel other and dev bundle NPM dependencies.
Fixes #4933.
2015-09-18 16:10:51 -04:00