data-client

Async State Management without the Management

APACHE-2.0 License

Downloads
44.4K
Stars
1.9K
Committers
37

Bot releases are visible (Hide)

data-client - @data-client/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • #3071 7fba440 Thanks @ntucker! - React 19 JSX runtime compatibility.

    BREAKING CHANGE: Min React version 16.8.4 -> 16.14

    16.14 is the first version of React to include JSX runtime.

  • Updated dependencies [7fba440]:

data-client - @data-client/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • #3071 7fba440 Thanks @ntucker! - React 19 JSX runtime compatibility.

    BREAKING CHANGE: Min React version 16.8.4 -> 16.14

    16.14 is the first version of React to include JSX runtime.

data-client - @data-client/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • #3071 7fba440 Thanks @ntucker! - React 19 JSX runtime compatibility.

    BREAKING CHANGE: Min React version 16.8.4 -> 16.14

    16.14 is the first version of React to include JSX runtime.

data-client - @data-client/[email protected]

Published by github-actions[bot] 5 months ago

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 - @data-client/[email protected]

Published by github-actions[bot] 5 months ago

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 - @data-client/[email protected]

Published by github-actions[bot] 5 months ago

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 - @data-client/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 6 months ago

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 - @data-client/[email protected]

Published by github-actions[bot] 6 months ago

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 - @data-client/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 6 months ago

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" });
    
data-client - @data-client/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes