@valbuild/language-server 0.126.0 → 0.127.0

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,14 @@
1
1
  # @valbuild/language-server
2
2
 
3
+ ## 0.127.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`7fa8699`](https://github.com/valbuild/val/commit/7fa869974bc895af992a7d5c18b76253636d7d65), [`5b7fe05`](https://github.com/valbuild/val/commit/5b7fe05cec6365f9cd1de9ba31e65ed4a87edb63), [`88262ac`](https://github.com/valbuild/val/commit/88262ac8db068650a664981ef73556457d87741a), [`7072e07`](https://github.com/valbuild/val/commit/7072e07623c953a09ac14388ae22dada0b431ce3), [`29811c3`](https://github.com/valbuild/val/commit/29811c3f8c7e001a950e6f4833af6888e6a4efea)]:
8
+ - @valbuild/core@0.127.0
9
+ - @valbuild/shared@0.127.0
10
+ - @valbuild/server@0.127.0
11
+
3
12
  ## 0.126.0
4
13
 
5
14
  ### Patch Changes
@@ -183,7 +183,7 @@ var packageJson = {
183
183
  "lsp",
184
184
  "language-server"
185
185
  ],
186
- version: "0.126.0",
186
+ version: "0.127.0",
187
187
  bin: {
188
188
  "val-language-server": "./bin.js"
189
189
  },
@@ -1786,8 +1786,17 @@ function galleryCheckKey(sourcePath, error) {
1786
1786
  return `${sourcePath}|${(error.fixes ?? []).join(",")}`;
1787
1787
  }
1788
1788
 
1789
- /** Fixes core cannot resolve without a project-wide snapshot. */
1790
- const DEFERRED_FIXES = ["keyof:check-keys", "router:check-route"];
1789
+ /**
1790
+ * Fixes core cannot resolve without a project-wide snapshot.
1791
+ *
1792
+ * The shared list, not a copy: this had its own and fell behind by two, so a
1793
+ * locale field and a declared-key record each put the marker's developer-facing
1794
+ * placeholder — "should typically be processed by Val internally … version
1795
+ * mismatch" — into the editor's diagnostics whenever the snapshot was missing.
1796
+ * Every caller that recognises some of these has to recognise all of them; see
1797
+ * `SCHEMA_SOURCE_FIXES`.
1798
+ */
1799
+ const DEFERRED_FIXES = internal.SCHEMA_SOURCE_FIXES;
1791
1800
 
1792
1801
  /**
1793
1802
  * Fallback for when no snapshot is available: drop the placeholders rather than
@@ -183,7 +183,7 @@ var packageJson = {
183
183
  "lsp",
184
184
  "language-server"
185
185
  ],
186
- version: "0.126.0",
186
+ version: "0.127.0",
187
187
  bin: {
188
188
  "val-language-server": "./bin.js"
189
189
  },
@@ -1786,8 +1786,17 @@ function galleryCheckKey(sourcePath, error) {
1786
1786
  return `${sourcePath}|${(error.fixes ?? []).join(",")}`;
1787
1787
  }
1788
1788
 
1789
- /** Fixes core cannot resolve without a project-wide snapshot. */
1790
- const DEFERRED_FIXES = ["keyof:check-keys", "router:check-route"];
1789
+ /**
1790
+ * Fixes core cannot resolve without a project-wide snapshot.
1791
+ *
1792
+ * The shared list, not a copy: this had its own and fell behind by two, so a
1793
+ * locale field and a declared-key record each put the marker's developer-facing
1794
+ * placeholder — "should typically be processed by Val internally … version
1795
+ * mismatch" — into the editor's diagnostics whenever the snapshot was missing.
1796
+ * Every caller that recognises some of these has to recognise all of them; see
1797
+ * `SCHEMA_SOURCE_FIXES`.
1798
+ */
1799
+ const DEFERRED_FIXES = internal.SCHEMA_SOURCE_FIXES;
1791
1800
 
1792
1801
  /**
1793
1802
  * Fallback for when no snapshot is available: drop the placeholders rather than
@@ -8,7 +8,7 @@ import { TextDocuments, TextDocumentSyncKind, createConnection, ProposedFeatures
8
8
  import { TextDocument } from 'vscode-languageserver-textdocument';
9
9
  import crypto from 'crypto';
10
10
  import { createRequire } from 'node:module';
11
- import { resolveSchemaSourceFixes, getRoutesWithModulePaths } from '@valbuild/shared/internal';
11
+ import { resolveSchemaSourceFixes, SCHEMA_SOURCE_FIXES, getRoutesWithModulePaths } from '@valbuild/shared/internal';
12
12
  import { result } from '@valbuild/core/fp';
13
13
  import { JSONOps, applyPatch, deepClone } from '@valbuild/core/patch';
14
14
 
@@ -172,7 +172,7 @@ var packageJson = {
172
172
  "lsp",
173
173
  "language-server"
174
174
  ],
175
- version: "0.126.0",
175
+ version: "0.127.0",
176
176
  bin: {
177
177
  "val-language-server": "./bin.js"
178
178
  },
@@ -1775,8 +1775,17 @@ function galleryCheckKey(sourcePath, error) {
1775
1775
  return `${sourcePath}|${(error.fixes ?? []).join(",")}`;
1776
1776
  }
1777
1777
 
1778
- /** Fixes core cannot resolve without a project-wide snapshot. */
1779
- const DEFERRED_FIXES = ["keyof:check-keys", "router:check-route"];
1778
+ /**
1779
+ * Fixes core cannot resolve without a project-wide snapshot.
1780
+ *
1781
+ * The shared list, not a copy: this had its own and fell behind by two, so a
1782
+ * locale field and a declared-key record each put the marker's developer-facing
1783
+ * placeholder — "should typically be processed by Val internally … version
1784
+ * mismatch" — into the editor's diagnostics whenever the snapshot was missing.
1785
+ * Every caller that recognises some of these has to recognise all of them; see
1786
+ * `SCHEMA_SOURCE_FIXES`.
1787
+ */
1788
+ const DEFERRED_FIXES = SCHEMA_SOURCE_FIXES;
1780
1789
 
1781
1790
  /**
1782
1791
  * Fallback for when no snapshot is available: drop the placeholders rather than
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "lsp",
12
12
  "language-server"
13
13
  ],
14
- "version": "0.126.0",
14
+ "version": "0.127.0",
15
15
  "bin": {
16
16
  "val-language-server": "./bin.js"
17
17
  },
@@ -29,9 +29,9 @@
29
29
  "typescript": "^6.0.3",
30
30
  "vscode-languageserver": "^10.1.0",
31
31
  "vscode-languageserver-textdocument": "^1.0.14",
32
- "@valbuild/core": "0.126.0",
33
- "@valbuild/server": "0.126.0",
34
- "@valbuild/shared": "0.126.0"
32
+ "@valbuild/core": "0.127.0",
33
+ "@valbuild/shared": "0.127.0",
34
+ "@valbuild/server": "0.127.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/jest": "^30.0.0",