Releases: poppinss/oauth-client
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
Add debug calls and export exception classes
- feat: export exception classes 86d8749
- refactor: debug oauth 1 signature 59873f0
- docs: fix incorrect import path in examples 95e166d
- style: update docblocks 66643b8
- feat: add debug calls 10b9ed2
- style: prefix type to type only imports and use RuntimeException 49b9cea
- chore: update dependencies 8cefa62
Full Changelog: v5.0.0-0...v5.1.0-0
Rewrite in ESM
The tests coverage has also been increased to >99
with this release.
Breaking changes
- The package is now ESM only
- The types are no longer exported from the main module. You need to use
@poppinss/oauth-client/types
path to import all types. - Some of the properties in
ApiRequestContract
are replaced with equivalent methods.- params: Record<string, any> - headers: Record<string, any> - fields: Record<string, any> - oauth1Params: Record<string, any> + getParams(): Record<string, any> + getHeaders(): Record<string, any> + getFields(): Record<string, any> + getOauth1Params(): Record<string, any>
- The
params
property inRedirectRequestContract
is replaced withgetParams
method.- params: Record<string, any> + getParams(): Record<string, any>
Commits
- refactor: rewrite in esm fe1f165
Full Changelog: v4.0.2...v5.0.0-0