Skip to content

Releases: reactive/data-client

@data-client/test@0.14.16

13 Oct 10:27
5a5c95f
Compare
Choose a tag to compare

Patch Changes

@data-client/rest@0.14.16

13 Oct 10:27
5a5c95f
Compare
Choose a tag to compare

Patch Changes

  • 4580e62 Thanks @ntucker! - Update docstring for EntityMixin

  • #3243 43a955c Thanks @ntucker! - schema.Entity -> EntityMixin

    import { EntityMixin } from '@data-client/rest';
    
    export class Article {
      id = '';
      title = '';
      content = '';
      tags: string[] = [];
    }
    
    export class ArticleEntity extends EntityMixin(Article) {}

    We keep schema.Entity for legacy, and add schema.EntityMixin and EntityMixin as direct export

  • Updated dependencies [4580e62, 1f7b191, 43a955c]:

    • @data-client/endpoint@0.14.16

@data-client/react@0.14.16

13 Oct 10:27
5a5c95f
Compare
Choose a tag to compare

Patch Changes

  • #3238 28b702d Thanks @ntucker! - Update test docs link

  • #3244 109c922 Thanks @ntucker! - Add actionTypes without _TYPE suffix

    (Not breaking - we keep the old actionTypes name as well.)

    import type { Manager, Middleware } from '@data-client/react';
    import { actionTypes } from '@data-client/react';
    
    export default class LoggingManager implements Manager {
      middleware: Middleware = controller => next => async action => {
        switch (action.type) {
          case actionTypes.SET_RESPONSE_TYPE:
            console.info(
              `${action.endpoint.name} ${JSON.stringify(action.response)}`,
            );
          default:
            return next(action);
        }
      };
    
      cleanup() {}
    }
    import type { Manager, Middleware } from '@data-client/react';
    import { actionTypes } from '@data-client/react';
    
    export default class LoggingManager implements Manager {
      middleware: Middleware = controller => next => async action => {
        switch (action.type) {
          case actionTypes.SET_RESPONSE:
            console.info(
              `${action.endpoint.name} ${JSON.stringify(action.response)}`,
            );
          default:
            return next(action);
        }
      };
    
      cleanup() {}
    }
  • Updated dependencies [109c922]:

    • @data-client/core@0.14.16

@data-client/normalizr@0.14.16

13 Oct 10:27
5a5c95f
Compare
Choose a tag to compare

Patch Changes

@data-client/graphql@0.14.16

13 Oct 10:27
5a5c95f
Compare
Choose a tag to compare

Patch Changes

  • 4580e62 Thanks @ntucker! - Update docstring for EntityMixin

  • #3243 43a955c Thanks @ntucker! - schema.Entity -> EntityMixin

    import { EntityMixin } from '@data-client/rest';
    
    export class Article {
      id = '';
      title = '';
      content = '';
      tags: string[] = [];
    }
    
    export class ArticleEntity extends EntityMixin(Article) {}

    We keep schema.Entity for legacy, and add schema.EntityMixin and EntityMixin as direct export

  • Updated dependencies [4580e62, 1f7b191, 43a955c]:

    • @data-client/endpoint@0.14.16

@data-client/endpoint@0.14.16

13 Oct 10:27
5a5c95f
Compare
Choose a tag to compare

Patch Changes

  • 4580e62 Thanks @ntucker! - Update docstring for EntityMixin

  • 1f7b191 Thanks @ntucker! - Update Entity docstring

  • #3243 43a955c Thanks @ntucker! - schema.Entity -> EntityMixin

    import { EntityMixin } from '@data-client/rest';
    
    export class Article {
      id = '';
      title = '';
      content = '';
      tags: string[] = [];
    }
    
    export class ArticleEntity extends EntityMixin(Article) {}

    We keep schema.Entity for legacy, and add schema.EntityMixin and EntityMixin as direct export

@data-client/core@0.14.16

13 Oct 10:27
5a5c95f
Compare
Choose a tag to compare

Patch Changes

  • #3244 109c922 Thanks @ntucker! - Add actionTypes without _TYPE suffix

    (Not breaking - we keep the old actionTypes name as well.)

    import type { Manager, Middleware } from '@data-client/react';
    import { actionTypes } from '@data-client/react';
    
    export default class LoggingManager implements Manager {
      middleware: Middleware = controller => next => async action => {
        switch (action.type) {
          case actionTypes.SET_RESPONSE_TYPE:
            console.info(
              `${action.endpoint.name} ${JSON.stringify(action.response)}`,
            );
          default:
            return next(action);
        }
      };
    
      cleanup() {}
    }
    import type { Manager, Middleware } from '@data-client/react';
    import { actionTypes } from '@data-client/react';
    
    export default class LoggingManager implements Manager {
      middleware: Middleware = controller => next => async action => {
        switch (action.type) {
          case actionTypes.SET_RESPONSE:
            console.info(
              `${action.endpoint.name} ${JSON.stringify(action.response)}`,
            );
          default:
            return next(action);
        }
      };
    
      cleanup() {}
    }
  • Updated dependencies [43a955c]:

    • @data-client/normalizr@0.14.16

@data-client/img@0.14.15

19 Sep 09:49
af86837
Compare
Choose a tag to compare

Patch Changes

@data-client/react@0.14.14

15 Sep 15:59
6b66c31
Compare
Choose a tag to compare

Patch Changes

  • #3220 13f02d3 Thanks @ntucker! - New useDebounce() in /next that integrates useTransition()

    import { useDebounce } from '@data-client/react/next';
    const [debouncedQuery, isPending] = useDebounce(query, 100);
    • Returns tuple - to include isPending
    • Any Suspense triggered due to value change will continue showing
      the previous contents until it is finished loading.

@data-client/rest@0.14.13

13 Sep 15:17
62437cd
Compare
Choose a tag to compare

Patch Changes