Skip to content

Commit fc02862

Browse files
committed
[#308] shallow copy realtime subscribe options arg
1 parent eb6092d commit fc02862

12 files changed

+17
-11
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.21.5
2+
3+
- Shallow copy the realtime subscribe `options` argument for consistency with the other methods ([#308](https://github.com/pocketbase/js-sdk/issues/308)).
4+
5+
16
## 0.21.4
27

38
- Fixed the `requestKey` handling in `authWithOAuth2({...})` to allow manually cancelling the entire OAuth2 pending request flow using `pb.cancelRequest(requestKey)`.

dist/pocketbase.cjs.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pocketbase.cjs.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pocketbase.es.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pocketbase.es.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pocketbase.es.mjs

+1-1
Large diffs are not rendered by default.

dist/pocketbase.es.mjs.map

+1-1
Large diffs are not rendered by default.

dist/pocketbase.iife.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pocketbase.iife.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pocketbase.umd.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pocketbase.umd.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/services/RealtimeService.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export class RealtimeService extends BaseService {
5555

5656
// serialize and append the topic options (if any)
5757
if (options) {
58-
normalizeUnknownQueryParams(options);
58+
options = Object.assign({}, options); // shallow copy
59+
normalizeUnknownQueryParams(options)
5960
const serialized =
6061
"options=" +
6162
encodeURIComponent(

0 commit comments

Comments
 (0)