diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7579c925..f2452b278 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,10 +71,10 @@ jobs: npm install npm test || npm test - - name: Run integration and browser tests on Deno 2.x only - if: ${{ matrix.deno == '2.x' }} - run: | - npm run test:integration:browser + # - name: Run integration and browser tests on Deno 2.x only + # if: ${{ matrix.deno == '2.x' }} + # run: | + # npm run test:integration:browser - name: Stop Supabase run: supabase stop diff --git a/package-lock.json b/package-lock.json index c21d54848..d03af2588 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@supabase/functions-js": "2.4.4", "@supabase/node-fetch": "2.6.15", "@supabase/postgrest-js": "1.19.4", - "@supabase/realtime-js": "2.11.10", + "@supabase/realtime-js": "2.11.13", "@supabase/storage-js": "2.7.1" }, "devDependencies": { @@ -1110,15 +1110,14 @@ } }, "node_modules/@supabase/realtime-js": { - "version": "2.11.10", - "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.11.10.tgz", - "integrity": "sha512-SJKVa7EejnuyfImrbzx+HaD9i6T784khuw1zP+MBD7BmJYChegGxYigPzkKX8CK8nGuDntmeSD3fvriaH0EGZA==", + "version": "2.11.13", + "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.11.13.tgz", + "integrity": "sha512-X2Gs+f0qjLr/60UTCidxRj+FCI/ABNar93aeMQj+v/7sm4RYOWlKNw46xmwWXL8zAL30wsHG2jD7ZvCH6zDv1A==", "license": "MIT", "dependencies": { "@supabase/node-fetch": "^2.6.13", "@types/phoenix": "^1.6.6", - "@types/ws": "^8.18.1", - "ws": "^8.18.2" + "isows": "^1.0.7" } }, "node_modules/@supabase/storage-js": { @@ -1280,7 +1279,8 @@ "node_modules/@types/node": { "version": "20.1.3", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.1.3.tgz", - "integrity": "sha512-NP2yfZpgmf2eDRPmgGq+fjGjSwFgYbihA8/gK+ey23qT9RkxsgNTZvGOEpXgzIGqesTYkElELLgtKoMQTys5vA==" + "integrity": "sha512-NP2yfZpgmf2eDRPmgGq+fjGjSwFgYbihA8/gK+ey23qT9RkxsgNTZvGOEpXgzIGqesTYkElELLgtKoMQTys5vA==", + "dev": true }, "node_modules/@types/normalize-package-data": { "version": "2.4.4", @@ -1312,15 +1312,6 @@ "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", "dev": true }, - "node_modules/@types/ws": { - "version": "8.18.1", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz", - "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@types/yargs": { "version": "17.0.24", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", @@ -4427,6 +4418,21 @@ "node": ">=0.10.0" } }, + "node_modules/isows": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.7.tgz", + "integrity": "sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "peerDependencies": { + "ws": "*" + } + }, "node_modules/istanbul-lib-coverage": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", diff --git a/package.json b/package.json index 26e30ed8a..69b3bf6e3 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "@supabase/functions-js": "2.4.4", "@supabase/node-fetch": "2.6.15", "@supabase/postgrest-js": "1.19.4", - "@supabase/realtime-js": "2.11.10", + "@supabase/realtime-js": "2.11.13", "@supabase/storage-js": "2.7.1" }, "devDependencies": { @@ -77,5 +77,6 @@ } }, "jsdelivr": "dist/umd/supabase.js", - "unpkg": "dist/umd/supabase.js" + "unpkg": "dist/umd/supabase.js", + "packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7da1b0106..59b01b68d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,8 +20,8 @@ importers: specifier: 1.19.4 version: 1.19.4 '@supabase/realtime-js': - specifier: 2.11.10 - version: 2.11.10 + specifier: 2.11.13 + version: 2.11.13(ws@8.18.2) '@supabase/storage-js': specifier: 2.7.1 version: 2.7.1 @@ -625,10 +625,10 @@ packages: integrity: sha512-O4soKqKtZIW3olqmbXXbKugUtByD2jPa8kL2m2c1oozAO11uCcGrRhkZL0kVxjBLrXHE0mdSkFsMj7jDSfyNpw==, } - '@supabase/realtime-js@2.11.10': + '@supabase/realtime-js@2.11.13': resolution: { - integrity: sha512-SJKVa7EejnuyfImrbzx+HaD9i6T784khuw1zP+MBD7BmJYChegGxYigPzkKX8CK8nGuDntmeSD3fvriaH0EGZA==, + integrity: sha512-X2Gs+f0qjLr/60UTCidxRj+FCI/ABNar93aeMQj+v/7sm4RYOWlKNw46xmwWXL8zAL30wsHG2jD7ZvCH6zDv1A==, } '@supabase/storage-js@2.7.1': @@ -794,12 +794,6 @@ packages: integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==, } - '@types/ws@8.18.1': - resolution: - { - integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==, - } - '@types/yargs-parser@21.0.3': resolution: { @@ -2819,6 +2813,14 @@ packages: } engines: { node: '>=0.10.0' } + isows@1.0.7: + resolution: + { + integrity: sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg==, + } + peerDependencies: + ws: '*' + istanbul-lib-coverage@3.2.2: resolution: { @@ -5598,15 +5600,13 @@ snapshots: dependencies: '@supabase/node-fetch': 2.6.15 - '@supabase/realtime-js@2.11.10': + '@supabase/realtime-js@2.11.13(ws@8.18.2)': dependencies: '@supabase/node-fetch': 2.6.15 '@types/phoenix': 1.6.6 - '@types/ws': 8.18.1 - ws: 8.18.2 + isows: 1.0.7(ws@8.18.2) transitivePeerDependencies: - - bufferutil - - utf-8-validate + - ws '@supabase/storage-js@2.7.1': dependencies: @@ -5697,10 +5697,6 @@ snapshots: '@types/stack-utils@2.0.3': {} - '@types/ws@8.18.1': - dependencies: - '@types/node': 22.14.1 - '@types/yargs-parser@21.0.3': {} '@types/yargs@17.0.33': @@ -6933,6 +6929,10 @@ snapshots: isobject@3.0.1: {} + isows@1.0.7(ws@8.18.2): + dependencies: + ws: 8.18.2 + istanbul-lib-coverage@3.2.2: {} istanbul-lib-instrument@5.2.1: diff --git a/test/integration/expo/package-lock.json b/test/integration/expo/package-lock.json index 2ed9cbdf0..f700cb574 100644 --- a/test/integration/expo/package-lock.json +++ b/test/integration/expo/package-lock.json @@ -26,7 +26,7 @@ "expo-symbols": "~0.4.4", "expo-system-ui": "~5.0.7", "expo-web-browser": "~14.1.6", - "react": "19.1.0", + "react": "^19.0.0", "react-dom": "19.1.0", "react-native": "0.79.2", "react-native-gesture-handler": "~2.24.0", @@ -3464,15 +3464,14 @@ } }, "node_modules/@supabase/realtime-js": { - "version": "2.11.10", - "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.11.10.tgz", - "integrity": "sha512-SJKVa7EejnuyfImrbzx+HaD9i6T784khuw1zP+MBD7BmJYChegGxYigPzkKX8CK8nGuDntmeSD3fvriaH0EGZA==", + "version": "2.11.13", + "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.11.13.tgz", + "integrity": "sha512-X2Gs+f0qjLr/60UTCidxRj+FCI/ABNar93aeMQj+v/7sm4RYOWlKNw46xmwWXL8zAL30wsHG2jD7ZvCH6zDv1A==", "license": "MIT", "dependencies": { "@supabase/node-fetch": "^2.6.13", "@types/phoenix": "^1.6.6", - "@types/ws": "^8.18.1", - "ws": "^8.18.2" + "isows": "^1.0.7" } }, "node_modules/@supabase/storage-js": { @@ -3487,14 +3486,14 @@ "node_modules/@supabase/supabase-js": { "version": "0.0.0-automated", "resolved": "file:../../../supabase-supabase-js-0.0.0-automated.tgz", - "integrity": "sha512-jeG3sVmpvzuyveD7G1WH570afjkZuSDRgTQZlvLEf09AYcufAIQG5mYlyfi9M1+XIlnhP2jT2465czMzbe1WYw==", + "integrity": "sha512-8zgVCClwNLxJ8YUSNVCgCL/EQ+sGoDroBl6D84EObVi615jU5pQ0o3DiewD1AoobdsVzwUaPeqvJSeAbsc9IOQ==", "license": "MIT", "dependencies": { "@supabase/auth-js": "2.70.0", "@supabase/functions-js": "2.4.4", "@supabase/node-fetch": "2.6.15", "@supabase/postgrest-js": "1.19.4", - "@supabase/realtime-js": "2.11.10", + "@supabase/realtime-js": "2.11.13", "@supabase/storage-js": "2.7.1" } }, @@ -3731,15 +3730,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/ws": { - "version": "8.18.1", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz", - "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@types/yargs": { "version": "17.0.33", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", @@ -4516,9 +4506,9 @@ } }, "node_modules/acorn-loose": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/acorn-loose/-/acorn-loose-8.5.0.tgz", - "integrity": "sha512-ppga7pybjwX2HSJv5ayHe6QG4wmNS1RQ2wjBMFTVnOj0h8Rxsmtc6fnVzINqHSSRz23sTe9IL3UAt/PU9gc4FA==", + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/acorn-loose/-/acorn-loose-8.5.1.tgz", + "integrity": "sha512-H68u/wiI8PAsSBclEIWwUg3dqEaDZXQHCovulbedgp78zJstjn7gDjfGgwUtW0BHi+KasryFLreHAGX/iXU85A==", "dev": true, "license": "MIT", "dependencies": { @@ -6367,9 +6357,9 @@ } }, "node_modules/enhanced-resolve": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.1.tgz", - "integrity": "sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg==", + "version": "5.18.2", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.2.tgz", + "integrity": "sha512-6Jw4sE1maoRJo3q8MsSIn2onJFbLTOjY9hlx4DZXmOKvLRd1Ok2kXmAGXaafL2+ijsJZ1ClYbl/pmqr9+k4iUQ==", "dev": true, "license": "MIT", "peer": true, @@ -8982,6 +8972,21 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "license": "ISC" }, + "node_modules/isows": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.7.tgz", + "integrity": "sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "peerDependencies": { + "ws": "*" + } + }, "node_modules/istanbul-lib-coverage": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", @@ -12280,9 +12285,9 @@ } }, "node_modules/react": { - "version": "19.1.0", - "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz", - "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", + "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==", "license": "MIT", "engines": { "node": ">=0.10.0" @@ -15034,9 +15039,9 @@ } }, "node_modules/webpack-sources": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.0.tgz", - "integrity": "sha512-77R0RDmJfj9dyv5p3bM5pOHa+X8/ZkO9c7kpDstigkC4nIDobadsfSGCwB4bKhMVxqAok8tajaoR8rirM7+VFQ==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.3.tgz", + "integrity": "sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==", "dev": true, "license": "MIT", "engines": { diff --git a/test/integration/expo/package.json b/test/integration/expo/package.json index be577af3e..e84af7dd7 100644 --- a/test/integration/expo/package.json +++ b/test/integration/expo/package.json @@ -30,7 +30,7 @@ "expo-symbols": "~0.4.4", "expo-system-ui": "~5.0.7", "expo-web-browser": "~14.1.6", - "react": "19.1.0", + "react": "^19.0.0", "react-dom": "19.1.0", "react-native": "0.79.2", "react-native-gesture-handler": "~2.24.0", @@ -57,6 +57,12 @@ "preset": "jest-expo", "setupFiles": [ "./jest.setup.js" - ] + ], + "transformIgnorePatterns": [ + "node_modules/(?!(isows|@supabase|@supabase/realtime-js|@react-native|react-native|expo-modules-core|expo)/)" + ], + "moduleNameMapper": { + "^(\\.{1,2}/.*)\\.js$": "$1" + } } }