From 30471ce2b2d030d7faf8eacca6e73bee56857d63 Mon Sep 17 00:00:00 2001 From: Dennis Huebner Date: Fri, 17 Mar 2023 12:52:51 +0100 Subject: [PATCH] Prepare 0.4.5 release --- README.md | 2 +- package-lock.json | 14 +++++++------- packages/vscode-messenger-common/package.json | 2 +- packages/vscode-messenger-common/src/messages.ts | 4 ++-- packages/vscode-messenger-webview/package.json | 4 ++-- packages/vscode-messenger/package.json | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 22d55bd..486bc15 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # VS Code Messenger -RPC messaging library for the VS Code extension platform +RPC messaging library for the VS Code extension platform. Makes the communication between your [VS Code extension](https://code.visualstudio.com/) and its [webviews](https://code.visualstudio.com/api/extension-guides/webview) much simpler. [![npm](https://img.shields.io/npm/v/vscode-messenger)](https://www.npmjs.com/package/vscode-messenger) [![CI](https://github.com/TypeFox/vscode-messenger/actions/workflows/main.yml/badge.svg)](https://github.com/TypeFox/vscode-messenger/actions/workflows/main.yml) [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/typefox/vscode-messenger) diff --git a/package-lock.json b/package-lock.json index 283fdfb..1bf4364 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7270,10 +7270,10 @@ } }, "packages/vscode-messenger": { - "version": "0.4.4", + "version": "0.4.5", "license": "MIT", "dependencies": { - "vscode-messenger-common": "^0.4.3" + "vscode-messenger-common": "^0.4.5" }, "devDependencies": { "@types/jest": "^27.4.1", @@ -7287,7 +7287,7 @@ } }, "packages/vscode-messenger-common": { - "version": "0.4.3", + "version": "0.4.5", "license": "MIT", "devDependencies": { "@typescript-eslint/eslint-plugin": "^5.15.0", @@ -7298,10 +7298,10 @@ } }, "packages/vscode-messenger-webview": { - "version": "0.4.3", + "version": "0.4.5", "license": "MIT", "dependencies": { - "vscode-messenger-common": "^0.4.3" + "vscode-messenger-common": "^0.4.5" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^5.15.0", @@ -12685,7 +12685,7 @@ "rimraf": "^3.0.2", "ts-jest": "^27.1.4", "typescript": "^4.6.2", - "vscode-messenger-common": "^0.4.3" + "vscode-messenger-common": "^0.4.5" } }, "vscode-messenger-common": { @@ -12706,7 +12706,7 @@ "eslint": "^8.11.0", "rimraf": "^3.0.2", "typescript": "^4.6.2", - "vscode-messenger-common": "^0.4.3" + "vscode-messenger-common": "^0.4.5" } }, "w3c-hr-time": { diff --git a/packages/vscode-messenger-common/package.json b/packages/vscode-messenger-common/package.json index 722a7be..5acd266 100644 --- a/packages/vscode-messenger-common/package.json +++ b/packages/vscode-messenger-common/package.json @@ -1,6 +1,6 @@ { "name": "vscode-messenger-common", - "version": "0.4.3", + "version": "0.4.5", "description": "VS Code Messenger: common code shared by extension and webviews", "keywords": [ "vscode", diff --git a/packages/vscode-messenger-common/src/messages.ts b/packages/vscode-messenger-common/src/messages.ts index 3f48eaa..8469154 100644 --- a/packages/vscode-messenger-common/src/messages.ts +++ b/packages/vscode-messenger-common/src/messages.ts @@ -165,8 +165,8 @@ export type NotificationHandler

= (params: P, sender: MessageParticipant) => * Base API for Messenger implementations. */ export interface MessengerAPI { - sendRequest(type: RequestType, receiver: MessageParticipant, params: P): Promise + sendRequest(type: RequestType, receiver: MessageParticipant, params?: P): Promise onRequest(type: RequestType, handler: RequestHandler): void - sendNotification

(type: NotificationType

, receiver: MessageParticipant, params: P): void + sendNotification

(type: NotificationType

, receiver: MessageParticipant, params?: P): void onNotification

(type: NotificationType

, handler: NotificationHandler

): void } diff --git a/packages/vscode-messenger-webview/package.json b/packages/vscode-messenger-webview/package.json index 12bd6f9..a752c58 100644 --- a/packages/vscode-messenger-webview/package.json +++ b/packages/vscode-messenger-webview/package.json @@ -1,6 +1,6 @@ { "name": "vscode-messenger-webview", - "version": "0.4.3", + "version": "0.4.5", "description": "VS Code Messenger: webview integration", "keywords": [ "vscode", @@ -26,7 +26,7 @@ "publish:latest": "npm publish --tag latest" }, "dependencies": { - "vscode-messenger-common": "^0.4.3" + "vscode-messenger-common": "^0.4.5" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^5.15.0", diff --git a/packages/vscode-messenger/package.json b/packages/vscode-messenger/package.json index 017a328..13c3ac2 100644 --- a/packages/vscode-messenger/package.json +++ b/packages/vscode-messenger/package.json @@ -1,6 +1,6 @@ { "name": "vscode-messenger", - "version": "0.4.4", + "version": "0.4.5", "description": "VS Code Messenger: extension integration", "keywords": [ "vscode", @@ -26,7 +26,7 @@ "publish:latest": "npm publish --tag latest" }, "dependencies": { - "vscode-messenger-common": "^0.4.3" + "vscode-messenger-common": "^0.4.5" }, "devDependencies": { "@types/jest": "^27.4.1",