Releases: poppinss/oauth-client
Update dependencies
Full Changelog: v7.0.0...v7.0.1
Remove got in favor of ky
Breaking changes
got
is a huge library and we don't even use 90% of its features. Therefore, replaced it with a lightweight option. Since, got
APIs are never exposed to the end-user, we do not expect any major breaking changes.
- Replaced
got
withky
. - Removed support for
buffer
response type. The response type is now eithertext
orjson
. - Removed support for sending body in GET requests. It was earlier supported via allowGetBody option from
got
, which isn't support byky
.
Update dependencies
- chore: update dependencies f7450e8
Full Changelog: v5.1.2...v5.1.3
Update dependencies
- chore: update dependencies a55f52c
Full Changelog: v5.1.1...v5.1.2
Publish source maps and use TSC for generating types
- chore: publish source maps and use tsc for generating types 154486c
- chore: update dependencies 04fd662
Full Changelog: v5.1.0...v5.1.1
Breaking changes + ESM only
Please refer to the following release notes to learn about the breaking changes
- https://github.com/poppinss/oauth-client/releases/tag/v5.0.0-0
- https://github.com/poppinss/oauth-client/releases/tag/v5.1.0-4
Commits
What's Changed
- Merge next to develop by @thetutlage in #3
New Contributors
- @thetutlage made their first contribution in #3
Full Changelog: v4.0.2...v5.1.0
Re-organizing exports and dropping Luxon
Breaking change
-
This release moves the
Oauth1Client
andOauth2Client
behind submodules. You can import them as follows.- import { Oauth1Client } from '@poppinss/oauth-client' + import { Oauth1Client } from '@poppinss/oauth-client/oauth1' - import { Oauth2Client } from '@poppinss/oauth-client' + import { Oauth2Client } from '@poppinss/oauth-client/oauth2'
-
The exceptions are exported under the
errors
namespace as error codes.- import { MissingTokenException } from '@poppinss/oauth-client' + import { errors } from '@poppinss/oauth-client' + errors.E_OAUTH_MISSING_TOKEN - import { StateMisMatchException } from '@poppinss/oauth-client' + import { errors } from '@poppinss/oauth-client' + errors.E_OAUTH_STATE_MISMATCH
-
The
oauth2Token.expiresAt
is no longer an instance ofluxon
. Luxon is quite heavy in size and we do not want to push that on the package users. Theoauth2Token.expiresAt
is an instance of JavaScript Date class.
Commits
- docs: update README 74dea89
- refactor: reorganize exports 6f7826b
- refactor: remove luxon 0b4bc30
- chore: update dependencies a3b9dff
- docs: update README b56025f
- chore: update dependencies 103ca9f
- chore: update dependencies 706cb78
Full Changelog: v5.1.0-3...v5.1.0-4
Update dependencies
Upgrade to TypeScript 5
- chore(package): update utils to latest version 322fd8e
- docs: update License file 446ab70
- chore: update dependencies e257dfa
Full Changelog: v5.1.0-1...v5.1.0-2
Update dependencies
- chore: update dependencies b25a4d4
- test: fix import url for tests to run on windows 16c2fd4
- docs(README): fix badge url for github workflow 10e7b6e
- chore: update dependencies 542b562
Full Changelog: v5.1.0-0...v5.1.0-1