0.6.0
Add
- Node 12 is now supported;
- New methods for Search class:
-
Search#downvotes()
– allows to search for images downvoted by a user (requires a key to identify the user)import dinky from "dinky.js" // You will get all downvotes for user whose key was used // https://derpibooru.org/search.json?q=my:downvotes dinky({key: "yourkeyhere"}).search().downvotes() .then(console.log) // You can also filter results by tags: dinky({key: "yourkeyhere"}).search("oc:nyx").downvotes() .then(console.log)
-
Search#uploads()
– allows to search for the user's uploadsimport dinky from "dinky.js" // Works as well as the previous method // https://derpibooru.org/search.json?q=my:uploads dinky({key: "yourkeyhere"}).search().uploads() .then(console.log)
-
Search#favedBy(user: string)
– Allows to search for images faved by given user. Takes account name of the user (e. g. username).import dinky from "dinky.js" // Works as well as the previous method // https://derpibooru.org/search.json?q=pinkie+pie,safe,faved_by:octetstream dinky().search(["pinkie pie", "safe"]).favedBy("octetstream") .then(console.log)
-
Update
- Improve development environment: add
eslint-plugin-markdown
that allows to lint JavaScript code in Markdown files; - Fix ordering for Search class since Derpibooru uses different parameters for that: It uses
sd={asc | desc}
instead oforder={a | d}
; - Improve link helper;
- Update dependencies.
Remove
- The
url
option is not longer supported. All requests will use derpibooru.org domain.
All changes v0.5.1...v0.6.0