Releases: catarse/mithril-postgrest
Updates .loader interface
- Now the
.loader
function assumes you are making a postgrest request.
To keep backward compatibility, just remove the second parameter from all your function calls to m.postgrest.loader
. If in any case you`re not issuing a postgrest request, you should use your own loader implementation.
New paginationVM interface
- paginationVM contractor now takes a third argument to configure headers
This changes the order of parameters, so if you were using authenticate = false in some paginationVM you should pass an appropriate extraHeaders.
To keep backwards compatibility just add a third parameter {'Prefer': 'count=exact'}
to every paginationVM call.
Now the order function in filtersVM is chainable
1.6.1 Merge branch 'master' of github.com:catarse/mithril.postgrest
Adds is.null operator
1.6.0 Regenerated fist files
Fixes cases when server response is not valid JSON
Adds a default error handler using extract option in mithril request, but it can be overwritten by the caller (as in the pagination VM)
Fixes loader concurrency problems
1.5.4 Bumps fix version
Fixes authentication bug due to options parameter mutation
1.5.3 Bumps fix version
Fixes isLastPage and expose resultsCount
1.5.2 Bumps fix version
1.5.1
Changes paginationVM interface
Now paginationVM receives the model instead of the pageRequest function.
To choose between getPage and getPageToken there is a third boolean argument that says whether we should authenticate or not. The default is true.