Skip to content

Commit

Permalink
chore(all): prepare release 0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Aug 14, 2015
1 parent 9731a85 commit fc7968d
Show file tree
Hide file tree
Showing 14 changed files with 235 additions and 227 deletions.
8 changes: 4 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-templating-binding",
"version": "0.13.2",
"version": "0.14.0",
"description": "An implementation of the templating engine's Binding Language abstraction which uses a pluggable command syntax.",
"keywords": [
"aurelia",
Expand All @@ -18,8 +18,8 @@
"url": "http://github.com/aurelia/templating-binding"
},
"dependencies": {
"aurelia-binding": "^0.8.3",
"aurelia-logging": "^0.6.2",
"aurelia-templating": "^0.13.12"
"aurelia-binding": "^0.8.6",
"aurelia-logging": "^0.6.4",
"aurelia-templating": "^0.14.0"
}
}
40 changes: 20 additions & 20 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,42 +16,42 @@ System.config({

System.config({
"map": {
"aurelia-binding": "github:aurelia/[email protected].3",
"aurelia-logging": "github:aurelia/[email protected].2",
"aurelia-templating": "github:aurelia/templating@0.13.12",
"aurelia-binding": "github:aurelia/[email protected].6",
"aurelia-logging": "github:aurelia/[email protected].4",
"aurelia-templating": "github:aurelia/templating@0.14.0",
"babel": "npm:[email protected]",
"babel-runtime": "npm:[email protected]",
"core-js": "npm:[email protected]",
"github:aurelia/[email protected].3": {
"aurelia-dependency-injection": "github:aurelia/[email protected].1",
"aurelia-metadata": "github:aurelia/[email protected].1",
"aurelia-task-queue": "github:aurelia/[email protected].1",
"github:aurelia/[email protected].6": {
"aurelia-dependency-injection": "github:aurelia/[email protected].2",
"aurelia-metadata": "github:aurelia/[email protected].3",
"aurelia-task-queue": "github:aurelia/[email protected].2",
"core-js": "npm:[email protected]"
},
"github:aurelia/[email protected].1": {
"aurelia-logging": "github:aurelia/[email protected].2",
"aurelia-metadata": "github:aurelia/[email protected].1",
"github:aurelia/[email protected].2": {
"aurelia-logging": "github:aurelia/[email protected].4",
"aurelia-metadata": "github:aurelia/[email protected].3",
"core-js": "npm:[email protected]"
},
"github:aurelia/[email protected].3": {
"github:aurelia/[email protected].5": {
"aurelia-html-template-element": "github:aurelia/[email protected]",
"aurelia-metadata": "github:aurelia/[email protected].1",
"aurelia-metadata": "github:aurelia/[email protected].3",
"aurelia-path": "github:aurelia/[email protected]",
"core-js": "npm:[email protected]",
"webcomponentsjs": "github:webcomponents/[email protected]"
},
"github:aurelia/[email protected].1": {
"github:aurelia/[email protected].3": {
"core-js": "npm:[email protected]"
},
"github:aurelia/templating@0.13.12": {
"aurelia-binding": "github:aurelia/[email protected].3",
"aurelia-dependency-injection": "github:aurelia/[email protected].1",
"github:aurelia/templating@0.14.0": {
"aurelia-binding": "github:aurelia/[email protected].6",
"aurelia-dependency-injection": "github:aurelia/[email protected].2",
"aurelia-html-template-element": "github:aurelia/[email protected]",
"aurelia-loader": "github:aurelia/[email protected].3",
"aurelia-logging": "github:aurelia/[email protected].2",
"aurelia-metadata": "github:aurelia/[email protected].1",
"aurelia-loader": "github:aurelia/[email protected].5",
"aurelia-logging": "github:aurelia/[email protected].4",
"aurelia-metadata": "github:aurelia/[email protected].3",
"aurelia-path": "github:aurelia/[email protected]",
"aurelia-task-queue": "github:aurelia/[email protected].1",
"aurelia-task-queue": "github:aurelia/[email protected].2",
"core-js": "npm:[email protected]"
},
"github:jspm/[email protected]": {
Expand Down
6 changes: 3 additions & 3 deletions dist/amd/aurelia-templating-binding.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
declare module 'aurelia-templating-binding' {
import { Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, NameExpression, CallExpression, bindingMode } from 'aurelia-binding';
import { BindingLanguage } from 'aurelia-templating';
import * as LogManager from 'aurelia-logging';
import { Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, NameExpression, CallExpression, bindingMode } from 'aurelia-binding';
import { BehaviorInstruction, BindingLanguage } from 'aurelia-templating';
export class SyntaxInterpreter {
static inject(): any;
constructor(parser: any, observerLocator: any, eventManager: any);
Expand Down Expand Up @@ -36,5 +36,5 @@ declare module 'aurelia-templating-binding' {
interpolate(): any;
unbind(): any;
}
export function configure(aurelia: any): any;
export function configure(config: any): any;
}
66 changes: 33 additions & 33 deletions dist/amd/aurelia-templating-binding.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-logging'], function (exports, _aureliaBinding, _aureliaTemplating, _aureliaLogging) {
define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'], function (exports, _aureliaLogging, _aureliaBinding, _aureliaTemplating) {
'use strict';

exports.__esModule = true;
exports.configure = configure;

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

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

var SyntaxInterpreter = (function () {
SyntaxInterpreter.inject = function inject() {
return [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, _aureliaBinding.EventManager];
};

function SyntaxInterpreter(parser, observerLocator, eventManager) {
_classCallCheck(this, SyntaxInterpreter);

Expand All @@ -17,10 +21,6 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-logging'],
this.eventManager = eventManager;
}

SyntaxInterpreter.inject = function inject() {
return [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, _aureliaBinding.EventManager];
};

SyntaxInterpreter.prototype.interpret = function interpret(resources, element, info, existingInstruction) {
if (info.command in this) {
return this[info.command](resources, element, info, existingInstruction);
Expand Down Expand Up @@ -60,7 +60,7 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-logging'],
};

SyntaxInterpreter.prototype.bind = function bind(resources, element, info, existingInstruction) {
var instruction = existingInstruction || { attrName: info.attrName, attributes: {} };
var instruction = existingInstruction || _aureliaTemplating.BehaviorInstruction.attribute(info.attrName);

instruction.attributes[info.attrName] = new _aureliaBinding.BindingExpression(this.observerLocator, this.attributeMap[info.attrName] || info.attrName, this.parser.parse(info.attrValue), info.defaultBindingMode || this.determineDefaultBindingMode(element, info.attrName), resources.valueConverterLookupFunction);

Expand All @@ -76,15 +76,15 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-logging'],
};

SyntaxInterpreter.prototype.call = function call(resources, element, info, existingInstruction) {
var instruction = existingInstruction || { attrName: info.attrName, attributes: {} };
var instruction = existingInstruction || _aureliaTemplating.BehaviorInstruction.attribute(info.attrName);

instruction.attributes[info.attrName] = new _aureliaBinding.CallExpression(this.observerLocator, info.attrName, this.parser.parse(info.attrValue), resources.valueConverterLookupFunction);

return instruction;
};

SyntaxInterpreter.prototype.options = function options(resources, element, info, existingInstruction) {
var instruction = existingInstruction || { attrName: info.attrName, attributes: {} },
var instruction = existingInstruction || _aureliaTemplating.BehaviorInstruction.attribute(info.attrName),
attrValue = info.attrValue,
language = this.language,
name = null,
Expand Down Expand Up @@ -141,7 +141,7 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-logging'],
throw new Error('Incorrect syntax for "for". The form is: "$local of $items" or "[$key, $value] of $items".');
}

instruction = existingInstruction || { attrName: info.attrName, attributes: {} };
instruction = existingInstruction || _aureliaTemplating.BehaviorInstruction.attribute(info.attrName);

if (isDestructuring) {
keyValue = parts[0].replace(/[[\]]/g, '').replace(/,/g, ' ').replace(/\s+/g, ' ').trim().split(' ');
Expand All @@ -157,23 +157,23 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-logging'],
};

SyntaxInterpreter.prototype['two-way'] = function (resources, element, info, existingInstruction) {
var instruction = existingInstruction || { attrName: info.attrName, attributes: {} };
var instruction = existingInstruction || _aureliaTemplating.BehaviorInstruction.attribute(info.attrName);

instruction.attributes[info.attrName] = new _aureliaBinding.BindingExpression(this.observerLocator, this.attributeMap[info.attrName] || info.attrName, this.parser.parse(info.attrValue), _aureliaBinding.bindingMode.twoWay, resources.valueConverterLookupFunction);

return instruction;
};

SyntaxInterpreter.prototype['one-way'] = function (resources, element, info, existingInstruction) {
var instruction = existingInstruction || { attrName: info.attrName, attributes: {} };
var instruction = existingInstruction || _aureliaTemplating.BehaviorInstruction.attribute(info.attrName);

instruction.attributes[info.attrName] = new _aureliaBinding.BindingExpression(this.observerLocator, this.attributeMap[info.attrName] || info.attrName, this.parser.parse(info.attrValue), _aureliaBinding.bindingMode.oneWay, resources.valueConverterLookupFunction);

return instruction;
};

SyntaxInterpreter.prototype['one-time'] = function (resources, element, info, existingInstruction) {
var instruction = existingInstruction || { attrName: info.attrName, attributes: {} };
var instruction = existingInstruction || _aureliaTemplating.BehaviorInstruction.attribute(info.attrName);

instruction.attributes[info.attrName] = new _aureliaBinding.BindingExpression(this.observerLocator, this.attributeMap[info.attrName] || info.attrName, this.parser.parse(info.attrValue), _aureliaBinding.bindingMode.oneTime, resources.valueConverterLookupFunction);

Expand All @@ -184,6 +184,12 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-logging'],
logger = _aureliaLogging.getLogger('templating-binding');

var TemplatingBindingLanguage = (function (_BindingLanguage) {
_inherits(TemplatingBindingLanguage, _BindingLanguage);

TemplatingBindingLanguage.inject = function inject() {
return [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, SyntaxInterpreter];
};

function TemplatingBindingLanguage(parser, observerLocator, syntaxInterpreter) {
_classCallCheck(this, TemplatingBindingLanguage);

Expand Down Expand Up @@ -215,12 +221,6 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-logging'],
};
}

_inherits(TemplatingBindingLanguage, _BindingLanguage);

TemplatingBindingLanguage.inject = function inject() {
return [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, SyntaxInterpreter];
};

TemplatingBindingLanguage.prototype.inspectAttribute = function inspectAttribute(resources, attrName, attrValue) {
var parts = attrName.split('.');

Expand Down Expand Up @@ -261,7 +261,7 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-logging'],
return info.expression;
}

instruction = existingInstruction || { attrName: info.attrName, attributes: {} };
instruction = existingInstruction || _aureliaTemplating.BehaviorInstruction.attribute(info.attrName);
instruction.attributes[info.attrName] = info.expression;
} else if (info.command) {
instruction = this.syntaxInterpreter.interpret(resources, element, info, existingInstruction);
Expand Down Expand Up @@ -293,7 +293,7 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-logging'],
char = attrValue[i];
i++;
switch (char) {
case '\'':
case "'":
case '"':
if (quote === null) {
quote = char;
Expand Down Expand Up @@ -456,14 +456,14 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-logging'],

for (i = 0, ii = parts.length; i < ii; ++i) {
if (i % 2 === 0) {} else {
info = parts[i].connect(this, source);
if (info.observer) {
toDispose.push(info.observer.subscribe(partChanged));
info = parts[i].connect(this, source);
if (info.observer) {
toDispose.push(info.observer.subscribe(partChanged));
}
if (info.value instanceof Array) {
partChanged(info.value, undefined, true);
}
}
if (info.value instanceof Array) {
partChanged(info.value, undefined, true);
}
}
}
};

Expand Down Expand Up @@ -524,18 +524,18 @@ define(['exports', 'aurelia-binding', 'aurelia-templating', 'aurelia-logging'],
return InterpolationBinding;
})();

function configure(aurelia) {
function configure(config) {
var instance,
getInstance = function getInstance(c) {
return instance || (instance = c.invoke(TemplatingBindingLanguage));
};

if (aurelia.container.hasHandler(TemplatingBindingLanguage)) {
instance = aurelia.container.get(TemplatingBindingLanguage);
if (config.container.hasHandler(TemplatingBindingLanguage)) {
instance = config.container.get(TemplatingBindingLanguage);
} else {
aurelia.container.registerHandler(TemplatingBindingLanguage, getInstance);
config.container.registerHandler(TemplatingBindingLanguage, getInstance);
}

aurelia.container.registerHandler(_aureliaTemplating.BindingLanguage, getInstance);
config.container.registerHandler(_aureliaTemplating.BindingLanguage, getInstance);
}
});
6 changes: 3 additions & 3 deletions dist/aurelia-templating-binding.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
declare module 'aurelia-templating-binding' {
import { Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, NameExpression, CallExpression, bindingMode } from 'aurelia-binding';
import { BindingLanguage } from 'aurelia-templating';
import * as LogManager from 'aurelia-logging';
import { Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, NameExpression, CallExpression, bindingMode } from 'aurelia-binding';
import { BehaviorInstruction, BindingLanguage } from 'aurelia-templating';
export class SyntaxInterpreter {
static inject(): any;
constructor(parser: any, observerLocator: any, eventManager: any);
Expand Down Expand Up @@ -36,5 +36,5 @@ declare module 'aurelia-templating-binding' {
interpolate(): any;
unbind(): any;
}
export function configure(aurelia: any): any;
export function configure(config: any): any;
}
Loading

0 comments on commit fc7968d

Please sign in to comment.