Commit Graph

105 Commits

Author SHA1 Message Date
Ben Newman
83c2f7a790 Bump package versions for the official 1.3.2 release. 2016-04-15 11:05:16 -04:00
Ben Newman
f5ced99eb2 Bump package versions for 1.3.2-rc.6 release. 2016-04-13 19:59:33 -04:00
Ben Newman
4826b323a1 Bump package versions for 1.3.2-rc.5 release. 2016-04-12 12:29:05 -04:00
Ben Newman
d8bed6d491 Bump package versions for 1.3.2-rc.4 release. 2016-04-11 19:36:25 -04:00
Ben Newman
901e4a5c01 Bump package versions for 1.3.1-rc.2 release. 2016-04-11 13:59:22 -04:00
Ben Newman
7722ace625 Bump package versions for 1.3.2-rc.1 release. 2016-04-10 19:55:11 -04:00
Ben Newman
41b58b32d9 Bump package versions for 1.3.2-rc.0 release. 2016-04-08 19:47:29 -04:00
Ben Newman
117863fcdd Bump package versions for the official 1.3.1 release. 2016-04-03 20:26:26 -04:00
Ben Newman
ccbbb006f8 Bump package versions for 1.3.1-rc.3 release. 2016-04-02 21:08:51 -04:00
Ben Newman
9c01610b1f Bump package versions for 1.3.1-rc.1 release. 2016-04-01 21:39:32 -04:00
Ben Newman
bff3f0c9ea Bump package versions for 1.3.1-rc.0 release. 2016-04-01 20:01:45 -04:00
Ben Newman
23c1deb2f2 Bump package versions for official 1.3 release. 2016-03-27 22:15:16 -04:00
Ben Newman
79829702a0 Bump package versions for 1.3-rc.13 release 2016-03-26 12:46:46 -04:00
Ben Newman
c14cd9aed5 Bump package versions for 1.3-rc.12 release 2016-03-24 16:08:56 -04:00
Ben Newman
5ea76e34bc Bump package versions for 1.3-rc.11 release 2016-03-24 14:19:23 -04:00
Ben Newman
005b97a122 Bump package versions for 1.3-rc.10 release 2016-03-24 11:55:22 -04:00
Martijn Walraven
7650bb0a01 Bump package versions for 1.3-rc.9 release 2016-03-23 18:55:23 -04:00
Ben Newman
2239ca87e7 Bump package versions for 1.3-rc.8 release. 2016-03-22 18:17:43 -04:00
Ben Newman
29903ce2db Bump package versions for 1.3-rc.7 release. 2016-03-22 14:41:32 -04:00
Ben Newman
bb5ec2cb3d Bump package versions for 1.3-rc.6 release. 2016-03-22 11:55:13 -04:00
Ben Newman
a0151c1706 Bump package versions for 1.3-rc.4 release. 2016-03-20 13:44:10 -04:00
Ben Newman
41ca4534a0 Bump package versions for 1.3-rc.3 release. 2016-03-18 15:01:14 -04:00
Ben Newman
a9c32ed699 Bump package versions for 1.3-rc.2 release. 2016-03-15 23:12:08 -04:00
Ben Newman
5fb055e9e0 Bump package versions for 1.3-rc.1 release. 2016-03-15 01:30:05 -04:00
Ben Newman
541db059cc Bump package versions for 1.3-rc.0 release. 2016-03-14 23:21:44 -04:00
Ben Newman
4f5cb1d7a0 Bump package versions for 1.3-beta.16 release.
What happened to beta.13, beta.14, and beta.15? All unfortunately suffered
from problems that made it either impossible or unwise to upgrade to those
versions.
2016-03-09 12:13:18 -05:00
Ben Newman
2cc42128a6 Bump package versions for 1.3-beta.13 release 2016-03-08 22:48:49 -05:00
Ben Newman
60d51889a9 Bump package versions for 1.3-beta.12 release 2016-02-29 21:49:52 -05:00
Martijn Walraven
d922c816be Bump package versions for 1.3-beta.11 release 2016-02-18 14:26:48 +01:00
Martijn Walraven
1a9d814391 Bump package versions for 1.3-beta.10 release 2016-02-18 09:16:17 +01:00
Martijn Walraven
752c8e16c5 Bump package versions for 1.3-beta.9 release 2016-02-16 21:42:23 +01:00
Martijn Walraven
362cc03d90 Bump package versions for 1.3-cordova-beta.5 release 2016-02-12 09:57:02 +01:00
Martijn Walraven
73e610ed57 Bump package versions for 1.3-cordova-beta.4 release 2016-02-11 13:33:43 +01:00
Ben Newman
3405bb542c Bump 1.3 beta release numbers. 2016-02-05 19:44:36 -05:00
Ben Newman
b7c48ee8ed Bump 1.3 beta release numbers. 2016-02-04 23:48:45 -05:00
Ben Newman
e150f6c919 Bump 1.3 beta release numbers.
The beta released with this commit (modules-beta.6) included everything on
the release-1.3 branch up to bdf64da339
("Avoid circular package.json resolution chains.").

