angular-pipes
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -0,1 +1,15 @@ | ||
# 2.1.0 | ||
* Update Angular to RC.5 | ||
* Add support for `NgModule` | ||
+ Ng2ArrayPipesModule | ||
+ Ng2MathPipesModule | ||
+ Ng2BooleanPipesModule | ||
+ Ng2StringPipesModule | ||
+ Ng2ObjectPipesModule | ||
+ Ng2AggregatePipesModule | ||
+ Ng2PipesModule (imports all the module above) | ||
+ The old token `NG2_PIPES` and the tokens for the categories will be removed for `rc.6` to allow people to migrate easily. | ||
+ The library will keep exporting invidual pipes as we may not need the all category in our application. | ||
# 2.0.0 | ||
@@ -2,0 +16,0 @@ |
49
index.ts
@@ -0,2 +1,4 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { NG2_BOOLEAN_PIPES } from './src/boolean'; | ||
@@ -16,2 +18,49 @@ import { NG2_MATH_PIPES } from './src/math'; | ||
@NgModule({ | ||
declarations: [NG2_ARRAY_PIPES] | ||
}) | ||
export class Ng2ArrayPipesModule {} | ||
@NgModule({ | ||
declarations: [NG2_MATH_PIPES] | ||
}) | ||
export class Ng2MathPipesModule {} | ||
@NgModule({ | ||
declarations: [NG2_BOOLEAN_PIPES] | ||
}) | ||
export class Ng2BooleanPipesModule {} | ||
@NgModule({ | ||
declarations: [NG2_STRING_PIPES] | ||
}) | ||
export class Ng2StringPipesModule {} | ||
@NgModule({ | ||
declarations: [NG2_OBJECT_PIPES] | ||
}) | ||
export class Ng2ObjectPipesModule {} | ||
@NgModule({ | ||
declarations: [NG2_AGGREGATE_PIPES] | ||
}) | ||
export class Ng2AggregatePipesModule {} | ||
@NgModule({ | ||
imports: [ | ||
Ng2ArrayPipesModule, | ||
Ng2MathPipesModule, | ||
Ng2BooleanPipesModule, | ||
Ng2StringPipesModule, | ||
Ng2ObjectPipesModule, | ||
Ng2AggregatePipesModule | ||
] | ||
}) | ||
export class Ng2PipesModule {} | ||
/** | ||
* @deprecated will be removed for RC.6 | ||
*/ | ||
export const NG2_PIPES = [ | ||
@@ -18,0 +67,0 @@ ...NG2_BOOLEAN_PIPES, |
@@ -9,4 +9,4 @@ SystemJS.config({ | ||
map: { | ||
"@angular/testing": "jspm_packages/npm/@angular/core@2.0.0-rc.4/testing.js" | ||
"@angular/testing": "jspm_packages/npm/@angular/core@2.0.0-rc.5/testing.js" | ||
} | ||
}); |
SystemJS.config({ | ||
devConfig: { | ||
"map": { | ||
"@angular/core": "npm:@angular/core@2.0.0-rc.4", | ||
"@angular/core": "npm:@angular/core@2.0.0-rc.5", | ||
"es6-shim": "github:es-shims/es6-shim@0.35.0", | ||
@@ -6,0 +6,0 @@ "os": "github:jspm/nodelibs-os@0.2.0-alpha", |
{ | ||
"name": "angular-pipes", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Angular 2 pipes library", | ||
@@ -32,3 +32,3 @@ "main": "pipes/index.js", | ||
"devDependencies": { | ||
"@angular/core": "^2.0.0-rc.4", | ||
"@angular/core": "^2.0.0-rc.5", | ||
"es6-shim": "^0.35.0", | ||
@@ -57,3 +57,3 @@ "gulp": "^3.9.1", | ||
"devDependencies": { | ||
"@angular/core": "npm:@angular/core@^2.0.0-rc.4", | ||
"@angular/core": "npm:@angular/core@^2.0.0-rc.5", | ||
"reflect-metadata": "npm:reflect-metadata@^0.1.3", | ||
@@ -68,3 +68,3 @@ "es6-shim": "github:es-shims/es6-shim@^0.35.0", | ||
"overrides": { | ||
"npm:@angular/core@2.0.0-rc.4": { | ||
"npm:@angular/core@2.0.0-rc.5": { | ||
"meta": { | ||
@@ -71,0 +71,0 @@ "src/*.js": { |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var core_1 = require('@angular/core'); | ||
var boolean_1 = require('./src/boolean'); | ||
@@ -17,3 +27,97 @@ var math_1 = require('./src/math'); | ||
__export(require('./src/aggregate')); | ||
var Ng2ArrayPipesModule = (function () { | ||
function Ng2ArrayPipesModule() { | ||
} | ||
Ng2ArrayPipesModule = __decorate([ | ||
core_1.NgModule({ | ||
declarations: [array_1.NG2_ARRAY_PIPES] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], Ng2ArrayPipesModule); | ||
return Ng2ArrayPipesModule; | ||
}()); | ||
exports.Ng2ArrayPipesModule = Ng2ArrayPipesModule; | ||
var Ng2MathPipesModule = (function () { | ||
function Ng2MathPipesModule() { | ||
} | ||
Ng2MathPipesModule = __decorate([ | ||
core_1.NgModule({ | ||
declarations: [math_1.NG2_MATH_PIPES] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], Ng2MathPipesModule); | ||
return Ng2MathPipesModule; | ||
}()); | ||
exports.Ng2MathPipesModule = Ng2MathPipesModule; | ||
var Ng2BooleanPipesModule = (function () { | ||
function Ng2BooleanPipesModule() { | ||
} | ||
Ng2BooleanPipesModule = __decorate([ | ||
core_1.NgModule({ | ||
declarations: [boolean_1.NG2_BOOLEAN_PIPES] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], Ng2BooleanPipesModule); | ||
return Ng2BooleanPipesModule; | ||
}()); | ||
exports.Ng2BooleanPipesModule = Ng2BooleanPipesModule; | ||
var Ng2StringPipesModule = (function () { | ||
function Ng2StringPipesModule() { | ||
} | ||
Ng2StringPipesModule = __decorate([ | ||
core_1.NgModule({ | ||
declarations: [string_1.NG2_STRING_PIPES] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], Ng2StringPipesModule); | ||
return Ng2StringPipesModule; | ||
}()); | ||
exports.Ng2StringPipesModule = Ng2StringPipesModule; | ||
var Ng2ObjectPipesModule = (function () { | ||
function Ng2ObjectPipesModule() { | ||
} | ||
Ng2ObjectPipesModule = __decorate([ | ||
core_1.NgModule({ | ||
declarations: [object_1.NG2_OBJECT_PIPES] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], Ng2ObjectPipesModule); | ||
return Ng2ObjectPipesModule; | ||
}()); | ||
exports.Ng2ObjectPipesModule = Ng2ObjectPipesModule; | ||
var Ng2AggregatePipesModule = (function () { | ||
function Ng2AggregatePipesModule() { | ||
} | ||
Ng2AggregatePipesModule = __decorate([ | ||
core_1.NgModule({ | ||
declarations: [aggregate_1.NG2_AGGREGATE_PIPES] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], Ng2AggregatePipesModule); | ||
return Ng2AggregatePipesModule; | ||
}()); | ||
exports.Ng2AggregatePipesModule = Ng2AggregatePipesModule; | ||
var Ng2PipesModule = (function () { | ||
function Ng2PipesModule() { | ||
} | ||
Ng2PipesModule = __decorate([ | ||
core_1.NgModule({ | ||
imports: [ | ||
Ng2ArrayPipesModule, | ||
Ng2MathPipesModule, | ||
Ng2BooleanPipesModule, | ||
Ng2StringPipesModule, | ||
Ng2ObjectPipesModule, | ||
Ng2AggregatePipesModule | ||
] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], Ng2PipesModule); | ||
return Ng2PipesModule; | ||
}()); | ||
exports.Ng2PipesModule = Ng2PipesModule; | ||
/** | ||
* @deprecated will be removed for RC.6 | ||
*/ | ||
exports.NG2_PIPES = boolean_1.NG2_BOOLEAN_PIPES.concat(math_1.NG2_MATH_PIPES, array_1.NG2_ARRAY_PIPES, string_1.NG2_STRING_PIPES, object_1.NG2_OBJECT_PIPES, aggregate_1.NG2_AGGREGATE_PIPES); | ||
//# sourceMappingURL=index.js.map |
@@ -9,8 +9,6 @@ [](https://npmjs.org/package/angular-pipes) | ||
# v2.0.0 | ||
# rc.5 support ! | ||
## **WARNING** | ||
Read the changelog for more information | ||
`2.0.0` brings some breaking changes, make sure to check the [CHANGELOG](./CHANGELOG.md). | ||
## Contribute | ||
@@ -17,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
336862
6095
187