From cf4190e9c0edf692fb2b0cd16ffeb6e36351c42b Mon Sep 17 00:00:00 2001 From: David Glasser Date: Sun, 23 Dec 2012 12:36:05 -0800 Subject: [PATCH 01/33] Increment version to 0.5.3. --- History.md | 4 ++++ admin/debian/changelog | 2 +- admin/install-s3.sh | 2 +- admin/manifest.json | 6 +++--- admin/meteor.spec | 2 +- app/lib/updater.js | 2 +- app/meteor/post-upgrade.js | 2 +- docs/client/docs.html | 2 +- docs/client/docs.js | 2 +- 9 files changed, 14 insertions(+), 10 deletions(-) diff --git a/History.md b/History.md index 9ae3054864..9232e415e0 100644 --- a/History.md +++ b/History.md @@ -1,6 +1,10 @@ ## vNEXT +## v0.5.3 + +TODO: Finish 0.5.3 section + * `OAuth1Binding` improvements: #539 * `OAuth1Binding.get` and `OAuth1Binding.call` now return the full response (including headers and statusCode), rather than just the data. diff --git a/admin/debian/changelog b/admin/debian/changelog index 6b85fb6ca3..b8b7317e6b 100644 --- a/admin/debian/changelog +++ b/admin/debian/changelog @@ -1,4 +1,4 @@ -meteor (0.5.2-1) unstable; urgency=low +meteor (0.5.3-1) unstable; urgency=low * Automated debian build. diff --git a/admin/install-s3.sh b/admin/install-s3.sh index eb3ccc3ee8..91fbc35085 100755 --- a/admin/install-s3.sh +++ b/admin/install-s3.sh @@ -5,7 +5,7 @@ ## example. URLBASE="https://d3sqy0vbqsdhku.cloudfront.net" -VERSION="0.5.2" +VERSION="0.5.3" PKGVERSION="${VERSION}-1" UNAME=`uname` diff --git a/admin/manifest.json b/admin/manifest.json index 79fb8a130c..d0f3e2f9fc 100644 --- a/admin/manifest.json +++ b/admin/manifest.json @@ -1,6 +1,6 @@ { - "version": "0.5.2", - "deb_version": "0.5.2-1", - "rpm_version": "0.5.2-1", + "version": "0.5.3", + "deb_version": "0.5.3-1", + "rpm_version": "0.5.3-1", "urlbase": "https://d3sqy0vbqsdhku.cloudfront.net" } diff --git a/admin/meteor.spec b/admin/meteor.spec index 25fe47ef1e..9388c6198e 100644 --- a/admin/meteor.spec +++ b/admin/meteor.spec @@ -5,7 +5,7 @@ Summary: Meteor platform and JavaScript application server Vendor: Meteor Name: meteor -Version: 0.5.2 +Version: 0.5.3 Release: 1 License: MIT Group: Networking/WWW diff --git a/app/lib/updater.js b/app/lib/updater.js index 43589b7c66..af6936c6eb 100644 --- a/app/lib/updater.js +++ b/app/lib/updater.js @@ -1,4 +1,4 @@ -exports.CURRENT_VERSION = "0.5.2"; +exports.CURRENT_VERSION = "0.5.3"; var fs = require("fs"); var http = require("http"); diff --git a/app/meteor/post-upgrade.js b/app/meteor/post-upgrade.js index 3153a4f449..036dca5d17 100644 --- a/app/meteor/post-upgrade.js +++ b/app/meteor/post-upgrade.js @@ -2,7 +2,7 @@ try { // XXX can't get this from updater.js because in 0.3.7 and before the // updater didn't have the right NODE_PATH set. At some point we can // remove this and just use updater.CURRENT_VERSION. - var VERSION = "0.5.2"; + var VERSION = "0.5.3"; var fs = require('fs'); var path = require('path'); diff --git a/docs/client/docs.html b/docs/client/docs.html index d03097a480..e4c114fff2 100644 --- a/docs/client/docs.html +++ b/docs/client/docs.html @@ -11,7 +11,7 @@
-

Meteor 0.5.2

+

Meteor 0.5.3

