Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/check-project-run-external-code.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/check-project-typescript-7.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/language-server-session-typescript-7.md

This file was deleted.

14 changes: 14 additions & 0 deletions packages/graphqlsp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @0no-co/graphqlsp

## 1.19.0

### Minor Changes

- Add `checkProject` (`@0no-co/graphqlsp/check`), which reports GraphQLSP's diagnostics for a whole project without a language service. It runs on the TypeScript 7.1 API (`typescript@>=7.1` or `tsrs`), where language service plugins aren't loaded, and on the compiler API of TypeScript 5/6. To support this, the diagnostics now only depend on a small host interface rather than tsserver's plugin API, and identifiers are compared by their `text` instead of their `escapedText`
Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#438](https://github.com/0no-co/GraphQLSP/pull/438))
- Add `createLanguageServerSession` to `@0no-co/graphqlsp/check`, which reports GraphQLSP's diagnostics for files in a TypeScript 7.1 language server's projects, including editors' unsaved changes, through an API session of the language server
Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#439](https://github.com/0no-co/GraphQLSP/pull/439))

### Patch Changes

- Add a `runExternalCode` option to `checkProject`, which runs a project's content mappers (like `tsc --runExternalCode`), so documents imported from content-mapped files (e.g. `.graphql` files mapped by `@gql.tada/content-mapper`) are resolved. Content-mapped files themselves aren't checked, since their mappers report their diagnostics. Also compute persisted document hashes from string literals' values rather than their source text, which failed to parse documents written with escape sequences
Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#438](https://github.com/0no-co/GraphQLSP/pull/438))

## 1.18.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/graphqlsp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@0no-co/graphqlsp",
"version": "1.18.0",
"version": "1.19.0",
"description": "TypeScript LSP plugin that finds GraphQL documents in your code and provides hints and auto-generates types.",
"main": "./dist/graphqlsp",
"module": "./dist/graphqlsp.mjs",
Expand Down