@hydranium/data-server 1.0.0-next.10

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.
Files changed (48) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +91 -0
  3. package/lib/data-server.d.ts +614 -0
  4. package/lib/data-server.d.ts.map +1 -0
  5. package/lib/data-server.js +1003 -0
  6. package/lib/data-server.js.map +1 -0
  7. package/lib/default-diagnostics.browser.d.ts +18 -0
  8. package/lib/default-diagnostics.browser.d.ts.map +1 -0
  9. package/lib/default-diagnostics.browser.js +36 -0
  10. package/lib/default-diagnostics.browser.js.map +1 -0
  11. package/lib/default-diagnostics.d.ts +36 -0
  12. package/lib/default-diagnostics.d.ts.map +1 -0
  13. package/lib/default-diagnostics.js +38 -0
  14. package/lib/default-diagnostics.js.map +1 -0
  15. package/lib/diagnostics-provider.d.ts +65 -0
  16. package/lib/diagnostics-provider.d.ts.map +1 -0
  17. package/lib/diagnostics-provider.js +10 -0
  18. package/lib/diagnostics-provider.js.map +1 -0
  19. package/lib/index.d.ts +11 -0
  20. package/lib/index.d.ts.map +1 -0
  21. package/lib/index.js +15 -0
  22. package/lib/index.js.map +1 -0
  23. package/lib/node/index.d.ts +10 -0
  24. package/lib/node/index.d.ts.map +1 -0
  25. package/lib/node/index.js +16 -0
  26. package/lib/node/index.js.map +1 -0
  27. package/lib/node/node-diagnostics-provider.d.ts +18 -0
  28. package/lib/node/node-diagnostics-provider.d.ts.map +1 -0
  29. package/lib/node/node-diagnostics-provider.js +68 -0
  30. package/lib/node/node-diagnostics-provider.js.map +1 -0
  31. package/lib/testing/data-server-harness.d.ts +85 -0
  32. package/lib/testing/data-server-harness.d.ts.map +1 -0
  33. package/lib/testing/data-server-harness.js +47 -0
  34. package/lib/testing/data-server-harness.js.map +1 -0
  35. package/lib/testing/index.d.ts +11 -0
  36. package/lib/testing/index.d.ts.map +1 -0
  37. package/lib/testing/index.js +10 -0
  38. package/lib/testing/index.js.map +1 -0
  39. package/package.json +93 -0
  40. package/src/data-server.ts +1282 -0
  41. package/src/default-diagnostics.browser.ts +41 -0
  42. package/src/default-diagnostics.ts +40 -0
  43. package/src/diagnostics-provider.ts +70 -0
  44. package/src/index.ts +15 -0
  45. package/src/node/index.ts +17 -0
  46. package/src/node/node-diagnostics-provider.ts +82 -0
  47. package/src/testing/data-server-harness.ts +147 -0
  48. package/src/testing/index.ts +19 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAWlF,cAAc,0BAA0B,CAAC"}
package/package.json ADDED
@@ -0,0 +1,93 @@
1
+ {
2
+ "name": "@hydranium/data-server",
3
+ "version": "1.0.0-next.10",
4
+ "description": "Typed-RPC protocol head for the hydranium framework. Peer of @hydranium/core/lsp and @hydranium/glsp-server; built on @hydranium/core.",
5
+ "keywords": [
6
+ "hydranium",
7
+ "langium",
8
+ "language-server",
9
+ "lsp",
10
+ "rpc",
11
+ "data-server"
12
+ ],
13
+ "homepage": "https://github.com/eclipse-emfcloud/hydranium/tree/main/packages/data-server",
14
+ "bugs": {
15
+ "url": "https://github.com/eclipse-emfcloud/hydranium/issues"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/eclipse-emfcloud/hydranium.git",
20
+ "directory": "packages/data-server"
21
+ },
22
+ "license": "MIT",
23
+ "author": {
24
+ "name": "Hydranium Team"
25
+ },
26
+ "sideEffects": false,
27
+ "type": "module",
28
+ "exports": {
29
+ ".": {
30
+ "types": "./lib/index.d.ts",
31
+ "default": "./lib/index.js"
32
+ },
33
+ "./node": {
34
+ "types": "./lib/node/index.d.ts",
35
+ "default": "./lib/node/index.js"
36
+ },
37
+ "./lib/node": {
38
+ "types": "./lib/node/index.d.ts",
39
+ "default": "./lib/node/index.js"
40
+ },
41
+ "./testing": {
42
+ "types": "./lib/testing/index.d.ts",
43
+ "default": "./lib/testing/index.js"
44
+ },
45
+ "./lib/testing": {
46
+ "types": "./lib/testing/index.d.ts",
47
+ "default": "./lib/testing/index.js"
48
+ }
49
+ },
50
+ "main": "lib/index.js",
51
+ "browser": {
52
+ "./lib/default-diagnostics.js": "./lib/default-diagnostics.browser.js"
53
+ },
54
+ "types": "lib/index.d.ts",
55
+ "files": [
56
+ "lib",
57
+ "src",
58
+ "!lib/**/*.tsbuildinfo"
59
+ ],
60
+ "scripts": {
61
+ "build": "tsc -b",
62
+ "clean": "rimraf lib tsconfig.tsbuildinfo",
63
+ "lint": "eslint src test --max-warnings 0",
64
+ "prepack": "node -e \"const m=require('./package.json'),fs=require('node:fs');const missing=[m.main,...Object.values(m.bin||{})].filter(entry=>entry&&!fs.existsSync(entry));if(missing.length){console.error('prepack '+m.name+': not built ('+missing.join(', ')+' missing). Run the build before packing: a files entry that matches nothing is skipped silently, so the tarball would ship src only.');process.exit(1);}\"",
65
+ "test": "npm run typecheck:test && vitest run",
66
+ "typecheck:test": "tsc --noEmit -p tsconfig.test.json",
67
+ "watch": "tsc -b -w --preserveWatchOutput"
68
+ },
69
+ "devDependencies": {
70
+ "@hydranium/core": "1.0.0-next.10",
71
+ "@hydranium/langium": "1.0.0-next.10",
72
+ "@hydranium/protocol": "1.0.0-next.10",
73
+ "rimraf": "^5.0.0",
74
+ "typescript": "^5.8.0",
75
+ "vscode-jsonrpc": "9.0.1",
76
+ "vscode-languageserver-textdocument": "^1.0.12"
77
+ },
78
+ "peerDependencies": {
79
+ "@hydranium/core": "1.0.0-next.10",
80
+ "@hydranium/langium": "1.0.0-next.10",
81
+ "@hydranium/protocol": "1.0.0-next.10",
82
+ "vscode-jsonrpc": "^8.0.0 || ^9.0.0",
83
+ "vscode-languageserver-textdocument": "^1.0.12"
84
+ },
85
+ "engines": {
86
+ "node": ">=22.13"
87
+ },
88
+ "publishConfig": {
89
+ "access": "public"
90
+ },
91
+ "//browser": "Selects the diagnostics default per platform, the same mechanism @eclipse-glsp/server uses to swap its node build for its browser one. The Node module imports @hydranium/core/node; a browser bundler resolves the twin instead and therefore never follows that import, which is what keeps this package's `.` entry bundleable. Node ignores this field, so a Node host keeps the real implementation with no configuration. `check:neutral` is the proof it still applies — it bundles `.` for the browser and would fail on node:fs the moment the mapping stops matching.",
92
+ "//prepack": "The publish guard, and it deliberately is NOT a `prepare`: npm runs a workspace `prepare` BEFORE the root `postinstall` that applies patches/vscode-jsonrpc+9.0.1.patch, so building there fails on a cold clone and npm rolls the entire install back. `prepack` runs only when a tarball is made (`npm pack`, `npm publish`) and never on install, so it cannot break the install it has no business touching. It FAILS rather than rebuilds, because the rebuild is exactly the part that ordering defeats. What it defends against: `files` lists `lib`, `lib` is gitignored, and a `files` entry matching nothing is skipped SILENTLY — so `npm publish` from an unbuilt tree emits a tarball of `src` and nothing else, with no error."
93
+ }