Unfortunately, additional commits were pushed to the branch before this
commit was pushed, so the release tag release/METEOR@1.3-modules-beta.6
does not correspond to any commit in the branch history.

Rather than attempting to rewrite the branch history, I decided to amend
this commit with this explanation before pushing it.

To see exactly what was released with the sixth beta:

  git fetch --tags
  git log release/METEOR@1.3-modules-beta.6
2016-02-04 09:58:05 -05:00
Ben Newman
b10e4b84b1 Bump 1.3 beta release numbers. 2016-01-23 13:20:44 -05:00
Ben Newman
211fda2b30 Bump 1.3 beta release numbers. 2016-01-10 16:10:53 -05:00
Ben Newman
0b690a6a25 Bump 1.3 beta release numbers. 2016-01-08 19:49:22 -05:00
Ben Newman
24c55add63 Bump 1.3 beta release numbers. 2015-12-22 12:56:42 -05:00
Ben Newman
23207b726b Bump 1.3 beta release numbers. 2015-12-18 16:47:37 -05:00
Avital Oliver
958c4a14ef Bump package version numbers 2015-12-10 21:11:25 -08:00
Sashko Stubailo
0759da9c97 Bump versions for 1.2.1 release 2015-10-26 14:31:14 -07:00
Sashko Stubailo
23e2cd601b Bump all version numbers 2015-10-22 11:41:20 -07:00
Avital Oliver
d1ae8f25be Merge branch 'reliable-id-gen-performance' into devel 2015-09-25 09:15:10 -07:00
Sashko Stubailo
cf6d7f109b Remove RC qualifier from all version numbers 2015-09-21 15:43:03 -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
David Greenspan
ca9b8f571f Version bumps
Tried to get everything to an rc.0 of the very latest version,
which required some research in some cases about the published
versions.  For example, some packages had version histories like:

```
...
  1.0.3-winr.2               January 20th, 2015
  1.0.3-winr.3               February 24th, 2015   installed
  1.0.3                      March 17th, 2015      installed
  1.0.4-anubhav.0            August 6th, 2015
  1.0.4-plugins.0            July 22nd, 2015
  1.0.5-galaxy.0             July 17th, 2015
```

In this case, I would bump the version from `1.0.4-plugins.0`
to `1.0.5-rc.0`, skipping `1.0.4`.
2015-08-10 22:10:52 -07:00
David Glasser
43b4b30205 Release PLUGINS-PREVIEW@1
This included removing some internal version constraints. It would be
nice if package A could say "use B@2.0.0" (when both have changed), but
when they're both in the release, we need to make a release that has a
B@2.0.0-rc in it, which doesn't match that constraint. Fortunately,
constraints aren't necessary within a release anyway.
2015-07-22 23:19:11 -07:00