vscode-apollo 2.6.3 → 2.6.4

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,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.6.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#303](https://github.com/apollographql/vscode-graphql/pull/303) [`1be1252`](https://github.com/apollographql/vscode-graphql/commit/1be1252f9ce5135a557ce884ada3f96ca82e643c) Thanks [@phryneas](https://github.com/phryneas)! - Update `graphql` and `graphql-language-service` packages.
8
+
9
+ This allows descriptions in executable documents to be parsed correctly.
10
+
3
11
  ## 2.6.3
4
12
 
5
13
  ### 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.3",
5
+ "version": "2.6.4",
6
6
  "referenceID": "87197759-7617-40d0-b32e-46d378e907c7",
7
7
  "author": "Apollo GraphQL <opensource@apollographql.com>",
8
8
  "license": "MIT",
@@ -37,7 +37,8 @@
37
37
  "test:textmate-graphql-connectors-mapping": "npm run build:textmate -- --snapshot connectors.mapping.yaml; npx vscode-tmgrammar-test src/__tests__/fixtures/textmate/*.graphql",
38
38
  "update-connectors-community": "git subtree pull --prefix sampleWorkspace/connectors-community https://github.com/apollographql/connectors-community.git main --squash",
39
39
  "codegen": "graphql-codegen",
40
- "vscode:prepublish": "npm run build:production"
40
+ "vscode:prepublish": "npm run build:production",
41
+ "postinstall": "patch-package"
41
42
  },
42
43
  "engines": {
43
44
  "vscode": "^1.90.0"
@@ -52,8 +53,8 @@
52
53
  "dotenv": "16.4.7",
53
54
  "fractional-indexing": "2.1.0",
54
55
  "glob": "11.0.0",
55
- "graphql": "16.9.0",
56
- "graphql-language-service": "5.2.2",
56
+ "graphql": "16.12.0",
57
+ "graphql-language-service": "5.5.0",
57
58
  "graphql-tag": "2.12.6",
58
59
  "jsonc-parser": "^3.3.1",
59
60
  "lodash.debounce": "4.0.8",
@@ -100,6 +101,7 @@
100
101
  "memfs": "4.15.0",
101
102
  "npm-run-all": "4.1.5",
102
103
  "oniguruma-parser": "^0.12.1",
104
+ "patch-package": "^8.0.1",
103
105
  "prettier": "3.4.2",
104
106
  "rimraf": "6.0.1",
105
107
  "ts-jest": "29.2.5",
@@ -0,0 +1,26 @@
1
+ diff --git a/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js b/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js
2
+ index d2247e0..4c61625 100644
3
+ --- a/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js
4
+ +++ b/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js
5
+ @@ -132,7 +132,7 @@ function ValuesOfCorrectTypeRule(context) {
6
+ EnumValue: (node) => isValidValueNode(context, node),
7
+ IntValue: (node) => isValidValueNode(context, node),
8
+ FloatValue: (node) => isValidValueNode(context, node),
9
+ - StringValue: (node) => isValidValueNode(context, node),
10
+ + StringValue: (node, key) => key !== "description" && isValidValueNode(context, node),
11
+ BooleanValue: (node) => isValidValueNode(context, node),
12
+ };
13
+ }
14
+ diff --git a/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs b/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs
15
+ index fec0a51..55f4d56 100644
16
+ --- a/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs
17
+ +++ b/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs
18
+ @@ -117,7 +117,7 @@ export function ValuesOfCorrectTypeRule(context) {
19
+ EnumValue: (node) => isValidValueNode(context, node),
20
+ IntValue: (node) => isValidValueNode(context, node),
21
+ FloatValue: (node) => isValidValueNode(context, node),
22
+ - StringValue: (node) => isValidValueNode(context, node),
23
+ + StringValue: (node, key) => key !== "description" && isValidValueNode(context, node),
24
+ BooleanValue: (node) => isValidValueNode(context, node),
25
+ };
26
+ }
@@ -1,6 +1,15 @@
1
1
  import gql from "graphql-tag";
2
2
  gql`
3
- query Test($defer: Boolean!) {
3
+ """
4
+ Query-Level Comment Test
5
+ """
6
+ query Test(
7
+ """
8
+ Argument-Level Comment Test
9
+ """
10
+ $defer: Boolean!
11
+ ) {
12
+
4
13
  featureFlagDefer @client(always: false) @export(as: "defer")
5
14
  droid(id: "2000") {
6
15
  name