Skip to content

Releases: poppinss/oauth-client

Update dependencies

28 Mar 06:08
Compare
Choose a tag to compare
  • chore: update dependencies f7450e8

Full Changelog: v5.1.2...v5.1.3

Update dependencies

16 Dec 05:03
Compare
Choose a tag to compare
  • chore: update dependencies a55f52c

Full Changelog: v5.1.1...v5.1.2

Publish source maps and use TSC for generating types

06 Nov 07:28
Compare
Choose a tag to compare
  • 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

14 Oct 06:16
Compare
Choose a tag to compare

Please refer to the following release notes to learn about the breaking changes

Commits

What's Changed

New Contributors

Full Changelog: v4.0.2...v5.1.0

Re-organizing exports and dropping Luxon

23 Sep 08:53
Compare
Choose a tag to compare

Breaking change

  • This release moves the Oauth1Client and Oauth2Client 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 of luxon. Luxon is quite heavy in size and we do not want to push that on the package users. The oauth2Token.expiresAt is an instance of JavaScript Date class.

Commits

Full Changelog: v5.1.0-3...v5.1.0-4

Update dependencies

29 Jun 10:17
Compare
Choose a tag to compare
Update dependencies Pre-release
Pre-release
  • chore: add engines to package.json file 6598fe1
  • ci: add linting and typechecking in ci 914aec0
  • chore: use @adonisjs/tooling presets for tooling config 6108851
  • chore: upgrade japa to v3 c24ad99
  • chore: update dependencies 4ce05e6

Full Changelog: v5.1.0-2...v5.1.0-3

Upgrade to TypeScript 5

25 Mar 07:44
Compare
Choose a tag to compare
Pre-release
  • 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

11 Mar 05:40
Compare
Choose a tag to compare
Update dependencies Pre-release
Pre-release
  • 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

01 Dec 17:16
Compare
Choose a tag to compare
  • 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

03 Nov 06:42
Compare
Choose a tag to compare
Rewrite in ESM Pre-release
Pre-release

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 in RedirectRequestContract is replaced with getParams method.
    - params: Record<string, any>
    + getParams(): Record<string, any>

Commits

Full Changelog: v4.0.2...v5.0.0-0