Skip to content

2.0.0-beta.4

Latest
Compare
Choose a tag to compare
@octet-stream octet-stream released this 08 Jun 00:00

Update

  • Rewrite documentation.

Add

  • Implement classes for every search type: SearchImages, SearchComments, SearchTags, SearchGalleries, SearchPosts. All of these extend abstract Search class;

    import {SearchImages, SearchComments, SearchTags, SearchGalleries, SearchPosts} from "dinky.js"
  • Add shortcuts for all entities and search types.

    Entities shortcuts:

    import {images, comments, filters, images, profiles, tags} from "dinky.js"

    Search shortcuts:

    import {search} from "dinky.js"
    
    search.images() // Creates instance for `SearchImages`
    search.comments() // Creates instance for `SearchComments`
    search.tags() // Creates instance for `SearchTags`
    search.galleries() // Creates instance for `SearchGalleries`
    search.posts() // Creates instance for `SearchPosts`

    In addition to these shortcuts, search object has reverse method. That way you can send images reverse-search query:

    import {search} from "dinky.js"
    
    // Same as `new SearchImage().reverse(...)`
    await search.reverse("https://derpicdn.net/img/2019/12/24/2228439/full.jpg")

Remove

  • Most of the Search class methods moved to SearchImages.

All changes: v2.0.0-beta.3...v2.0.0-beta.4