Skip to content

Commit

Permalink
chore(all): prepare release 0.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jan 29, 2015
1 parent c3594bf commit 995e692
Show file tree
Hide file tree
Showing 12 changed files with 114 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-framework",
"version": "0.8.4",
"version": "0.8.5",
"description": "The aurelia framework brings together all the required core aurelia libraries into a ready-to-go application-building platform.",
"keywords": [
"aurelia",
Expand Down
23 changes: 23 additions & 0 deletions dist/amd/aurelia.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ define(["exports", "aurelia-logging", "aurelia-dependency-injection", "aurelia-l
var logger = LogManager.getLogger("aurelia"),
slice = Array.prototype.slice;

if (!window.CustomEvent || typeof window.CustomEvent !== "function") {
var CustomEvent = function (event, params) {
var params = params || {
bubbles: false,
cancelable: false,
detail: undefined
};

var evt = document.createEvent("CustomEvent");
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
return evt;
};

CustomEvent.prototype = window.Event.prototype;
window.CustomEvent = CustomEvent;
}

function loadResources(container, resourcesToLoad, appResources) {
var next = function () {
if (current = resourcesToLoad.shift()) {
Expand Down Expand Up @@ -109,6 +126,8 @@ define(["exports", "aurelia-logging", "aurelia-dependency-injection", "aurelia-l

return loadResources(_this.container, _this.resourcesToLoad, _this.resources).then(function () {
logger.info("Aurelia Started");
var evt = new window.CustomEvent("aurelia-started", { bubbles: true, cancelable: true });
document.dispatchEvent(evt);
return _this;
});
});
Expand Down Expand Up @@ -141,6 +160,10 @@ define(["exports", "aurelia-logging", "aurelia-dependency-injection", "aurelia-l
return compositionEngine.compose(instruction).then(function (root) {
_this2.root = root;
instruction.viewSlot.attached();
var evt = new window.CustomEvent("aurelia-composed", { bubbles: true, cancelable: true });
setTimeout(function () {
return document.dispatchEvent(evt);
}, 1);
return _this2;
});
},
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ define(["exports", "aurelia-logging", "aurelia-metadata"], function (exports, _a
Function.prototype.computed = function (computedProperties) {
for (var key in computedProperties) {
if (computedProperties.hasOwnProperty(key)) {
Object.defineProperty(this.prototype, key, { get: prop[key], enumerable: true });
Object.defineProperty(this.prototype, key, { get: computedProperties[key], enumerable: true });
}
}
};
Expand Down
23 changes: 23 additions & 0 deletions dist/commonjs/aurelia.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ var Plugins = require("./plugins").Plugins;
var logger = LogManager.getLogger("aurelia"),
slice = Array.prototype.slice;

if (!window.CustomEvent || typeof window.CustomEvent !== "function") {
var CustomEvent = function (event, params) {
var params = params || {
bubbles: false,
cancelable: false,
detail: undefined
};

var evt = document.createEvent("CustomEvent");
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
return evt;
};

CustomEvent.prototype = window.Event.prototype;
window.CustomEvent = CustomEvent;
}

function loadResources(container, resourcesToLoad, appResources) {
var next = function () {
if (current = resourcesToLoad.shift()) {
Expand Down Expand Up @@ -115,6 +132,8 @@ var Aurelia = (function () {

return loadResources(_this.container, _this.resourcesToLoad, _this.resources).then(function () {
logger.info("Aurelia Started");
var evt = new window.CustomEvent("aurelia-started", { bubbles: true, cancelable: true });
document.dispatchEvent(evt);
return _this;
});
});
Expand Down Expand Up @@ -147,6 +166,10 @@ var Aurelia = (function () {
return compositionEngine.compose(instruction).then(function (root) {
_this2.root = root;
instruction.viewSlot.attached();
var evt = new window.CustomEvent("aurelia-composed", { bubbles: true, cancelable: true });
setTimeout(function () {
return document.dispatchEvent(evt);
}, 1);
return _this2;
});
},
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var Plugins = (function () {
Function.prototype.computed = function (computedProperties) {
for (var key in computedProperties) {
if (computedProperties.hasOwnProperty(key)) {
Object.defineProperty(this.prototype, key, { get: prop[key], enumerable: true });
Object.defineProperty(this.prototype, key, { get: computedProperties[key], enumerable: true });
}
}
};
Expand Down
21 changes: 21 additions & 0 deletions dist/es6/aurelia.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@ import {Plugins} from './plugins';
var logger = LogManager.getLogger('aurelia'),
slice = Array.prototype.slice;

if (!window.CustomEvent || typeof window.CustomEvent !== 'function') {
var CustomEvent = function(event, params) {
var params = params || {
bubbles: false,
cancelable: false,
detail: undefined
};

var evt = document.createEvent("CustomEvent");
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
return evt;
};

CustomEvent.prototype = window.Event.prototype;
window.CustomEvent = CustomEvent;
}

function loadResources(container, resourcesToLoad, appResources){
var resourceCoordinator = container.get(ResourceCoordinator),
current;
Expand Down Expand Up @@ -117,6 +134,8 @@ export class Aurelia {

return loadResources(this.container, this.resourcesToLoad, this.resources).then(() => {
logger.info('Aurelia Started');
var evt = new window.CustomEvent('aurelia-started', { bubbles: true, cancelable: true });
document.dispatchEvent(evt);
return this;
});
});
Expand Down Expand Up @@ -151,6 +170,8 @@ export class Aurelia {
return compositionEngine.compose(instruction).then(root => {
this.root = root;
instruction.viewSlot.attached();
var evt = new window.CustomEvent('aurelia-composed', { bubbles: true, cancelable: true });
setTimeout(() => document.dispatchEvent(evt), 1);
return this;
});
}
Expand Down
4 changes: 2 additions & 2 deletions dist/es6/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class Plugins {
Function.prototype.computed = function(computedProperties){
for(var key in computedProperties){
if(computedProperties.hasOwnProperty(key)){
Object.defineProperty(this.prototype, key, { get: prop[key], enumerable: true });
Object.defineProperty(this.prototype, key, { get: computedProperties[key], enumerable: true });
}
}
}
Expand Down Expand Up @@ -115,4 +115,4 @@ export class Plugins {

return next();
}
}
}
27 changes: 25 additions & 2 deletions dist/system/aurelia.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
System.register(["aurelia-logging", "aurelia-dependency-injection", "aurelia-loader", "aurelia-templating", "./plugins"], function (_export) {
"use strict";

var LogManager, Container, Loader, BindingLanguage, ResourceCoordinator, ViewSlot, ResourceRegistry, CompositionEngine, Plugins, _prototypeProperties, logger, slice, Aurelia;
var LogManager, Container, Loader, BindingLanguage, ResourceCoordinator, ViewSlot, ResourceRegistry, CompositionEngine, Plugins, _prototypeProperties, logger, slice, CustomEvent, Aurelia;


function loadResources(container, resourcesToLoad, appResources) {
Expand Down Expand Up @@ -48,7 +48,24 @@ System.register(["aurelia-logging", "aurelia-dependency-injection", "aurelia-loa

logger = LogManager.getLogger("aurelia");
slice = Array.prototype.slice;
Aurelia = (function () {


if (!window.CustomEvent || typeof window.CustomEvent !== "function") {
CustomEvent = function (event, params) {
var params = params || {
bubbles: false,
cancelable: false,
detail: undefined
};

var evt = document.createEvent("CustomEvent");
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
return evt;
};

CustomEvent.prototype = window.Event.prototype;
window.CustomEvent = CustomEvent;
}Aurelia = (function () {
function Aurelia(loader, container, resources) {
this.loader = loader || Loader.createDefaultLoader();
this.container = container || new Container();
Expand Down Expand Up @@ -117,6 +134,8 @@ System.register(["aurelia-logging", "aurelia-dependency-injection", "aurelia-loa

return loadResources(_this.container, _this.resourcesToLoad, _this.resources).then(function () {
logger.info("Aurelia Started");
var evt = new window.CustomEvent("aurelia-started", { bubbles: true, cancelable: true });
document.dispatchEvent(evt);
return _this;
});
});
Expand Down Expand Up @@ -149,6 +168,10 @@ System.register(["aurelia-logging", "aurelia-dependency-injection", "aurelia-loa
return compositionEngine.compose(instruction).then(function (root) {
_this2.root = root;
instruction.viewSlot.attached();
var evt = new window.CustomEvent("aurelia-composed", { bubbles: true, cancelable: true });
setTimeout(function () {
return document.dispatchEvent(evt);
}, 1);
return _this2;
});
},
Expand Down
2 changes: 1 addition & 1 deletion dist/system/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ System.register(["aurelia-logging", "aurelia-metadata"], function (_export) {
Function.prototype.computed = function (computedProperties) {
for (var key in computedProperties) {
if (computedProperties.hasOwnProperty(key)) {
Object.defineProperty(this.prototype, key, { get: prop[key], enumerable: true });
Object.defineProperty(this.prototype, key, { get: computedProperties[key], enumerable: true });
}
}
};
Expand Down
14 changes: 14 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
### 0.8.5 (2015-01-29)


#### Bug Fixes

* **aurelia:** custom event undefined in local scope ([c3594bf9](http://github.com/aurelia/framework/commit/c3594bf9ae0b9836ef433d857f422131e65674c5))
* **plugins:** set es5 computed properties correctly ([f1b140d9](http://github.com/aurelia/framework/commit/f1b140d9d2c846cc75e986d6fb967132d82df5e1))


#### Features

* **aurelia:** raise DOM events for start and compose ([feed2a3a](http://github.com/aurelia/framework/commit/feed2a3a05fe8cd9f5463a84ddb692aba4912193))


### 0.8.4 (2015-01-25)


Expand Down
2 changes: 1 addition & 1 deletion doc/api.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"framework","description":"The aurelia framework brings together all the required core aurelia libraries into a ready-to-go application-building platform.","classes":[{"name":"Aurelia","file":"aurelia/framework/src/aurelia.js","line":28,"description":"The framework core that provides the main Aurelia object.","is_constructor":1,"params":[{"name":"loader","description":"The loader for this Aurelia instance to use. If a loader is not specified, Aurelia will use a defaultLoader.","type":"Loader"},{"name":"container","description":"The dependency injection container for this Aurelia instance to use. If a container is not specified, Aurelia will create an empty container.","type":"Container"},{"name":"resources","description":"The resource registry for this Aurelia instance to use. If a resource registry is not specified, Aurelia will create an empty registry.","type":"ResourceRegistry"}],"methods":[{"line":54,"description":"Adds an existing object to the framework's dependency injection container.","name":"withInstance","params":[{"name":"type","description":"The object type of the dependency that the framework will inject.","type":"Class"},{"name":"instance","description":"The existing instance of the dependency that the framework will inject.","type":"Object"}],"return":{"description":"Returns the current Aurelia instance.","type":"Aurelia"}},{"line":67,"description":"Adds a singleton to the framework's dependency injection container.","name":"withSingleton","params":[{"name":"type","description":"The object type of the dependency that the framework will inject.","type":"Class"},{"name":"implementation","description":"The constructor function of the dependency that the framework will inject.","type":"Object"}],"return":{"description":"Returns the current Aurelia instance.","type":"Aurelia"}},{"line":80,"description":"Adds a resource to be imported into the Aurelia framework.","name":"withResources","params":[{"name":"resources","description":"The constructor function(s) to use when the dependency needs to be instantiated.","type":"Object|Array"}],"return":{"description":"Returns the current Aurelia instance.","type":"Aurelia"}},{"line":94,"description":"Loads plugins, then resources, and then starts the Aurelia instance.","name":"start","return":{"description":"Returns the started Aurelia instance.","type":"Aurelia"}},{"line":125,"description":"Instantiates the root view-model and view and add them to the DOM.","name":"withSingleton","params":[{"name":"root","description":"The root view-model to load upon bootstrap.","type":"Object"},{"name":"applicationHost","description":"The DOM object that Aurelia will attach to.","type":"String|Object"}],"return":{"description":"Returns the current Aurelia instance.","type":"Aurelia"}}],"properties":[],"events":[]},{"name":"Plugins","file":"aurelia/framework/src/plugins.js","line":33,"description":"Manages loading and installing plugins.","is_constructor":1,"params":[{"name":"aurelia","description":"An instance of Aurelia.","type":"Aurelia"}],"methods":[{"line":47,"description":"Installs a plugin before Aurelia starts.","name":"plugin","params":[{"name":"moduleId","description":"The ID of the module to install.","type":"ModuleId"},{"name":"config","description":"The configuration for the specified module.","type":"Config"}],"return":{"description":"Returns the current Plugins instance.","type":"Plugins"}},{"line":67,"description":"Installs special support for ES5 authoring.","name":"es5","return":{"description":"Returns the current Plugins instance.","type":"Plugins"}},{"line":85,"description":"Installs special support for AtScript authoring.","name":"atscript","return":{"description":"Returns the current Plugins instance.","type":"Plugins"}}],"properties":[],"events":[]}],"methods":[],"properties":[],"events":[]}
{"name":"framework","description":"The aurelia framework brings together all the required core aurelia libraries into a ready-to-go application-building platform.","classes":[{"name":"Aurelia","file":"aurelia/framework/src/aurelia.js","line":45,"description":"The framework core that provides the main Aurelia object.","is_constructor":1,"params":[{"name":"loader","description":"The loader for this Aurelia instance to use. If a loader is not specified, Aurelia will use a defaultLoader.","type":"Loader"},{"name":"container","description":"The dependency injection container for this Aurelia instance to use. If a container is not specified, Aurelia will create an empty container.","type":"Container"},{"name":"resources","description":"The resource registry for this Aurelia instance to use. If a resource registry is not specified, Aurelia will create an empty registry.","type":"ResourceRegistry"}],"methods":[{"line":71,"description":"Adds an existing object to the framework's dependency injection container.","name":"withInstance","params":[{"name":"type","description":"The object type of the dependency that the framework will inject.","type":"Class"},{"name":"instance","description":"The existing instance of the dependency that the framework will inject.","type":"Object"}],"return":{"description":"Returns the current Aurelia instance.","type":"Aurelia"}},{"line":84,"description":"Adds a singleton to the framework's dependency injection container.","name":"withSingleton","params":[{"name":"type","description":"The object type of the dependency that the framework will inject.","type":"Class"},{"name":"implementation","description":"The constructor function of the dependency that the framework will inject.","type":"Object"}],"return":{"description":"Returns the current Aurelia instance.","type":"Aurelia"}},{"line":97,"description":"Adds a resource to be imported into the Aurelia framework.","name":"withResources","params":[{"name":"resources","description":"The constructor function(s) to use when the dependency needs to be instantiated.","type":"Object|Array"}],"return":{"description":"Returns the current Aurelia instance.","type":"Aurelia"}},{"line":111,"description":"Loads plugins, then resources, and then starts the Aurelia instance.","name":"start","return":{"description":"Returns the started Aurelia instance.","type":"Aurelia"}},{"line":144,"description":"Instantiates the root view-model and view and add them to the DOM.","name":"withSingleton","params":[{"name":"root","description":"The root view-model to load upon bootstrap.","type":"Object"},{"name":"applicationHost","description":"The DOM object that Aurelia will attach to.","type":"String|Object"}],"return":{"description":"Returns the current Aurelia instance.","type":"Aurelia"}}],"properties":[],"events":[]},{"name":"Plugins","file":"aurelia/framework/src/plugins.js","line":33,"description":"Manages loading and installing plugins.","is_constructor":1,"params":[{"name":"aurelia","description":"An instance of Aurelia.","type":"Aurelia"}],"methods":[{"line":47,"description":"Installs a plugin before Aurelia starts.","name":"plugin","params":[{"name":"moduleId","description":"The ID of the module to install.","type":"ModuleId"},{"name":"config","description":"The configuration for the specified module.","type":"Config"}],"return":{"description":"Returns the current Plugins instance.","type":"Plugins"}},{"line":67,"description":"Installs special support for ES5 authoring.","name":"es5","return":{"description":"Returns the current Plugins instance.","type":"Plugins"}},{"line":85,"description":"Installs special support for AtScript authoring.","name":"atscript","return":{"description":"Returns the current Plugins instance.","type":"Plugins"}}],"properties":[],"events":[]}],"methods":[],"properties":[],"events":[]}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-framework",
"version": "0.8.4",
"version": "0.8.5",
"description": "The aurelia framework brings together all the required core aurelia libraries into a ready-to-go application-building platform.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 995e692

Please sign in to comment.