Skip to content

Commit

Permalink
chore(all): prepare release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Feb 27, 2017
1 parent bde8ffc commit b0252e7
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 65 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": "1.0.8",
"version": "1.1.0",
"description": "The aurelia framework brings together all the required core aurelia libraries into a ready-to-go application-building platform.",
"keywords": [
"aurelia",
Expand Down
19 changes: 9 additions & 10 deletions dist/amd/aurelia-framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,12 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-m
Aurelia.prototype.start = function start() {
var _this = this;

if (this.started) {
return Promise.resolve(this);
if (this._started) {
return this._started;
}

this.started = true;
this.logger.info('Aurelia Starting');

return this.use.apply().then(function () {
return this._started = this.use.apply().then(function () {
preventActionlessFormSubmit();

if (!_this.container.hasResolver(_aureliaTemplating.BindingLanguage)) {
Expand Down Expand Up @@ -402,12 +400,13 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-m
return this;
};

FrameworkConfiguration.prototype.feature = function feature(plugin, config) {
if (getExt(plugin)) {
return this.plugin({ moduleId: plugin, resourcesRelativeTo: [plugin, ''], config: config || {} });
}
FrameworkConfiguration.prototype.feature = function feature(plugin) {
var config = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];

return this.plugin({ moduleId: plugin + '/index', resourcesRelativeTo: [plugin, ''], config: config || {} });
var hasIndex = /\/index$/i.test(plugin);
var moduleId = hasIndex || getExt(plugin) ? plugin : plugin + '/index';
var root = hasIndex ? plugin.substr(0, plugin.length - 6) : plugin;
return this.plugin({ moduleId: moduleId, resourcesRelativeTo: [root, ''], config: config });
};

FrameworkConfiguration.prototype.globalResources = function globalResources(resources) {
Expand Down
27 changes: 16 additions & 11 deletions dist/aurelia-framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,12 @@ export class Aurelia {
* @return Returns a Promise with the started Aurelia instance.
*/
start(): Promise<Aurelia> {
if (this.started) {
return Promise.resolve(this);
if (this._started) {
return this._started;
}

this.started = true;
this.logger.info('Aurelia Starting');

return this.use.apply().then(() => {
return this._started = this.use.apply().then(() => {
preventActionlessFormSubmit();

if (!this.container.hasResolver(BindingLanguage)) {
Expand Down Expand Up @@ -378,12 +376,11 @@ export class FrameworkConfiguration {
* @param config The configuration for the specified plugin.
* @return Returns the current FrameworkConfiguration instance.
*/
feature(plugin: string, config?: any): FrameworkConfiguration {
if (getExt(plugin)) {
return this.plugin({ moduleId: plugin, resourcesRelativeTo: [plugin, ''], config: config || {} });
}

return this.plugin({ moduleId: plugin + '/index', resourcesRelativeTo: [plugin, ''], config: config || {} });
feature(plugin: string, config?: any = {}): FrameworkConfiguration {
let hasIndex = /\/index$/i.test(plugin);
let moduleId = hasIndex || getExt(plugin) ? plugin : plugin + '/index';
let root = hasIndex ? plugin.substr(0, plugin.length - 6) : plugin;
return this.plugin({ moduleId, resourcesRelativeTo: [root, ''], config });
}

/**
Expand Down Expand Up @@ -461,6 +458,14 @@ export class FrameworkConfiguration {
return this;
}

// Default configuration helpers
// Note: Please do NOT add PLATFORM.moduleName() around those module names.
// Those functions are not guaranteed to be called, they are here to faciliate
// common configurations. If they are not called, we don't want to include a
// static dependency on those modules.
// Including those modules in the bundle or not is a decision that must be
// taken by the bundling tool, at build time.

/**
* Plugs in the default binding language from aurelia-templating-binding.
* @return Returns the current FrameworkConfiguration instance.
Expand Down
19 changes: 9 additions & 10 deletions dist/commonjs/aurelia-framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,12 @@ var Aurelia = exports.Aurelia = function () {
Aurelia.prototype.start = function start() {
var _this = this;

if (this.started) {
return Promise.resolve(this);
if (this._started) {
return this._started;
}

this.started = true;
this.logger.info('Aurelia Starting');

return this.use.apply().then(function () {
return this._started = this.use.apply().then(function () {
preventActionlessFormSubmit();

if (!_this.container.hasResolver(_aureliaTemplating.BindingLanguage)) {
Expand Down Expand Up @@ -412,12 +410,13 @@ var FrameworkConfiguration = function () {
return this;
};

FrameworkConfiguration.prototype.feature = function feature(plugin, config) {
if (getExt(plugin)) {
return this.plugin({ moduleId: plugin, resourcesRelativeTo: [plugin, ''], config: config || {} });
}
FrameworkConfiguration.prototype.feature = function feature(plugin) {
var config = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];

return this.plugin({ moduleId: plugin + '/index', resourcesRelativeTo: [plugin, ''], config: config || {} });
var hasIndex = /\/index$/i.test(plugin);
var moduleId = hasIndex || getExt(plugin) ? plugin : plugin + '/index';
var root = hasIndex ? plugin.substr(0, plugin.length - 6) : plugin;
return this.plugin({ moduleId: moduleId, resourcesRelativeTo: [root, ''], config: config });
};

FrameworkConfiguration.prototype.globalResources = function globalResources(resources) {
Expand Down
19 changes: 8 additions & 11 deletions dist/es2015/aurelia-framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ export let Aurelia = class Aurelia {
}

start() {
if (this.started) {
return Promise.resolve(this);
if (this._started) {
return this._started;
}

this.started = true;
this.logger.info('Aurelia Starting');

return this.use.apply().then(() => {
return this._started = this.use.apply().then(() => {
preventActionlessFormSubmit();

if (!this.container.hasResolver(BindingLanguage)) {
Expand Down Expand Up @@ -276,12 +274,11 @@ export let FrameworkConfiguration = class FrameworkConfiguration {
return this;
}

feature(plugin, config) {
if (getExt(plugin)) {
return this.plugin({ moduleId: plugin, resourcesRelativeTo: [plugin, ''], config: config || {} });
}

return this.plugin({ moduleId: plugin + '/index', resourcesRelativeTo: [plugin, ''], config: config || {} });
feature(plugin, config = {}) {
let hasIndex = /\/index$/i.test(plugin);
let moduleId = hasIndex || getExt(plugin) ? plugin : plugin + '/index';
let root = hasIndex ? plugin.substr(0, plugin.length - 6) : plugin;
return this.plugin({ moduleId, resourcesRelativeTo: [root, ''], config });
}

globalResources(resources) {
Expand Down
19 changes: 9 additions & 10 deletions dist/native-modules/aurelia-framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,12 @@ export var Aurelia = function () {
Aurelia.prototype.start = function start() {
var _this = this;

if (this.started) {
return Promise.resolve(this);
if (this._started) {
return this._started;
}

this.started = true;
this.logger.info('Aurelia Starting');

return this.use.apply().then(function () {
return this._started = this.use.apply().then(function () {
preventActionlessFormSubmit();

if (!_this.container.hasResolver(BindingLanguage)) {
Expand Down Expand Up @@ -310,12 +308,13 @@ var FrameworkConfiguration = function () {
return this;
};

FrameworkConfiguration.prototype.feature = function feature(plugin, config) {
if (getExt(plugin)) {
return this.plugin({ moduleId: plugin, resourcesRelativeTo: [plugin, ''], config: config || {} });
}
FrameworkConfiguration.prototype.feature = function feature(plugin) {
var config = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];

return this.plugin({ moduleId: plugin + '/index', resourcesRelativeTo: [plugin, ''], config: config || {} });
var hasIndex = /\/index$/i.test(plugin);
var moduleId = hasIndex || getExt(plugin) ? plugin : plugin + '/index';
var root = hasIndex ? plugin.substr(0, plugin.length - 6) : plugin;
return this.plugin({ moduleId: moduleId, resourcesRelativeTo: [root, ''], config: config });
};

FrameworkConfiguration.prototype.globalResources = function globalResources(resources) {
Expand Down
19 changes: 9 additions & 10 deletions dist/system/aurelia-framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,12 @@ System.register(['aurelia-logging', 'aurelia-dependency-injection', 'aurelia-loa
Aurelia.prototype.start = function start() {
var _this = this;

if (this.started) {
return Promise.resolve(this);
if (this._started) {
return this._started;
}

this.started = true;
this.logger.info('Aurelia Starting');

return this.use.apply().then(function () {
return this._started = this.use.apply().then(function () {
preventActionlessFormSubmit();

if (!_this.container.hasResolver(BindingLanguage)) {
Expand Down Expand Up @@ -393,12 +391,13 @@ System.register(['aurelia-logging', 'aurelia-dependency-injection', 'aurelia-loa
return this;
};

FrameworkConfiguration.prototype.feature = function feature(plugin, config) {
if (getExt(plugin)) {
return this.plugin({ moduleId: plugin, resourcesRelativeTo: [plugin, ''], config: config || {} });
}
FrameworkConfiguration.prototype.feature = function feature(plugin) {
var config = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];

return this.plugin({ moduleId: plugin + '/index', resourcesRelativeTo: [plugin, ''], config: config || {} });
var hasIndex = /\/index$/i.test(plugin);
var moduleId = hasIndex || getExt(plugin) ? plugin : plugin + '/index';
var root = hasIndex ? plugin.substr(0, plugin.length - 6) : plugin;
return this.plugin({ moduleId: moduleId, resourcesRelativeTo: [root, ''], config: config });
};

FrameworkConfiguration.prototype.globalResources = function globalResources(resources) {
Expand Down
15 changes: 15 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<a name="1.1.0"></a>
# [1.1.0](https://github.com/aurelia/framework/compare/1.0.8...v1.1.0) (2017-02-27)


### Bug Fixes

* **startup:** start() incorrectly returns a resolved promise ([4ef49e6](https://github.com/aurelia/framework/commit/4ef49e6))


### Features

* **config:** .feature() accepts explicit /index. ([890f8d5](https://github.com/aurelia/framework/commit/890f8d5))



<a name="1.0.2"></a>
## [1.0.2](https://github.com/aurelia/framework/compare/1.0.1...v1.0.2) (2016-08-26)

Expand Down
2 changes: 1 addition & 1 deletion doc/api.json

Large diffs are not rendered by default.

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": "1.0.8",
"version": "1.1.0",
"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 b0252e7

Please sign in to comment.