Skip to content

Releases: brainylab/fwrp

v2.0.3

Choose a tag to compare

@github-actions github-actions released this 31 Aug 18:14
39f3438

Patch Changes

v2.0.2

Choose a tag to compare

@github-actions github-actions released this 14 Jul 01:19
c8f7b5b

Patch Changes

v2.0.1

Choose a tag to compare

@github-actions github-actions released this 13 Jul 21:22
c9137a5

Patch Changes

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 13 Jul 21:01
dd4597e

Major Changes

  • fb77e91 Thanks @andrefelipeschulle! - Move transform from the request config into a chained .transform() method.

    BREAKING CHANGE: the transform option was removed from the config object of
    get, post, put, patch, delete, head and fetch. It is now a chained
    method on the returned request, which enables full type inference of the
    transformed data (the raw type comes from get<T>() and the result is merged
    with the transform's return type).

    Additional improvements:

    • Support for multiple chained transforms, applied in sequence (each receives
      the previous result).
    • A transform that returns undefined/void now keeps the original data,
      so it can be used for side-effects (logging, telemetry) without dropping the payload.

    Migration:

    // Before (v1)
    fwrp.get<User>("/users/1", {
      transform: (data) => ({ ...data, label: data.name }),
    });
    
    // After (v2)
    fwrp
      .get<User>("/users/1")
      .transform((data) => ({ ...data, label: data.name }));

v1.7.0

Choose a tag to compare

@github-actions github-actions released this 13 Jul 18:53
cb6e3b7

Minor Changes

v1.6.1

Choose a tag to compare

@github-actions github-actions released this 13 Jul 18:41
6dff3bf

Patch Changes

v1.5.1

Choose a tag to compare

@github-actions github-actions released this 04 Jul 18:50
95f687f

Patch Changes

v1.5.0

Choose a tag to compare

@github-actions github-actions released this 04 Jul 13:49
23aea71

Minor Changes

v1.4.2

Choose a tag to compare

@github-actions github-actions released this 01 Jul 01:54
902704b

Patch Changes

v1.4.1

Choose a tag to compare

@github-actions github-actions released this 01 Jul 01:39
4b4d3c8

Patch Changes