From 83da3c8314fd108644b4182d4c16d5edf7714f36 Mon Sep 17 00:00:00 2001 From: Dirk Baeumer Date: Mon, 2 Sep 2024 10:08:45 +0200 Subject: [PATCH 1/3] Prepare new release --- wasm-wasi-core/README.md | 2 +- wasm-wasi-core/package-lock.json | 4 ++-- wasm-wasi-core/package.json | 6 +++--- wasm-wasi/README.md | 6 +++++- wasm-wasi/package-lock.json | 4 ++-- wasm-wasi/package.json | 2 +- 6 files changed, 14 insertions(+), 10 deletions(-) diff --git a/wasm-wasi-core/README.md b/wasm-wasi-core/README.md index 0c18142a..f3829f69 100644 --- a/wasm-wasi-core/README.md +++ b/wasm-wasi-core/README.md @@ -2,7 +2,7 @@ [![Build Status](https://dev.azure.com/vscode/vscode-wasm/_apis/build/status/microsoft.vscode-wasm?branchName=main)](https://dev.azure.com/vscode/vscode-wasm/_build/latest?definitionId=47&branchName=main) -This VS Code library extension provides API to run [WASM](https://webassembly.org/) binaries in VS Code's extension host both in the desktop and the Web. The WASM file needs to be created with a [WASI](https://github.com/WebAssembly/WASI) compliant tool chain like the [WASI-SDK](https://github.com/WebAssembly/wasi-sdk) or [Rust](https://www.rust-lang.org/) using the `wasm32-wasi` target. +This VS Code library extension provides API to run [WASM](https://webassembly.org/) binaries in VS Code's extension host both in the desktop and the Web. The WASM file needs to be created with a [WASI Preview 1](https://github.com/WebAssembly/WASI) compliant tool chain like the [WASI-SDK](https://github.com/WebAssembly/wasi-sdk) or [Rust](https://www.rust-lang.org/) using the `wasm32-wasip1` target. The library extension supports the following WASI specifications: diff --git a/wasm-wasi-core/package-lock.json b/wasm-wasi-core/package-lock.json index 88484e7e..59ea5947 100644 --- a/wasm-wasi-core/package-lock.json +++ b/wasm-wasi-core/package-lock.json @@ -1,12 +1,12 @@ { "name": "wasm-wasi-core", - "version": "0.13.3", + "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "wasm-wasi-core", - "version": "0.13.3", + "version": "1.0.0", "license": "MIT", "dependencies": { "uuid": "^9.0.1", diff --git a/wasm-wasi-core/package.json b/wasm-wasi-core/package.json index bafcc688..5ede28f6 100644 --- a/wasm-wasi-core/package.json +++ b/wasm-wasi-core/package.json @@ -2,9 +2,9 @@ "name": "wasm-wasi-core", "private": "true", "publisher": "ms-vscode", - "version": "0.13.3", - "displayName": "Experimental - WebAssembly Execution Engine", - "description": "Experimental support to execute WebAssemblies on top of the VS Code API.", + "version": "1.0.0", + "displayName": "WASI based WebAssembly Execution Engine", + "description": "Executes WebAssemblies compiled to WASI Preview 1 on top of the VS Code API.", "author": "MS", "license": "MIT", "repository": { diff --git a/wasm-wasi/README.md b/wasm-wasi/README.md index 837a8c88..e0ed5fde 100644 --- a/wasm-wasi/README.md +++ b/wasm-wasi/README.md @@ -6,6 +6,10 @@ This npm module implements an API facade for the WASM WASI Core VS Code extensio ## History +### 1.0.0 + +The npm module now provides version specific import routes to support API migration in the future. The standard import `import { Wasm } from '@vscode/wasm-wasi'` still exists but points to deprecated code. Please switch to the new import route `import { Wasm } from '@vscode/wasm-wasi/v1`. + ### 0.11.0 With release version `0.11.0` the implementation details of the WASM support for VS Code has changed. This npm module is now a facade around the `wasm-wasi-core` VS Code extension. @@ -36,7 +40,7 @@ The actual source code to execute a WASM process looks like this ```typescript // Load the WASM API -const wasm: Wasm = await Wasm.api(); +const wasm: Wasm = await Wasm.load(); // Create a pseudoterminal to provide stdio to the WASM process. const pty = wasm.createPseudoterminal(); diff --git a/wasm-wasi/package-lock.json b/wasm-wasi/package-lock.json index d965eb84..1230a3e6 100644 --- a/wasm-wasi/package-lock.json +++ b/wasm-wasi/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vscode/wasm-wasi", - "version": "1.0.0-pre.2", + "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@vscode/wasm-wasi", - "version": "1.0.0-pre.2", + "version": "1.0.0", "license": "MIT", "dependencies": { "semver": "^7.6.2", diff --git a/wasm-wasi/package.json b/wasm-wasi/package.json index 33703450..34075204 100644 --- a/wasm-wasi/package.json +++ b/wasm-wasi/package.json @@ -1,6 +1,6 @@ { "name": "@vscode/wasm-wasi", - "version": "1.0.0-pre.2", + "version": "1.0.0", "description": "An API facade for the WASM WASI CORE VS Code extension", "engines": { "node": ">=20.9.0", From 5b3d0ff8f0ed24b6f842b1cef5f3eb55f61c4c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20B=C3=A4umer?= Date: Mon, 2 Sep 2024 10:58:25 +0200 Subject: [PATCH 2/3] Correct version numbers for release (#192) Update version numbers --- wasm-wasi/README.md | 4 ++++ wasm-wasi/package-lock.json | 4 ++-- wasm-wasi/package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wasm-wasi/README.md b/wasm-wasi/README.md index e0ed5fde..3eb203f4 100644 --- a/wasm-wasi/README.md +++ b/wasm-wasi/README.md @@ -6,6 +6,10 @@ This npm module implements an API facade for the WASM WASI Core VS Code extensio ## History +### 1.0.1 + +- Readme updates. + ### 1.0.0 The npm module now provides version specific import routes to support API migration in the future. The standard import `import { Wasm } from '@vscode/wasm-wasi'` still exists but points to deprecated code. Please switch to the new import route `import { Wasm } from '@vscode/wasm-wasi/v1`. diff --git a/wasm-wasi/package-lock.json b/wasm-wasi/package-lock.json index 1230a3e6..b8325696 100644 --- a/wasm-wasi/package-lock.json +++ b/wasm-wasi/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vscode/wasm-wasi", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@vscode/wasm-wasi", - "version": "1.0.0", + "version": "1.0.1", "license": "MIT", "dependencies": { "semver": "^7.6.2", diff --git a/wasm-wasi/package.json b/wasm-wasi/package.json index 34075204..de501d71 100644 --- a/wasm-wasi/package.json +++ b/wasm-wasi/package.json @@ -1,6 +1,6 @@ { "name": "@vscode/wasm-wasi", - "version": "1.0.0", + "version": "1.0.1", "description": "An API facade for the WASM WASI CORE VS Code extension", "engines": { "node": ">=20.9.0", From 1d95d341511b9e7d2d53f075564affd0872cb110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20B=C3=A4umer?= Date: Mon, 2 Sep 2024 12:40:41 +0200 Subject: [PATCH 3/3] Update node version (#193) --- build/azure-pipelines/darwin/build.yml | 2 +- build/azure-pipelines/linux/build.yml | 2 +- build/azure-pipelines/pipeline.yml | 36 +++++++++++++------------- build/azure-pipelines/win32/build.yml | 2 +- wasm-wasi-core/build/pre-release.yml | 2 +- wasm-wasi-core/build/release.yml | 2 +- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/build/azure-pipelines/darwin/build.yml b/build/azure-pipelines/darwin/build.yml index 8b56f6d0..ff6c12aa 100644 --- a/build/azure-pipelines/darwin/build.yml +++ b/build/azure-pipelines/darwin/build.yml @@ -1,7 +1,7 @@ steps: - task: NodeTool@0 inputs: - versionSpec: '18.17.1' + versionSpec: '20.15.1' displayName: 'Install Node.js' - script: | diff --git a/build/azure-pipelines/linux/build.yml b/build/azure-pipelines/linux/build.yml index 9adf5ce1..4c164e74 100644 --- a/build/azure-pipelines/linux/build.yml +++ b/build/azure-pipelines/linux/build.yml @@ -10,7 +10,7 @@ steps: - task: NodeTool@0 inputs: - versionSpec: '18.17.1' + versionSpec: '20.15.1' displayName: 'Install Node.js' - script: | diff --git a/build/azure-pipelines/pipeline.yml b/build/azure-pipelines/pipeline.yml index 9c67ee1c..7dcc13f7 100644 --- a/build/azure-pipelines/pipeline.yml +++ b/build/azure-pipelines/pipeline.yml @@ -55,13 +55,13 @@ extends: testPlatforms: - name: Linux nodeVersions: - - 18.18.2 + - 20.15.1 - name: MacOS nodeVersions: - - 18.18.2 + - 20.15.1 - name: Windows nodeVersions: - - 18.18.2 + - 20.15.1 testSteps: - template: /build/azure-pipelines/templates/test-steps.yml@self parameters: @@ -81,13 +81,13 @@ extends: testPlatforms: - name: Linux nodeVersions: - - 18.18.2 + - 20.15.1 - name: MacOS nodeVersions: - - 18.18.2 + - 20.15.1 - name: Windows nodeVersions: - - 18.18.2 + - 20.15.1 testSteps: - template: /build/azure-pipelines/templates/test-steps.yml@self parameters: @@ -107,13 +107,13 @@ extends: testPlatforms: - name: Linux nodeVersions: - - 18.18.2 + - 20.15.1 - name: MacOS nodeVersions: - - 18.18.2 + - 20.15.1 - name: Windows nodeVersions: - - 18.18.2 + - 20.15.1 testSteps: - template: /build/azure-pipelines/templates/test-steps.yml@self parameters: @@ -133,13 +133,13 @@ extends: testPlatforms: - name: Linux nodeVersions: - - 18.18.2 + - 20.15.1 - name: MacOS nodeVersions: - - 18.18.2 + - 20.15.1 - name: Windows nodeVersions: - - 18.18.2 + - 20.15.1 testSteps: - template: /build/azure-pipelines/templates/test-steps.yml@self parameters: @@ -159,13 +159,13 @@ extends: testPlatforms: - name: Linux nodeVersions: - - 18.18.2 + - 20.15.1 - name: MacOS nodeVersions: - - 18.18.2 + - 20.15.1 - name: Windows nodeVersions: - - 18.18.2 + - 20.15.1 testSteps: - template: /build/azure-pipelines/templates/test-steps.yml@self parameters: @@ -185,13 +185,13 @@ extends: testPlatforms: - name: Linux nodeVersions: - - 18.18.2 + - 20.15.1 - name: MacOS nodeVersions: - - 18.18.2 + - 20.15.1 - name: Windows nodeVersions: - - 18.18.2 + - 20.15.1 testSteps: - template: /build/azure-pipelines/templates/test-steps.yml@self parameters: diff --git a/build/azure-pipelines/win32/build.yml b/build/azure-pipelines/win32/build.yml index 6771c880..74d7b843 100644 --- a/build/azure-pipelines/win32/build.yml +++ b/build/azure-pipelines/win32/build.yml @@ -1,7 +1,7 @@ steps: - task: NodeTool@0 inputs: - versionSpec: '18.17.1' + versionSpec: '20.15.1' displayName: 'Install Node.js' - script: | diff --git a/wasm-wasi-core/build/pre-release.yml b/wasm-wasi-core/build/pre-release.yml index 2935fac3..c60f5d05 100644 --- a/wasm-wasi-core/build/pre-release.yml +++ b/wasm-wasi-core/build/pre-release.yml @@ -20,7 +20,7 @@ parameters: extends: template: azure-pipelines/extension/pre-release.yml@templates parameters: - nodeVersion: 16.17.1 + nodeVersion: 20.15.1 buildSteps: - script: | npm ci diff --git a/wasm-wasi-core/build/release.yml b/wasm-wasi-core/build/release.yml index aa7a570a..70d27c3f 100644 --- a/wasm-wasi-core/build/release.yml +++ b/wasm-wasi-core/build/release.yml @@ -23,7 +23,7 @@ parameters: extends: template: azure-pipelines/extension/stable.yml@templates parameters: - nodeVersion: 16.17.1 + nodeVersion: 20.15.1 buildSteps: - script: | npm ci