df_pwa_utils 0.4.1
df_pwa_utils: ^0.4.1 copied to clipboard
Web utilities for progressive web applications (PWA). No-ops on non-web platforms.
Changelog #
0.4.1 #
- feat:
setToUrlHashStrategy()for opting back into'/#/...'URLs on static hosts; no-op on non-web.
0.4.0 #
- breaking:
WebNavigator.onPopStateinvokes callbacks with the app-relativeUri(base href stripped) instead of the raw URL. - breaking:
Uri.pathAndQueryextension now includes the fragment when present. - fix:
<base href>resolution handles absolute URLs (with scheme/host) and missing leading/trailing slashes. - fix:
stripBaseHrefmatches when the path equals the base href without its trailing slash. - fix:
PlatformNavigator.removeStateCallbackon non-web now returnsfalse(was incorrectly returningtrue). - perf:
WebNavigatorpop-state handler callsreplaceStateonce per pop instead of once per registered callback.