Commit Graph

681 Commits

Author SHA1 Message Date
Sashko Stubailo
39b11ca456 Merge branch 'master' into devel
Conflicts:
	History.md
2015-03-25 14:58:21 -07:00
Sashko Stubailo
0b2d6b40c0 Update release date in History.md 2015-03-25 14:57:29 -07:00
Jonas Aschenbrenner
63df4b1ce5 Velocity timing and mirror url fix
Velocity has visited the mirror sometimes before
it is ready. With this new check that is already
used in the testing frameworks this no longer
happens.

This commit also handles the upcoming breaking
change regarding the rootUrl of the mirror.
See: https://github.com/meteor-velocity/velocity/issues/260
2015-03-24 13:53:40 -07:00
David Glasser
4506fc3f93 History update for 1.0.5 2015-03-23 14:59:28 -07:00
David Glasser
87a0366352 Merge branch 'master' into devel for 1.0.4.2 2015-03-20 11:34:44 -07:00
David Glasser
9e2539bcd1 1.0.4.2 2015-03-20 11:13:06 -07:00
David Glasser
601f007922 Merge branch 'master' into devel 2015-03-18 00:56:51 -07:00
David Glasser
92ba69e860 1.0.4.1 2015-03-18 00:29:35 -07:00
David Glasser
21bdac8734 Merge branch 'master' into devel
Conflicts:
	History.md
	packages/accounts-password/package.js
	packages/accounts-password/password_server.js
	packages/constraint-solver/package.js
	packages/meteor-tool/package.js
	packages/non-core/npm-bcrypt/package.js
	packages/package-version-parser/package-version-parser-tests.js
	packages/package-version-parser/package-version-parser.js
	packages/package-version-parser/package.js
	tools/selftest.js
2015-03-17 13:41:14 -07:00
David Glasser
765aef5e35 Stamp History with date 2015-03-17 13:01:56 -07:00
David Glasser
bc4392ed54 History update 2015-03-17 13:01:43 -07:00
David Glasser
04228e06c0 Update contributors list 2015-03-17 10:28:32 -07:00
David Greenspan
0e0e8a39f1 Mention Version Solver env vars in History.md 2015-03-14 12:32:54 -07:00
Sashko Stubailo
c6ea68f9b3 Make meteor create --package not use prefix
It used to create a directory with an underscore instead of a colon
Now, it just removes the prefix.

In cases where the name of the package has more than one colon or starts or ends
witha colon, we report an error.
2015-03-12 17:57:27 -07:00
David Greenspan
7c245285fe meteor update with no args patches indirect deps
With this change, `meteor update` with no arguments, in addition to
updating direct dependencies, updates patch versions of indirect
dependencies, so you will get your version 1.4.2 in the above example.

Background: As of the new solver, we already prefer patched versions 
when selecting a version for a new indirect dependency.  For example,
if 1.4.0 is the oldest version we could choose, we will take 1.4.1
instead if available.  However, if 1.4.2 came out, there would never
be an occasion to take it, unless you explicitly typed
`meteor update the-indirect-dependency`.  `meteor update` with no
args expands to `meteor update <all direct deps>`.

Also improve comments, tests, and code around CS.Input.
2015-03-12 16:24:05 -07:00
David Greenspan
73129f7477 Version Solver History.md 2015-03-12 16:24:05 -07:00
David Glasser
14887d8c9c Avoid infinite loops in the Tracker flush cycle
Tracker.flush() will still guarantee that all computations and
afterFlush callbacks have been fully flushed, but the implicit flush
cycle started by an invalidation or afterFlush call will yield to the
event loop for 10ms every thousand computations.

Fixes #3901.

