diff --git a/CHANGELOG.md b/CHANGELOG.md index bf4875c..3c4da3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 > **Note**: odd version numbers, for example, `0.13.0`, are not included in this changelog. They are used to test the new features and fixes before the final release. -## [1.7.0] - Unreleased +## [1.7.1] - Unreleased ### Changed: - Snippets: All snippets that reference schemas updated to use `v1.3.0` schema +- Snippets: Added `devproxy-plugin-har-generator` - HarGeneratorPlugin instance +- Snippets: Added `devproxy-plugin-har-generator-config` - HarGeneratorPlugin config section ## [1.6.0] - 2025-10-13 diff --git a/README.md b/README.md index a376a7b..2c1983e 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,8 @@ See [Dev Proxy MCP Server](https://github.com/dev-proxy-tools/mcp) for more info | `devproxy-plugin-graph-random-error-config` | GraphRandomErrorPlugin config section | | `devproxy-plugin-graph-sdk-guidance` | GraphSdkGuidancePlugin instance | | `devproxy-plugin-graph-select-guidance` | GraphSdkGuidancePlugin instance | +| `devproxy-plugin-har-generator` | HarGeneratorPlugin instance | +| `devproxy-plugin-har-generator-config` | HarGeneratorPlugin config section | | `devproxy-plugin-http-file-generator` | HttpFileGeneratorPlugin instance | | `devproxy-plugin-http-file-generator-config` | HttpFileGeneratorPlugin config section | | `devproxy-plugin-latency` | LatencyPlugin instance | diff --git a/package-lock.json b/package-lock.json index 3978b57..4e8f657 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dev-proxy-toolkit", - "version": "1.7.0", + "version": "1.7.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dev-proxy-toolkit", - "version": "1.7.0", + "version": "1.7.1", "dependencies": { "json-to-ast": "2.1.0", "semver": "7.7.2" diff --git a/package.json b/package.json index 38ed461..b88a00c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "dev-proxy-toolkit", "displayName": "Dev Proxy Toolkit", "description": "Makes it easy to create and update Dev Proxy configuration files.", - "version": "1.7.0", + "version": "1.7.1", "publisher": "garrytrinder", "engines": { "vscode": "^1.101.0" diff --git a/src/constants.ts b/src/constants.ts index eb024a7..9b3335c 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -104,6 +104,13 @@ export const pluginSnippets: PluginSnippets = { GraphSelectGuidancePlugin: { instance: 'devproxy-plugin-graph-select-guidance', }, + HarGeneratorPlugin: { + instance: 'devproxy-plugin-har-generator', + config: { + name: 'devproxy-plugin-har-generator-config', + required: false, + } + }, HttpFileGeneratorPlugin: { instance: 'devproxy-plugin-http-file-generator', config: { @@ -302,6 +309,10 @@ export const pluginDocs: PluginDocs = { name: 'Graph Select Guidance Plugin', url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/graphselectguidanceplugin', }, + HarGeneratorPlugin: { + name: 'HAR Generator Plugin', + url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/hargeneratorplugin', + }, HttpFileGeneratorPlugin: { name: 'HTTP File Generator Plugin', url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/httpfilegeneratorplugin', diff --git a/src/snippets/json-snippets.json b/src/snippets/json-snippets.json index a551f58..c986677 100644 --- a/src/snippets/json-snippets.json +++ b/src/snippets/json-snippets.json @@ -663,6 +663,29 @@ ], "description": "GraphSdkGuidancePlugin instance" }, + "HarGeneratorPlugin": { + "prefix": "devproxy-plugin-har-generator", + "body": [ + "{", + "\t\"name\": \"HarGeneratorPlugin\",", + "\t\"enabled\": true,", + "\t\"pluginPath\": \"~appFolder/plugins/DevProxy.Plugins.dll\",", + "\t\"configSection\": \"harGeneratorPlugin\"", + "}" + ], + "description": "HarGeneratorPlugin instance" + }, + "HarGeneratorPluginConfig": { + "prefix": "devproxy-plugin-har-generator-config", + "body": [ + "\"harGeneratorPlugin\": {", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.3.0/hargeneratorplugin.schema.json\",", + "\t\"includeSensitiveInformation\": false,", + "\t\"includeResponse\": true", + "}" + ], + "description": "HarGeneratorPlugin config section" + }, "HttpFileGeneratorPlugin": { "prefix": "devproxy-plugin-http-file-generator", "body": [