Releases: neumino/thinky
Releases · neumino/thinky
v1.16.7
- Replace options
enforce_missing
/enforce_extra
/enforce_type
- PR by @mindjuice
required()
/optional()
: replace enforce_missing
allowNull(<boolean>)
: enforce_type
: "loose"
/"strict"
allowExtra(<boolean>)
enforce_extra
: "none"
/"strict"
removeExtra()
: enforce_extra
: "remove"
type.any()
: enforce_type
: "none"
- Add a new type of error
ValidationError
- PR by @primitive-type
v1.16.5
- Fix #189 - You can pass a "type" for a
hasAndBelongsToMany
relation which let you create multiple n-n relations with the same models.
- Fix a flaky test because of
result.changes
currently does not enforce any order - See rethinkdb/rethinkdb#3853
v1.16.4
- For
hasAndBelongsToMany
relations, you can provide the key of the joined document instead of the whole document. In this case, the relation will be created.
- Fix race condition in a test (
advanced.js/pairs
)
- Add options for
Model.save(...)
v1.16.3
- Quick fix in case a query return
null
. We should check for null
/undefined
before trying to access getType
.
v1.16.2
- Add the option
_array
in getJoin
to not coerce the joined sequence to an array. This allow things like this:
Author.get("...").getJoin({
posts: {
_apply: function(seq) { return seq.count() },
_array: false
}
}).run()
Fix #179
v1.16.1
- Add support for range feeds - A feed is created that will return instances of the mode
- Add support for point feeds - A document will be returned that will automatically update and emit the
change
event.
See the documentation here: http://thinky.io/documentation/feeds/
v1.16.0
- Update for RethinkDB 1.16
then
now is a shortcut for run().then
v.1.15.9
- Do not enforce type check for ReQL terms for
Array
and Object
- PR #171 by @simonratner