diff --git a/CHANGELOG.md b/CHANGELOG.md index 66c3b6d..e87eec8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,10 @@ - Improve caching introduced in 2.1.3 +### Fixed + +- Fix support for newer versions (2024.1+) + ## [2.1.3] - 2024-02-01 ### Added diff --git a/gradle.properties b/gradle.properties index 31279c6..f614f33 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ pluginGroup = com.github.warningimhack3r.npmupdatedependencies pluginName = npm-update-dependencies pluginRepositoryUrl = https://github.com/WarningImHack3r/npm-update-dependencies # SemVer format -> https://semver.org -pluginVersion = 2.1.3 +pluginVersion = 2.1.4 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild = 221 diff --git a/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/MainActionGroup.kt b/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/MainActionGroup.kt index 13beda2..14e2be2 100644 --- a/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/MainActionGroup.kt +++ b/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/MainActionGroup.kt @@ -3,8 +3,9 @@ package com.github.warningimhack3r.npmupdatedependencies.ui.actions import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.CommonDataKeys import com.intellij.openapi.actionSystem.DefaultActionGroup +import com.intellij.openapi.actionSystem.UpdateInBackground -class MainActionGroup : DefaultActionGroup() { +class MainActionGroup : DefaultActionGroup(), UpdateInBackground { override fun update(e: AnActionEvent) { val editor = e.getData(CommonDataKeys.EDITOR) val file = e.getData(CommonDataKeys.PSI_FILE) diff --git a/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/deprecation/RemoveAllDeprecationsAction.kt b/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/deprecation/RemoveAllDeprecationsAction.kt index 31c12a7..698f13d 100644 --- a/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/deprecation/RemoveAllDeprecationsAction.kt +++ b/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/deprecation/RemoveAllDeprecationsAction.kt @@ -5,9 +5,10 @@ import com.github.warningimhack3r.npmupdatedependencies.ui.helpers.ActionsCommon import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.CommonDataKeys +import com.intellij.openapi.actionSystem.UpdateInBackground import com.intellij.openapi.components.service -class RemoveAllDeprecationsAction : AnAction() { +class RemoveAllDeprecationsAction : AnAction(), UpdateInBackground { override fun update(e: AnActionEvent) { e.presentation.isEnabled = e.project?.service()?.deprecations?.isNotEmpty() ?: false } diff --git a/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/deprecation/ReplaceAllDeprecationsAction.kt b/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/deprecation/ReplaceAllDeprecationsAction.kt index d2ff123..57fee24 100644 --- a/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/deprecation/ReplaceAllDeprecationsAction.kt +++ b/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/deprecation/ReplaceAllDeprecationsAction.kt @@ -5,9 +5,10 @@ import com.github.warningimhack3r.npmupdatedependencies.ui.helpers.ActionsCommon import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.CommonDataKeys +import com.intellij.openapi.actionSystem.UpdateInBackground import com.intellij.openapi.components.service -class ReplaceAllDeprecationsAction : AnAction() { +class ReplaceAllDeprecationsAction : AnAction(), UpdateInBackground { override fun update(e: AnActionEvent) { e.presentation.isEnabled = e.project?.service()?.deprecations?.isNotEmpty() ?: false } diff --git a/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/scan/InvalidateCachesAction.kt b/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/scan/InvalidateCachesAction.kt index 53ae478..067672d 100644 --- a/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/scan/InvalidateCachesAction.kt +++ b/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/scan/InvalidateCachesAction.kt @@ -3,9 +3,10 @@ package com.github.warningimhack3r.npmupdatedependencies.ui.actions.scan import com.github.warningimhack3r.npmupdatedependencies.backend.engine.NUDState import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent +import com.intellij.openapi.actionSystem.UpdateInBackground import com.intellij.openapi.components.service -class InvalidateCachesAction : AnAction() { +class InvalidateCachesAction : AnAction(), UpdateInBackground { override fun update(e: AnActionEvent) { val state = e.project?.service() e.presentation.isEnabled = if (state != null) { diff --git a/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/update/UpdateAllLatestAction.kt b/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/update/UpdateAllLatestAction.kt index ce2b8b7..88145eb 100644 --- a/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/update/UpdateAllLatestAction.kt +++ b/src/main/kotlin/com/github/warningimhack3r/npmupdatedependencies/ui/actions/update/UpdateAllLatestAction.kt @@ -6,9 +6,10 @@ import com.github.warningimhack3r.npmupdatedependencies.ui.helpers.ActionsCommon import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.CommonDataKeys +import com.intellij.openapi.actionSystem.UpdateInBackground import com.intellij.openapi.components.service -class UpdateAllLatestAction : AnAction() { +class UpdateAllLatestAction : AnAction(), UpdateInBackground { override fun update(e: AnActionEvent) { e.presentation.isEnabled = e.project?.service()?.availableUpdates?.isNotEmpty() ?: false }