sourcegraph/client/http-client
Greg Magolan 09d898704a
build: update to Aspect CLI 5.5.2 (#53692)
Required adding a few import ignore directives in
`client/web/BUILD.bazel`. @jbedard is working on a fix for those. Has to
do with tsconfig paths. Fix will land in a future release.

## Test plan

5.4.11 output:

```
$ bazel configure
Updating BUILD files for protobuf, go, javascript
WARN[0000] Failed to load base tsconfig file @sourcegraph/tsconfig: open /Users/greg/aspect/sourcegraph/sourcegraph/@sourcegraph/tsconfig: no such file or directory 
client/app-shell/src/app-shell.tsx parse error(s):
50: Top-level await is currently not supported with the "iife" output format
Failed to parse tsconfig file client/completions-review-tool/tsconfig.json: ERR: position:298 object key must be string pos:298 : 
933 BUILD files visited
0 BUILD files updated
```

5.5.2 output has some new spam as well:

```
$ bazel configure
Updating BUILD files for protobuf, go, javascript
WARN[0000] Failed to load base tsconfig file @sourcegraph/tsconfig: open /Users/greg/aspect/sourcegraph/sourcegraph/@sourcegraph/tsconfig: no such file or directory 
Failed to parse tsconfig file client/completions-review-tool/tsconfig.json: ERR: position:298 object key must be string pos:298 : 
client/web/src/globals.d.ts:
	     17: }
         ^

client/web/src/storm/backend/route-loader.ts:
	     41:     usePreloadedQueryData: () => ReturnType<typeof useSuspenseQuery<D, V>>
                                                    ^
	     41:     usePreloadedQueryData: () => ReturnType<typeof useSuspenseQuery<D, V>>
                                                     ^

934 BUILD files visited
0 BUILD files updated
```
2023-06-22 18:33:15 +02:00
..
src storm: make Apollo Cache persistor use preloaded data (#48706) 2023-03-07 05:00:25 +00:00
.eslintignore [SG-28893] refactor: extract graphql folder into a new http-client package. (#29346) 2022-01-13 18:40:35 +01:00
.eslintrc.js [SG-28893] refactor: extract graphql folder into a new http-client package. (#29346) 2022-01-13 18:40:35 +01:00
babel.config.js [SG-28893] refactor: extract graphql folder into a new http-client package. (#29346) 2022-01-13 18:40:35 +01:00
BUILD.bazel build: update to Aspect CLI 5.5.2 (#53692) 2023-06-22 18:33:15 +02:00
jest.config.js [SG-28893] refactor: extract graphql folder into a new http-client package. (#29346) 2022-01-13 18:40:35 +01:00
OWNERS Update FPT code owners ping (#44545) 2022-11-17 07:21:49 -05:00
package.json web: sync TS project refenreces (#46407) 2023-01-16 18:55:10 -08:00
README.md web: deprecate requestGraphQL and update http-client README (#47597) 2023-02-14 18:51:01 -08:00
tsconfig.json Revert "revert "bazel: improve ESLint rule" (#52853)" (#52878) 2023-06-04 19:06:39 -07:00

Http Client

Generic logic for sending and handling HTTP requests from our client applications.

Use the getGraphQLClient client utility to create an app-specific instance of the Apollo Client, which is the recommended way to interact with Sourcegraph API from web applications.