Skip to content

0.5.0

Compare
Choose a tag to compare
@octet-stream octet-stream released this 15 Apr 21:35

Add:

  • New methods for Search handler:
    • Search#watched() – add my:watched parameter to the search request to receive only watched images
    • Search#faves() – add my:watched parameter to the search request to receive only faved images
    • Search#upvotes() – add my: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 and export statements). Formerly dinky was written for CommonJS 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