WarningImHack3r / npm-update-dependencies

Update NPM dependencies from your IDE
https://plugins.jetbrains.com/plugin/21105-npm-update-dependencies
9 stars 2 forks source link

Fix support for 2024.1 #80

Closed WarningImHack3r closed 6 months ago

WarningImHack3r commented 6 months ago

Fixes #79.

Due to a breaking change recently introduced in 2024.1, IDEs now throw an error if an AnAction doesn't implement getActionUpdateThread().

I didn't get warned about this error despite the IntelliJ Plugin Verifier scanning my plugins each time a new IntelliJ version gets released. Edit: that's because it's a runtime error, not a build-time one!

Introduced in 2022.2, this method is now mandatory. As a result, I have to drop support for 2022.1 in order to support the newest versions.


Update: Thanks to @jansorg, it's even easier to fix the support, and not break support for 2022.1 (most importantly, not to bump the major version)!

github-actions[bot] commented 6 months ago

Qodana Community for JVM

6 new problems were found

Inspection name Severity Problems
'Enum.values()' is recommended to be replaced by 'Enum.entries' since 1.9 🔶 Warning 6

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report To be able to view the detailed Qodana report, you can either: 1. Register at [Qodana Cloud](https://qodana.cloud/) and [configure the action](https://github.com/jetbrains/qodana-action#qodana-cloud) 2. Use [GitHub Code Scanning with Qodana](https://github.com/jetbrains/qodana-action#github-code-scanning) 3. Host [Qodana report at GitHub Pages](https://github.com/JetBrains/qodana-action/blob/3a8e25f5caad8d8b01c1435f1ef7b19fe8b039a0/README.md#github-pages) 4. Inspect and use `qodana.sarif.json` (see [the Qodana SARIF format](https://www.jetbrains.com/help/qodana/qodana-sarif-output.html#Report+structure) for details) To get `*.log` files or any other Qodana artifacts, run the action with `upload-result` option set to `true`, so that the action will upload the files as the job artifacts: ```yaml - name: 'Qodana Scan' uses: JetBrains/qodana-action@v2023.3.1 with: upload-result: true ```
Contact Qodana team Contact us at [qodana-support@jetbrains.com](mailto:qodana-support@jetbrains.com) - Or via our issue tracker: https://jb.gg/qodana-issue - Or share your feedback: https://jb.gg/qodana-discussions