Skip to content

@data-client/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Mar 13:57
· 40 commits to master since this release
56d8beb

Patch Changes

  • #3390 32cccdb Thanks @ntucker! - Improve performance by using Map() instead of Object for unbounded keys

  • #3390 32cccdb Thanks @ntucker! - Interceptors that have args specified will still work, and warn about args.

    Example:

    {
      endpoint: TodoResource.getList.push,
      args: [{ userId: '5' }, {}],
      response({ userId }, body) {
        return { id: Math.random(), userId, ...ensurePojo(body) };
      },
    }

    This is clearly an interceptor, but args were accidentally specified. Before
    this would make it not register, and TypeScript couldn't detect the issue.

    Now this is treated as an interceptor (args ignored); and there is a console warning