Skip to content

Commit

Permalink
Update README and version
Browse files Browse the repository at this point in the history
  • Loading branch information
fknop committed Dec 22, 2015
1 parent 78371ff commit ec4d9fb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,40 @@ Support only get method for now.
npm install hapi-pagination --save
```

## CHANGELOG

### 1.6.0

* *BREAKING CHANGE*: Route overriding are not available anymore on the plugin
options.
* Added override on route level instead of override on options:
https://github.com/fknop/hapi-pagination/pull/7

```javascript
config: {
plugins: {
pagination: {
// enabled: boolean - force enable or force disable
defaults: {
// page: override page
// limit: override limit
// pagination: override if pagination is false or true by
// default
}
}
}
}
```

### 1.5.5

* Added regex path support: https://github.com/fknop/hapi-pagination/pull/6
* totalCount and count are now 0 if enabled and no results are returned.

### Previous versions

Not in the changelog...

## How to use

The plugin works with settings that you can override. You can override the
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hapi-pagination",
"version": "1.5.5",
"version": "1.6.0",
"description": "A hapi plugin to paginate resources",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit ec4d9fb

Please sign in to comment.