sourcegraph/client/codeintellify
Felix Kling db3e905242
Migrate deprecated rxjs functions/methods (#61222)
As a follow up to https://github.com/sourcegraph/sourcegraph/pull/61122 this commit updates the deprecated methods with the suggested replacements.

**Note**

This only migrates functions/methods that are replaced with something else, or whose deprecated call signature can easily be identified (e.g. `throwError(error)` -> `throwError(() => error)`). It's possible that there are more functions which deprecate a specific signature that we are using. I'll migrate those as I encounter them.

**Notes about `.toPromise`**

The instances of `.toPromise` converted here are all instances where the updated return value of `Promise<X|undefined>` did not produce a TS error (the ones with errors have been converted in #61122). However that doesn't mean that they can simply be replaced with `firstValueFrom`, `lastValueFrom` (these two methods throw errors when the source observable hasn't emitted a value before closing).
I update the callsites under two assumptions:
- Callsites that involve GraphQL requests will always emit a value and thus can be converted to using `lastValueFrom`/`firstValueFrom`.
- For other callsites we cannot make the assumption that the source observable emits before closing and thus they need a default value.
2024-04-08 11:23:34 +02:00
..
src Migrate deprecated rxjs functions/methods (#61222) 2024-04-08 11:23:34 +02:00
.eslintignore refactor: extract codeintellify as new package (#29233) 2022-01-10 22:29:47 +07:00
BUILD.bazel reapply "switch from jest to vitest for faster, simpler tests (#57886)" (#58145) 2023-11-07 12:00:18 +02:00
package.json reapply "switch from jest to vitest for faster, simpler tests (#57886)" (#58145) 2023-11-07 12:00:18 +02:00
tsconfig.json simplify tsconfig.json files (#57913) 2023-10-26 03:03:11 -07:00
vitest.config.ts aspect workflows: add initial aspect workflow yaml (#56569) 2023-11-24 11:52:17 +02:00