Skip to content

Commit ec4d9fb

Browse files
committed
Update README and version
1 parent 78371ff commit ec4d9fb

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,40 @@ Support only get method for now.
1515
npm install hapi-pagination --save
1616
```
1717

18+
## CHANGELOG
19+
20+
### 1.6.0
21+
22+
* *BREAKING CHANGE*: Route overriding are not available anymore on the plugin
23+
options.
24+
* Added override on route level instead of override on options:
25+
https://github.com/fknop/hapi-pagination/pull/7
26+
27+
```javascript
28+
config: {
29+
plugins: {
30+
pagination: {
31+
// enabled: boolean - force enable or force disable
32+
defaults: {
33+
// page: override page
34+
// limit: override limit
35+
// pagination: override if pagination is false or true by
36+
// default
37+
}
38+
}
39+
}
40+
}
41+
```
42+
43+
### 1.5.5
44+
45+
* Added regex path support: https://github.com/fknop/hapi-pagination/pull/6
46+
* totalCount and count are now 0 if enabled and no results are returned.
47+
48+
### Previous versions
49+
50+
Not in the changelog...
51+
1852
## How to use
1953

2054
The plugin works with settings that you can override. You can override the

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hapi-pagination",
3-
"version": "1.5.5",
3+
"version": "1.6.0",
44
"description": "A hapi plugin to paginate resources",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)