Skip to content

v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Aug 13:16

Minor Changes

  • ef2b7e8: Replace nock with msw request handlers (breaking)

    This mock no longer runs an interceptor of its own. Instead it exposes msw
    request handlers that are registered on the msw server owned by your test
    suite, which avoids two libraries fighting over request interception. msw is
    a peer dependency now.

     const mddb = mockDynamoDB({ endpoint: "http://localhost:4000" });
    +const server = setupServer(...mddb.getHandlers());
    +server.listen();
    
     mddb.reset();
    -mddb.stop();
    +server.close();

    start() and stop() throw an error pointing at the new setup, they are
    removed in 1.0. Table lifecycle actions now wait for the table to reach its
    settled state before responding, so a table can be written to immediately
    after createTable() resolves.

Patch Changes