Commit Graph

13454 Commits

Author SHA1 Message Date
David Glasser
2a88b4fcf0 add some documentation: null release/METEOR@1.0.4-rc.0 2015-03-05 23:04:28 -08:00
David Glasser
10ee6aeb10 use real versions of non-core modules 2015-03-05 22:55:19 -08:00
David Glasser
af0469da35 Bump other packages to -rc.0 2015-03-05 22:54:07 -08:00
David Glasser
4f3bdd29ae Publish non-prerelease npm-bcrypt/npm-node-aes-gcm
I am publishing this with Meteor 1.0.3.2.

(Maybe this will need to be bumped to _2 for Windows.)
2015-03-05 22:51:17 -08:00
David Glasser
873018df44 Minor version bumps to packages with new features
* accounts-base: client-side login hooks
* accounts-password: emailTemplates features
* autoupdate: reload via Node IPC messages (and SIGHUP)
* blaze: template-level subscriptions and onRendered/etc hooks
* ddp: client-side onStop callback, permessage-deflate, subscriptionId
  on subscription handles
* http: npmRequestOptions, HTTPInternals.NpmModules
* mongo: validated against 2.6, oplog-backlog,
  rawCollection/rawDatabase, MongoInternals.NpmModules
* reactive-dict/session: Session.set({k1: v1, k2: v2})
* templating: attributes on <body>
* webapp: WebAppInternals.NpmModules
2015-03-05 22:30:22 -08:00
David Glasser
ab7527cfbd Update release json file 2015-03-05 22:26:25 -08:00
David Glasser
b2132ee983 De-flake template-level subs test
Fixes #3859.
2015-03-05 22:20:26 -08:00
Sashko Stubailo
2288d76db1 Rewrap comment 2015-03-05 21:56: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
7e1ec96afd jsdoc update 2015-03-05 21:25:57 -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
sashko
4a6dd52bca Add some helpers for testing wrapped text 2015-03-05 21:07:14 -08:00
sashko
e6dd488842 Make addendum not sensitive to line breaks 2015-03-05 20:24:44 -08:00
sashko
7820fd2014 Include file in package 2015-03-05 20:16:33 -08:00
Sashko Stubailo
71b914a296 Add flushing buffers on process.exit to meteor package 2015-03-05 20:04:58 -08:00
sashko
59a6bef4aa Revert "Fix constraint solver test by removing process.exit"
This reverts commit 18e304b28c.
2015-03-05 19:58:51 -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
sashko
c914dc94cf Fix command line test by adding small wait 2015-03-05 19:47:11 -08:00
sashko
18e304b28c Fix constraint solver test by removing process.exit 2015-03-05 19:46:33 -08:00
sashko
627f3be4f8 Fix autoupdate test on Windows 2015-03-05 19:21:48 -08:00
Sashko Stubailo
5c5af8bdff Uncomment empty string argument tests
Add an if statement so that they don't fail on Windows
2015-03-05 18:45:27 -08:00
David Glasser
46d6297f38 Merge branch 'observe-projection' into devel 2015-03-05 18:41:39 -08:00
David Glasser
3104115a30 History update 2015-03-05 18:41:39 -08:00
David Glasser
cb7664c220 Always apply projection to docs, not diffs
Projection functions act on *documents*, not the diffs that are passed
to changed callbacks.  For example, a projection `{'a.b': 1}` applied to
the *document* `{a: undefined}` will result in `{}`, but the *diff*
of `{a: undefined}` on a query with that projection should still result
in a `changed` callback with that diff being invoked.

Refactor various parts of minimongo to always have a projectionFn for
each observed query (perhaps a trivial one).

Pass the projection into _diffQueryChanges so that it can apply the
projection *before* taking the diff, in the two cases in Minimongo which
use _diffQueryChanges instead of direct application. (We could instead
make the query's results and resultsSnapshot be projected, but Minimongo
currently relies on the fact that these data structures alias the
documents stored in the collection.)

Stop applying the projection to the diffs in changed via
wrapCallback. (We could still use wrapCallback to apply the projection
for added/addedBefore calls, but it seems more consistent to use the
same mechanisms for added that we use for changed.

Fixes #3800.  Fixes #2254. Fixes #3571.
2015-03-05 18:41:38 -08:00
Slava Kim
16d516522f Apply fields projection on documents before diffing them for Minimongo's changed event.
This change actually introduces another layer of projections before diffing, in
addition to more projection after the diffing, on the result.

I didn't figure out why, but the tests fail if you remove either of them.

Adds tests. Fixes #2254.
2015-03-05 18:41:38 -08:00
David Glasser
3674c12fc7 Fix server side of #3571 2015-03-05 18:41:38 -08:00
David Glasser
456d06bde3 Failing test for #3571
This fails on both server and client.

This is also related to #2254.
2015-03-05 18:41:37 -08:00
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