Skip to content

Commit 46addcb

Browse files
chore(all): prepare release 0.15.0
1 parent b7573b7 commit 46addcb

15 files changed

+33940
-3568
lines changed

bower.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aurelia-framework",
3-
"version": "0.14.1",
3+
"version": "0.15.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.8.3",
21-
"aurelia-dependency-injection": "^0.9.1",
22-
"aurelia-loader": "^0.8.3",
23-
"aurelia-logging": "^0.6.2",
24-
"aurelia-metadata": "^0.7.1",
20+
"aurelia-binding": "^0.8.6",
21+
"aurelia-dependency-injection": "^0.9.2",
22+
"aurelia-loader": "^0.8.7",
23+
"aurelia-logging": "^0.6.4",
24+
"aurelia-metadata": "^0.7.3",
2525
"aurelia-path": "^0.8.1",
26-
"aurelia-task-queue": "^0.6.1",
27-
"aurelia-templating": "^0.13.16",
26+
"aurelia-task-queue": "^0.6.2",
27+
"aurelia-templating": "^0.14.0",
2828
"core-js": "zloirock/core-js"
2929
}
3030
}

config.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,47 +16,47 @@ System.config({
1616

1717
System.config({
1818
"map": {
19-
"aurelia-binding": "github:aurelia/[email protected].5",
20-
"aurelia-dependency-injection": "github:aurelia/[email protected].1",
21-
"aurelia-loader": "github:aurelia/[email protected].3",
22-
"aurelia-logging": "github:aurelia/[email protected].2",
23-
"aurelia-metadata": "github:aurelia/[email protected].2",
19+
"aurelia-binding": "github:aurelia/[email protected].6",
20+
"aurelia-dependency-injection": "github:aurelia/[email protected].2",
21+
"aurelia-loader": "github:aurelia/[email protected].7",
22+
"aurelia-logging": "github:aurelia/[email protected].4",
23+
"aurelia-metadata": "github:aurelia/[email protected].3",
2424
"aurelia-path": "github:aurelia/[email protected]",
25-
"aurelia-task-queue": "github:aurelia/[email protected].1",
26-
"aurelia-templating": "github:aurelia/templating@0.13.16",
25+
"aurelia-task-queue": "github:aurelia/[email protected].2",
26+
"aurelia-templating": "github:aurelia/templating@0.14.1",
2727
"babel": "npm:[email protected]",
2828
"babel-runtime": "npm:[email protected]",
2929
"core-js": "npm:[email protected]",
30-
"github:aurelia/[email protected].5": {
31-
"aurelia-dependency-injection": "github:aurelia/[email protected].1",
32-
"aurelia-metadata": "github:aurelia/[email protected].2",
33-
"aurelia-task-queue": "github:aurelia/[email protected].1",
30+
"github:aurelia/[email protected].6": {
31+
"aurelia-dependency-injection": "github:aurelia/[email protected].2",
32+
"aurelia-metadata": "github:aurelia/[email protected].3",
33+
"aurelia-task-queue": "github:aurelia/[email protected].2",
3434
"core-js": "npm:[email protected]"
3535
},
36-
"github:aurelia/[email protected].1": {
37-
"aurelia-logging": "github:aurelia/[email protected].2",
38-
"aurelia-metadata": "github:aurelia/[email protected].2",
36+
"github:aurelia/[email protected].2": {
37+
"aurelia-logging": "github:aurelia/[email protected].4",
38+
"aurelia-metadata": "github:aurelia/[email protected].3",
3939
"core-js": "npm:[email protected]"
4040
},
41-
"github:aurelia/[email protected].3": {
41+
"github:aurelia/[email protected].7": {
4242
"aurelia-html-template-element": "github:aurelia/[email protected]",
43-
"aurelia-metadata": "github:aurelia/[email protected].2",
43+
"aurelia-metadata": "github:aurelia/[email protected].3",
4444
"aurelia-path": "github:aurelia/[email protected]",
4545
"core-js": "npm:[email protected]",
4646
"webcomponentsjs": "github:webcomponents/[email protected]"
4747
},
48-
"github:aurelia/[email protected].2": {
48+
"github:aurelia/[email protected].3": {
4949
"core-js": "npm:[email protected]"
5050
},
51-
"github:aurelia/templating@0.13.16": {
52-
"aurelia-binding": "github:aurelia/[email protected].5",
53-
"aurelia-dependency-injection": "github:aurelia/[email protected].1",
51+
"github:aurelia/templating@0.14.1": {
52+
"aurelia-binding": "github:aurelia/[email protected].6",
53+
"aurelia-dependency-injection": "github:aurelia/[email protected].2",
5454
"aurelia-html-template-element": "github:aurelia/[email protected]",
55-
"aurelia-loader": "github:aurelia/[email protected].3",
56-
"aurelia-logging": "github:aurelia/[email protected].2",
57-
"aurelia-metadata": "github:aurelia/[email protected].2",
55+
"aurelia-loader": "github:aurelia/[email protected].7",
56+
"aurelia-logging": "github:aurelia/[email protected].4",
57+
"aurelia-metadata": "github:aurelia/[email protected].3",
5858
"aurelia-path": "github:aurelia/[email protected]",
59-
"aurelia-task-queue": "github:aurelia/[email protected].1",
59+
"aurelia-task-queue": "github:aurelia/[email protected].2",
6060
"core-js": "npm:[email protected]"
6161
},
6262
"github:jspm/[email protected]": {

dist/amd/aurelia-framework.d.ts

Lines changed: 103 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,172 @@
11
declare module 'aurelia-framework' {
2-
import core from 'core-js';
2+
import * as core from 'core-js';
33
import * as TheLogManager from 'aurelia-logging';
44
import { Metadata } from 'aurelia-metadata';
5+
import { ViewEngine, BindingLanguage, ViewSlot, ViewResources, CompositionEngine, Animator, DOMBoundary } from 'aurelia-templating';
6+
import { join } from 'aurelia-path';
57
import { Container } from 'aurelia-dependency-injection';
68
import { Loader } from 'aurelia-loader';
7-
import { join, relativeToFile } from 'aurelia-path';
8-
import { BindingLanguage, ViewEngine, ViewSlot, ResourceRegistry, CompositionEngine, Animator, DOMBoundary } from 'aurelia-templating';
99

1010
/**
11-
* Manages loading and configuring plugins.
11+
* Manages configuring the aurelia framework instance.
1212
*
13-
* @class Plugins
13+
* @class FrameworkConfiguration
1414
* @constructor
1515
* @param {Aurelia} aurelia An instance of Aurelia.
1616
*/
17-
export class Plugins {
17+
export class FrameworkConfiguration {
1818
constructor(aurelia: Aurelia);
1919

20+
/**
21+
* Adds an existing object to the framework's dependency injection container.
22+
*
23+
* @method instance
24+
* @param {Class} type The object type of the dependency that the framework will inject.
25+
* @param {Object} instance The existing instance of the dependency that the framework will inject.
26+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
27+
*/
28+
instance(type: any, instance: any): FrameworkConfiguration;
29+
30+
/**
31+
* Adds a singleton to the framework's dependency injection container.
32+
*
33+
* @method singleton
34+
* @param {Class} type The object type of the dependency that the framework will inject.
35+
* @param {Object} implementation The constructor function of the dependency that the framework will inject.
36+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
37+
*/
38+
singleton(type: any, implementation?: Function): FrameworkConfiguration;
39+
40+
/**
41+
* Adds a transient to the framework's dependency injection container.
42+
*
43+
* @method transient
44+
* @param {Class} type The object type of the dependency that the framework will inject.
45+
* @param {Object} implementation The constructor function of the dependency that the framework will inject.
46+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
47+
*/
48+
transient(type: any, implementation?: Function): FrameworkConfiguration;
49+
50+
/**
51+
* Adds an async function that runs before the plugins are run.
52+
*
53+
* @method addPreStartTask
54+
* @param {Function} task The function to run before start.
55+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
56+
*/
57+
preTask(task: Function): FrameworkConfiguration;
58+
59+
/**
60+
* Adds an async function that runs after the plugins are run.
61+
*
62+
* @method addPostStartTask
63+
* @param {Function} task The function to run after start.
64+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
65+
*/
66+
postTask(task: Function): FrameworkConfiguration;
67+
2068
/**
2169
* Configures an internal feature plugin before Aurelia starts.
2270
*
2371
* @method feature
2472
* @param {string} plugin The folder for the internal plugin to configure (expects an index.js in that folder).
2573
* @param {config} config The configuration for the specified plugin.
26-
* @return {Plugins} Returns the current Plugins instance.
74+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
2775
*/
28-
feature(plugin: string, config: any): Plugins;
76+
feature(plugin: string, config: any): FrameworkConfiguration;
77+
78+
/**
79+
* Adds globally available view resources to be imported into the Aurelia framework.
80+
*
81+
* @method globalResources
82+
* @param {Object|Array} resources The relative module id to the resource. (Relative to the plugin's installer.)
83+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
84+
*/
85+
globalResources(resources: string | string[]): FrameworkConfiguration;
86+
87+
/**
88+
* Renames a global resource that was imported.
89+
*
90+
* @method globalName
91+
* @param {String} resourcePath The path to the resource.
92+
* @param {String} newName The new name.
93+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
94+
*/
95+
globalName(resourcePath: string, newName: string): FrameworkConfiguration;
2996

3097
/**
3198
* Configures an external, 3rd party plugin before Aurelia starts.
3299
*
33100
* @method plugin
34101
* @param {string} plugin The ID of the 3rd party plugin to configure.
35102
* @param {config} config The configuration for the specified plugin.
36-
* @return {Plugins} Returns the current Plugins instance.
103+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
37104
*/
38-
plugin(plugin: string, config: any): Plugins;
105+
plugin(plugin: string, config: any): FrameworkConfiguration;
39106

40107
/**
41108
* Plugs in the default binding language from aurelia-templating-binding.
42109
*
43110
* @method defaultBindingLanguage
44-
* @return {Plugins} Returns the current Plugins instance.
111+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
45112
*/
46-
defaultBindingLanguage(): Plugins;
113+
defaultBindingLanguage(): FrameworkConfiguration;
47114

48115
/**
49116
* Plugs in the router from aurelia-templating-router.
50117
*
51118
* @method router
52-
* @return {Plugins} Returns the current Plugins instance.
119+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
53120
*/
54-
router(): Plugins;
121+
router(): FrameworkConfiguration;
55122

56123
/**
57124
* Plugs in the default history implementation from aurelia-history-browser.
58125
*
59126
* @method history
60-
* @return {Plugins} Returns the current Plugins instance.
127+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
61128
*/
62-
history(): Plugins;
129+
history(): FrameworkConfiguration;
63130

64131
/**
65132
* Plugs in the default templating resources (if, repeat, show, compose, etc.) from aurelia-templating-resources.
66133
*
67134
* @method defaultResources
68-
* @return {Plugins} Returns the current Plugins instance.
135+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
69136
*/
70-
defaultResources(): Plugins;
137+
defaultResources(): FrameworkConfiguration;
71138

72139
/**
73140
* Plugs in the event aggregator from aurelia-event-aggregator.
74141
*
75142
* @method eventAggregator
76-
* @return {Plugins} Returns the current Plugins instance.
143+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
77144
*/
78-
eventAggregator(): Plugins;
145+
eventAggregator(): FrameworkConfiguration;
79146

80147
/**
81148
* Sets up the Aurelia configuration. This is equivalent to calling `.defaultBindingLanguage().defaultResources().history().router().eventAggregator();`
82149
*
83150
* @method standardConfiguration
84-
* @return {Plugins} Returns the current Plugins instance.
151+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
85152
*/
86-
standardConfiguration(): Plugins;
153+
standardConfiguration(): FrameworkConfiguration;
87154

88155
/**
89156
* Plugs in the ConsoleAppender and sets the log level to debug.
90157
*
91158
* @method developmentLogging
92-
* @return {Plugins} Returns the current Plugins instance.
159+
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
160+
*/
161+
developmentLogging(): FrameworkConfiguration;
162+
163+
/**
164+
* Loads and configures the plugins registered with this instance.
165+
*
166+
* @method apply
167+
* @return Returns a promise which resolves when all plugins are loaded and configured.
93168
*/
94-
developmentLogging(): Plugins;
169+
apply(): Promise<void>;
95170
}
96171

97172
/**
@@ -101,81 +176,14 @@ declare module 'aurelia-framework' {
101176
* @constructor
102177
* @param {Loader} loader The loader for this Aurelia instance to use. If a loader is not specified, Aurelia will use a defaultLoader.
103178
* @param {Container} container The dependency injection container for this Aurelia instance to use. If a container is not specified, Aurelia will create an empty container.
104-
* @param {ResourceRegistry} resources The resource registry for this Aurelia instance to use. If a resource registry is not specified, Aurelia will create an empty registry.
179+
* @param {ViewResources} resources The resource registry for this Aurelia instance to use. If a resource registry is not specified, Aurelia will create an empty registry.
105180
*/
106181
export class Aurelia {
107182
loader: Loader;
108183
container: Container;
109-
resources: ResourceRegistry;
110-
use: Plugins;
111-
constructor(loader?: Loader, container?: Container, resources?: ResourceRegistry);
112-
113-
/**
114-
* Adds an existing object to the framework's dependency injection container.
115-
*
116-
* @method withInstance
117-
* @param {Class} type The object type of the dependency that the framework will inject.
118-
* @param {Object} instance The existing instance of the dependency that the framework will inject.
119-
* @return {Aurelia} Returns the current Aurelia instance.
120-
*/
121-
withInstance(type: any, instance: any): Aurelia;
122-
123-
/**
124-
* Adds a singleton to the framework's dependency injection container.
125-
*
126-
* @method withSingleton
127-
* @param {Class} type The object type of the dependency that the framework will inject.
128-
* @param {Object} implementation The constructor function of the dependency that the framework will inject.
129-
* @return {Aurelia} Returns the current Aurelia instance.
130-
*/
131-
withSingleton(type: any, implementation?: Function): Aurelia;
132-
133-
/**
134-
* Adds a transient to the framework's dependency injection container.
135-
*
136-
* @method withTransient
137-
* @param {Class} type The object type of the dependency that the framework will inject.
138-
* @param {Object} implementation The constructor function of the dependency that the framework will inject.
139-
* @return {Aurelia} Returns the current Aurelia instance.
140-
*/
141-
withTransient(type: any, implementation?: Function): Aurelia;
142-
143-
/**
144-
* Adds globally available view resources to be imported into the Aurelia framework.
145-
*
146-
* @method globalizeResources
147-
* @param {Object|Array} resources The relative module id to the resource. (Relative to the plugin's installer.)
148-
* @return {Aurelia} Returns the current Aurelia instance.
149-
*/
150-
globalizeResources(resources: string | string[]): Aurelia;
151-
152-
/**
153-
* Renames a global resource that was imported.
154-
*
155-
* @method renameGlobalResource
156-
* @param {String} resourcePath The path to the resource.
157-
* @param {String} newName The new name.
158-
* @return {Aurelia} Returns the current Aurelia instance.
159-
*/
160-
renameGlobalResource(resourcePath: string, newName: string): Aurelia;
161-
162-
/**
163-
* Adds an async function that runs before the plugins are run.
164-
*
165-
* @method addPreStartTask
166-
* @param {Function} task The function to run before start.
167-
* @return {Aurelia} Returns the current Aurelia instance.
168-
*/
169-
addPreStartTask(task: Function): Aurelia;
170-
171-
/**
172-
* Adds an async function that runs after the plugins are run.
173-
*
174-
* @method addPostStartTask
175-
* @param {Function} task The function to run after start.
176-
* @return {Aurelia} Returns the current Aurelia instance.
177-
*/
178-
addPostStartTask(task: Function): Aurelia;
184+
resources: ViewResources;
185+
use: FrameworkConfiguration;
186+
constructor(loader?: Loader, container?: Container, resources?: ViewResources);
179187

180188
/**
181189
* Loads plugins, then resources, and then starts the Aurelia instance.

0 commit comments

Comments
 (0)