From 0bd4032fb5a0a154c9241b7f757c70e8738b5fdb Mon Sep 17 00:00:00 2001 From: Mark Sujew Date: Wed, 28 Aug 2024 13:47:38 +0200 Subject: [PATCH] Publish v0.2 Release (#55) --- package-lock.json | 16 ++++++++-------- .../open-collaboration-protocol/package.json | 2 +- packages/open-collaboration-server/package.json | 4 ++-- packages/open-collaboration-vscode/CHANGELOG.md | 11 ++++++++++- packages/open-collaboration-vscode/package.json | 12 ++++++------ .../{esbuild.js => scripts/esbuild.ts} | 13 +++++-------- packages/open-collaboration-yjs/package.json | 4 ++-- 7 files changed, 34 insertions(+), 28 deletions(-) rename packages/open-collaboration-vscode/{esbuild.js => scripts/esbuild.ts} (85%) diff --git a/package-lock.json b/package-lock.json index d100614..c14363c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7400,7 +7400,7 @@ } }, "packages/open-collaboration-protocol": { - "version": "0.1.0", + "version": "0.2.0", "license": "MIT", "dependencies": { "base64-js": "^1.5.1", @@ -7425,14 +7425,14 @@ } }, "packages/open-collaboration-server": { - "version": "0.1.0", + "version": "0.2.0", "license": "MIT", "dependencies": { "express": "^4.19.2", "inversify": "^6.0.2", "jose": "^4.15.5", "nanoid": "^3.0.0", - "open-collaboration-protocol": "0.1.0", + "open-collaboration-protocol": "0.2.0", "passport": "~0.7.0", "passport-github": "~1.1.0", "passport-google-oauth20": "^2.0.0", @@ -7508,15 +7508,15 @@ }, "packages/open-collaboration-vscode": { "name": "open-collaboration-tools", - "version": "0.1.1", + "version": "0.2.0", "license": "MIT", "dependencies": { "async-mutex": "^0.5.0", "inversify": "^6.0.2", "lodash": "^4.17.21", "node-fetch": "^2.0.0", - "open-collaboration-protocol": "0.1.0", - "open-collaboration-yjs": "0.1.0", + "open-collaboration-protocol": "0.2.0", + "open-collaboration-yjs": "0.2.0", "reflect-metadata": "^0.2.2" }, "devDependencies": { @@ -7971,11 +7971,11 @@ "license": "Apache-2.0" }, "packages/open-collaboration-yjs": { - "version": "0.1.0", + "version": "0.2.0", "license": "MIT", "dependencies": { "lib0": "^0.2.94", - "open-collaboration-protocol": "^0.1.0", + "open-collaboration-protocol": "^0.2.0", "y-protocols": "^1.0.6" }, "peerDependencies": { diff --git a/packages/open-collaboration-protocol/package.json b/packages/open-collaboration-protocol/package.json index 60d2915..2e7244c 100644 --- a/packages/open-collaboration-protocol/package.json +++ b/packages/open-collaboration-protocol/package.json @@ -1,6 +1,6 @@ { "name": "open-collaboration-protocol", - "version": "0.1.0", + "version": "0.2.0", "description": "Open Collaboration Protocol implementation, part of the Open Collaboration Tools project", "files": [ "lib", diff --git a/packages/open-collaboration-server/package.json b/packages/open-collaboration-server/package.json index cee9470..2b2e435 100644 --- a/packages/open-collaboration-server/package.json +++ b/packages/open-collaboration-server/package.json @@ -1,6 +1,6 @@ { "name": "open-collaboration-server", - "version": "0.1.0", + "version": "0.2.0", "description": "Open Collaboration Server implementation, part of the Open Collaboration Tools project", "files": [ "bin", @@ -18,7 +18,7 @@ "inversify": "^6.0.2", "jose": "^4.15.5", "nanoid": "^3.0.0", - "open-collaboration-protocol": "0.1.0", + "open-collaboration-protocol": "0.2.0", "passport": "~0.7.0", "passport-github": "~1.1.0", "passport-google-oauth20": "^2.0.0", diff --git a/packages/open-collaboration-vscode/CHANGELOG.md b/packages/open-collaboration-vscode/CHANGELOG.md index e74277c..9d7beb6 100644 --- a/packages/open-collaboration-vscode/CHANGELOG.md +++ b/packages/open-collaboration-vscode/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log of `open-collaboration-tools` -## v0.1.0 (Jun. 2024) +## v0.2.0 (Aug. 2024) + +- Added support for VSCode Web +- Redesigned the login and session join mechanism +- Improved workspace file handling +- Added localizations for all commonly used VS Code languages +- Enabled sharing binary files +- Fixed a few edge cases regarding editor desync + +## v0.1.0 (Jul. 2024) - Initial preview release diff --git a/packages/open-collaboration-vscode/package.json b/packages/open-collaboration-vscode/package.json index a961b4a..2566d20 100644 --- a/packages/open-collaboration-vscode/package.json +++ b/packages/open-collaboration-vscode/package.json @@ -2,7 +2,7 @@ "name": "open-collaboration-tools", "displayName": "Open Collaboration Tools", "description": "Connect with others and live-share your code in real-time collaboration sessions", - "version": "0.1.1", + "version": "0.2.0", "publisher": "typefox", "categories": [ "Other" @@ -195,9 +195,9 @@ ] }, "scripts": { - "vscode:prepublish": "npm run check-types && node esbuild.js --production", - "build": "npm run check-types && node esbuild.js", - "watch": "node esbuild.js --watch", + "vscode:prepublish": "npm run check-types && tsx ./scripts/esbuild.js --production", + "build": "npm run check-types && tsx ./scripts/esbuild.js", + "watch": "tsx ./scripts/esbuild.js --watch", "check-types": "tsc --noEmit", "l10n-export": "vscode-l10n-dev export --outDir ./l10n ./src", "l10n-pseudo": "vscode-l10n-dev generate-pseudo -o ./l10n/ ./l10n/bundle.l10n.json ./package.nls.json", @@ -207,8 +207,8 @@ "async-mutex": "^0.5.0", "inversify": "^6.0.2", "reflect-metadata": "^0.2.2", - "open-collaboration-yjs": "0.1.0", - "open-collaboration-protocol": "0.1.0", + "open-collaboration-yjs": "0.2.0", + "open-collaboration-protocol": "0.2.0", "lodash": "^4.17.21", "node-fetch": "^2.0.0" }, diff --git a/packages/open-collaboration-vscode/esbuild.js b/packages/open-collaboration-vscode/scripts/esbuild.ts similarity index 85% rename from packages/open-collaboration-vscode/esbuild.js rename to packages/open-collaboration-vscode/scripts/esbuild.ts index 62e7e4b..9fc3a55 100644 --- a/packages/open-collaboration-vscode/esbuild.js +++ b/packages/open-collaboration-vscode/scripts/esbuild.ts @@ -1,13 +1,10 @@ -const esbuild = require("esbuild"); +import esbuild from "esbuild"; const production = process.argv.includes('--production'); const watch = process.argv.includes('--watch'); const buildType = watch ? 'watch' : 'build'; -/** - * @type {import('esbuild').Plugin} - */ -function esbuildProblemMatcherPlugin(type) { +function esbuildProblemMatcherPlugin(type: 'web' | 'node'): esbuild.Plugin { const prefix = `[${buildType}/${type}]` return { name: 'esbuild-problem-matcher', @@ -18,7 +15,9 @@ function esbuildProblemMatcherPlugin(type) { build.onEnd((result) => { result.errors.forEach(({ text, location }) => { console.error(`✘ [ERROR] ${text}`); - console.error(` ${location.file}:${location.line}:${location.column}:`); + if (location) { + console.error(` ${location.file}:${location.line}:${location.column}:`); + } }); console.log(prefix + ' finished'); }); @@ -40,7 +39,6 @@ const main = async () => { external: ['vscode'], logLevel: 'silent', plugins: [ - /* add to the end of plugins array */ esbuildProblemMatcherPlugin('node') ] }); @@ -58,7 +56,6 @@ const main = async () => { external: ['vscode'], logLevel: 'silent', plugins: [ - /* add to the end of plugins array */ esbuildProblemMatcherPlugin('web') ], // Node.js global to browser globalThis diff --git a/packages/open-collaboration-yjs/package.json b/packages/open-collaboration-yjs/package.json index d2e0b59..d49315c 100644 --- a/packages/open-collaboration-yjs/package.json +++ b/packages/open-collaboration-yjs/package.json @@ -1,6 +1,6 @@ { "name": "open-collaboration-yjs", - "version": "0.1.0", + "version": "0.2.0", "description": "Open Collaboration Yjs integration, part of the Open Collaboration Tools project", "files": [ "lib", @@ -10,7 +10,7 @@ "types": "./lib/index.d.ts", "dependencies": { "lib0": "^0.2.94", - "open-collaboration-protocol": "^0.1.0", + "open-collaboration-protocol": "^0.2.0", "y-protocols": "^1.0.6" }, "peerDependencies": {