{{> introduction }} {{> concepts }} {{> api }} diff --git a/docs/client/docs.js b/docs/client/docs.js index 3413bfa00e..a32fbac4d7 100644 --- a/docs/client/docs.js +++ b/docs/client/docs.js @@ -1,4 +1,4 @@ -METEOR_VERSION = "0.5.2"; +METEOR_VERSION = "0.5.3"; Meteor.startup(function () { // XXX this is broken by the new multi-page layout. Also, it was From 41520a3df86d47b6bbc581dba0abb37c931bf80d Mon Sep 17 00:00:00 2001 From: David Glasser Date: Mon, 24 Dec 2012 11:06:49 -0800 Subject: [PATCH 02/33] Start on History.md for 0.5.3. --- History.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/History.md b/History.md index 9232e415e0..308186a2ea 100644 --- a/History.md +++ b/History.md @@ -5,6 +5,37 @@ TODO: Finish 0.5.3 section +* A new `--settings` argument to `meteor deploy` and `meteor run` allows you to + specify a file containing a JSON object which will be made available to server + code in the variable `Meteor.settings`. + +* Deployed apps now use a randomized hostname for their long-polling + connections, allowing users to use apps in an arbitrary number of simultaneous + tabs without hitting browser per-hostname connection limits. #131 + +* In Spark, when a template is re-rendered, elements that are preserved (using + `Template.foo.preserve` or the `preserve-input` package) and which have + user-controllable "values" (eg, form inputs) now preserve the value set by the + user, unless the server's newly rendered value is different from the + previously rendered value. That is, re-rendering a template no longer reverts + changes to form elements made by users. Additionally, elements with + type other than TEXT can now have reactive values (eg, the labels on submit + buttons can now be reactive). #510 #514 #523 #537 #558 + +* Improve rendering of " onto unchecked input works. This test was extracted from a fix for this specific issue #478 which accidentally never got merged; 442b86eebd ended up fixing this issue with a slightly different change than the unmerged fix. --- packages/spark/patch_tests.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/spark/patch_tests.js b/packages/spark/patch_tests.js index 50975bd4f7..4d2d698ae8 100644 --- a/packages/spark/patch_tests.js +++ b/packages/spark/patch_tests.js @@ -132,7 +132,9 @@ Tinytest.add("spark - patch - copyAttributes", function(test) { buf.push('<', tagName); _.each(kv, function(v,k) { allAttrNames[k] = true; - buf.push(' ', k, '="', v, '"'); + buf.push(' ', k); + if (v !== 'NO_VALUE') + buf.push('="', v, '"'); }); buf.push('>'); var nodeHtml = buf.join(''); @@ -160,18 +162,20 @@ Tinytest.add("spark - patch - copyAttributes", function(test) { check: function() { _.each(lastAttrs, function(v,k) { var actualAttr; + var expectedAttr = v || ""; if (k === "style") { actualAttr = node.style.cssText; } else if (k === "class") { actualAttr = node.className; } else if (k === "checked") { actualAttr = String(node.getAttribute(k) || ""); + if (expectedAttr === "NO_VALUE") + expectedAttr = "checked"; if (actualAttr === "true") actualAttr = "checked"; // save IE's butt } else { actualAttr = String(node.getAttribute(k) || ""); } - var expectedAttr = v || ""; test.equal(actualAttr, expectedAttr, k); }); }, @@ -228,6 +232,12 @@ Tinytest.add("spark - patch - copyAttributes", function(test) { c.copy({type:'checkbox', name:'foo', checked:'checked'}); c.check(); test.equal(c.node().checked, true); + c.copy({type:'checkbox', name:'foo'}); + c.check(); + test.equal(c.node().checked, false); + c.copy({type:'checkbox', name:'foo', checked:'NO_VALUE'}); + c.check(); + test.equal(c.node().checked, true); c.copy({type:'checkbox', name:'bar'}); test.expect_fail(); // changing "name" on a form control won't take in IE From 06ddf733998f98dfb82a3cbdf69e0773e69e41ce Mon Sep 17 00:00:00 2001 From: David Glasser Date: Mon, 24 Dec 2012 11:29:03 -0800 Subject: [PATCH 04/33] Finish first draft of 0.5.3 release notes. --- History.md | 45 +++++++++++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/History.md b/History.md index 308186a2ea..a9bc0cd8b6 100644 --- a/History.md +++ b/History.md @@ -3,8 +3,6 @@ ## v0.5.3 -TODO: Finish 0.5.3 section - * A new `--settings` argument to `meteor deploy` and `meteor run` allows you to specify a file containing a JSON object which will be made available to server code in the variable `Meteor.settings`. @@ -22,12 +20,20 @@ TODO: Finish 0.5.3 section type other than TEXT can now have reactive values (eg, the labels on submit buttons can now be reactive). #510 #514 #523 #537 #558 -* Improve rendering of elements on IE. #496 + * Don't lose nested data contexts in IE9/10 after two seconds. #458 + * Always use the `autoReconnect` flag when connecting to Mongo. #425 * When logging in with Google, allow apps to request an "offline" token. #464 @@ -36,6 +42,15 @@ TODO: Finish 0.5.3 section overwrite `serviceData` fields that were set on a previous login and not set on this login. (For example, the refresh token from Google "offline" login.) +* `meteor` command-line improvements: + * Improve error message when mongod fails to start. + * The `NODE_OPTIONS` environment variable can be used to pass command-line + flags to node (eg, `--debug` or `--debug-brk` to enable the debugger). + * A new flag `meteor run --once` does not re-run the project if it crashes or + monitor for file changes; intended for automated testing (eg + `admin/cli-test.sh`). + * Die with error if an app name is mistakenly passed to `meteor reset`. + * `OAuth1Binding` improvements: #539 * `OAuth1Binding.get` and `OAuth1Binding.call` now return the full response (including headers and statusCode), rather than just the data. @@ -43,13 +58,19 @@ TODO: Finish 0.5.3 section * `OAuth1Binding.get`, `OAuth1Binding.call` and `OAuth1Binding.post` now take a `params` argument. This facilitates making calls to the Twitter API. -* A new flag `meteor run --once` does not re-run the project if it crashes or - monitor for file changes; intended for automated testing (eg - `admin/cli-test.sh`). +* Fix re-sending method calls on reconnect. #538 + +* `Meteor.connect` now supports URLs of the form + `ddp+sockjs://host-***.name/sockjs` and `ddpi+sockjs://host-***.name/sockjs` + to connect with DDP over HTTPS and HTTP respectively. The asterisks are + substituted with random digits. This syntax may change in a future version of + Meteor. While the trailing `/sockjs` is required in these URLs, it is no + longer supported in scheme-less URLs passed to `Meteor.connect`. * Improvements to `jsparse`: hex literals, keywords as property names, ES5 line continuations, trailing commas in object literals, line numbers in error - messages + messages, decimal literals starting with `.`, regex character classes with + slashes. * Implement the UUID v4 spec correctly (instead of losing a few bits of randomness). @@ -57,12 +78,8 @@ TODO: Finish 0.5.3 section * Update clean-css package from 0.8.2 to 0.8.3, fixing minification of `0%` values in `hsl` colors. #515 -* The underscore library is now in the dev bundle instead of in three different - places inside the source tree. (It's still in one place in the source tree, to - be served to clients.) - -Patches contributed by GitHub users Ed-von-Schleck, jwulf, meawoppl, and -nwmartin. +Patches contributed by GitHub users Ed-von-Schleck, egtann, jwulf, lvbreda, +meawoppl, nwmartin, and timhaines. ## v0.5.2 From 47d5abb7d8a654879c6d47158568f47e1b1b9e80 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Mon, 24 Dec 2012 11:31:33 -0800 Subject: [PATCH 05/33] Remove some no-longer-true caveats about Minimongo from docs. --- docs/client/api.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/client/api.html b/docs/client/api.html index aeee5f0f76..33c0455324 100644 --- a/docs/client/api.html +++ b/docs/client/api.html @@ -528,11 +528,9 @@ In this release, Minimongo has some limitations: * `$elemMatch` is not supported in selectors. * `$pull` in modifiers can only accept certain kinds of selectors. -* In selectors, dot notation and ordinal indexing may not work correctly. +* In selectors, dot notation may not work correctly. * `$` to denote the matched array position is not supported in modifier. -* Sort does not support subkeys (you can sort on `a`, -but not `a.b`). * `findAndModify`, upsert, aggregate functions, and map/reduce aren't supported. * The supported types are String, Number, Boolean, Array, From 64253bc47044ed776639ae044772c0841a7bf483 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Wed, 26 Dec 2012 23:30:26 -0800 Subject: [PATCH 06/33] accounts-ui-viewer: use triple-stash for the inclusiong of checked="checked" to avoid escaping the quotes. --- examples/unfinished/accounts-ui-viewer/accounts-ui-viewer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/unfinished/accounts-ui-viewer/accounts-ui-viewer.html b/examples/unfinished/accounts-ui-viewer/accounts-ui-viewer.html index 1470af65b9..87d4b8a881 100644 --- a/examples/unfinished/accounts-ui-viewer/accounts-ui-viewer.html +++ b/examples/unfinished/accounts-ui-viewer/accounts-ui-viewer.html @@ -7,7 +7,7 @@