Skip to content

Latest commit

 

History

History
200 lines (121 loc) · 5.41 KB

CHANGELOG.md

File metadata and controls

200 lines (121 loc) · 5.41 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

3.0.0 - 2024-05-18

  • [#173] - Upgrade to Angular 17
  • [#154] - Create Ivy build

2.2.0 - 2021-12-11

Changed

  • [#106] - Update underlying project dependencies to Angular 10
  • Minor types and naming changes

2.1.2

  • [#131] - Fix expression array being reversed

2.1.1

  • [#107] - Error ordering by null date property
  • [#108] - Fix error ordering by null date property

2.1.0

  • [#91] - Multiple orders with date, second item is reversed
  • [#103] - Fixed date comparison in default comparator

2.0.4

  • [#87] - fix error when expression point on sub-property of an undefined object

2.0.3

  • [#82] - Upgrade to Angular 8

2.0.2

  • [#79] - feature: support for callable function attribute on data source
  • [#74] - Allow to sort also by function return value?

2.0.1

  • [#54] - multiple fields sorting
  • [#14] - Multi Ordering

Feature

Expression now accepts string as well as array of strings to perform multi order.

Example, order by name and age:

<div *ngFor="let item of items | orderBy: ['name', 'age']">{{ item | json }}</div>

2.0.0

Breaking changes

  • [#52] - Value passed to transform() should not be modified.

Now the value passed to pipe is not directly modified

1.2.1

  • [#48] - Add OrderPipe as provider in the OrderModule

Features

Use OrderPipe in the component

Import OrderPipe to your component:

import { OrderPipe } from "ngx-order-pipe";

Add OrderPipe to the constructor of your component and you're ready to use it:

constructor(private orderPipe: OrderPipe) {
  console.log(this.orderPipe.transform(this.collection, this.order));
}

1.2.0

  • [#46] - Restructure
  • [#45] - Use packagr
  • [#32] - Angular 5

Bundle location is changed, therefore SYSTEMJS config should be updated to

Append to map

var map = {
    ...
    'ngx-order-pipe': 'node_modules/ngx-order-pipe/bundles'
}

and then add to packages

var packages = {
    ...
    'ngx-order-pipe': { defaultExtension: 'js' }
}

1.1.3

  • [#35] - Null or undefined values
  • [#44] - Changing default comparator so it would properly sort null and undefined values.

1.1.2

  • [#42] - Can't find module

1.1.1

  • [#23] - order sorting issue in asc & dec
  • [#31] - Added comparator

1.1.0

  • [#23] - Refresh orderBy after *ngFor is updated?
  • [#31] - Made pipe impure to detect all the changes

1.0.4

  • [#26] - Feature request to switch it to case-insensitive
  • [#27] - Adding support for case insensitive ordering

1.0.3

[#28] - Fix when a or b might be null (e.g. Async items)

1.0.2

[#21] - Can not sort by embedded object value

1.0.1

[#19] - Create UMD bundle

1.0.0

[#15] - Change name to ngx-order-pipe

0.1.5

[#10] - Deep properties support

Example

<div>{{ { prop: { list: [3, 2, 1] } } | orderBy: 'prop.list' | json }}</div>

Result

<div>{ prop: { list: [1, 2, 3] } }</div>

0.1.4

[#11] - Sort array without expression

<div *ngFor="let i of [3, 2, 1] | orderBy">{{ i }}</div>

Result:

<div>1</div>
<div>2</div>
<div>3</div>

0.1.3

Angular 4

0.1.2

[#5] - error when using http to load data

0.1.1

[#2] - Add param to reverse array