From 92f2c111a3474dcc623d6ecd5c7a4e3bb919f3f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Leuth=C3=A4user?= <1417198+max-leuthaeuser@users.noreply.github.com> Date: Thu, 24 Jul 2025 10:30:39 +0200 Subject: [PATCH] Update babel plugins As per npm warnings: ``` npm WARN deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead. npm WARN deprecated @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead. npm WARN deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. npm WARN deprecated @babel/plugin-proposal-private-methods@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead. npm WARN deprecated @babel/plugin-proposal-private-property-in-object@7.21.11: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead. ``` --- .../TranspilingEnvironment.scala | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/scala/io/shiftleft/js2cpg/preprocessing/TranspilingEnvironment.scala b/src/main/scala/io/shiftleft/js2cpg/preprocessing/TranspilingEnvironment.scala index 5d22637e..8f6a31dc 100644 --- a/src/main/scala/io/shiftleft/js2cpg/preprocessing/TranspilingEnvironment.scala +++ b/src/main/scala/io/shiftleft/js2cpg/preprocessing/TranspilingEnvironment.scala @@ -45,19 +45,19 @@ trait TranspilingEnvironment { object Versions { val babelVersions: Map[String, String] = Map( - "@babel/core" -> "7.20.2", - "@babel/cli" -> "7.19.3", - "@babel/preset-env" -> "7.20.2", - "@babel/preset-flow" -> "7.18.6", - "@babel/preset-react" -> "7.18.6", - "@babel/preset-typescript" -> "7.18.6", - "@babel/plugin-proposal-class-properties" -> "7.18.6", - "@babel/plugin-proposal-private-methods" -> "7.18.6", - "@babel/plugin-proposal-private-property-in-object" -> "7.21.11", - "@babel/plugin-proposal-object-rest-spread" -> "7.20.2", - "@babel/plugin-proposal-nullish-coalescing-operator" -> "7.18.6", - "@babel/plugin-transform-runtime" -> "7.19.6", - "@babel/plugin-transform-property-mutators" -> "7.18.6" + "@babel/core" -> "7.20.2", + "@babel/cli" -> "7.19.3", + "@babel/preset-env" -> "7.20.2", + "@babel/preset-flow" -> "7.18.6", + "@babel/preset-react" -> "7.18.6", + "@babel/preset-typescript" -> "7.18.6", + "@babel/plugin-transform-class-properties" -> "6.24.1", + "@babel/plugin-transform-private-methods" -> "7.27.1", + "@babel/plugin-transform-private-property-in-object" -> "7.27.1", + "@babel/plugin-transform-object-rest-spread" -> "7.28.0", + "@babel/plugin-transform-nullish-coalescing-operator" -> "7.27.1", + "@babel/plugin-transform-runtime" -> "7.19.6", + "@babel/plugin-transform-property-mutators" -> "7.18.6" ) private val versions: Map[String, String] =