Skip to content

Commit 10394dd

Browse files
chore(all): prepare release 0.11.0
1 parent 5692911 commit 10394dd

15 files changed

+554
-668
lines changed

bower.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aurelia-framework",
3-
"version": "0.10.0",
3+
"version": "0.11.0",
44
"description": "The aurelia framework brings together all the required core aurelia libraries into a ready-to-go application-building platform.",
55
"keywords": [
66
"aurelia",
@@ -17,14 +17,14 @@
1717
"url": "http://github.com/aurelia/framework"
1818
},
1919
"dependencies": {
20-
"aurelia-binding": "^0.5.0",
21-
"aurelia-dependency-injection": "^0.6.0",
22-
"aurelia-loader": "^0.5.0",
23-
"aurelia-logging": "^0.3.0",
24-
"aurelia-metadata": "^0.4.0",
25-
"aurelia-path": "^0.5.0",
26-
"aurelia-task-queue": "^0.3.0",
27-
"aurelia-templating": "^0.10.0",
20+
"aurelia-binding": "^0.6.0",
21+
"aurelia-dependency-injection": "^0.7.0",
22+
"aurelia-loader": "^0.6.0",
23+
"aurelia-logging": "^0.4.0",
24+
"aurelia-metadata": "^0.5.0",
25+
"aurelia-path": "^0.6.0",
26+
"aurelia-task-queue": "^0.4.0",
27+
"aurelia-templating": "^0.11.0",
2828
"core-js": "zloirock/core-js"
2929
}
3030
}

config.js

