From 2797ef8a7d26e31334055dc2524d1fb4a7a8587d Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 31 Mar 2021 13:13:20 -0400 Subject: [PATCH] release v4.2.0 Signed-off-by: Sebastian Malton --- package.json | 2 +- src/main/app-updater.ts | 8 ++++++-- .../components/layout/main-layout-header.tsx | 2 +- static/RELEASE_NOTES.md | 15 ++++++++++----- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index b6b1fd1ea5..955f2ebeb3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "kontena-lens", "productName": "Lens", "description": "Lens - The Kubernetes IDE", - "version": "4.2.0-rc.3", + "version": "4.2.0", "main": "static/build/main.js", "copyright": "© 2021, Mirantis, Inc.", "license": "MIT", diff --git a/src/main/app-updater.ts b/src/main/app-updater.ts index 8f31df8b57..63b1dc920b 100644 --- a/src/main/app-updater.ts +++ b/src/main/app-updater.ts @@ -12,8 +12,12 @@ function handleAutoUpdateBackChannel(event: Electron.IpcMainEvent, ...[arg]: Upd if (arg.doUpdate) { if (arg.now) { logger.info(`${AutoUpdateLogPrefix}: User chose to update now`); - autoUpdater.quitAndInstall(true, true); - app.exit(); // this is needed for the installer not to fail on windows. + + autoUpdater.on("update-downloaded", () => { + autoUpdater.quitAndInstall(true, true); + app.exit(); // this is needed for the installer not to fail on windows. + }); + autoUpdater.downloadUpdate().catch(error => logger.error(`${AutoUpdateLogPrefix}: Failed to download or install update`, { error })); } else { logger.info(`${AutoUpdateLogPrefix}: User chose to update on quit`); autoUpdater.autoInstallOnAppQuit = true; diff --git a/src/renderer/components/layout/main-layout-header.tsx b/src/renderer/components/layout/main-layout-header.tsx index 4fb6b69f9b..d1bcbda18f 100644 --- a/src/renderer/components/layout/main-layout-header.tsx +++ b/src/renderer/components/layout/main-layout-header.tsx @@ -25,7 +25,7 @@ export const MainLayoutHeader = observer(({ cluster, className }: Props) => { !cluster.isManaged && ( Remove - + ) } ); diff --git a/static/RELEASE_NOTES.md b/static/RELEASE_NOTES.md index f391d0d4b2..69f3a17bfa 100644 --- a/static/RELEASE_NOTES.md +++ b/static/RELEASE_NOTES.md @@ -2,7 +2,7 @@ Here you can find description of changes we've built into each release. While we try our best to make each upgrade automatic and as smooth as possible, there may be some cases where you might need to do something to ensure the application works smoothly. So please read through the release highlights! -## 4.2.0-rc.3 (current version) +## 4.2.0 (current version) - Add lens:// protocol handling with a routing mechanism - Add common app routes to the protocol renderer router from the documentation @@ -38,8 +38,17 @@ Here you can find description of changes we've built into each release. While we - Fix: Set initial cursor position for the editor to beginning - Fix: Highlight sidebar's active section +## 4.1.5 + +- Fix internal proxy listening on all network interfaces +- Fix extension command palette loading +- Fix Lens not clearing other KUBECONFIG env vars + ## 4.1.4 +**Upgrade note:** Where have all my pods gone? Namespaced Kubernetes resources are now initially shown only for the "default" namespace. Use the namespaces selector to add more. + + - Ignore clusters with invalid kubeconfig - Render only secret name on pod details without access to secrets - Pass Lens wslenvs to terminal session on Windows @@ -61,8 +70,6 @@ Here you can find description of changes we've built into each release. While we ## 4.1.2 -**Upgrade note:** Where have all my pods gone? Namespaced Kubernetes resources are now initially shown only for the "default" namespace. Use the namespaces selector to add more. - - Fix an issue where a cluster gets stuck on "Connecting ..." phase - Fix an issue with auto-update @@ -74,8 +81,6 @@ Here you can find description of changes we've built into each release. While we ## 4.1.0 -**Upgrade note:** Where have all my pods gone? Namespaced Kubernetes resources are now initially shown only for the "default" namespace. Use the namespaces selector to add more. - - Change: list views default to a namespace (instead of listing resources from all namespaces) - Command palette - Generic logs view with Pod selector