From d8e966d1937cdc6c898dd51bb277f32891d88a90 Mon Sep 17 00:00:00 2001 From: Supriya Adep Date: Sat, 7 Feb 2026 21:58:24 +0530 Subject: [PATCH] add upgraded packages --- template/babel.config.js | 6 ++--- template/package.json | 49 ++++++++++++++++------------------ template/webpack.commons.js | 6 +++++ template/webpack.web.config.js | 7 ++++- 4 files changed, 38 insertions(+), 30 deletions(-) diff --git a/template/babel.config.js b/template/babel.config.js index c5d492d99..c7b3da259 100644 --- a/template/babel.config.js +++ b/template/babel.config.js @@ -10,11 +10,11 @@ ********************************************* */ const configVars = require('./configTransform'); -const { getCustomizationApiPath } = require('./customization.config'); +const {getCustomizationApiPath} = require('./customization.config'); // This file is read only by react native for IOS & Android. Doesn't apply to electron, Web targets module.exports = { - presets: ['module:metro-react-native-babel-preset'], + presets: ['@react-native/babel-preset'], plugins: [ ['transform-define', configVars], [ @@ -29,6 +29,6 @@ module.exports = { }, }, ], - 'react-native-reanimated/plugin' + 'react-native-reanimated/plugin', ], }; diff --git a/template/package.json b/template/package.json index 19935d987..bac9b51c4 100644 --- a/template/package.json +++ b/template/package.json @@ -53,7 +53,7 @@ "@gorhom/bottom-sheet": "4.4.7", "@netless/react-native-whiteboard": "^0.0.14", "@openspacelabs/react-native-zoomable-view": "^2.1.1", - "@react-native-async-storage/async-storage": "1.19.2", + "@react-native-async-storage/async-storage": "2.2.0", "@react-native-community/checkbox": "0.5.16", "@react-native-community/clipboard": "1.5.1", "@splinetool/runtime": "^1.9.69", @@ -64,7 +64,7 @@ "agora-extension-beauty-effect": "^1.0.2-beta", "agora-extension-virtual-background": "^1.1.3", "agora-react-native-rtm": "2.2.4", - "agora-rtc-sdk-ng": "4.23.4", + "agora-rtc-sdk-ng": "4.23.0", "agora-rtm-sdk": "2.2.2", "buffer": "^6.0.3", "electron-log": "4.3.5", @@ -82,10 +82,10 @@ "npm": "^9.7.2", "p-queue": "^7.3.4", "protobufjs": "^7.2.5", - "react": "18.2.0", - "react-dom": "18.2.0", - "react-is": "18.0.0", - "react-native": "0.72.4", + "react": "19.2.4", + "react-dom": "19.2.4", + "react-is": "19.2.4", + "react-native": "0.83.1", "react-native-agora": "4.3.2", "react-native-agora-chat": "1.2.1", "react-native-document-picker": "^9.1.0", @@ -102,8 +102,8 @@ "react-native-share": "10.0.2", "react-native-svg": "13.6.0", "react-native-vector-icons": "9.2.0", - "react-native-walkthrough-tooltip": "1.4.0", - "react-native-web": "0.19.7", + "react-native-walkthrough-tooltip": "1.6.0", + "react-native-web": "0.21.2", "react-native-webview": "13.8.1", "react-router-dom": "5.2.0", "react-router-native": "5.2.0", @@ -123,21 +123,21 @@ "@babel/preset-typescript": "7.13.0", "@babel/runtime": "^7.20.0", "@bam.tech/react-native-make": "3.0.3", - "@pmmmwh/react-refresh-webpack-plugin": "0.5.5", + "@pmmmwh/react-refresh-webpack-plugin": "0.5.15", "@react-native-community/eslint-config": "1.1.0", - "@react-native/eslint-config": "^0.72.2", - "@react-native/metro-config": "^0.72.11", + "@react-native/babel-preset": "^0.83.1", + "@react-native/eslint-config": "0.83.1", + "@react-native/metro-config": "0.83.1", "@tsconfig/react-native": "^3.0.0", "@types/hark": "^1.2.2", "@types/jest": "25.2.3", - "@types/react": "17.0.2", + "@types/react": "19.2.13", "@types/react-is": "17.0.3", "@types/react-native": "0.67.6", "@types/react-native-keep-awake": "2.0.2", "@types/react-router-dom": "5.1.7", "@types/react-router-native": "5.1.0", - "@types/react-test-renderer": "18.0.0", - "@types/webpack-dev-server": "3.11.4", + "@types/react-test-renderer": "19.1.0", "@types/webpack-env": "^1.16.4", "@typescript-eslint/eslint-plugin": "6.4.0", "@typescript-eslint/parser": "6.4.0", @@ -160,19 +160,18 @@ "html-webpack-plugin": "4.5.2", "ignore-loader": "^0.1.2", "jest": "^29.2.1", - "metro-react-native-babel-preset": "0.76.8", "prettier": "^2.4.1", "react-devtools-electron": "4.7.0", "react-native-url-polyfill": "^2.0.0", "react-refresh": "0.12.0", - "react-test-renderer": "18.2.0", + "react-test-renderer": "19.2.4", "style-loader": "3.3.1", "ts-loader": "^8.3.0", "typescript": "4.8.4", - "webpack": "5.72.0", - "webpack-cli": "^4.10.0", - "webpack-dev-server": "4.8.1", - "webpack-merge": "5.8.0", + "webpack": "5.98.0", + "webpack-cli": "5.1.4", + "webpack-dev-server": "5.2.0", + "webpack-merge": "6.0.1", "webpack-node-externals": "3.0.0", "yargs": "15.4.1" }, @@ -180,14 +179,12 @@ "@netless/react-native-whiteboard": { "react-native-webview": "13.8.1" }, - "agora-extension-ai-denoiser": { - "agora-rtc-sdk-ng": "4.20.1-1" - }, - "agora-extension-virtual-background": { - "agora-rtc-sdk-ng": "4.20.1-1" - }, "@bam.tech/react-native-make": { "sharp": "0.33.5" + }, + "react-spring-bottom-sheet": { + "react": "$react", + "react-dom": "$react-dom" } }, "engines": { diff --git a/template/webpack.commons.js b/template/webpack.commons.js index dc5e93a7f..a491e4a9c 100644 --- a/template/webpack.commons.js +++ b/template/webpack.commons.js @@ -131,6 +131,12 @@ module.exports = { }, }, }, + { + test: /\.m?js/, + resolve: { + fullySpecified: false, + }, + }, { test: /\.(mp4|png|jpe?g|gif)$/i, use: [ diff --git a/template/webpack.web.config.js b/template/webpack.web.config.js index ef11b20f8..a17100a7d 100644 --- a/template/webpack.web.config.js +++ b/template/webpack.web.config.js @@ -30,7 +30,12 @@ module.exports = merge(commons, { port: 9000, // https: true, historyApiFallback: true, // Support for react-router - static: './', // same as contentBase from webpack v4 config + static: { + directory: './', + watch: { + usePolling: true, + }, + }, client: { overlay: false, },