Fixed double-complete errors after upgrading to RxJS 7.3

This commit is contained in:
squidfunk 2021-08-04 21:19:56 +02:00
parent 6ac55d485e
commit b07e466bec
25 changed files with 58 additions and 91 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -223,7 +223,7 @@
</script> </script>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="{{ 'assets/javascripts/bundle.2b46852b.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/bundle.806c4996.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %} {% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script> <script src="{{ path | url }}"></script>
{% endfor %} {% endfor %}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -16,5 +16,5 @@
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
{{ super() }} {{ super() }}
<script src="{{ 'overrides/assets/javascripts/bundle.1d33a92e.min.js' | url }}"></script> <script src="{{ 'overrides/assets/javascripts/bundle.dba5ec94.min.js' | url }}"></script>
{% endblock %} {% endblock %}

6
package-lock.json generated
View File

@ -7436,9 +7436,9 @@
} }
}, },
"rxjs": { "rxjs": {
"version": "7.2.0", "version": "7.3.0",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.2.0.tgz", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.3.0.tgz",
"integrity": "sha512-aX8w9OpKrQmiPKfT1bqETtUr9JygIz6GZ+gql8v7CijClsP0laoFUdKzxFAoWuRdSlOdU2+crss+cMf+cqMTnw==", "integrity": "sha512-p2yuGIg9S1epc3vrjKf6iVb3RCaAYjYskkO+jHIaV0IjOPlJop4UnodOoFb2xeNwlguqLYvGw1b1McillYb5Gw==",
"requires": { "requires": {
"tslib": "~2.1.0" "tslib": "~2.1.0"
}, },

View File

@ -42,7 +42,7 @@
"fuzzaldrin-plus": "^0.6.0", "fuzzaldrin-plus": "^0.6.0",
"lunr": "^2.3.9", "lunr": "^2.3.9",
"lunr-languages": "^1.8.0", "lunr-languages": "^1.8.0",
"rxjs": "7.2.0" "rxjs": "^7.3.0"
}, },
"devDependencies": { "devDependencies": {
"@fortawesome/fontawesome-free": "^5.15.3", "@fortawesome/fontawesome-free": "^5.15.3",

View File

@ -31,7 +31,6 @@ import {
} from "rxjs" } from "rxjs"
import { import {
distinctUntilKeyChanged, distinctUntilKeyChanged,
finalize,
map, map,
switchMap, switchMap,
tap, tap,
@ -177,7 +176,6 @@ export function mountCodeBlock(
return watchCodeBlock(el, options) return watchCodeBlock(el, options)
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state })) map(state => ({ ref: el, ...state }))
) )
} }

View File

@ -23,7 +23,6 @@
import { Observable, Subject } from "rxjs" import { Observable, Subject } from "rxjs"
import { import {
filter, filter,
finalize,
map, map,
mapTo, mapTo,
mergeWith, mergeWith,
@ -109,7 +108,6 @@ export function mountDetails(
return watchDetails(el, options) return watchDetails(el, options)
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
mapTo({ ref: el }) mapTo({ ref: el })
) )
} }

View File

@ -29,7 +29,6 @@ import {
} from "rxjs" } from "rxjs"
import { import {
delay, delay,
finalize,
map, map,
observeOn, observeOn,
switchMap, switchMap,
@ -133,7 +132,6 @@ export function mountDialog(
return watchDialog(el, options) return watchDialog(el, options)
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state })) map(state => ({ ref: el, ...state }))
) )
} }

View File

@ -28,7 +28,6 @@ import {
} from "rxjs" } from "rxjs"
import { import {
distinctUntilKeyChanged, distinctUntilKeyChanged,
finalize,
map, map,
observeOn, observeOn,
tap tap
@ -141,7 +140,6 @@ export function mountHeaderTitle(
return watchHeaderTitle(headline, options) return watchHeaderTitle(headline, options)
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state })) map(state => ({ ref: el, ...state }))
) )
} }

View File

@ -27,7 +27,6 @@ import {
of of
} from "rxjs" } from "rxjs"
import { import {
finalize,
map, map,
mapTo, mapTo,
mergeMap, mergeMap,
@ -142,7 +141,6 @@ export function mountPalette(
return watchPalette(inputs) return watchPalette(inputs)
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state })) map(state => ({ ref: el, ...state }))
) )
} }

View File

