- Added a module for each pipe #97
- For use with Angular 7
- Use this version for Angular 6
- To use this package with Angular 5, use version 7.x.x
- New AbsPipe inside MathModule
- Fixed issues with
ng-packagr
. All individual pipes can now be exported directly fromangular-pipes
instead of full path. The full path is not available anymore.
- No code changes, distribution is now done via
ng-packagr
to follow theAngular Package Format
.%
- Byte pipes 2.0
bytes
- The maximum unit is now the terabyte
- You can now specify a base unit for the conversion (B, KB, MB, GB, TB)
- The library should work with
strictNullChecks
-
All the
types
pipes have been renamed with ais
prefix. #40 -
The complete list is:
null
has been renamed toisNull
undefined
has been renamed toisUndefined
nil
has been renamed toisNil
number
has been renamed toisNumber
string
has been renamed toisString
function
has been renamed toisFunction
array
has been renamed toisArray
object
has been renamed toisObject
defined
has been renamed toisDefined
-
Reason: the
number
pipe was in conflict with theAngular
built-innumber
pipe so it had to be renamed. To keep consistency between pipes, all type pipes have been renamed with the same prefix.
angular-pipes
now distributes UMD bundles. Click here for more information.angular-pipes
now distributes ESM files. Click here for more information.
If you encounter any issues related to these bundles / ESM files, please comment on the issue #37 created for this.
- Removed ngfactory files. Only ngsummaries are needed for AoT.
- Switch to
karma-typscript
for testing. - Moved all spec files next to their source.
- Add noUnusedLocals to tsconfig to improve type checks (#33)
- Update Angular to
2.3.1
.
- Update Angular to
2.3.0
.ngc
uses a new feature calledngsummary
.
- The project is now compiled with
ngc
and should work withAoT
. Create an issue if you're still having trouble.
- Fix CountPipe
- Fix EveryPipe test
- Add IsNilPipe to boolean module
- Rename modules (Remove the
2
fromNg2...
)- Angular "2" will now be angular 3 soon with semver, keeping the
2
does not make sense anymore
- Angular "2" will now be angular 3 soon with semver, keeping the
- Change directory structure
- The dist folder has been removed. The compiled files are located next to their source.
- Aggregate pipes are now in their own folder instead of being in the math folder (import change, see docs).
- Removed JSPM to keep things simple. It should be easier to contribute.
- It now use Karma with a simple webpack preprocessor.
Support for Angular Final
- Update Angular to RC.6
- Remove deprecated tokens.
NG2_PIPES
,NG2_BOOLEAN_PIPES
, etc.
- 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 forrc.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 is mainly an update to angular release candidate with some breaking changes.
- The project now has a Travis CI. It's now easier to contribute with build made for every PR.
- Updated to angular 2 RC.
- Moved categories files to src folder, this means:
- To import a category you now have to do:
import { NG2_STRING_PIPES } from 'angular-pipes/pipes/src/string'
instead ofimport { NG2_STRING_PIPES } from 'angular-pipes/pipes/string'
- To import a category you now have to do:
- All the pipes are now PURE. This means you have to use
immutability
to update the pipe value. This is a design choice that may be discussed in the future.
take
drop
deep
The deep pipe has to be used with other pipes that can work with deep comparaisons. The pipes working with deep comparaisons (for now) are:
uniq
without
If you need to use deep equal, you can use it like this:
{{ collection | deep | uniq }}
- Updated to angular2-beta.16. New versions will not work under a lower version than beta.16.
pow
sqrt
capitalize
upperfirst
template
encodeURI
encodeURIComponent
repeat
truncate
shuffle
random
CountPipe
KeysPipe
EveryPipe
SomePipe
ToArrayPipe
NewlinesPipe
DegreesPipe
RadiansPipe
Fix immutability for pipes that were updating the original input.
- Added all the documentation in a separate
docs
folder to keep theREADME.md
as clean as possible.
OrderByPipe
ReversePipe
- When the type of the input is not valid, the input is now returned unchanged.
WherePipe
NilPipe
PluckPipe
MapPipe
RangePipe
TypeError
array messages are now more consistent.
None.
- Added documentation
- Added tests for
replace
match
test