Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fknop committed Sep 1, 2016
1 parent ea2cc33 commit 82ef04c
Show file tree
Hide file tree
Showing 22 changed files with 213 additions and 208 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 3.0.0

* Update Angular to RC.6
* Remove deprecated tokens.
+ `NG2_PIPES`, `NG2_BOOLEAN_PIPES`, etc.

# 2.2.0

* Update Angular to RC.5
Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Documentation

* [`Modules`](./modules.md)
* [`Collections`](./array.md)
* [`Booleans`](./boolean.md)
* [`Math`](./math.md)
Expand Down
1 change: 1 addition & 0 deletions docs/aggregate.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* [`mean`](#mean)
* [`sum`](#sum)

You can check the module import [`here`](./modules.md).

####min

Expand Down
1 change: 1 addition & 0 deletions docs/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* [`deep`](#deep)
* [`chunk`](#chunk)

You can check the module import [`here`](./modules.md).

####empty

Expand Down
1 change: 1 addition & 0 deletions docs/boolean.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* [`object`](#object)
* [`defined`](#defined)

You can check the module import [`here`](./modules.md).

####greater

Expand Down
1 change: 1 addition & 0 deletions docs/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* [`pow`](#pow)
* [`sqrt`](#sqrt)

You can check the module import [`here`](./modules.md).

####bytes

Expand Down
8 changes: 4 additions & 4 deletions docs/modules.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Modules

Angular rc.5 comes with `NgModule`.
Angular RC.5 comes with `NgModule`.

Since version `2.2.0` you can take advantage of these modules.

Each category of pipes has an exported module. And one module imports all these modules.

* Ng2AggregatePipesModule
* Ng2ArrayPipesModule
* Ng2MathPipesModule
* Ng2BooleanPipesModule
* Ng2StringPipesModule
* Ng2MathPipesModule
* Ng2ObjectPipesModule
* Ng2AggregatePipesModule
* Ng2StringPipesModule
* Ng2PipesModule (imports all the module above)


Expand Down
1 change: 1 addition & 0 deletions docs/object.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* [`keys`](#keys)
* [`toArray`](#toarray)

You can check the module import [`here`](./modules.md).

####keys

Expand Down
1 change: 1 addition & 0 deletions docs/string.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* [`repeat`](#repeat)
* [`truncate`](#truncate)

You can check the module import [`here`](./modules.md).

####leftpad

Expand Down
207 changes: 177 additions & 30 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,48 +1,200 @@
import { NgModule } from '@angular/core';

import {
IsGreaterPipe,
IsGreaterOrEqualPipe,
IsLessPipe,
IsLessOrEqualPipe,
IsEqualPipe,
IsNotEqualPipe,
IsIdenticalPipe,
IsNotIdenticalPipe,
IsNullPipe,
IsUndefinedPipe,
IsFunctionPipe,
IsNumberPipe,
IsStringPipe,
IsArrayPipe,
IsObjectPipe,
IsDefinedPipe
} from './src/boolean';

import { NG2_BOOLEAN_PIPES } from './src/boolean';
import { NG2_MATH_PIPES } from './src/math';
import { NG2_ARRAY_PIPES } from './src/array';
import { NG2_STRING_PIPES } from './src/string';
import { NG2_OBJECT_PIPES } from './src/object';
import { NG2_AGGREGATE_PIPES } from './src/aggregate';
import {
BytesPipe,
CeilPipe,
FloorPipe,
RoundPipe,
DegreesPipe,
RadiansPipe,
RandomPipe,
SqrtPipe,
PowPipe
} from './src/math';

export * from './src/boolean';
export * from './src/math';
export * from './src/array';
export * from './src/string';
export * from './src/object';
export * from './src/aggregate';
import {
MaxPipe,
MeanPipe,
MinPipe,
SumPipe
} from './src/aggregate';

import {
EmptyPipe,
HeadPipe,
InitialPipe,
LastPipe,
JoinPipe,
TailPipe,
UniqPipe,
WithoutPipe,
MapPipe,
WherePipe,
RangePipe,
PluckPipe,
ReversePipe,
OrderByPipe,
CountPipe,
SomePipe,
EveryPipe,
ShufflePipe,
TakePipe,
DropPipe,
DeepPipe,
ChunkPipe
} from './src/array';

import {
KeysPipe,
ToArrayPipe
} from './src/object';


import {
LeftPadPipe,
MatchPipe,
PadPipe,
ReplacePipe,
RightPadPipe,
SplitPipe,
TestPipe,
TrimPipe,
NewlinesPipe,
CapitalizePipe,
UpperFirstPipe,
TemplatePipe,
EncodeURIPipe,
EncodeURIComponentPipe,
TruncatePipe,
RepeatPipe
} from './src/string';


@NgModule({
exports: [NG2_ARRAY_PIPES]
exports: [
EmptyPipe,
HeadPipe,
InitialPipe,
LastPipe,
JoinPipe,
TailPipe,
UniqPipe,
WithoutPipe,
MapPipe,
WherePipe,
RangePipe,
PluckPipe,
ReversePipe,
OrderByPipe,
CountPipe,
SomePipe,
EveryPipe,
ShufflePipe,
TakePipe,
DropPipe,
DeepPipe,
ChunkPipe
]
})
export class Ng2ArrayPipesModule {}

@NgModule({
exports: [NG2_MATH_PIPES]
exports: [
BytesPipe,
CeilPipe,
FloorPipe,
MaxPipe,
MeanPipe,
MinPipe,
RoundPipe,
SumPipe,
DegreesPipe,
RadiansPipe,
RandomPipe,
SqrtPipe,
PowPipe
]
})
export class Ng2MathPipesModule {}

@NgModule({
exports: [NG2_BOOLEAN_PIPES]
exports: [
IsGreaterPipe,
IsGreaterOrEqualPipe,
IsLessPipe,
IsLessOrEqualPipe,
IsEqualPipe,
IsNotEqualPipe,
IsIdenticalPipe,
IsNotIdenticalPipe,
IsNullPipe,
IsUndefinedPipe,
IsFunctionPipe,
IsNumberPipe,
IsStringPipe,
IsArrayPipe,
IsObjectPipe,
IsDefinedPipe
]
})
export class Ng2BooleanPipesModule {}

@NgModule({
exports: [NG2_STRING_PIPES]
exports: [
LeftPadPipe,
MatchPipe,
PadPipe,
ReplacePipe,
RightPadPipe,
SplitPipe,
TestPipe,
TrimPipe,
NewlinesPipe,
CapitalizePipe,
UpperFirstPipe,
TemplatePipe,
EncodeURIPipe,
EncodeURIComponentPipe,
TruncatePipe,
RepeatPipe
]
})
export class Ng2StringPipesModule {}

@NgModule({
exports: [NG2_OBJECT_PIPES]
exports: [
KeysPipe,
ToArrayPipe
]
})
export class Ng2ObjectPipesModule {}

@NgModule({
exports: [NG2_AGGREGATE_PIPES]
exports: [
MaxPipe,
MeanPipe,
MinPipe,
SumPipe
]
})
export class Ng2AggregatePipesModule {}

Expand All @@ -58,15 +210,10 @@ export class Ng2AggregatePipesModule {}
})
export class Ng2PipesModule {}


/**
* @deprecated will be removed for RC.6
*/
export const NG2_PIPES = [
...NG2_BOOLEAN_PIPES,
...NG2_MATH_PIPES,
...NG2_ARRAY_PIPES,
...NG2_STRING_PIPES,
...NG2_OBJECT_PIPES,
...NG2_AGGREGATE_PIPES
];
// Export individual pipes
export * from './src/aggregate';
export * from './src/array';
export * from './src/boolean';
export * from './src/math';
export * from './src/object';
export * from './src/string';
2 changes: 1 addition & 1 deletion jspm.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ SystemJS.config({
"npm:": "jspm_packages/npm/"
},
map: {
"@angular/testing": "jspm_packages/npm/@angular/core@2.0.0-rc.5/testing.js"
"@angular/testing": "jspm_packages/npm/@angular/core@2.0.0-rc.6/testing.js"
}
});
11 changes: 8 additions & 3 deletions jspm.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
SystemJS.config({
devConfig: {
"map": {
"@angular/core": "npm:@angular/core@2.0.0-rc.5",
"@angular/core": "npm:@angular/core@2.0.0-rc.6",
"es6-shim": "github:es-shims/es6-shim@0.35.0",
"os": "github:jspm/nodelibs-os@0.2.0-alpha",
"plugin-typescript": "github:frankwallis/plugin-typescript@4.0.9",
"process": "github:jspm/nodelibs-process@0.2.0-alpha",
"reflect-metadata": "npm:reflect-metadata@0.1.3",
"rxjs": "npm:rxjs@5.0.0-beta.6",
"zone.js": "npm:zone.js@0.6.12"
"rxjs": "npm:rxjs@5.0.0-beta.11",
"zone.js": "npm:zone.js@0.6.17"
},
"packages": {
"github:frankwallis/plugin-typescript@4.0.9": {
Expand All @@ -20,6 +20,11 @@ SystemJS.config({
"map": {
"os-browserify": "npm:os-browserify@0.2.1"
}
},
"npm:rxjs@5.0.0-beta.11": {
"map": {
"symbol-observable": "npm:symbol-observable@1.0.2"
}
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function (config) {
basePath: './',

files: [
'jspm_packages/npm/zone.js@0.6.12/dist/zone.js',
'jspm_packages/npm/zone.js@0.6.17/dist/zone.js',
'jspm_packages/npm/reflect-metadata@0.1.3/Reflect.js'
],

Expand Down
Loading

0 comments on commit 82ef04c

Please sign in to comment.