@ -32,7 +32,6 @@ import {
distinctUntilChanged, distinctUntilChanged,
distinctUntilKeyChanged, distinctUntilKeyChanged,
filter, filter,
finalize,
map, map,
take, take,
takeLast, takeLast,
@ -174,7 +173,6 @@ export function mountSearchQuery(
return watchSearchQuery(el, { tx$, rx$ }) return watchSearchQuery(el, { tx$, rx$ })
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state })) map(state => ({ ref: el, ...state }))
) )
} }

View File

@ -30,7 +30,6 @@ import {
import { import {
bufferCount, bufferCount,
filter, filter,
finalize,
map, map,
observeOn, observeOn,
switchMap, switchMap,
@ -154,7 +153,6 @@ export function mountSearchResult(
return result$ return result$
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state })) map(state => ({ ref: el, ...state }))
) )
} }

View File

@ -25,11 +25,7 @@ import {
Subject, Subject,
fromEvent fromEvent
} from "rxjs" } from "rxjs"
import { import { map, tap } from "rxjs/operators"
finalize,
map,
tap
} from "rxjs/operators"
import { getLocation } from "~/browser" import { getLocation } from "~/browser"
@ -117,7 +113,6 @@ export function mountSearchShare(
return watchSearchShare(el, options) return watchSearchShare(el, options)
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state })) map(state => ({ ref: el, ...state }))
) )
} }

View File

@ -30,7 +30,6 @@ import {
combineLatestWith, combineLatestWith,
distinctUntilChanged, distinctUntilChanged,
filter, filter,
finalize,
map, map,
observeOn, observeOn,
tap tap
@ -146,7 +145,6 @@ export function mountSearchSuggest(
return result$ return result$
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(() => ({ ref: el })) map(() => ({ ref: el }))
) )
} }

View File

@ -28,7 +28,6 @@ import {
} from "rxjs" } from "rxjs"
import { import {
distinctUntilChanged, distinctUntilChanged,
finalize,
map, map,
observeOn, observeOn,
tap, tap,
@ -159,7 +158,6 @@ export function mountSidebar(
return watchSidebar(el, options) return watchSidebar(el, options)
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state })) map(state => ({ ref: el, ...state }))
) )
} }

View File

@ -24,7 +24,6 @@ import { NEVER, Observable, Subject, defer, of } from "rxjs"
import { import {
catchError, catchError,
filter, filter,
finalize,
map, map,
shareReplay, shareReplay,
tap tap
@ -119,7 +118,6 @@ export function mountSource(
return watchSource(el) return watchSource(el)
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state })) map(state => ({ ref: el, ...state }))
) )
} }

View File

@ -23,7 +23,6 @@
import { Observable, Subject, animationFrameScheduler } from "rxjs" import { Observable, Subject, animationFrameScheduler } from "rxjs"
import { import {
distinctUntilKeyChanged, distinctUntilKeyChanged,
finalize,
map, map,
observeOn, observeOn,
switchMap, switchMap,
@ -137,7 +136,6 @@ export function mountTabs(
return watchTabs(el, options) return watchTabs(el, options)
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state })) map(state => ({ ref: el, ...state }))
) )
} }

View File

@ -30,7 +30,6 @@ import {
bufferCount, bufferCount,
distinctUntilChanged, distinctUntilChanged,
distinctUntilKeyChanged, distinctUntilKeyChanged,
finalize,
map, map,
observeOn, observeOn,
scan, scan,
@ -269,7 +268,6 @@ export function mountTableOfContents(
return watchTableOfContents(anchors, options) return watchTableOfContents(anchors, options)
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state })) map(state => ({ ref: el, ...state }))
) )
} }

View File

@ -30,7 +30,6 @@ import {
bufferCount, bufferCount,
distinctUntilChanged, distinctUntilChanged,
distinctUntilKeyChanged, distinctUntilKeyChanged,
finalize,
map, map,
observeOn, observeOn,
tap, tap,
@ -172,7 +171,6 @@ export function mountBackToTop(
return watchBackToTop(el, { viewport$, header$, main$ }) return watchBackToTop(el, { viewport$, header$, main$ })
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state })) map(state => ({ ref: el, ...state }))
) )
} }

View File

@ -33,7 +33,6 @@ import {
bufferCount, bufferCount,
distinctUntilKeyChanged, distinctUntilKeyChanged,
filter, filter,
finalize,
map, map,
observeOn, observeOn,
switchMap, switchMap,
@ -193,7 +192,6 @@ export function mountIconSearchResult(
return watchIconSearchResult(el, { query$, index$ }) return watchIconSearchResult(el, { query$, index$ })
.pipe( .pipe(
tap(internal$), tap(internal$),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state })) map(state => ({ ref: el, ...state }))
) )
} }