这是indexloc提供的服务,不要输入任何密码
Skip to content

Rewrite in ESM

Pre-release
Pre-release
Compare
Choose a tag to compare
@thetutlage thetutlage released this 03 Nov 06:42

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