musora-content-services 2.147.0 → 2.147.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.147.1](https://github.com/railroadmedia/musora-content-services/compare/v2.147.0...v2.147.1) (2026-04-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * patches indexedDB.deleteDatabase to silence noisy safari errs ([#888](https://github.com/railroadmedia/musora-content-services/issues/888)) ([c67d408](https://github.com/railroadmedia/musora-content-services/commit/c67d40800ffe64d3eab204b97eaf26413b5a6e79))
11
+
5
12
  ## [2.147.0](https://github.com/railroadmedia/musora-content-services/compare/v2.146.1...v2.147.0) (2026-04-02)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.147.0",
3
+ "version": "2.147.1",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -15,6 +15,41 @@ export function muteImpendingDriverErrors() {
15
15
  )
16
16
  }
17
17
 
18
+ /**
19
+ * Patch indexedDB.deleteDatabase to delay the real call by 1ms
20
+ * as Safari logs tons of noisy errors, due to watermelon's
21
+ * `IncrementalIndexedDBAdapter.prototype.deleteDatabase` fn not waiting for
22
+ * a `close()` call to complete before trying `deleteDatabase`
23
+ * (which consistently triggers `request.onblocked`)
24
+ */
25
+ export function patchIndexedDBDeleteDatabaseErrors() {
26
+ const idb = window.indexedDB as any
27
+ const originalDeleteDatabase = idb.deleteDatabase
28
+
29
+ idb.deleteDatabase = function(...args: any[]) {
30
+ const proxyRequest = new Proxy({} as IDBOpenDBRequest, {
31
+ get(target, prop) {
32
+ return target[prop]
33
+ },
34
+ set(target, prop, value) {
35
+ target[prop] = value
36
+ return true
37
+ },
38
+ })
39
+
40
+ // Delay the real call by 1ms
41
+ setTimeout(() => {
42
+ const realRequest = originalDeleteDatabase.apply(this, args)
43
+
44
+ Object.keys(proxyRequest).forEach(prop => {
45
+ realRequest[prop] = (event: Event) => proxyRequest[prop]?.call(proxyRequest, event)
46
+ })
47
+ }, 1)
48
+
49
+ return proxyRequest
50
+ }
51
+ }
52
+
18
53
  /**
19
54
  * Patch IndexedDB open to listen for specifically definitely asynchronous errors
20
55
  */