vscode-apollo 2.6.5 → 2.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.6.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#313](https://github.com/apollographql/vscode-graphql/pull/313) [`c304043`](https://github.com/apollographql/vscode-graphql/commit/c304043205f9fce7989e596d86ff3b35cde165d0) Thanks [@unrevised6419](https://github.com/unrevised6419)! - Replace deprecated `util.isString` with `typeof x === "string"` so the extension works on Node 24, where the runtime-deprecated `util.isString` has been removed.
8
+
3
9
  ## 2.6.5
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vscode-apollo",
3
3
  "displayName": "Apollo GraphQL",
4
4
  "description": "Rich editor support for GraphQL client and server development that seamlessly integrates with the Apollo platform",
5
- "version": "2.6.5",
5
+ "version": "2.6.6",
6
6
  "referenceID": "87197759-7617-40d0-b32e-46d378e907c7",
7
7
  "author": "Apollo GraphQL <opensource@apollographql.com>",
8
8
  "license": "MIT",
@@ -16,7 +16,6 @@ import { Agent as HTTPSAgent } from "https";
16
16
  import { RemoteServiceConfig } from "../../config";
17
17
  import { GraphQLSchemaProvider, SchemaChangeUnsubscribeHandler } from "./base";
18
18
  import { Debug } from "../../utilities";
19
- import { isString } from "util";
20
19
  import { fetch as undiciFetch, Agent } from "undici";
21
20
 
22
21
  const skipSSLValidationFetchOptions = {
@@ -51,7 +50,7 @@ export class EndpointSchemaProvider implements GraphQLSchemaProvider {
51
50
  }),
52
51
  ).catch((e) => {
53
52
  // html response from introspection
54
- if (isString(e.message) && e.message.includes("token <")) {
53
+ if (typeof e.message === "string" && e.message.includes("token <")) {
55
54
  throw new Error(
56
55
  "Apollo tried to introspect a running GraphQL service at " +
57
56
  url +
@@ -65,7 +64,7 @@ export class EndpointSchemaProvider implements GraphQLSchemaProvider {
65
64
  }
66
65
 
67
66
  // 404 with a non-default url
68
- if (isString(e.message) && e.message.includes("ECONNREFUSED")) {
67
+ if (typeof e.message === "string" && e.message.includes("ECONNREFUSED")) {
69
68
  throw new Error(
70
69
  "Failed to connect to a running GraphQL endpoint at " +
71
70
  url +