Skip to content

0.7.2

Compare
Choose a tag to compare
@octet-stream octet-stream released this 07 Jul 12:41

Update

  • Search#tags() will consider empty arrays as no tags:

    import dinky from "dinky.js"
    
    // Empty array will be considered the same way as "undefined".
    // So, the * wildcard will be used for this request:
    // https://derpibooru.org/search.json?q=*&random_image=true
    dinky().search([]).random()
      .then(console.log)
    
    // And this request will not set any tags:
    dinky().search([])
      .catch(console.error) // This request will crash because of no tags

All changes: v0.7.1...v0.7.2