serwist

A Swiss Army knife for service workers.

MIT License

Downloads
1.7M
Stars
667
Committers
81

Bot releases are visible (Hide)

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Minor Changes

  • 4ad112e Thanks @DuCanhGH! - feat(sw): added fallbacks

    • A removed feature of @ducanh2912/next-pwa, renovated.

    • There are differences from the old counterpart:

      • This feature belongs to @serwist/sw, rather than @serwist/next.
      • You are expected to provide a revision key yourself.
      • Go crazy: matcher replaces request.destination as the way to check whether a fallback entry is fit for a Request.
      • Usage example:
      installSerwist({
        precacheEntries: self.__SW_MANIFEST,
        skipWaiting: true,
        clientsClaim: true,
        navigationPreload: true,
        runtimeCaching: defaultCache,
        fallbacks: {
          entries: [
            {
              url: "/~offline",
              revision,
              matcher({ request }) {
                return request.destination === "document";
              },
            },
          ],
        },
      });
      

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

serwist - @serwist/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

Package Rankings
Top 23.13% on Npmjs.org