janus-idp / backstage-showcase

This repo is moving to https://github.com/redhat-developer/red-hat-developer-hub
https://showcase.janus-idp.io
Apache License 2.0
113 stars 149 forks source link

Replace deprecated dependencies #655

Closed nickboldt closed 2 months ago

nickboldt commented 1 year ago

In processing the dynamic plugins, I've found some warning about deprecated/unsupported/problematic package.json dependencies.

We should try to replace these with latest/supported equivalents.

[INFO] Processing janus-idp-backstage-plugin-ocm-backend-dynamic/dist-dynamic/package.json ...

warning @kubernetes/client-node > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @kubernetes/client-node > request > har-validator@5.1.5: this library is no longer supported
warning @kubernetes/client-node > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
[INFO] Processing backstage-plugin-techdocs-backend-dynamic/dist-dynamic/package.json ...

warning @trendyol-js/openstack-swift-sdk > axios-cached-dns-resolve > babel-polyfill > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning @trendyol-js/openstack-swift-sdk > axios-cached-dns-resolve > babel-polyfill > babel-runtime > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[INFO] Processing backstage-plugin-scaffolder-backend-module-gitlab-dynamic/dist-dynamic/package.json ...

warning @gitbeaker/node@35.8.1: Please use its successor @gitbeaker/rest
[INFO] Processing backstage-plugin-kubernetes-backend-dynamic/dist-dynamic/package.json ...

warning @kubernetes/client-node > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @kubernetes/client-node > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning @kubernetes/client-node > request > har-validator@5.1.5: this library is no longer supported

Additionally, we may want to apply this change globally upstream too for all the package.json files:

      # 3. replace deprecated "@aws-sdk/signature-v4": "^3.+"      with "@smithy/signature-v4": "^2"
      #                       "@aws-sdk/node-http-handler": "^3.+" with "@smithy/node-http-handler": "^2"
      sed -r \
        -e 's#"@aws-sdk/signature-v4": "\^3.+"#"@smithy/signature-v4": "^2"#g' \
        -e 's#"@aws-sdk/node-http-handler": "\^3.+"#"@smithy/node-http-handler": "^2"#g' \
        -i "$d"/package.json

(for $d = each dynamic plugin folder)

rhdh-bot commented 2 months ago

This issue has been closed due to the fact that the Janus community is being sunset.

For future plugin issues, please use https://github.com/backstage/community-plugins/issues

For future showcase issues, please use https://issues.redhat.com/browse/RHIDP

For more information on the sunset, see:

https://janus-idp.io/blog/2024/07/05/future-of-janus-community https://issues.redhat.com/browse/RHIDP-3690 https://issues.redhat.com/browse/RHIDP-1018