@checkstack/common 0.6.1 → 0.6.2
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 +27 -0
- package/package.json +3 -3
- package/src/types.ts +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @checkstack/common
|
|
2
2
|
|
|
3
|
+
## 0.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f676e11: Add script execution support and migrate CodeEditor to Monaco
|
|
8
|
+
|
|
9
|
+
**Integration providers** (`@checkstack/integration-script-backend`):
|
|
10
|
+
|
|
11
|
+
- **Script** - Execute TypeScript/JavaScript with context object
|
|
12
|
+
- **Bash** - Execute shell scripts with environment variables ($EVENT*ID, $PAYLOAD*\*)
|
|
13
|
+
|
|
14
|
+
**Health check collectors** (`@checkstack/healthcheck-script-backend`):
|
|
15
|
+
|
|
16
|
+
- **InlineScriptCollector** - Run TypeScript directly for health checks
|
|
17
|
+
- **ExecuteCollector** - Bash syntax highlighting for command field
|
|
18
|
+
|
|
19
|
+
**CodeEditor migration to Monaco** (`@checkstack/ui`):
|
|
20
|
+
|
|
21
|
+
- Replaced CodeMirror with Monaco Editor (VS Code's editor)
|
|
22
|
+
- Full TypeScript/JavaScript IntelliSense with custom type definitions
|
|
23
|
+
- Added `generateTypeDefinitions()` for JSON Schema → TypeScript conversion
|
|
24
|
+
- Removed all CodeMirror dependencies
|
|
25
|
+
|
|
26
|
+
**Type updates** (`@checkstack/common`):
|
|
27
|
+
|
|
28
|
+
- Added `javascript`, `typescript`, and `bash` to `EditorType` union
|
|
29
|
+
|
|
3
30
|
## 0.6.1
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/common",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"typescript": "^5.7.2",
|
|
21
|
-
"@checkstack/tsconfig": "0.0.
|
|
22
|
-
"@checkstack/scripts": "0.1.
|
|
21
|
+
"@checkstack/tsconfig": "0.0.3",
|
|
22
|
+
"@checkstack/scripts": "0.1.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"typecheck": "tsc --noEmit",
|
package/src/types.ts
CHANGED
|
@@ -19,6 +19,9 @@ import type { AccessRule, InstanceAccessConfig } from "./access-utils";
|
|
|
19
19
|
* - "xml": CodeEditor with XML syntax highlighting
|
|
20
20
|
* - "markdown": CodeEditor with Markdown syntax highlighting
|
|
21
21
|
* - "formdata": Key/value pair editor (URL-encoded)
|
|
22
|
+
* - "javascript": CodeEditor with JavaScript syntax highlighting and autocomplete
|
|
23
|
+
* - "typescript": CodeEditor with TypeScript syntax highlighting and autocomplete
|
|
24
|
+
* - "shell": CodeEditor with Shell syntax highlighting
|
|
22
25
|
*/
|
|
23
26
|
export type EditorType =
|
|
24
27
|
| "none"
|
|
@@ -27,7 +30,10 @@ export type EditorType =
|
|
|
27
30
|
| "yaml"
|
|
28
31
|
| "xml"
|
|
29
32
|
| "markdown"
|
|
30
|
-
| "formdata"
|
|
33
|
+
| "formdata"
|
|
34
|
+
| "javascript"
|
|
35
|
+
| "typescript"
|
|
36
|
+
| "shell";
|
|
31
37
|
|
|
32
38
|
/**
|
|
33
39
|
* Qualifies a resource type with the plugin namespace.
|