- bump dependencies
- build(deps): bump undici from 5.8.0 to 5.8.2 by @dependabot in casperiv0#111
- bump dependencies
- build(deps-dev): bump tsup from 6.1.3 to 6.2.1 by @dependabot in casperiv0#110
- build(deps-dev): bump @types/node from 18.0.6 to 18.6.3 by @dependabot in casperiv0#109
- build(deps-dev): bump eslint from 8.20.0 to 8.21.0 by @dependabot in casperiv0#108
- Bump dependencies
- build(deps): bump undici from 5.5.1 to 5.8.0 by @dependabot in casperiv0#107
- Bump dependencies
- Bump dependencies
- BREAKING:
PasteClient#login
now requires an object instead of 2 params. ➡const token = await client.login({ name: "user_name", password: "user_password" });
- Bump dependencies
- BREAKING: require node v14.
- Bump dependencies
- breaking: Remove
PasteClient#setDomain
, pass down custom domain viaClientOptions
. - breaking:
Publicity
is now an enum. - breaking:
ExpireDate
is now an enum. - Improve error messages
- Bump dependencies
- Bump dependencies
- Minor code improvements
- Bump dependencies
- Bump dependencies
- Bump dependencies
- Replace
node-fetch
withundici
(17a5344) - Bump dependencies
- Bump dependencies
- Bump dependencies
- feat: support getting raw paste docs
- Bump dependencies
- Bump dependencies
- Bump
node-fetch
to3.0.0
.- ->
pastebin-api
still supports cjs. It may not work on older node versions though.
- ->
- Bump dependencies
- Fix cjs
node-fetch
ESM import
- chore: bump dependencies
- fix: correct error message for options
- chore: bump dependencies
- chore: update example
- chore: bump dependencies
- chore: bump dependencies
- feat: support use custom domain (Thanks @Zxilly)
- refactor: use
TypeError
overError
where needed - refactor: use
Promise.reject
overthrow Error
where needed - refactor: remove unneeded
?.
in discord bot example - chore: bump dependencies
- chore: use
actions/setup-node@v2
for CI
- chore: bump dependencies
- chore: bump dependencies
- feat: allow CommonJS imports again
- chore: use esbuild
- chore: bump dependencies
- chore: Add custom ESLint config
- new: able to import
PasteClient
via named exports (import { PasteClient } from "pastebin-api"
)- Old method still works too.
- chore: replace type
string
withApiPasteFormat
forpaste_format_short
- chore: use
Array.isArray
instead oftypeof
- chore: update dependencies
BREAKING CHANGES:
- chore: move to ESM (Read this.)
- const PasteClient = require("pastebin-api").default;
+ import PasteClient from "pastebin-api";
- fix: incorrect docs for
PasteClient#deletePasteByKey
- chore: Updated dependencies
- chore: Added ESLint workflow file
- chore: updated examples
- chore: Updated dependencies
- chore: Updated dependencies
- feat: Support for
folderKey
- chore: Updated docs
- fix: Fixed issue with paste name (#7). Thanks @2colours
- fix: Creating a paste will now throw an error if name is longer than 100 characters
- fix: Added errors when not providing required data
- chore: Updated documentation
- feat: Added documentation
- feat: Added
login
,getPastesByUser
anddeletePasteByKey
methods (docs to follow) - chore: Updated TypeScript to
4.2.2
- chore: Added Changelog 🎉
- fix: Fixed examples
- fix: Fixed modules
- feat: Added typings 🎉
- fix: Fixed minor things in package.json
- chore: Added examples
- chore: Renamed
HasteClient
toPasteClient
- Initial release