Releases: AtoraSuunva/booru
Releases · AtoraSuunva/booru
v2.8.1
v2.8.0
- Add Tag list support (#114) by ColonelBologna
- Run tests using every non-EOL Node.js version
- Update biome to v2
v2.7.0
- Update undici
- Fix
previewUrlfor paheal (#110) by Rider21 - Include booru version in default user agent
- Allow explicitly passing undefined to credentials in Booru constructor & to SearchParameters under strict Typescript
doSearchRequestdoesn't mutate tags parameter- Many, many internal changes that shouldn't impact end-user library use but makes dev work much easier for me:
- Use biome instead of eslint + prettier + tons of setup for typescript
- Use node:test + tsx instead of jest + babel + swc
2.6.8
2.6.1
2.6.0
- Added credential support
- Support is fairly basic and only support query param auth
- The credential object provided will be serialized into query params
- Previously credentials did nothing, now they do something
- Updated some types to return more useful type unions (like AnySite being a union of all site domains)
Booru#getSearchUrlnow properly accepts no parameters
const booru = require('booru')
const gelbooru = booru.forSite('gb', { api_key: 'key', user_id: 'id' })
gelbooru.getSearchUrl()
// https://gelbooru.com/index.php?page=dapi&s=post&q=index&json=1&tags=&limit=100&pid=1&api_key=key&user_id=id
// or
booru.search('gb', [], {
credentials: { api_key: 'key', user_id: 'id' },
})
// Uses the same search URL as abovev2.5.3
2.5.3
- Use
encodeURIComponentinstead ofencodeURIfor tags to properly encode them - Update some project files for more consistent development
v2.5.2
2.5.2
- Fixed parsing of gelbooru's API response
v2.5.0
2.5.0
- Update API endpoint for r34.xxx, see #75
- Add
Booru#getSearchUrl, meant for aiding in debugging- You can use this to get the URL that booru would use to search, to inspect the response yourself
- Minor changes to allow VS code's Run & Debug to work, kinda
- Still needs some setup, and some refactoring to get working nicely
v2.4.0
- Removed furry.booru.org since they have CloudFlare browser verification enabled.
- As far as I know, there's no (intended) way to bypass this if you're not a browser.
- Added CloudFlare-specific error message if this happens in the future
- Add fix for Paheal changing their API response format
- Make example.js only specify the "cat" default tag if you don't specify a site
- Change from
tsc->typescriptfor package.json scripts, sincetscis deprecated. - Update dependencies