Update
- Rewrite documentation.
Add
-
Implement classes for every search type:
SearchImages
,SearchComments
,SearchTags
,SearchGalleries
,SearchPosts
. All of these extend abstractSearch
class;import {SearchImages, SearchComments, SearchTags, SearchGalleries, SearchPosts} from "dinky.js"
-
Add shortcuts for all
entities
andsearch
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 hasreverse
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 toSearchImages
.
All changes: v2.0.0-beta.3...v2.0.0-beta.4