Reviewed at https://rbcommons.com/s/meteor/r/25/
2015-03-12 11:02:09 -07:00
David Glasser
dc5573332f Remove upgraded lines for reverted commit 2015-03-10 17:31:19 -07:00
David Glasser
55e006dbf1 Remove redundant header 2015-03-10 17:14:43 -07:00
David Glasser
a2f724fd47 Upgrade uglify-js to 2.4.17 from 2.4.13
Fixes #2877.  Fixes #3360.
2015-03-10 15:48:06 -07:00
David Greenspan
070ca69f9a Validate package names more strictly
In particular, ban leading `-`, trailing `.`, and `..` anywhere.

This backport commit drops the changes to constraint-solver and adds a
History.md note.
2015-03-10 15:20:36 -07:00
David Glasser
f4c4b16d93 History update 2015-03-10 14:05:11 -07:00
David Glasser
67391d0bc9 history.md update 2015-03-10 13:53:57 -07:00
David Glasser
7fad3ed150 History update 2015-03-09 16:17:32 -07:00
David Glasser
590af5e8c2 Revert "Merge branch 'websocket-compression-take-2' into devel"
This reverts commit 5d3cfa2d76, reversing
changes made to 2b466a9015.

Ah well, we tried to enable websocket compression again and ran into
more bugs.

First, newer versions of websocket-driver seem to sometimes send
duplicate close messages:
https://github.com/faye/faye-websocket-node/issues/41

This occurs whether or not deflate is actually used.

Second, in some circumstances permessage-deflate seems to completely
corrupt messages. This was reasonably easily observable by running
test-packages with Chrome, and seeing that sometimes (but not always) a
large number of bad JSON messages got printed to the client
console.  (Another symptom was that the total number of tests would be
larger than it should be, leading to messages like "Passed 1109 of
1153", presumably because the test name got corrupted in some status
messages.) https://github.com/faye/permessage-deflate-node/issues/4

See #3007.
2015-03-09 15:10:50 -07:00
David Glasser
d571e556a3 Revert "Merge branch 'websocket-compression-take-2' into devel"
This reverts commit 5d3cfa2d76, reversing
changes made to 2b466a9015.

Ah well, we tried to enable websocket compression again and ran into
more bugs.

First, newer versions of websocket-driver seem to sometimes send
duplicate close messages:
https://github.com/faye/faye-websocket-node/issues/41

This occurs whether or not deflate is actually used.

Second, in some circumstances permessage-deflate seems to completely
corrupt messages. This was reasonably easily observable by running
test-packages with Chrome, and seeing that sometimes (but not always) a
large number of bad JSON messages got printed to the client
console.  (Another symptom was that the total number of tests would be
larger than it should be, leading to messages like "Passed 1109 of
1153", presumably because the test name got corrupted in some status
messages.) https://github.com/faye/permessage-deflate-node/issues/4

