v2.0.0-beta.0
Pre-release
Pre-release
This is the first pre-relase update for Dinky.js on its way to 2.x major update
Breaking
-
Codebase has been rewritten from the ground up on TypeScript.
-
The package comes with improved ESM support, while it still has CommonJS version of its modules.
-
From now on, the public API has separated class for each of Dinky entity:
import {Search, Images, Comments, Tags} from "dinky.js" // Etc
- Every class constructor now takes an options arguments, allowing you to configure custom URL for requests, set request parameters for link and even use your own link or fetch function to perform API requests!
import fetch from "node-fetch"
import {Search} from "dinky.js"
// Custom base URL usage
new Search({url: "https://furbooru.org"})
// Custom fetch usage
new Search({linkOptions: {fetch}})
// ...link API is not stable yet, I will add docs for it later...
Add
- A new
Profiles
entity to handle requests to/api/json/profiles
endpoint
Remove
- Lists class
All changes: v1.1.0...v2.0.0-beta.0