Skip to content

Releases: jkleinsc/broccoli-serviceworker

0.0.6

15 Dec 21:50
Compare
Choose a tag to compare

This release adds the ability for developers to include their own logic in the generate service worker. For ember apps, any code placed in .js files in the _app/serviceworkers_ directory will automatically be added to the generated service worker. Broccoli.js users can pass in a tree using the swIncludeTree option that will accomplish the same thing. Also, there is another new option called swIncludeFiles that will allow you to specify vendor files to include in your generated service worker.

This release also includes PR #14 which allows filenames with quotes in them, thanks to @yaymukund

0.0.5

03 Dec 19:41
Compare
Choose a tag to compare

broccoli-serviceworker now uses sw-toolbox behind the scenes to do the heavy lifting for service workers. Right now the functionality of broccoli-serviceworker remains the same, but eventually broccoli-serviceworker will provide support for all of the handlers that sw-toolbox provides.

If you are upgrading from a previous version, there is one small change in the configuration: includePaths has been renamed to precacheURLs.

This release also contains the following PRs thanks to @marco-c:

  • #10 - Don't delete caches not handled by broccoli-serviceworker
  • #13 - Use console.error and console.log instead of alert in service worker registration

0.0.4

23 Nov 16:51
Compare
Choose a tag to compare

Thanks to PRs from @miguelcobain and @zzarcon this release includes the following improvements:

  1. Using {{content-for 'body-footer'}} to insert service worker registration into index.html (issue #2, pr #6, #8)
  2. Added skipWaiting call to skip the waiting state and go directly to the activated state. This allows a simple page refresh to update the app. (pr #7)

0.0.3

02 Oct 13:44
Compare
Choose a tag to compare

Fixes issue found copying serviceworker-cache-polyfill.js to the dist dir thanks to @miguelcobain

0.0.2

16 Jun 01:25
Compare
Choose a tag to compare

The 0.0.1 contained an incorrect require statement for the ember addon. This patch fixes that issue.

Every new beginning comes from some other beginning's end

13 Jun 02:10
Compare
Choose a tag to compare