@vscode/vscode-settings-history 0.0.2-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/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@vscode/vscode-settings-history",
3
+ "version": "0.0.2-0",
4
+ "type": "module",
5
+ "description": "Tracks VS Code settings schema changes across versions",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/microsoft/vscode-packages.git",
10
+ "directory": "vscode-settings-history"
11
+ },
12
+ "homepage": "https://github.com/microsoft/vscode-packages/tree/main/vscode-settings-history",
13
+ "bugs": {
14
+ "url": "https://github.com/microsoft/vscode-packages/issues"
15
+ },
16
+ "types": "types.d.ts",
17
+ "exports": {
18
+ "./history.json": "./dist/history.json",
19
+ "./settings": {
20
+ "types": "./dist/vscode-settings.d.ts"
21
+ },
22
+ ".": {
23
+ "types": "./types.d.ts"
24
+ }
25
+ },
26
+ "files": [
27
+ "types.d.ts",
28
+ "dist/history.json",
29
+ "dist/vscode-settings.d.ts"
30
+ ],
31
+ "scripts": {
32
+ "test": "vitest --run"
33
+ },
34
+ "devDependencies": {
35
+ "@types/node": "^25.6.0",
36
+ "tsx": "^4.21.0",
37
+ "vitest": "^4.1.4",
38
+ "fast-json-patch": "^3.1.1"
39
+ },
40
+ "dependencies": {}
41
+ }
package/types.d.ts ADDED
@@ -0,0 +1,38 @@
1
+ /** JSON schema fragment for a single VS Code setting. */
2
+ export interface SettingSchema {
3
+ type?: string | string[];
4
+ enum?: unknown[];
5
+ description?: string;
6
+ markdownDescription?: string;
7
+ default?: unknown;
8
+ items?: SettingSchema;
9
+ deprecationMessage?: string;
10
+ markdownDeprecationMessage?: string;
11
+ }
12
+
13
+ /** RFC 6902 JSON Patch operation. */
14
+ export interface PatchOperation {
15
+ op: 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test';
16
+ path: string;
17
+ value?: unknown;
18
+ from?: string;
19
+ }
20
+
21
+ /** A single changelog entry: what changed in this version relative to its base. */
22
+ export interface VersionedEdit {
23
+ version: string;
24
+ /**
25
+ * What this edit diffs from.
26
+ * - `"initial"`: diffs from `{}` (only the first entry for a lineage)
27
+ * - `{ version: string }`: diffs from a specific previous version
28
+ */
29
+ base: 'initial' | { version: string };
30
+ /** RFC 6902 JSON Patch operations. */
31
+ patch: PatchOperation[];
32
+ }
33
+
34
+ /**
35
+ * Persisted history: a set of versioned edits.
36
+ * Replay by following `base` pointers from any version back to `"initial"`.
37
+ */
38
+ export type SettingsHistory = VersionedEdit[];