Commit Graph

7406 Commits

Author SHA1 Message Date
David Glasser
08cf1e0974 shrinkwrap update from 314c8a1
Apparently not passing --force to npm install also allows us to do a
better job of not bundling duplicate npm packages.
2014-05-07 17:31:29 -07:00
Avital Oliver
e5b5858203 Fix flakiness in "defer in rendered callback" test
It was flaky before because template rendered callbacks get called
after flush time, but not if the template got destroyed in the meanwhile.

The way this test was written, if the client managed to respond to the server
rejecting the method before the client's flush cycle, the rendered callback
would never fire. Thus it would hang, since that callback was wrapped
in an expect.

Now we define a method on the client only, which makes it run as a stub
without the server rejecting the method (ever).
2014-05-06 20:24:57 -07:00
David Glasser
74bcb916b4 Doc and history updates for 4777e64336 2014-05-06 14:11:40 -07:00
Emily Stark
0c479a238b Add credential secret argument to retrieveCredential functions.
Fixes #2118.
2014-05-05 20:51:15 -07:00
David Glasser
f2e2a781cc Update Node to 0.10.28 which includes our npm fix 2014-05-02 10:59:37 -07:00
David Glasser
9187c554c0 Ban inserting EJSON custom types as documents
Follow-up to 63b3119; further addresses #2095.

There were a few problems here:

- We didn't check that the argument to insert was a document.  (EJSON
  custom types don't count as documents, because they don't have _ids!)

- The check to see if something coming from the database was an EJSON
  custom type didn't match the check in ejson.js (specifically, it was
  missing size===2). This made it sort of look like you could use EJSON
  custom types as top-level documents, until a change in the MongoDB
  driver made made that coincidental almost-working code stop working.

- The replaceNames function wasn't documented as only taking pure JSON,
  so it wasn't obvious that "it throws when there's a Buffer" was a bug
  in the caller rather than a bug in replaceNames.

This should all be resolved now.  Use cases like CollectionFS which were
mislead by these bugs into believing that an EJSON custom type could be
a document should move their custom type into a field.
2014-05-01 13:57:35 -07:00
Emily Stark
de9188f1e8 Merge branch 'master' into devel
Conflicts:
	History.md
	packages/minifiers/urlrewriting-tests.js
2014-05-01 12:39:33 -07:00
Emily Stark
399629e941 Merge branch 'release-0.8.1.1'
The large number of conflicts is because release-0.8.1.1 was branched
off of release/0.8.1 instead of master.

Conflicts:
	History.md
	docs/.meteor/release
	docs/lib/release-override.js
	examples/clock/.meteor/release
	examples/leaderboard/.meteor/release
	examples/parties/.meteor/release
	examples/todos/.meteor/release
	examples/wordplay/.meteor/release
	scripts/admin/banner.txt
	scripts/admin/notices.json
2014-05-01 12:37:41 -07:00
Emily Stark
53c4a32d7e Update docs and examples 2014-05-01 12:31:27 -07:00
Emily Stark
629423d514 Update banner and notices release/0.8.1.1 release/0.8.1.1-rc6 2014-05-01 12:17:24 -07:00
Emily Stark
d59f026363 Remove stray console.log in test 2014-05-01 12:17:06 -07:00
Emily Stark
63b3119127 Treat Buffers as Arrays when rewriting MongoDB atoms.
mongodb 1.4.0-rc9 has a `binId` field of type Buffer on ObjectIDs, which
caused Meteor to crash when retrieving a document that was made up of
just an EJSON user-defined type. (Which should not necessarily be
supported, but `replaceNames` should probably treat Buffers as Arrays
regardless.)

Fixes #2095.
release/0.8.1.1-rc5
2014-05-01 11:49:07 -07:00
Emily Stark
56050500e4 Update History 2014-05-01 09:51:55 -07:00
David Glasser
1d4004650f Follow-up to 4777e64: fix client-specified _id
This was a regression in 0.8.1 which caused client-specified `_id` to
always be ignored for collections with at least one allow/deny rule.

Fixes #2097. Fixes #2099.
release/0.8.1.1-rc4
2014-05-01 00:17:11 -07:00
Nick Martin
af7ed1edc0 History for #2088 2014-04-30 23:34:47 -07:00
Andrew Wilcox
482d9a78d7 Fix serializing server tests.
`Tinytest.add` is now implemented in terms of `Tinytest.addAsync`, and
the old `async` flag removed.
2014-04-30 23:32:24 -07:00
Andrew Wilcox
853aa3f1d5 Run server tests one at a time. 2014-04-30 23:32:24 -07:00
Slava Kim
d1b58e57dd Fix a typo in test descr 2014-04-30 23:29:23 -07:00
David Glasser
5e0845a436 Follow-up to 4777e64: fix client-specified _id
This was a regression in 0.8.1 which caused client-specified `_id` to
always be ignored for collections with at least one allow/deny rule.