Lines changed: 43 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
System.config({
2+
"transpiler": "babel",
3+
"babelOptions": {
4+
"optional": [
5+
"runtime",
6+
"es7.decorators"
7+
]
8+
},
29
"paths": {
310
"*": "*.js",
411
"github:*": "jspm_packages/github/*.js",
@@ -9,77 +16,52 @@ System.config({
916

1017
System.config({
1118
"map": {
12-
"aurelia-binding": "github:aurelia/binding@0.5.0",
13-
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.6.0",
14-
"aurelia-loader": "github:aurelia/loader@0.5.0",
15-
"aurelia-logging": "github:aurelia/logging@0.3.0",
16-
"aurelia-metadata": "github:aurelia/metadata@0.4.0",
17-
"aurelia-path": "github:aurelia/path@0.5.0",
18-
"aurelia-task-queue": "github:aurelia/task-queue@0.3.0",
19-
"aurelia-templating": "github:aurelia/templating@0.10.0",
20-
"core-js": "github:zloirock/core-js@0.8.1",
21-
"github:aurelia/binding@0.4.0": {
22-
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.5.0",
23-
"aurelia-metadata": "github:aurelia/metadata@0.3.4",
24-
"aurelia-task-queue": "github:aurelia/task-queue@0.2.5"
19+
"aurelia-binding": "github:aurelia/binding@0.6.0",
20+
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.7.0",
21+
"aurelia-loader": "github:aurelia/loader@0.6.0",
22+
"aurelia-logging": "github:aurelia/logging@0.4.0",
23+
"aurelia-metadata": "github:aurelia/metadata@0.5.0",
24+
"aurelia-path": "github:aurelia/path@0.6.0",
25+
"aurelia-task-queue": "github:aurelia/task-queue@0.4.0",
26+
"aurelia-templating": "github:aurelia/templating@0.11.0",
27+
"babel": "npm:babel-core@5.2.2",
28+
"babel-runtime": "npm:babel-runtime@5.2.2",
29+
"core-js": "npm:core-js@0.9.5",
30+
"github:aurelia/binding@0.6.0": {
31+
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.7.0",
32+
"aurelia-metadata": "github:aurelia/metadata@0.5.0",
33+
"aurelia-task-queue": "github:aurelia/task-queue@0.4.0",
34+
"core-js": "npm:core-js@0.9.5"
2535
},
26-
"github:aurelia/binding@0.5.0": {
27-
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.6.0",
28-
"aurelia-metadata": "github:aurelia/metadata@0.4.0",
29-
"aurelia-task-queue": "github:aurelia/task-queue@0.3.0",
30-
"core-js": "github:zloirock/core-js@0.8.1"
36+
"github:aurelia/dependency-injection@0.7.0": {
37+
"aurelia-logging": "github:aurelia/logging@0.4.0",
38+
"aurelia-metadata": "github:aurelia/metadata@0.5.0",
39+
"core-js": "npm:core-js@0.9.5"
3140
},
32-
"github:aurelia/dependency-injection@0.5.0": {
33-
"aurelia-logging": "github:aurelia/logging@0.2.6",
34-
"aurelia-metadata": "github:aurelia/metadata@0.3.4",
35-
"core-js": "npm:core-js@0.4.10"
36-
},
37-
"github:aurelia/dependency-injection@0.6.0": {
38-
"aurelia-logging": "github:aurelia/logging@0.3.0",
39-
"aurelia-metadata": "github:aurelia/metadata@0.4.0",
40-
"core-js": "github:zloirock/core-js@0.8.1"
41-
},
42-
"github:aurelia/loader@0.4.0": {
43-
"aurelia-html-template-element": "github:aurelia/html-template-element@0.1.3",
44-
"aurelia-path": "github:aurelia/path@0.4.6",
45-
"core-js": "npm:core-js@0.4.10",
46-
"webcomponentsjs": "github:webcomponents/webcomponentsjs@0.5.5"
47-
},
48-
"github:aurelia/loader@0.5.0": {
41+
"github:aurelia/loader@0.6.0": {
4942
"aurelia-html-template-element": "github:aurelia/html-template-element@0.2.0",
50-
"aurelia-path": "github:aurelia/path@0.5.0",
51-
"core-js": "github:zloirock/core-js@0.8.1",
52-
"webcomponentsjs": "github:webcomponents/webcomponentsjs@0.5.5"
43+
"aurelia-path": "github:aurelia/path@0.6.0",
44+
"core-js": "npm:core-js@0.9.5",
45+
"webcomponentsjs": "github:webcomponents/webcomponentsjs@0.6.1"
5346
},
54-
"github:aurelia/metadata@0.4.0": {
55-
"core-js": "github:zloirock/core-js@0.8.1"
47+
"github:aurelia/metadata@0.5.0": {
48+
"core-js": "npm:core-js@0.9.5"
5649
},
57-
"github:aurelia/templating@0.10.0": {
58-
"aurelia-binding": "github:aurelia/binding@0.5.0",
59-
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.6.0",
50+
"github:aurelia/templating@0.11.0": {
51+
"aurelia-binding": "github:aurelia/binding@0.6.0",
52+
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.7.0",
6053
"aurelia-html-template-element": "github:aurelia/html-template-element@0.2.0",
61-
"aurelia-loader": "github:aurelia/loader@0.5.0",
62-
"aurelia-logging": "github:aurelia/logging@0.3.0",
63-
"aurelia-metadata": "github:aurelia/metadata@0.4.0",
64-
"aurelia-path": "github:aurelia/path@0.5.0",
65-
"aurelia-task-queue": "github:aurelia/task-queue@0.3.0",
66-
"core-js": "github:zloirock/core-js@0.8.1"
67-
},
68-
"github:aurelia/templating@0.9.0": {
69-
"aurelia-binding": "github:aurelia/binding@0.4.0",
70-
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.5.0",
71-
"aurelia-html-template-element": "github:aurelia/html-template-element@0.1.3",
72-
"aurelia-loader": "github:aurelia/loader@0.4.0",
73-
"aurelia-logging": "github:aurelia/logging@0.2.6",
74-
"aurelia-metadata": "github:aurelia/metadata@0.3.4",
75-
"aurelia-path": "github:aurelia/path@0.4.6",
76-
"aurelia-task-queue": "github:aurelia/task-queue@0.2.5",
77-
"core-js": "npm:core-js@0.4.10"
54+
"aurelia-loader": "github:aurelia/loader@0.6.0",
55+
"aurelia-logging": "github:aurelia/logging@0.4.0",
56+
"aurelia-metadata": "github:aurelia/metadata@0.5.0",
57+
"aurelia-path": "github:aurelia/path@0.6.0",
58+
"aurelia-task-queue": "github:aurelia/task-queue@0.4.0",
59+
"core-js": "npm:core-js@0.9.5"
7860
},
7961
"github:jspm/nodelibs-process@0.1.1": {
8062
"process": "npm:process@0.10.1"
8163
},
82-
"npm:core-js@0.4.10": {
64+
"npm:core-js@0.9.5": {
8365
"process": "github:jspm/nodelibs-process@0.1.1"
8466
}
8567
}

dist/amd/aurelia.js

Lines changed: 91 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ define(['exports', 'core-js', 'aurelia-logging', 'aurelia-dependency-injection',
55

66
var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };
77

8-
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
9-
10-
Object.defineProperty(exports, '__esModule', {
11-
value: true
12-
});
8+
exports.__esModule = true;
139

1410
var _core = _interopRequire(_coreJs);
1511

@@ -73,112 +69,112 @@ define(['exports', 'core-js', 'aurelia-logging', 'aurelia-dependency-injection',
7369
this.withInstance(_aureliaTemplating.ResourceRegistry, this.resources);
7470
}
7571

76-
_createClass(Aurelia, [{
77-
key: 'withInstance',
78-
value: function withInstance(type, instance) {
79-
this.container.registerInstance(type, instance);
80-
return this;
81-
}
82-
}, {
83-
key: 'withSingleton',
84-
value: function withSingleton(type, implementation) {
85-
this.container.registerSingleton(type, implementation);
86-
return this;
87-
}
88-
}, {
89-
key: 'globalizeResources',
90-
value: function globalizeResources(resources) {
91-
var toAdd = Array.isArray(resources) ? resources : arguments,
92-
i,
93-
ii,
94-
pluginPath = this.currentPluginId || '',
95-
path,
96-
internalPlugin = pluginPath.startsWith('./');
97-
98-
for (i = 0, ii = toAdd.length; i < ii; ++i) {
99-
path = internalPlugin ? _aureliaPath.relativeToFile(toAdd[i], pluginPath) : _aureliaPath.join(pluginPath, toAdd[i]);
100-
101-
this.resourcesToLoad[path] = this.resourcesToLoad[path];
102-
}
72+
Aurelia.prototype.withInstance = function withInstance(type, instance) {
73+
this.container.registerInstance(type, instance);
74+
return this;
75+
};
10376

104-
return this;
105-
}
106-
}, {
107-
key: 'renameGlobalResource',
108-
value: function renameGlobalResource(resourcePath, newName) {
109-
this.resourcesToLoad[resourcePath] = newName;
110-
return this;
111-
}
112-
}, {
113-
key: 'start',
114-
value: function start() {
115-
var _this = this;
77+
Aurelia.prototype.withSingleton = function withSingleton(type, implementation) {
78+
this.container.registerSingleton(type, implementation);
79+
return this;
80+
};
11681

117-
if (this.started) {
118-
return Promise.resolve(this);
82+
Aurelia.prototype.globalizeResources = function globalizeResources(resources) {
83+
var toAdd = Array.isArray(resources) ? resources : arguments,
84+
i,
85+
ii,
86+
resource,
87+
pluginPath = this.currentPluginId || '',
88+
path,
89+
internalPlugin = pluginPath.startsWith('./');
90+
91+
for (i = 0, ii = toAdd.length; i < ii; ++i) {
92+
resource = toAdd[i];
93+
if (typeof resource != 'string') {
94+
throw new Error('Invalid resource path [' + resource + ']. Resources must be specified as relative module IDs.');
11995
}
12096

121-
this.started = true;
122-
logger.info('Aurelia Starting');
97+
path = internalPlugin ? _aureliaPath.relativeToFile(resource, pluginPath) : _aureliaPath.join(pluginPath, resource);
12398

124-
preventActionlessFormSubmit();
99+
this.resourcesToLoad[path] = this.resourcesToLoad[path];
100+
}
125101

126-
return this.use._process().then(function () {
127-
if (!_this.container.hasHandler(_aureliaTemplating.BindingLanguage)) {
128-
var message = 'You must configure Aurelia with a BindingLanguage implementation.';
129-
logger.error(message);
130-
throw new Error(message);
131-
}
102+
return this;
103+
};
132104

133-
if (!_this.container.hasHandler(_aureliaTemplating.Animator)) {
134-
_aureliaTemplating.Animator.configureDefault(_this.container);
135-
}
105+
Aurelia.prototype.renameGlobalResource = function renameGlobalResource(resourcePath, newName) {
106+
this.resourcesToLoad[resourcePath] = newName;
107+
return this;
108+
};
136109

137-
return loadResources(_this.container, _this.resourcesToLoad, _this.resources).then(function () {
138-
logger.info('Aurelia Started');
139-
var evt = new window.CustomEvent('aurelia-started', { bubbles: true, cancelable: true });
140-
document.dispatchEvent(evt);
141-
return _this;
142-
});
143-
});
110+
Aurelia.prototype.start = function start() {
111+
var _this = this;
112+
113+
if (this.started) {
114+
return Promise.resolve(this);
144115
}
145-
}, {
146-
key: 'setRoot',
147-
value: function setRoot() {
148-
var _this2 = this;
149116

150-
var root = arguments[0] === undefined ? 'app' : arguments[0];
151-
var applicationHost = arguments[1] === undefined ? null : arguments[1];
117+
this.started = true;
118+
logger.info('Aurelia Starting');
119+
120+
preventActionlessFormSubmit();
152121

153-
var compositionEngine,
154-
instruction = {};
122+
return this.use._process().then(function () {
123+
if (!_this.container.hasHandler(_aureliaTemplating.BindingLanguage)) {
124+
var message = 'You must configure Aurelia with a BindingLanguage implementation.';
125+
logger.error(message);
126+
throw new Error(message);
127+
}
155128

156-
if (!applicationHost || typeof applicationHost == 'string') {
157-
this.host = document.getElementById(applicationHost || 'applicationHost') || document.body;
158-
} else {
159-
this.host = applicationHost;
129+
if (!_this.container.hasHandler(_aureliaTemplating.Animator)) {
130+
_aureliaTemplating.Animator.configureDefault(_this.container);
160131
}
161132

162-
this.host.aurelia = this;
163-
this.container.registerInstance(Element, this.host);
164-
165-
compositionEngine = this.container.get(_aureliaTemplating.CompositionEngine);
166-
instruction.viewModel = root;
167-
instruction.container = instruction.childContainer = this.container;
168-
instruction.viewSlot = new _aureliaTemplating.ViewSlot(this.host, true);
169-
instruction.viewSlot.transformChildNodesIntoView();
170-
171-
return compositionEngine.compose(instruction).then(function (root) {
172-
_this2.root = root;
173-
instruction.viewSlot.attached();
174-
var evt = new window.CustomEvent('aurelia-composed', { bubbles: true, cancelable: true });
175-
setTimeout(function () {
176-
return document.dispatchEvent(evt);
177-
}, 1);
178-
return _this2;
133+
return loadResources(_this.container, _this.resourcesToLoad, _this.resources).then(function () {
134+
logger.info('Aurelia Started');
135+
var evt = new window.CustomEvent('aurelia-started', { bubbles: true, cancelable: true });
136+
document.dispatchEvent(evt);
137+
return _this;
179138
});
139+
});
140+
};
141+
142+
Aurelia.prototype.setRoot = function setRoot() {
143+
var _this2 = this;
144+
145+
var root = arguments[0] === undefined ? 'app' : arguments[0];
146+
var applicationHost = arguments[1] === undefined ? null : arguments[1];
147+
148+
var compositionEngine,
149+
instruction = {};
150+
151+
applicationHost = applicationHost || this.host;
152+
153+
if (!applicationHost || typeof applicationHost == 'string') {
154+
this.host = document.getElementById(applicationHost || 'applicationHost') || document.body;
155+
} else {
156+
this.host = applicationHost;
180157
}
181-
}]);
158+
159+
this.host.aurelia = this;
160+
this.container.registerInstance(Element, this.host);
161+
162+
compositionEngine = this.container.get(_aureliaTemplating.CompositionEngine);
163+
instruction.viewModel = root;
164+
instruction.container = instruction.childContainer = this.container;
165+
instruction.viewSlot = new _aureliaTemplating.ViewSlot(this.host, true);
166+
instruction.viewSlot.transformChildNodesIntoView();
167+
168+
return compositionEngine.compose(instruction).then(function (root) {
169+
_this2.root = root;
170+
instruction.viewSlot.attached();
171+
var evt = new window.CustomEvent('aurelia-composed', { bubbles: true, cancelable: true });
172+
setTimeout(function () {
173+
return document.dispatchEvent(evt);
174+
}, 1);
175+
return _this2;
176+
});
177+
};
182178

183179
return Aurelia;
184180
})();

dist/amd/index.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
define(['exports', 'aurelia-logging', './aurelia', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-metadata', 'aurelia-templating', 'aurelia-loader', 'aurelia-task-queue'], function (exports, _aureliaLogging, _aurelia, _aureliaDependencyInjection, _aureliaBinding, _aureliaMetadata, _aureliaTemplating, _aureliaLoader, _aureliaTaskQueue) {
22
'use strict';
33

4-
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
4+
var _interopRequireWildcard = function (obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (typeof obj === 'object' && obj !== null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } };
55

66
var _defaults = function (obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; };
77

8-
Object.defineProperty(exports, '__esModule', {
9-
value: true
10-
});
11-
Object.defineProperty(exports, 'Aurelia', {
12-
enumerable: true,
13-
get: function get() {
14-
return _aurelia.Aurelia;
15-
}
16-
});
8+
exports.__esModule = true;
9+
exports.Aurelia = _aurelia.Aurelia;
1710

1811
_defaults(exports, _interopRequireWildcard(_aureliaDependencyInjection));
1912

0 commit comments

Comments
 (0)