diff --git a/.changeset/chatty-books-buy.md b/.changeset/chatty-books-buy.md new file mode 100644 index 0000000000..5cf8083bf7 --- /dev/null +++ b/.changeset/chatty-books-buy.md @@ -0,0 +1,13 @@ +--- +'@backstage/core-api': patch +--- + +Updated the `Observable` type to provide interoperability with `Symbol.observable`, making it compatible with at least `zen-observable` and `RxJS 7`. + +In cases where this change breaks tests that mocked the `Observable` type, the following addition to the mock should fix the breakage: + +```ts + [Symbol.observable]() { + return this; + }, +``` diff --git a/.changeset/sweet-colts-teach.md b/.changeset/sweet-colts-teach.md new file mode 100644 index 0000000000..863c90eaa3 --- /dev/null +++ b/.changeset/sweet-colts-teach.md @@ -0,0 +1,5 @@ +--- +'@backstage/test-utils': patch +--- + +Updated `MockErrorApi` to work with new `Observable` type in `@backstage/core`.