Skip to content

Releases: catarse/mithril-postgrest

Updates .loader interface

28 Jan 17:53
Compare
Choose a tag to compare
  • 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

08 Dec 18:44
Compare
Choose a tag to compare
  • 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

30 Nov 18:54
Compare
Choose a tag to compare
1.6.1

Merge branch 'master' of github.com:catarse/mithril.postgrest

Adds is.null operator

13 Nov 18:08
Compare
Choose a tag to compare
1.6.0

Regenerated fist files

Fixes cases when server response is not valid JSON

23 Oct 01:46
Compare
Choose a tag to compare

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

20 Oct 18:33
Compare
Choose a tag to compare
1.5.4

Bumps fix version

Fixes authentication bug due to options parameter mutation

08 Oct 17:04
Compare
Choose a tag to compare

Fixes isLastPage and expose resultsCount

08 Oct 15:19
Compare
Choose a tag to compare

1.5.1

08 Oct 10:09
Compare
Choose a tag to compare
  • fixes rangeHeader mapping (weird bug with regex)

Changes paginationVM interface

07 Oct 15:13
Compare
Choose a tag to compare

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.