File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,40 @@ Support only get method for now.
15
15
npm install hapi-pagination --save
16
16
```
17
17
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
+
18
52
## How to use
19
53
20
54
The plugin works with settings that you can override. You can override the
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " hapi-pagination" ,
3
- "version" : " 1.5.5 " ,
3
+ "version" : " 1.6.0 " ,
4
4
"description" : " A hapi plugin to paginate resources" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments