@atlaspack/lsp-protocol 2.14.2-unified-f165f7d09.0 → 2.14.3-dev-inline-requires-reuse-bdc9ca9c3.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 +6 -0
- package/lib/types/index.d.ts +27 -0
- package/package.json +8 -6
- package/src/{index.js → index.ts} +0 -1
- package/tsconfig.json +2 -12
- package/lib/index.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaspack/lsp-protocol
|
|
2
2
|
|
|
3
|
+
## 2.14.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#720](https://github.com/atlassian-labs/atlaspack/pull/720) [`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94) Thanks [@alshdavid](https://github.com/alshdavid)! - Migrate to TypeScript
|
|
8
|
+
|
|
3
9
|
## 2.14.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import("vscode-languageserver")} lsp
|
|
3
|
+
*
|
|
4
|
+
* @typedef PublishDiagnostic
|
|
5
|
+
* @prop {import('vscode-languageserver').DocumentUri} uri
|
|
6
|
+
* @prop {Array<import('vscode-languageserver').Diagnostics>} diagnostics
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @type {RequestType<DocumentUri, Array<DocumentUri> | null, void>}
|
|
10
|
+
*/
|
|
11
|
+
export declare const RequestImporters: any;
|
|
12
|
+
/**
|
|
13
|
+
* @type {RequestType<DocumentUri, Array<Diagnostic> | undefined, void>}
|
|
14
|
+
*/
|
|
15
|
+
export declare const RequestDocumentDiagnostics: any;
|
|
16
|
+
/**
|
|
17
|
+
* @type {NotificationType<Array<PublishDiagnostic>>}
|
|
18
|
+
*/
|
|
19
|
+
export declare const NotificationWorkspaceDiagnostics: any;
|
|
20
|
+
/**
|
|
21
|
+
* @type {NotificationType2<'start' | 'progress' | 'end', string | void>}
|
|
22
|
+
*/
|
|
23
|
+
export declare const NotificationBuildStatus: any;
|
|
24
|
+
/**
|
|
25
|
+
* @type {import('vscode-languageserver').NotificationType0}
|
|
26
|
+
*/
|
|
27
|
+
export declare const NotificationBuild: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/lsp-protocol",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.3-dev-inline-requires-reuse-bdc9ca9c3.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/atlassian-labs/atlaspack.git"
|
|
11
11
|
},
|
|
12
|
-
"main": "lib/index.js",
|
|
13
|
-
"source": "src/index.
|
|
14
|
-
"types": "
|
|
12
|
+
"main": "./lib/index.js",
|
|
13
|
+
"source": "./src/index.ts",
|
|
14
|
+
"types": "./lib/types/index.d.ts",
|
|
15
15
|
"scripts": {
|
|
16
|
-
"watch": "tsc -watch -p ./"
|
|
16
|
+
"watch": "tsc -watch -p ./",
|
|
17
|
+
"check-ts": "tsc --emitDeclarationOnly --rootDir src",
|
|
18
|
+
"build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
|
|
17
19
|
},
|
|
18
20
|
"engines": {
|
|
19
21
|
"node": ">= 16.0.0"
|
|
@@ -28,5 +30,5 @@
|
|
|
28
30
|
"types": false
|
|
29
31
|
},
|
|
30
32
|
"type": "commonjs",
|
|
31
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "bdc9ca9c38f45155a6d6f280e343a29e3f030a83"
|
|
32
34
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"target": "es6",
|
|
5
|
-
"outDir": "lib",
|
|
6
|
-
"lib": ["es6"],
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"rootDir": "src",
|
|
9
|
-
"strict": true,
|
|
10
|
-
"allowJs": true
|
|
11
|
-
},
|
|
12
|
-
"include": ["src/*"],
|
|
13
|
-
"exclude": ["node_modules", ".vscode-test"]
|
|
2
|
+
"extends": "../../../tsconfig.json",
|
|
3
|
+
"include": ["src"]
|
|
14
4
|
}
|
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;iDACM;kDAAA;kDAAA;4CAAA;AAkCC,MAAMK,0CAAiB,8DAAA,MAC5B,0CAAgB;AAMX,MAAMC,0CAA2B,6DAAA,MACtC,0CAAgB;AAMX,MAAMC,0CAAiC,+CAAA,MAC5C,+CAAqB;AAMhB,MAAMC,0CAAwB,mEAAA,MACnC,gDAAsB;AAQjB,MAAMC,0CAAkB,UAAA,MAAe,gDAC5C","sources":["packages/utils/atlaspack-lsp-protocol/src/index.js"],"sourcesContent":["// @flow\nconst {\n NotificationType,\n NotificationType0,\n NotificationType2,\n RequestType,\n} = require('vscode-jsonrpc/node');\n\n// -------------------------------- Typescript-specific definitions\n\n/**\n * @typedef {import(\"vscode-languageserver\")} lsp\n *\n * @typedef PublishDiagnostic\n * @prop {import('vscode-languageserver').DocumentUri} uri\n * @prop {Array<import('vscode-languageserver').Diagnostics>} diagnostics\n */\n\n// -------------------------------- Flow-specific defintions\n\n/*::\nexport type PublishDiagnostic = {|\n uri: DocumentUri,\n diagnostics: Array<Diagnostic>,\n|};\n\nimport type {Diagnostic, DocumentUri} from 'vscode-languageserver';\n*/\n\n// --------------------------------\n\n/**\n * @type {RequestType<DocumentUri, Array<DocumentUri> | null, void>}\n */\n// Request: LSP Server -> Reporter\nexport const RequestImporters /*: RequestType<DocumentUri, Array<DocumentUri> | null, void> */ =\n new RequestType('parcel/request-importers');\n\n/**\n * @type {RequestType<DocumentUri, Array<Diagnostic> | undefined, void>}\n */\n// Request: LSP Server -> Reporter\nexport const RequestDocumentDiagnostics /*: RequestType<DocumentUri, Array<Diagnostic> | void, void> */ =\n new RequestType('parcel/request-document-diagnostics');\n\n/**\n * @type {NotificationType<Array<PublishDiagnostic>>}\n */\n// Notification: Reporter -> LSP Server\nexport const NotificationWorkspaceDiagnostics /*: NotificationType<Array<PublishDiagnostic>> */ =\n new NotificationType('parcel/notification-workspace-diagnostics');\n\n/**\n * @type {NotificationType2<'start' | 'progress' | 'end', string | void>}\n */\n// Notification: Reporter -> LSP Server\nexport const NotificationBuildStatus /*: NotificationType2<'start' | 'progress' | 'end', string | void> */ =\n new NotificationType2('parcel/notification-build-status');\n\n// --------------------------------\n\n// Notification: LSP Server -> VSC Extension\n/**\n * @type {import('vscode-languageserver').NotificationType0}\n */\nexport const NotificationBuild /*: mixed */ = new NotificationType0(\n 'parcel/notification-build',\n);\n"],"names":["NotificationType","NotificationType0","NotificationType2","RequestType","require","RequestImporters","RequestDocumentDiagnostics","NotificationWorkspaceDiagnostics","NotificationBuildStatus","NotificationBuild"],"version":3,"file":"index.js.map","sourceRoot":"../../../../"}
|