Commit Graph

13423 Commits

Author SHA1 Message Date
David Glasser
82bbcd112c run a test on the client too 2015-03-05 18:41:37 -08:00
sashko
3b56565373 Mark cordova tests with appropriate tag 2015-03-05 18:40:31 -08:00
Slava Kim
6a52dd82e2 Uncomment and fix the releases tests on Windows 2015-03-05 17:54:59 -08:00
Slava Kim
7d39f9e796 Uncomment and fix the "Default release track is METEOR@" test for Windows 2015-03-05 17:44:33 -08:00
David Glasser
d1fe97ccc0 Merge branch 'pr/3514' into devel 2015-03-05 17:36:05 -08:00
David Glasser
f76c1462c2 Update version in error message 2015-03-05 17:35:54 -08:00
David Glasser
86bdb198ee History update 2015-03-05 17:35:22 -08:00
Daniel Dent
831bd3ff46 Only one configuration should exist per service
Fixes #3514. Follow-up to pull request #3290.
2015-03-05 17:35:22 -08:00
Slava Kim
759510a584 Bump the tests timeout to fix tests on Windows
Yeah, they are slower on Windows :(
2015-03-05 17:30:20 -08:00
David Glasser
40ec4760f0 Merge branch 'npm-modules' into devel
Reviewed at https://rbcommons.com/s/meteor/r/13/
2015-03-05 17:16:55 -08:00
David Glasser
dc4a5e4bde History update for direct access changes 2015-03-05 17:12:38 -08:00
David Glasser
ef9671e705 Document direct access features in READMEs 2015-03-05 17:12:37 -08:00
David Glasser
c4d9ba573c Document npmRequestOptions 2015-03-05 17:12:37 -08:00
David Glasser
166840f8be localmarket: use npmRequestOptions 2015-03-05 17:12:37 -08:00
David Glasser
63a0076305 mongo: provide direct access to node driver db
Specifically, Mongo.Collection objects on the server now have
rawCollection and rawDatabase methods.

You can use MongoInternals.NpmModules.mongodb.version to tell what
version of the mongodb npm module is the backend for HTTP.call.  This
version may change incompatibly from version to version of Meteor; use
at your own risk.  (For example, we expect to upgrade from the 1.4.x
series to the 2.x series in the not-too-distant future.)

Fixes #3640.
2015-03-05 17:12:37 -08:00
David Glasser
cfc1699b0c Add direct access to mongodb module from mongo
Addresses #3640.
2015-03-05 17:12:36 -08:00
David Glasser
1002349edb Add direct access to connect module from webapp 2015-03-05 17:12:36 -08:00
David Glasser
8dae78d48b http: Allow specifying npm request options
You can use HTTPInternals.NpmModules.request.version to tell what
version of request (if any) is the backend for HTTP.call.  This version
may change incompatibly from version to version of Meteor; use at your
own risk.

Fixes #1703.
2015-03-05 17:12:36 -08:00
David Glasser
08c5bd0f83 localmarket: Use HTTPInternals.NpmModules.request
I tested that tweeting still works.
2015-03-05 17:12:36 -08:00
David Glasser
fa74e51102 Add direct access to request module from http 2015-03-05 17:12:36 -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
4a5c980baa Don't doubly-wrap transforms
LocalCollection.wrapTransform is idempotent, so it's OK to doubly-wrap
them, but it's slightly more efficient to notice that a transform has
already been wrapped and not re-wrap it.

(One place where we doubly-wrap transforms is in SynchronousCursor,
which calls wrapTransform on a transform that probably came from
Mongo.Collection, which also wrapped it.)

Fixes #3623.
2015-03-05 17:09:36 -08:00
David Glasser
5d3cfa2d76 Merge branch 'websocket-compression-take-2' into devel
Addresses #3007 (which will not be closed until troposphere is updated
with this change).
2015-03-05 16:55:18 -08:00
David Glasser
a8c4db1505 History update 2015-03-05 16:54:58 -08:00
David Glasser
2f7c960195 Better error on bad SERVER_WEBSOCKET_COMPRESSION
Specifically, it should only be an error if we actually try to make a
server, not if we're just loading this incidentally into our tool as
part of an isopacket.  (Loading isopackets should never fail unless
there is a bug in our code; that's why it prints an ugly stack trace.)
2015-03-05 16:54:58 -08:00
David Glasser
52e5e24327 Update Faye and SockJS versions
The important part here is the upgrades of websocket-driver and
websocket-extensions, which fix the bugs that made compression
unusable. The other upgrades shouldn't hurt, though.

Also, note that 0.3.13 was a bad release which reverted the change we
needed from 0.3.12.
2015-03-05 16:54:58 -08:00
David Glasser
9f5a97b9f0 Revert "Revert "Use per-message websocket compression""
This reverts commit 60ba1f403b.

Faye has fixed the bugs that blocked turning this on in the past:
  https://github.com/faye/permessage-deflate-node/issues/1
  https://github.com/faye/permessage-deflate-node/pull/3
  https://github.com/faye/websocket-driver-node/issues/11
2015-03-05 16:54:58 -08:00
David Glasser
2b466a9015 Fix yet another self-test broken by d4d349ca96
And make sure that failures are thrown within the actual test itself,
not within a timer, so that failure doesn't crash the whole self-test
process.
2015-03-05 16:45:21 -08:00
David Glasser
36ff10c08c Keep minifiers out of built programs
This breaks the path meteor-platform -> webapp -> boilerplate-generator
-> spacebars-compiler -> minifiers which ended up shipping all of uglify
with each built app, even though the code generated in
boilerplate-generator is just eval'd without ever being shown to humans.

Beautification still works on JS generated by templating (*.html),
though.
2015-03-05 16:45:20 -08:00
sashko
905092d4b5 Improve message 2015-03-05 15:55:44 -08:00
Slava Kim
9187dc2129 Fix one npm self-test on Windows 2015-03-05 15:54:37 -08:00
Sashko Stubailo
98a21446ca Add special directions for killing the server on Windows 2015-03-05 15:49:05 -08:00
David Glasser
63f89e5602 Tell stats server which packages are local
Requires an annoying level of hackery to get the fake-warehouse tests to
pass.

See meteor/package-stats#1.
2015-03-05 13:49:18 -08:00
Sashko Stubailo
6a22fc948e Remove "work in progress" text 2015-03-04 21:05:57 -08:00
Avital Oliver
9f0f91e851 Correct home dir logic on Windows 2015-03-04 20:54:27 -08:00
Avital Oliver
a656c2cbfb Make Windows installer delete old Meteor versions
Older installers, like the one on http://win.meteor.com
populated the same directory as our new installer, but with
different files. Specifically, meteor.exe which runs before
our meteor.bat. So we delete the contents of the installed
directory before starting the install.
2015-03-04 20:05:03 -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
7c443e46de slight refactor to a test 2015-03-04 19:38:45 -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
Sashko Stubailo
85505e1082 Improve messages around missing Windows release 2015-03-04 17:38:05 -08:00
Slava Kim
419befbf5f Revert the new dev_bundle 2015-03-04 16:13:40 -08:00
David Glasser
8ea3712955 Remove unnecessary PARENT_BRANCH declaration. 2015-03-04 15:45:29 -08:00
Slava Kim
d50f904a29 Merge branch 'windows-linux-compat-dev-bundle' into devel 2015-03-04 14:35:24 -08:00
Slava Kim
db3eff5413 A new way of replacing \r\n with \n 2015-03-04 14:09:07 -08:00
Slava Kim
42b1e5250f Windows DevBundle script generates unix end-lines for .bundle_version file 2015-03-04 12:08:20 -08:00
Sashko Stubailo
dac1f96825 Remove extra unneeded code in new admin command 2015-03-04 11:40:51 -08:00
Sashko Stubailo
d1fb199435 Bump version number problems caught by new command 2015-03-04 11:40:39 -08:00