Skip to content

Commit

Permalink
Merge branch 'devel' into release-0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
n1mmy committed Apr 13, 2013
2 parents d1dd8a8 + 93497be commit d2e3862
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 16 deletions.
26 changes: 21 additions & 5 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@

## vNEXT

* `Spiderable.userAgentRegExps` can now be modified to change what user agents
are treated as spiders by the `spiderable` package.
* Better stack traces for `Meteor.Error`.

* Return the inserted documented ID from LocalCollection.insert. #908
* Add per-package upgrade notices to `meteor update`.

* Prevent observe callbacks from affecting the arguments to identical observes. #855
* Experimental server-to-server DDP support: `Meteor.connect` on the
server will connect to a remote DDP endpoint via WebSockets. Method
calls should work fine, but subscriptions and minimongo on the server
are still a work in progress.

* Upgrade d3 from 2.x to 3.1.4. See
https://github.com/mbostock/d3/wiki/Upgrading-to-3.0 for compatibility notes.

Patches contributed by GitHub users andreas-karlsson, jacott, and joshuaconner.
* Return the inserted documented ID from `LocalCollection.insert`. #908

* `Spiderable.userAgentRegExps` can now be modified to change what user agents
are treated as spiders by the `spiderable` package.

* Prevent observe callbacks from affecting the arguments to identical
observes. #855

* Fix meteor command line tool when run from a home directory with
spaces in its name.

Patches contributed by GitHub users andreas-karlsson, jacott,
joshuaconner, and timhaines.


## v0.6.1

Expand All @@ -22,6 +37,7 @@ Patches contributed by GitHub users andreas-karlsson, jacott, and joshuaconner.

Patches contributed by GitHub users andreas-karlsson and awwx.


## v0.6.0

* Meteor has a brand new distribution system! In this new system, code-named
Expand Down
2 changes: 2 additions & 0 deletions docs/client/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -2635,6 +2635,8 @@ <h2 id="ejson"><span>EJSON</span></h2>
containing numbers ranging from 0 to 255, and the `$Uint8ArrayPolyfill` key
set to `true`.

{{> api_box ejsonIsBinary}}

{{> api_box ejsonAddType}}

When you add a type to EJSON, Meteor will be able to use that type in:
Expand Down
7 changes: 7 additions & 0 deletions docs/client/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ Template.api.ejsonNewBinary = {
descr: ["Allocate a new buffer of binary data that EJSON can serialize."]
},

Template.api.ejsonIsBinary = {
id: "ejson_is_binary",
name: "EJSON.isBinary(x)",
locus: "Anywhere",
descr: ["Returns true if `x` is a buffer of binary data, as returned from [`EJSON.newBinary`](#ejson_new_binary)."]
},

Template.api.ejsonAddType = {
id: "ejson_add_type",
name: "EJSON.addType(name, factory)",
Expand Down
1 change: 1 addition & 0 deletions docs/client/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ var toc = [
{name: "EJSON.equals", id: "ejson_equals"},
{name: "EJSON.clone", id: "ejson_clone"},
{name: "EJSON.newBinary", id: "ejson_new_binary"},
{name: "EJSON.isBinary", id: "ejson_is_binary"},
{name: "EJSON.addType", id: "ejson_add_type"},
[
{instance: "instance", id: "ejson_type_clone", name: "clone"},
Expand Down
6 changes: 3 additions & 3 deletions meteor
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ PLATFORM="${UNAME}_${ARCH}"
# Find the script dir, following one level of symlink. Note that symlink
# can be relative or absolute. Too bad 'readlink -f' is not portable.
ORIG_DIR=$(pwd)
cd $(dirname "$0")
if [ -L "$(basename $0)" ] ; then
cd $(dirname $(readlink $(basename "$0") ) )
cd "$(dirname "$0")"
if [ -L "$(basename "$0")" ] ; then
cd "$(dirname $(readlink $(basename "$0") ) )"
fi
SCRIPT_DIR=$(pwd -P)
cd "$ORIG_DIR"
Expand Down
23 changes: 16 additions & 7 deletions packages/livedata/stream_client_nodejs.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
// WebSocket-Node https://github.com/Worlize/WebSocket-Node
// Chosen because it can run without native components. It has a
// somewhat idiosyncratic API. We may want to use 'ws' instead in the
// future.
var WebSocketClient = Npm.require('websocket').client;

// @param endpoint {String} URL to Meteor app
// "http://subdomain.meteor.com/" or "/" or
// "ddp+sockjs://foo-**.meteor.com/sockjs"
Expand All @@ -18,7 +12,22 @@ var WebSocketClient = Npm.require('websocket').client;
Meteor._DdpClientStream = function (endpoint) {
var self = this;

self.client = new WebSocketClient;
// WebSocket-Node https://github.com/Worlize/WebSocket-Node
// Chosen because it can run without native components. It has a
// somewhat idiosyncratic API. We may want to use 'ws' instead in the
// future.
//
// Since server-to-server DDP is still an experimental feature, we only
// require the module if we actually create a server-to-server
// connection. This is a minor efficiency improvement, but moreover: while
// 'websocket' doesn't require native components, it tries to use some
// optional native components and prints a warning if it can't load
// them. Since native components in packages don't work when transferred to
// other architectures yet, this means that require('websocket') prints a
// spammy log message when deployed to another architecture. Delaying the
// require means you only get the log message if you're actually using the
// feature.
self.client = new (Npm.require('websocket').client)();
self.endpoint = endpoint;
self.currentConnection = null;

Expand Down
1 change: 0 additions & 1 deletion packages/spark/spark.js
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,6 @@ var applyChanges = function (doc, changeFields) {


var idStringify;
var idParse;

if (typeof LocalCollection !== 'undefined') {
idStringify = function (id) {
Expand Down

0 comments on commit d2e3862

Please sign in to comment.