Fixes #2097. Fixes #2099.
2014-04-30 23:01:53 -07:00
David Glasser
b48266bf74 Merge branch 'fix-npm-cache' into devel 2014-04-30 18:04:02 -07:00
David Glasser
e0fcd2c2ed update regexp for new version of npm
also, use quotemeta where necessary
2014-04-30 18:03:54 -07:00
David Glasser
000c71ec30 A better version of our patch
However, the better version involves taking some changes from a version
of npm not yet released with Node.
2014-04-30 18:03:53 -07:00
David Glasser
314c8a1a34 We no longer need to pass --force to npm install
(Also, make a test assertion useful: assert.equal's default truncation
is horrible.)
2014-04-30 18:03:53 -07:00
David Glasser
94074c0dcd new dev bundle: with npm/npm#5137
We should be able to remove our "npm install --force" workaround after
this.
2014-04-30 18:03:53 -07:00
David Glasser
5137250aee Improve 'meteor mongo' error message
Fixes #1256
2014-04-30 17:35:04 -07:00
Emily Stark
673a285dfc Allow undefined values in Collection.find options check.
At some point we might want to just make `Match.Optional` accept
explicit undefined values in objects, but that will take a little more
thought.
release/0.8.1.1-rc2
2014-04-30 15:53:59 -07:00
Emily Stark
671e526bc2 Fix test for #2093 release/0.8.1.1-rc1 2014-04-30 14:45:59 -07:00
Emily Stark
09f7cff076 Fix test for #2093 2014-04-30 14:45:20 -07:00
Avital Oliver
05c7a1662c Test for #2093 2014-04-30 14:32:36 -07:00
Avital Oliver
87510807e8 Try to fix #2093 2014-04-30 14:32:24 -07:00
Avital Oliver
e117e70255 Test for #2093 2014-04-30 14:03:36 -07:00
Avital Oliver
7c813691f2 Try to fix #2093 release/fix-2093 release/test-fix-2093 release/fix-2093-1 2014-04-30 11:55:45 -07:00
Avital Oliver
af28185676 Merge branch 'master' into devel 2014-04-30 11:49:50 -07:00
Avital Oliver
c67ce10722 Merge branch 'release-0.8.1' 2014-04-30 11:49:23 -07:00
Avital Oliver
965e3f6dec Add v0.8.1 to History.md 2014-04-30 11:46:12 -07:00
Emily Stark
b37fd2af7e Merge branch 'master' into devel 2014-04-30 11:03:19 -07:00
Emily Stark
f4044c2fde Merge branch 'release-0.8.1' 2014-04-30 11:02:42 -07:00
Emily Stark
532e9f32a8 Update docs and examples 2014-04-30 11:02:18 -07:00
Emily Stark
4b6d88828e tweak notices 2014-04-30 10:47:37 -07:00
Emily Stark
68f4425841 tweak banner 2014-04-30 10:28:40 -07:00
Emily Stark
9cd32c85ec add line break in notices 2014-04-30 10:23:01 -07:00
Emily Stark
2978ceb96d Update History, banner, notices 2014-04-30 10:21:40 -07:00
Emily Stark
cb6113170f Generate a fresh secret at end of OAuth, and require that secret on login.
Ensures that only the user who completed the OAuth flow can log in over DDP.
release/0.8.1-rc3 release/0.8.1
2014-04-30 10:08:16 -07:00
Emily Stark
bea8e9c5d0 Add showdown version in History 2014-04-29 23:26:35 -07:00
Emily Stark
2ee6fa383c Update license file more 2014-04-29 23:25:43 -07:00
Emily Stark
9b6d020e91 Update license file 2014-04-29 23:24:52 -07:00
Emily Stark
30b937365f Use Random.id() for meetup state parameter.
For some reason meetup converts underscores to spaces in the state
parameter.
2014-04-29 19:56:11 -07:00
Dan Dascalescu
64e02f2f56 Pass failure message for test.length() 2014-04-29 16:49:48 -07:00
Dan Dascalescu
3eeb7e61bd Mark reason and error as optional in new Meteor.Error 2014-04-29 16:25:38 -07:00
David Glasser
e7f955f809 Fix accidental QUERYING->STEADY transition
Fixes "Exception in defer callback: Error: Phase unexpectedly STEADY"
error
release/0.8.1-rc2
2014-04-29 15:00:55 -07:00