See #3007.
2015-03-09 15:10:26 -07:00
David Glasser
86003bc105 Remove history entry for reverted change. 2015-03-09 14:27:59 -07:00
David Glasser
3cf30fbc17 MongoDB 3.0.0 works
Namely, test-packages works when MONGO_URL and MONGO_OPLOG_URL point to
a 3.0.0 mongod.
2015-03-09 11:38:41 -07:00
David Glasser
56c735e3e9 Add #3793 to History 2015-03-06 09:59:51 -08:00
David Glasser
80c45919b2 Add 1.0.4 header to History 2015-03-05 23:25:52 -08:00
David Glasser
90a39ef3bf Add 1.0.4 header to History 2015-03-05 23:25:40 -08:00
David Glasser
821882057c More History tweaks 2015-03-05 21:50:08 -08:00
David Glasser
3ef568b485 update websocket history note 2015-03-05 21:38:28 -08:00
David Glasser
7ff27f4e17 Update more docs about onStop 2015-03-05 21:36:18 -08:00
David Glasser
a7cb0a0918 Find more History entries 2015-03-05 21:23:20 -08:00
David Glasser
ef8bb3043e Sort History by subproject 2015-03-05 21:23:20 -08:00
David Glasser
f65035e11a oplog: re-fetch on confusing modifiers
For example, 5ddf203 stops us from understanding $sets and $unsets with
empty field parts, but pre-2.6 MongoDB could generate them.  (And even
post-2.6 may be able to generate $unsets with bad field names, but it's
not important for us to match that behavior since with Minimongo you
shouldn't be able to put them in in the first place.)
2015-03-05 19:56:42 -08:00
David Glasser
d7b7ab6474 minimongo: Disallow setting empty fields
This matches the MongoDB 2.6 behavior:
https://github.com/mongodb/mongo/commit/c18c7b22d
2015-03-05 19:56:41 -08:00
David Glasser
3104115a30 History update 2015-03-05 18:41:39 -08:00
David Glasser
86bdb198ee History update 2015-03-05 17:35:22 -08:00
David Glasser
dc4a5e4bde History update for direct access changes 2015-03-05 17:12:38 -08:00
David Glasser
81d76fe9d0 http: update request to 2.53.0 (from 2.47.0) 2015-03-05 17:12:35 -08:00
David Glasser
c96ea78794 Update MongoDB driver version in History 2015-03-05 17:12:20 -08:00
David Glasser
c70ff63a2f Update History.md note about MongoDB 3.0 2015-03-05 17:10:26 -08:00
David Glasser
a8c4db1505 History update 2015-03-05 16:54:58 -08:00
David Glasser
6ef63ce43d Fix update when rules have different transforms
Previously, the document would be transformed based on the first deny or
allow rule's transform, instead of using the matching transform rule.
This bug only applied to update, not insert or remove.

Technically one could do something fancy to avoid calling transform
unnecessarily if there are many validators with the same transform, but
if you're stressing that much about performance you might as well just
write a method instead of using allow/deny.

Fixes #3108.
2015-03-04 19:47:06 -08:00
David Glasser
bb638b7694 minimongo: Find paused flag in the right place
The `paused` flag is stored on LocalCollection, but two places in
minimongo looked for it on the `query` object (which represents an
active observeChanges call).  In both cases, the bug had no correctness
impact but could have a performance impact.

Bug 1:

`_recomputeResults` (used to calculate changes to skip and limit
queries) tried to avoid calculating the diff if the collection had been
paused (by pauseObservers as part of latency compensation), but it
looked for the `paused` flag in the wrong place and always ran the diff.

This didn't have an effect on correctness (because the wrapped callbacks
on `query` are no-ops when `paused` is set) but did waste time on
unnecessary diffs.

Bug 2:

In `update`, we tried to avoid saving original results for skip/limit
queries if the collection was paused, because we don't actually run the
diff for paused queries.  (Well, except for the fact that Bug 1 made us
run the diffs anyway...)  But since we checked `query.paused` instead of
`self.paused`, we wasted time cloning the results even if we were
paused.

Reviewed at https://rbcommons.com/s/meteor/r/4/
2015-03-04 18:56:57 -08:00
David Glasser
b595c5027f Update History description of #3676
It also occurs if the previous operation was a publish.
2015-03-04 18:54:03 -08:00
David Glasser
9c210f8bcb Fix crash in publish
Specifically, a "no pluginProviderPackageMap on isopack?" error would be
thrown when running publish in the following circumstances:

- You are inside an app (so it uses the app's .meteor/local/isopacks as
  an IsopackCache instead of a temporary directory)
- Your package does not need to be rebuilt (so it gets read in "up to
  date" mode by the IsopackCache)
- Your app has at least one cordova platform (so that
  includeCordovaUnibuild was true on the cached isopack; it is always
  true when building for publish)

In this case, we read the Isopack from disk but didn't keep the
pluginProviderPackageMap that we read from its isopack-buildinfo.json,
which later lead to a crash.

Fixes #3676.
2015-03-03 18:54:53 -08:00
David Glasser
acae4a576e Merge branch 'master' into devel
Made sure not to revert the run-velocity change that was reverted on
master.
2015-02-25 09:35:31 -08:00