-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add service worker #550
Conversation
🎉 This PR is included in version 7.3.0-alpha.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
# [7.6.0-alpha.1](v7.5.1...v7.6.0-alpha.1) (2021-08-31) ### Bug Fixes * catch errors in completeRecording ([e67ae82](e67ae82)) * check whole URL against filter patterns ([5468114](5468114)) * only return sections with cached data from getCachedSections ([f6242d1](f6242d1)) * reopen indexedDB if global state resets ([0aded68](0aded68)) * return true if either cache or idb entry is removed ([43d8001](43d8001)) * simplify message payload to be compatible with firefox ([5e5a633](5e5a633)) ### Features * add service worker and pwa capabilities ([#550](#550)) ([225069e](225069e)), closes [#580](#580) [#582](#582) [#592](#592) * allow RegEx for filter patterns in d2.config.js ([9699330](9699330)) * use new headerbar with online status indicator ([#626](#626)) ([3bd7d37](3bd7d37))
🎉 This PR is included in version 7.6.0-alpha.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
# [7.6.0](v7.5.1...v7.6.0) (2021-08-31) ### Bug Fixes * catch errors in completeRecording ([e67ae82](e67ae82)) * check whole URL against filter patterns ([5468114](5468114)) * only return sections with cached data from getCachedSections ([f6242d1](f6242d1)) * reopen indexedDB if global state resets ([0aded68](0aded68)) * return true if either cache or idb entry is removed ([43d8001](43d8001)) * simplify message payload to be compatible with firefox ([5e5a633](5e5a633)) ### Features * add service worker and pwa capabilities ([#550](#550)) ([225069e](225069e)), closes [#580](#580) [#582](#582) [#592](#592) * allow RegEx for filter patterns in d2.config.js ([9699330](9699330)) * use new headerbar with online status indicator ([#626](#626)) ([3bd7d37](3bd7d37))
🎉 This PR is included in version 7.6.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
# [8.0.0-beta.4](v8.0.0-beta.3...v8.0.0-beta.4) (2021-09-08) ### Bug Fixes * **dependencies:** update app-runtime to v3 ([8777699](8777699)) * **offline-interface:** prevent infinite update loop in Chrome ([#638](#638)) ([079f6ea](079f6ea)) * **recording-mode:** handle fulfilled requests after recording error ([#642](#642)) ([928e2cb](928e2cb)) * import index.css in index.js so styles are applied ([8db1bf8](8db1bf8)) * **shell:** create new stacking context for roots ([324a095](324a095)) * catch errors in completeRecording ([e67ae82](e67ae82)) * check whole URL against filter patterns ([5468114](5468114)) * only return sections with cached data from getCachedSections ([f6242d1](f6242d1)) * reopen indexedDB if global state resets ([0aded68](0aded68)) * return true if either cache or idb entry is removed ([43d8001](43d8001)) * simplify message payload to be compatible with firefox ([5e5a633](5e5a633)) ### Features * add service worker and pwa capabilities ([#550](#550)) ([225069e](225069e)), closes [#580](#580) [#582](#582) [#592](#592) * allow RegEx for filter patterns in d2.config.js ([9699330](9699330)) * use new headerbar with online status indicator ([#626](#626)) ([3bd7d37](3bd7d37)) ### BREAKING CHANGES * **dependencies:** This updates the app-platform to version 3 of the app-runtime. That means that this version of the app-platform will only work with apps that use version 3 of the app-runtime.
🎉 This PR is included in version 8.0.0-beta.4 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Enables offline caching; relates to these notes and Jira issue DHIS2-8341
Summary of changes, by package
OfflineInterface
which provides an interface for communicating between an app and the service worker and some read and delete functions for the Cache Storage API and a recorded section IndexedDB, and is intended to be used by the offline service React APIindex.js
into thesw
packageservice-worker.js
file is added which imports and executes the set-up code from thesw
packagemanifest.json
file for PWA purposesOfflineInterface
OfflineProvider
from the App Runtime is added to provide the Offline Interface and other context to the appTo do before alpha release, after runtime release:
alpha
and this branch up withmaster
@dhis2/app-service-offline
instead of local version@dhis2/app-runtime
insteadProvider
which includesOfflineProvider
To do after: