pwa 0.1.4 pwa: ^0.1.4 copied to clipboard
Progressive Web App library
Changelog #
0.1.4 #
- Expose
clientKeys
inPushPermission
.
0.1.3 #
-
Workaround for a bug in Chrome: ServiceWorkerContainer.ready may not complete in certain cases (for no apparent reason). Added a timeout of two seconds and return the registered SW instance.
-
Added higher-level API helpers for checking Push permission and handling push events.
0.1.2 #
- Filter offline URLs:
dart2js
debug outputs (.dart.info.json
)package:test
andpackage:package_resolver
assets
0.1.1 #
- Generating
lastModified
timestamp (in String) for offline URLs. - Encouraging (but not yet enforcing) to use a version String in
Worker.run()
. - The generated
pwa.dart
usesoffline.lastModified
as the version.
0.1.0 #
Breaking changes:
-
Remove deprecated methods and classes (see changes in version 0.0.5).
-
Changed the initialization of the Service Worker:
pwa.g.dart
->pwa.dart
(source code generation is one-time only)Client
unregisters old version (ANY ServiceWorker ending with/pwa.g.dart.js
)
-
Worker.onInstall
andWorker.onActicate
became fields (instead of being methods).
0.0.5 #
API refactoring:
-
Remove
Pwa
class name prefix (not immediately breaking, added deprecated notes)PwaClient
->Client
PwaWorker
->Worker
PwaCacheMixin
->FetchStrategy
-
Renamed ambiguous items related to the Fetch API (not immediately breaking, added deprecated notes)
Handler
->RequestHandler
Matcher
->RequestMatcher
Router
->FetchRouter
defaultFetchHandler
->defaultRequestHandler
noCacheNetworkFetch
->noCacheNetworkRequestHandler
-
Renamed
DynamicCache
'snoNetworkCaching
->skipDiskCache
(not immediately breaking, added deprecated notes). -
Updated methods in
FetchRouter
(not immediately breaking, added deprecated notes)add
->registerMatcher
- new method:
registerUrl
(will makeurlPrefixMatcher
internal) get
->registerGetUrl
post
->registerPostUrl
0.0.4 #
- Fix path separators on Windows.
- Updated examples:
- Added
pwa_defaults
. - Moved
example
intoexamples/custom_routes
.
- Added
- Execute
pub build
when the project has nobuild/web
directory yet.
0.0.3 #
Breaking changes:
-
(API)
BlockCache
andDynamicCache
don't expose their initialization parameters. This is a minor change, it is unlikely to affect anybody. -
(behavior)
BlockCache
andDynamicCache
use path-specific cache prefixes, in order to prevent collision between apps that are installed on the same domain.This fixes unintended cache collisions, but also breaks if you were building on sharing the caches between apps. In this case, use the new
prefix
optional argument when instantiating caches.If you have used only a single application in the root of the domain, you are not affected by this change.
0.0.2 #
- Fix default codegen.
- Call skipWaiting() by default (can be disabled through flag).
- The generated offline URLs and the SW registration is changed to relative URLS, we can put the application in any directory.
- DynamicCache evicts older entries first (previously it was random).
- DynamicCache doesn't evicts old entries on initialization, which enables offline-aware caches to outlive the set expiration until the next successful network event.
- Support for caching common web fonts.
0.0.1 #
Experimental release, looking for feedback.