From 6646fedc4d060a9352ccd55df2b794da91f7814d Mon Sep 17 00:00:00 2001 From: Garry Trinder Date: Fri, 14 Feb 2025 14:19:50 +0000 Subject: [PATCH 1/2] Update snippets to reference v0.25.0 schema URLs --- CHANGELOG.md | 1 + src/snippets.json | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48ed6ac..8ac2655 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed: - Snippets: Updated schema urls to reflect the move to dotnet organisation in Github +- Snippets: All snippets that reference schemas updated to use `v0.25.0` schema - Code action: Updated update schema code action to reflect the move to dotnet organisation in Github ### Fixed: diff --git a/src/snippets.json b/src/snippets.json index 91944a8..c19274a 100644 --- a/src/snippets.json +++ b/src/snippets.json @@ -3,7 +3,7 @@ "prefix": "devproxy-config-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.24.0/rc.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/rc.schema.json\",", "\t\"plugins\": [", "\t\t$1", "\t],", @@ -20,7 +20,7 @@ "ConfigFileSchema": { "prefix": "devproxy-config-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.24.0/rc.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/rc.schema.json\"," ], "description": "Dev Proxy config file schema" }, @@ -42,7 +42,7 @@ "prefix": "devproxy-mocks-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.24.0/mockresponseplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/mockresponseplugin.schema.json\",", "\t\"mocks\": [", "\t\t$1", "\t]", @@ -53,7 +53,7 @@ "MocksFileSchema": { "prefix": "devproxy-mocks-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.24.0/mockresponseplugin.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/mockresponseplugin.schema.json\"," ], "description": "Dev Proxy mocks file schema" }, @@ -294,7 +294,7 @@ "prefix": "devproxy-plugin-crud-api-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.24.0/crudapiplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/crudapiplugin.schema.json\",", "\t\"actions\": [", "\t\t$1", "\t],", @@ -307,7 +307,7 @@ "CrudApiPluginFileSchema": { "prefix": "devproxy-plugin-crud-api-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.24.0/crudapiplugin.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/crudapiplugin.schema.json\"," ], "description": "CrudApiPlugin API file schema" }, @@ -409,7 +409,7 @@ "prefix": "devproxy-plugin-generic-random-error-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.24.0/genericrandomerrorplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/genericrandomerrorplugin.schema.json\",", "\t\"errors\": [", "\t\t$1", "\t]", @@ -420,7 +420,7 @@ "GenericRandomErrorPluginFileSchema": { "prefix": "devproxy-plugin-generic-random-error-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.24.0/genericrandomerrorplugin.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/genericrandomerrorplugin.schema.json\"," ], "description": "GenericRandomErrorPlugin errors file schema" }, @@ -728,7 +728,7 @@ "MockResponsePluginFileSchema": { "prefix": "devproxy-plugin-mock-response-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.24.0/mockresponseplugin.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/mockresponseplugin.schema.json\"," ], "description": "MockResponsePlugin schema" }, @@ -823,7 +823,7 @@ "prefix": "devproxy-plugin-rate-limiting-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.24.0/ratelimitingplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/ratelimitingplugin.schema.json\",", "\t\"body\": {", "\t\t$1", "\t},", @@ -838,7 +838,7 @@ "RateLimitingFileSchema": { "prefix": "devproxy-plugin-rate-limiting-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.24.0/ratelimitingplugin.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.25.0/ratelimitingplugin.schema.json\"," ], "description": "Dev Proxy rate limiting file schema" }, From e6470483c78e77097ff742c0d1317ce849ce484f Mon Sep 17 00:00:00 2001 From: Garry Trinder Date: Fri, 14 Feb 2025 14:21:06 +0000 Subject: [PATCH 2/2] Bump version to 0.17.1 in package.json and package-lock.json --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 02ce2e5..93a496b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dev-proxy-toolkit", - "version": "0.17.0", + "version": "0.17.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dev-proxy-toolkit", - "version": "0.17.0", + "version": "0.17.1", "dependencies": { "json-to-ast": "^2.1.0" }, diff --git a/package.json b/package.json index a53fffd..9a1a9bf 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": "0.17.0", + "version": "0.17.1", "publisher": "garrytrinder", "engines": { "vscode": "^1.89.0"