0.5.0
Add:
- New methods for Search handler:
Search#watched()
– addmy:watched
parameter to the search request to receive only watched imagesSearch#faves()
– addmy:watched
parameter to the search request to receive only faved imagesSearch#upvotes()
– addmy:upvotes
parameter to the search request to receive only upvoted images
Note that all of those methods require a key that can be found on your account page.
- Native ES modules support (see:
import
andexport
statements). Formerly dinky was written forCommonJS
modules and this release brings native support of an ECMAScript modules, it allows you to use named import of dinky like so:
import {dinky, NetworkError} from "dinky.js"
or just use default export:
import dinky from "dinky.js"
Note that currently Node.js require the --experimental-modules
flag to run this code.
- For non 2xx response the
NetworkError
error will be thrown.
Update:
- Improvements for docs.
All changes: v0.4.0...v0.5.0