Skip to content

v2.0.0-beta.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@octet-stream octet-stream released this 26 Mar 15:02

This is the first pre-relase update for Dinky.js on its way to 2.x major update

Breaking

  1. Codebase has been rewritten from the ground up on TypeScript.

  2. The package comes with improved ESM support, while it still has CommonJS version of its modules.

  3. From now on, the public API has separated class for each of Dinky entity:

import {Search, Images, Comments, Tags} from "dinky.js" // Etc
  1. 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

  1. A new Profiles entity to handle requests to /api/json/profiles endpoint

Remove

  1. Lists class

All changes: v1.1.0...v2.0.0-beta.0