Skip to content

Ky v2 #762

@sindresorhus

Description

@sindresorhus

Some ideas for breaking changes:

  • Hooks have very different parameters. Would be nice to unify that all of them accept a single state object. This makes it easier to add more properties in the future and makes it consistent.
  • Allow beforeRequest hooks to proceed after updating request #387
  • Remove some options from the normalized options passed to hooks. Like json. The types already do this, but the JS code was not in sync with the types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions