Commit Graph
12 Commits
Author SHA1 Message Date
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Bowden Kelly 72c4e7d76c Merge pull request #19018 from vesse/bookshelf/enable-where-in-query
[bookshelf] Allow array value for 'in' query
2017-08-22 10:58:01 -07:00
Andy 35187e3217 bookshelf: Replace typeof Model with ModelSubclass (#19095) 2017-08-18 06:53:50 -07:00
Andy 5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Vesa Poikajärvi 60f9770c88 [bookshelf] Allow array value for 'in' query 2017-08-15 18:32:25 +03:00
Andrew Lowe 3bc7dcf296 Add foreignKeyTarget and otherKeyTarget to belongsToMany method (#18448)
Defined in bookshelf docs: http://bookshelfjs.org/#Model-instance-belongsToMany
2017-07-31 13:56:33 -07:00
Andy Hanson c15e214e5a bluebird: Make Thenable an alias to the builtin PromiseLike. 2017-06-16 09:02:18 -07:00
Nathan Shively-Sanders 163f4438df Fix weak type errors (#16845)
* Fix first round of weak type errors

Done through griddle-react

* 95% done with weak type fixes

* Fix last couple of weak type errors

* Remove some lint from mithril tests

* mithril's Lifecycle is not a weak type any more

Restore the Lifecycle constraints in the rest of the definitions.

* Fix react-redux tests after #16652 broke them

* Remove package-lock.json
2017-06-04 22:03:03 -07:00
Vesa Poikajärvi d93d6a53a4 [bookshelf] fetchAll supports same parameters as fetch (#16170)
* fetchAll supports same parameters as fetch

Latest Bookshelf's instance.fetchAll calls collection.fetch() with
given options, ie. it supports the same options than fetch.

For example

(new User).fetchAll({columns: ['id', 'name']}).then(...)

* Update version number

* Revert "Update version number"

This reverts commit cf4a3e6c51554d75f5408acd23bb0fade6acafef.

* remove extra slash from contributor's name
2017-05-03 13:19:42 -07:00
Vesa Poikajärvi 2ca5a0e8f4 [bookshelf] Model#orderBy and Collection#orderBy (#16277)
* Bookshelf Model#orderBy and Collection#orderBy

orderBt introduced in Bookshelf 0.9.3

* [bookshelf] orderBy explicit parameters instead of ...args

* [bookshelf] Use a type for sort order
2017-05-03 10:58:47 -07:00
Andy 8966463273 bookshelf: Don't use class before declaration (#15982) 2017-04-19 10:10:56 -07:00
Andy Hanson 354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00