Skip to content

Commit b757419

Browse files
Release version 3.0.2
1 parent 1ac2dea commit b757419

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9+
## 3.0.2
10+
11+
* Unregister ServiceWorker
12+
913
## 3.0.1
1014

1115
* Change WorkboxPlugin option to delete outdated caches

src/App/Loader.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ let [<Global>] navigator: obj = jsNative
112112
let [<Emit("$0 in $1")>] hasField (key: string) (o: obj): bool = jsNative
113113
if hasField "serviceWorker" navigator then
114114
navigator?serviceWorker?register("./service-worker.js")
115+
?``then``(fun registration -> registration?unregister())
115116
#endif
116117

117118
open Elmish.React

src/App/Prelude.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ open Fable.Core
66

77
[<RequireQualifiedAccess>]
88
module Literals =
9-
let [<Literal>] REPL_VERSION = "3.0.1" // Do not edit manually
9+
let [<Literal>] REPL_VERSION = "3.0.2" // Do not edit manually
1010
let [<Literal>] STORAGE_KEY = "fable-repl"
1111
let [<Literal>] MAX_LOGS_LENGTH = 200
1212
// let [<Literal>] HOST =

webpack.config.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,17 @@ module.exports = {
131131
patterns: [
132132
{ from: CONFIG.assetsDir }
133133
]}),
134-
new WorkboxPlugin.GenerateSW({
135-
cleanupOutdatedCaches: true,
136-
// these options encourage the ServiceWorkers to get in there fast
137-
// and not allow any straggling "old" SWs to hang around
138-
clientsClaim: true,
139-
skipWaiting: true,
140-
// runtimeCaching: [{
141-
// urlPattern: new RegExp('/api/.*'),
142-
// handler: 'staleWhileRevalidate'
143-
// }]
144-
}),
134+
// new WorkboxPlugin.GenerateSW({
135+
// cleanupOutdatedCaches: true,
136+
// // these options encourage the ServiceWorkers to get in there fast
137+
// // and not allow any straggling "old" SWs to hang around
138+
// clientsClaim: true,
139+
// skipWaiting: true,
140+
// // runtimeCaching: [{
141+
// // urlPattern: new RegExp('/api/.*'),
142+
// // handler: 'staleWhileRevalidate'
143+
// // }]
144+
// }),
145145
])
146146
: commonPlugins.concat([
147147
new webpack.HotModuleReplacementPlugin(),

0 commit comments

Comments
 (0)