diff --git a/.mailmap b/.mailmap index 5ee6fc5e71..550b1158e2 100644 --- a/.mailmap +++ b/.mailmap @@ -41,6 +41,7 @@ GITHUB: marcandre GITHUB: mart-jansink GITHUB: MaximDubrovin GITHUB: meawoppl +GITHUB: meonkeys GITHUB: michaelbishop GITHUB: mitar GITHUB: mitar @@ -50,6 +51,7 @@ GITHUB: nathan-muir GITHUB: Neftedollar GITHUB: paulswartz GITHUB: Pent +GITHUB: prapicault GITHUB: queso GITHUB: rcy GITHUB: RichardLitt @@ -64,11 +66,15 @@ GITHUB: thatneat GITHUB: timhaines GITHUB: tmeasday GITHUB: twhy +GITHUB: waitingkuo +GITHUB: wulfmeister GITHUB: yeputons GITHUB: zol METEOR: arbesfeld METEOR: avital +METEOR: ben +METEOR: ben METEOR: debergalis METEOR: dgreensp METEOR: ekatek diff --git a/History.md b/History.md index 0b13d69c97..1fbd62c857 100644 --- a/History.md +++ b/History.md @@ -3,6 +3,76 @@ * Rename `{{> UI.dynamic}}` to `{{> Template.dynamic}}`, and likewise with `UI.contentBlock` and `UI.elseBlock`. +* Deprecate the `amplify`, `backbone`, `bootstrap`, and `d3` integration + packages in favor of community alternatives. These packages will no + longer be maintained by MDG. + +* Rename the `showdown` package to `markdown`. + +* Deprecate the `Template.someTemplate.myHelper = ...` syntax in favor + of `Template.someTemplate.helpers(...)`. Using the older syntax still + works, but it prints a deprecation warning to the console. + +## v0.9.3 + +### More Package Version Number Flexibility + +* Packages now support relying on multiple major versions of their + dependencies (eg `blaze@1.0.0 || 2.0.0`). Additionally, you can now + call `api.versionsFrom()` multiple times, or with an array + (eg `api.versionsFrom([, ])`. Meteor will + interpret this to mean that the package will work with packages from + all the listed releases. + +* Support for "wrapped package" version numbers. There is now a `_` field + in version numbers. The `_` field must be an integer, and versions with + the `_` are sorted after versions without. This allows using the + upstream version number as the Meteor package version number and being + able to publish multiple version of the Meteor package (e.g. + `jquery@1.11.1_2`). + +Note: packages using the `||` operator or the `_` symbol in their +versions or dependencies will be invisible to pre-0.9.3 users. Meteor +versions 0.9.2 and before do not understand the new version formats and +will not be able to use versions of packages that use the new features. + + +### Other Command-line Tool Improvements + +* More detailed constraint solver output. Meteor now tells you which + constraints prevent upgrading or adding new packages. This will make + it much easier to update your app to new versions. + +* Better handling of pre-release versions (e.g. versions with + `-`). Pre-release packages will now be included in an app if and only + if there is no way to meet the app's constraints without using a + pre-release package. + +* Add `meteor admin set-unmigrated` to allow maintainers to hide + pre-0.9.0 packages in `meteor search` and `meteor show`. This will not + stop users from continuing to use the package, but it helps prevent + new users from finding old non-functional packages. + +* Progress bars for time-intensive operations, like downloading large + packages. + + +### Other Changes + +* Offically support `Meteor.wrapAsync` (renamed from + `Meteor._wrapAsync`). Additionally, `Meteor.wrapAsync` now lets you + pass an object to bind as `this` in the wrapped call. See + https://docs.meteor.com/#meteor_wrapasync. + +* The `reactive-dict` package now allows an optional name argument to + enable data persistence during hot code push. + + +Patches by Github users evliu, meonkeys, mitar, mizzao, mquandalle, +prapicault, waitingkuo, wulfmeister. + + + ## v0.9.2.2 * Fix regression in 0.9.2 that prevented some users from accessing the diff --git a/LICENSE.txt b/LICENSE.txt index 4c09e63af0..87b924676c 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -95,6 +95,8 @@ css-parse: https://github.com/reworkcss/css-parse css-stringify: https://github.com/reworkcss/css-stringify callsite: https://github.com/visionmedia/callsite indexof: https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz +escape-html: https://github.com/component/escape-html +express: https://github.com/strongloop/express ---------- Copyright (c) 2010 TJ Holowaychuk @@ -102,6 +104,7 @@ Copyright (c) 2011 TJ Holowaychuk Copyright (c) 2012 TJ Holowaychuk Copyright (c) 2013 TJ Holowaychuk Copyright (c) 2011, 2013 TJ Holowaychuk +Copyright (c) 2009-2014 TJ Holowaychuk ---------- @@ -328,6 +331,7 @@ tty-browserify: https://github.com/substack/tty-browserify typedarray: https://github.com/substack/typedarray vm-browserify: https://github.com/substack/vm-browserify wordwrap: https://github.com/substack/node-wordwrap +yargs: https://github.com/chevex/yargs ---------- Copyright 2010, 2011, 2012, 2013 James Halliday (mail@substack.net) @@ -876,6 +880,74 @@ Modifications made by the following entities are licensed as above: - Eloy Duran, Fingertips +---------- +accepts: https://github.com/jshttp/accepts +merge-descriptors: https://github.com/component/merge-descriptors +type-is: https://github.com/jshttp/type-is +---------- + +Copyright (c) 2013 Jonathan Ong me@jongleberry.com +Copyright (c) 2014 Jonathan Ong + + +---------- +parseurl: https://github.com/expressjs/parseurl +---------- + +Copyright (c) 2014 Jonathan Ong +Copyright (c) 2014 Douglas Christopher Wilson + + +---------- +serve-static: https://github.com/expressjs/serve-static +---------- + +Copyright (c) 2010 Sencha Inc. +Copyright (c) 2011 LearnBoost +Copyright (c) 2011 TJ Holowaychuk +Copyright (c) 2014 Douglas Christopher Wilson + + +---------- +negotiator: https://github.com/jshttp/negotiator +---------- + +Original "Negotiator" program Copyright Federico Romero +Port to JavaScript Copyright Isaac Z. Schlueter + + +---------- +options: https://github.com/einaros/options.js +tinycolor: https://github.com/einaros/tinycolor +ws: https://github.com/einaros/ws +---------- + +Copyright (c) 2011 Einar Otto Stangvik +Copyright (c) 2012 Einar Otto Stangvik + + +---------- +path-to-regexp: https://github.com/component/path-to-regexp +---------- + +Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com) + + +---------- +truncate: https://github.com/FGRibreau/node-truncate +---------- + +Copyright (c) 2013 Francois-Guillaume Ribreau + + +---------- +utils-merge: https://github.com/jaredhanson/utils-merge +---------- + +Copyright (c) 2013 Jared Hanson + + + ============== Apache License @@ -1997,6 +2069,14 @@ Except where noted, this license applies to any and all software programs and associated documentation files created by the Original Author, when distributed with the Software. +---------- +strong-data-uri: https://github.com/strongloop/strong-data-uri +---------- + +Redistributed under the terms of the Artistic License, version 2.0. + +http://opensource.org/licenses/Artistic-2.0 + ---------- browserify: https://github.com/substack/node-browserify diff --git a/docs/.meteor/release b/docs/.meteor/release index 55ab0ecacf..7b32bf7a26 100644 --- a/docs/.meteor/release +++ b/docs/.meteor/release @@ -1 +1 @@ -METEOR@0.9.2.2 +METEOR@0.9.3 diff --git a/docs/.meteor/versions b/docs/.meteor/versions index 811099bd65..ce3da053a0 100644 --- a/docs/.meteor/versions +++ b/docs/.meteor/versions @@ -1,58 +1,58 @@ appcache@1.0.1 application-configuration@1.0.2 -autoupdate@1.1.0 +autoupdate@1.1.1 base64@1.0.0 binary-heap@1.0.0 blaze-tools@1.0.0 -blaze@2.0.0 +blaze@2.0.1 boilerplate-generator@1.0.0 callback-hook@1.0.0 -check@1.0.0 +check@1.0.1 code-prettify@1.0.0 coffeescript@1.0.3 ctl-helper@1.0.3 ctl@1.0.1 -ddp@1.0.8 -deps@1.0.3 -ejson@1.0.2 +ddp@1.0.9 +deps@1.0.4 +ejson@1.0.3 fastclick@1.0.0 follower-livedata@1.0.1 geojson-utils@1.0.0 -html-tools@1.0.0 +html-tools@1.0.1 htmljs@1.0.1 -http@1.0.5 +http@1.0.6 id-map@1.0.0 jquery-waypoints@1.0.0 jquery@1.0.0 json@1.0.0 -less@1.0.8 -livedata@1.0.9 +less@1.0.9 +livedata@1.0.10 logging@1.0.3 -meteor-platform@1.1.0 -meteor@1.1.0 +meteor-platform@1.1.1 +meteor@1.1.1 minifiers@1.1.0 minimongo@1.0.3 mobile-status-bar@1.0.0 -mongo@1.0.5 +mongo@1.0.6 observe-sequence@1.0.2 ordered-dict@1.0.0 random@1.0.0 -reactive-dict@1.0.2 -reactive-var@1.0.1 +reactive-dict@1.0.3 +reactive-var@1.0.2 reload-safetybelt@1.0.0 reload@1.1.0 retry@1.0.0 routepolicy@1.0.1 -session@1.0.1 +session@1.0.2 showdown@1.0.1 spacebars-compiler@1.0.2 -spacebars@1.0.1 +spacebars@1.0.2 spiderable@1.0.3 -standard-app-packages@1.0.1 -templating@1.0.6 +standard-app-packages@1.0.2 +templating@1.0.7 tracker@1.0.2 -ui@1.0.2 +ui@1.0.3 underscore@1.0.0 url@1.0.0 webapp-hashing@1.0.0 -webapp@1.1.1 +webapp@1.1.2 diff --git a/docs/client/api.html b/docs/client/api.html index a5b2fc662a..94fced62fa 100644 --- a/docs/client/api.html +++ b/docs/client/api.html @@ -1633,14 +1633,18 @@ Example: {{lt}}/template> ///// in JS file - Template.postsView.posts = function() { - return Posts.find(); - }; + Template.postsView.helpers({ + posts: function() { + return Posts.find(); + } + }); - Template.postItem.postClass = function() { - return Session.equals("selectedPost", this._id) ? - "selected" : ""; - }; + Template.postItem.helpers({ + postClass: function() { + return Session.equals("selectedPost", this._id) ? + "selected" : ""; + } + }); Template.postItem.events({ 'click': function() { @@ -2229,12 +2233,6 @@ Example: Now you can invoke this helper with `{{dstache}}foo}}` in the template defined with `<{{! }}template name="myTemplate">`. -The following syntax is a shorthand for when you only have one helper to define: - - Template.myTemplate.foo = function () { - return Session.get("foo"); - }; - To create a helper that can be used in any template, use [`Template.registerHelper`](#template_registerhelper). diff --git a/docs/client/commandline.html b/docs/client/commandline.html index 7e3f522d8d..1f5dbf437d 100644 --- a/docs/client/commandline.html +++ b/docs/client/commandline.html @@ -148,7 +148,9 @@ can add multiple packages with one command Optionally, adds version constraints. Running `meteor add package@1.1.0` will add the package at version `1.1.0` or higher (but not `2.0.0` or higher). If you -want to use version `1.1.0` exactly, use `meteor add package@=1.1.0`. +want to use version `1.1.0` exactly, use `meteor add package@=1.1.0`. You can also +'or' constraints together: for example, '=1.0.0 || =2.0.1' means either 1.0.0 (exactly) +or 2.0.1 (exactly). To remove a version constraint for a specific package, run `meteor add` again without specifying a version. For example above, to stop using version `1.1.0` diff --git a/docs/client/concepts.html b/docs/client/concepts.html index 0ed6f0e76b..6433169c53 100644 --- a/docs/client/concepts.html +++ b/docs/client/concepts.html @@ -457,9 +457,11 @@ functions in JavaScript. Just add the helper functions directly on the {{lt}}/template> // in client/myapp.js: reactive helper function - Template.forecast.prediction = function () { - return Session.get("weather"); - }; + Template.forecast.helpers({ + prediction: function () { + return Session.get("weather"); + } + }); // in the JavaScript console > Session.set("weather", "cloudy"); @@ -481,9 +483,11 @@ To iterate over an array or database cursor, use `{{dstache}}#each}}`: {{lt}}/template> // in myapp.js - Template.players.topScorers = function () { - return Users.find({score: {$gt: 100}}, {sort: {score: -1}}); - }; + Template.players.helpers({ + topScorers: function () { + return Users.find({score: {$gt: 100}}, {sort: {score: -1}}); + } + }); In this case, the data is coming from a database query. When the database cursor is passed to `{{dstache}}#each}}`, it will wire up all of the @@ -495,9 +499,11 @@ in `this`. Note that some block helpers change the current context (notably `{{dstache}}#each}}` and `{{dstache}}#with}}`): // in a JavaScript file - Template.players.leagueIs = function (league) { - return this.league === league; - }; + Template.players.helpers({ + leagueIs: function (league) { + return this.league === league; + } + });