Skip to content

Releases: reactive/data-client

@data-client/rest@0.12.7

16 May 21:56
b21f388
Compare
Choose a tag to compare

Patch Changes

  • 4bc9145 Thanks @ntucker! - Improve readability of Collection generics by naming DefaultArgs

  • #3063 2080c87 Thanks @ntucker! - Polymorphic (Union) types should still denormalize when handling passthrough (non-normalized) data

    When denormalizing non-normalized (like return of ctrl.fetch), it is still expected to handle
    all steps like constructing class instances if possible. However, to do this for Polymorphic
    types we need to fallback to using part of the normalize process to find out which schema
    to use for the remainder of denormalization.

  • 4bc9145 Thanks @ntucker! - Add docstrings to schema constructors

  • bf1f9bb Thanks @ntucker! - Add docstrings to RestGenerics, ResourceGenerics, and RestEndpointOptions members

  • Updated dependencies [4bc9145, 2080c87, 4bc9145]:

    • @data-client/endpoint@0.12.7

@data-client/graphql@0.12.7

16 May 21:56
b21f388
Compare
Choose a tag to compare

Patch Changes

  • #3063 2080c87 Thanks @ntucker! - Polymorphic (Union) types should still denormalize when handling passthrough (non-normalized) data

    When denormalizing non-normalized (like return of ctrl.fetch), it is still expected to handle
    all steps like constructing class instances if possible. However, to do this for Polymorphic
    types we need to fallback to using part of the normalize process to find out which schema
    to use for the remainder of denormalization.

  • Updated dependencies [4bc9145, 2080c87, 4bc9145]:

    • @data-client/endpoint@0.12.7

@data-client/endpoint@0.12.7

16 May 21:56
b21f388
Compare
Choose a tag to compare

Patch Changes

  • 4bc9145 Thanks @ntucker! - Improve readability of Collection generics by naming DefaultArgs

  • #3063 2080c87 Thanks @ntucker! - Polymorphic (Union) types should still denormalize when handling passthrough (non-normalized) data

    When denormalizing non-normalized (like return of ctrl.fetch), it is still expected to handle
    all steps like constructing class instances if possible. However, to do this for Polymorphic
    types we need to fallback to using part of the normalize process to find out which schema
    to use for the remainder of denormalization.

  • 4bc9145 Thanks @ntucker! - Add docstrings to schema constructors

@data-client/rest@0.12.6

13 May 03:20
1ea5c3b
Compare
Choose a tag to compare

Patch Changes

  • 9551e9a Thanks @ntucker! - Export RestEndpoint interface type to remove TS warnings about portability

  • 19832bc Thanks @ntucker! - Add docstrings to Collection methods

  • Updated dependencies [19832bc]:

    • @data-client/endpoint@0.12.6

@data-client/graphql@0.12.6

13 May 03:20
1ea5c3b
Compare
Choose a tag to compare

Patch Changes

  • 19832bc Thanks @ntucker! - Add docstrings to Collection methods

  • Updated dependencies [19832bc]:

    • @data-client/endpoint@0.12.6

@data-client/endpoint@0.12.6

13 May 03:20
1ea5c3b
Compare
Choose a tag to compare

Patch Changes

@data-client/rest@0.12.5

08 May 22:13
2b0f7ae
Compare
Choose a tag to compare

Patch Changes

  • 019e1bc Thanks @ntucker! - Improve readability of RestEndpoint instance types

    Now new RestEndpoint() will show a RestEndpoint type with the relevant
    options.

@data-client/react@0.12.5

08 May 22:13
2b0f7ae
Compare
Choose a tag to compare

Patch Changes

  • e4d5f01 Thanks @ntucker! - DevToolsManager uses maxAge to set buffer size

  • 30208fb Thanks @ntucker! - Only show devtools button when DevToolsManager is used

    Previously, one could use custom managers list and it
    would still show the devtools button. This was confusing
    as opening it would show no instance for Data Client.

  • c3481ad Thanks @ntucker! - Fix DevToolsManager() config parameter correctly sets devtools config

  • Updated dependencies [e4d5f01, c3481ad]:

    • @data-client/core@0.12.5

@data-client/core@0.12.5

08 May 22:13
2b0f7ae
Compare
Choose a tag to compare

Patch Changes

@data-client/rest@0.12.4

07 May 17:27
2dcf116
Compare
Choose a tag to compare

Patch Changes

  • a6b4f4a Thanks @ntucker! - Support + and * in RestEndpoint.path

  • a6b4f4a Thanks @ntucker! - Add support for {} to RestEndpoint.path

    const getThing = new RestEndpoint({
      path: "/:attr1?{-:attr2}?{-:attr3}?",
    });
    
    getThing({ attr1: "hi" });
    getThing({ attr2: "hi" });
    getThing({ attr3: "hi" });
    getThing({ attr1: "hi", attr3: "ho" });
    getThing({ attr2: "hi", attr3: "ho" });