diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4ddccb4fbaf3..f0fddbffa61e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -16,6 +16,9 @@ updates: - dependency-name: '@opentelemetry/instrumentation' - dependency-name: '@opentelemetry/instrumentation-*' - dependency-name: 'typescript' + # 2.110.0 raised the engine requirement to Node >=22, while this repo runs Node 20. + - dependency-name: '@supabase/supabase-js' + versions: ['>=2.110.0'] groups: opentelemetry: patterns: diff --git a/dev-packages/browser-integration-tests/package.json b/dev-packages/browser-integration-tests/package.json index 838c4bf34a97..241274d26f92 100644 --- a/dev-packages/browser-integration-tests/package.json +++ b/dev-packages/browser-integration-tests/package.json @@ -64,7 +64,7 @@ "@sentry/replay": "10.67.0", "@sentry/opentelemetry": "10.67.0", "@sentry/conventions": "0.19.0", - "@supabase/supabase-js": "2.49.3", + "@supabase/supabase-js": "2.109.0", "axios": "1.18.0", "babel-loader": "^10.1.1", "fflate": "0.8.2", diff --git a/dev-packages/browser-integration-tests/suites/integrations/supabase/auth/test.ts b/dev-packages/browser-integration-tests/suites/integrations/supabase/auth/test.ts index fa1353f64c5d..4dc2ec6835a5 100644 --- a/dev-packages/browser-integration-tests/suites/integrations/supabase/auth/test.ts +++ b/dev-packages/browser-integration-tests/suites/integrations/supabase/auth/test.ts @@ -17,6 +17,17 @@ async function mockSupabaseAuthRoutesSuccess(page: Page) { refresh_token: 'test-refresh-token', token_type: 'bearer', expires_in: 3600, + // `auth-js` rejects a token response without a user as `AuthInvalidTokenResponseError`, + // which would make `signInWithPassword` report an error instead of a successful sign-in. + user: { + id: '11111111-1111-1111-1111-111111111111', + aud: 'authenticated', + role: 'authenticated', + email: 'test@example.com', + created_at: '2024-01-01T00:00:00Z', + app_metadata: {}, + user_metadata: {}, + }, }), headers: { 'Content-Type': 'application/json', diff --git a/yarn.lock b/yarn.lock index 94e6decc170a..4676a0a9655b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8234,62 +8234,58 @@ resolved "https://registry.yarnpkg.com/@standard-schema/spec/-/spec-1.1.0.tgz#a79b55dbaf8604812f52d140b2c9ab41bc150bb8" integrity sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w== -"@supabase/auth-js@2.69.1": - version "2.69.1" - resolved "https://registry.yarnpkg.com/@supabase/auth-js/-/auth-js-2.69.1.tgz#fcf310d24dfab823ffbf22191e6ceaef933360d8" - integrity sha512-FILtt5WjCNzmReeRLq5wRs3iShwmnWgBvxHfqapC/VoljJl+W8hDAyFmf1NVw3zH+ZjZ05AKxiKxVeb0HNWRMQ== +"@supabase/auth-js@2.109.0": + version "2.109.0" + resolved "https://registry.yarnpkg.com/@supabase/auth-js/-/auth-js-2.109.0.tgz#365fe9436fb72b4ce4342008dfd0c9b8c8e05fdb" + integrity sha512-krf61vksi92kEUYtNH70GnIMOoQqLBAKG2e3Aha4e/0uJA6i1OWCxL7WUGHo6c0Vu/w96Y1DdnkYz0NOg0kYog== dependencies: - "@supabase/node-fetch" "^2.6.14" + tslib "2.8.1" -"@supabase/functions-js@2.4.4": - version "2.4.4" - resolved "https://registry.yarnpkg.com/@supabase/functions-js/-/functions-js-2.4.4.tgz#45fcd94d546bdfa66d01f93a796ca0304ec154b8" - integrity sha512-WL2p6r4AXNGwop7iwvul2BvOtuJ1YQy8EbOd0dhG1oN1q8el/BIRSFCFnWAMM/vJJlHWLi4ad22sKbKr9mvjoA== +"@supabase/functions-js@2.109.0": + version "2.109.0" + resolved "https://registry.yarnpkg.com/@supabase/functions-js/-/functions-js-2.109.0.tgz#970aa4ea5160720981236fc7b67c3ec04e59a5b7" + integrity sha512-IiwAspZrVrBRYQoFgSJvkcA9iJvTCw8nHOdvlKARDushlw/x1YY3YJYtwwgZFtl7utUbTiZ5SwohXPNgnpZM+g== dependencies: - "@supabase/node-fetch" "^2.6.14" + tslib "2.8.1" -"@supabase/node-fetch@2.6.15", "@supabase/node-fetch@^2.6.14": - version "2.6.15" - resolved "https://registry.yarnpkg.com/@supabase/node-fetch/-/node-fetch-2.6.15.tgz#731271430e276983191930816303c44159e7226c" - integrity sha512-1ibVeYUacxWYi9i0cf5efil6adJ9WRyZBLivgjs+AUpewx1F3xPi7gLgaASI2SmIQxPoCEjAsLAzKPgMJVgOUQ== - dependencies: - whatwg-url "^5.0.0" +"@supabase/phoenix@0.4.4": + version "0.4.4" + resolved "https://registry.yarnpkg.com/@supabase/phoenix/-/phoenix-0.4.4.tgz#982e47b902b5927df7e3bc49e1680142c8bdb5d9" + integrity sha512-Gt0pqoXuIqX/8dvG0OKp/wMCobXNH3klNbUPBNyOfN0YA1IswrM3HyWFMOPk1Jy+BRaIyDPcFx4jLBwHNmlyfQ== -"@supabase/postgrest-js@1.19.2": - version "1.19.2" - resolved "https://registry.yarnpkg.com/@supabase/postgrest-js/-/postgrest-js-1.19.2.tgz#cb721860fefd9ec2818bbafc56de4314c0ebca81" - integrity sha512-MXRbk4wpwhWl9IN6rIY1mR8uZCCG4MZAEji942ve6nMwIqnBgBnZhZlON6zTTs6fgveMnoCILpZv1+K91jN+ow== +"@supabase/postgrest-js@2.109.0": + version "2.109.0" + resolved "https://registry.yarnpkg.com/@supabase/postgrest-js/-/postgrest-js-2.109.0.tgz#fe80a2c02dc5e0a2367501bbe0b5b3f0a9f3643a" + integrity sha512-Xk4gzuzyrGIPWCUuJolDQS/9zdFZDEXRhNsVeOHEKwFr+vpNU0himsHtLOhSEYlyPqwmeY8LUCKL6bLsDp0ScA== dependencies: - "@supabase/node-fetch" "^2.6.14" + tslib "2.8.1" -"@supabase/realtime-js@2.11.2": - version "2.11.2" - resolved "https://registry.yarnpkg.com/@supabase/realtime-js/-/realtime-js-2.11.2.tgz#7f7399c326be717eadc9d5e259f9e2690fbf83dd" - integrity sha512-u/XeuL2Y0QEhXSoIPZZwR6wMXgB+RQbJzG9VErA3VghVt7uRfSVsjeqd7m5GhX3JR6dM/WRmLbVR8URpDWG4+w== +"@supabase/realtime-js@2.109.0": + version "2.109.0" + resolved "https://registry.yarnpkg.com/@supabase/realtime-js/-/realtime-js-2.109.0.tgz#1061cad759581dbfd1f432c4a79f4d6407646e1c" + integrity sha512-q9tjGUgWLNhfLz6HeYE7yl6FG9WEsnr6bFmmLpn2Nakxp3Z36pqI4xu0xns5/n8Xtq10HVcy9CRxOxgvviCM4Q== dependencies: - "@supabase/node-fetch" "^2.6.14" - "@types/phoenix" "^1.5.4" - "@types/ws" "^8.5.10" - ws "^8.18.0" + "@supabase/phoenix" "0.4.4" + tslib "2.8.1" -"@supabase/storage-js@2.7.1": - version "2.7.1" - resolved "https://registry.yarnpkg.com/@supabase/storage-js/-/storage-js-2.7.1.tgz#761482f237deec98a59e5af1ace18c7a5e0a69af" - integrity sha512-asYHcyDR1fKqrMpytAS1zjyEfvxuOIp1CIXX7ji4lHHcJKqyk+sLl/Vxgm4sN6u8zvuUtae9e4kDxQP2qrwWBA== +"@supabase/storage-js@2.109.0": + version "2.109.0" + resolved "https://registry.yarnpkg.com/@supabase/storage-js/-/storage-js-2.109.0.tgz#e192231b1dcafae3657a832401527ccf915956de" + integrity sha512-j119SdEuwrOPGqiPjshpfovrQPFqeATKg990jNV88Ie+SEufznzVD2mL5kQvly+z2oVBeZn+pweU0QN/OYLmJw== dependencies: - "@supabase/node-fetch" "^2.6.14" + iceberg-js "^0.8.1" + tslib "2.8.1" -"@supabase/supabase-js@2.49.3": - version "2.49.3" - resolved "https://registry.yarnpkg.com/@supabase/supabase-js/-/supabase-js-2.49.3.tgz#789b01074b9e62ea6e41657ad65b3c06610ea3c5" - integrity sha512-42imTuAm9VEQGlXT0O6zrSwNnsIblU1eieqrAWj8HSmFaYkxepk/IuUVw1M5hKelk0ZYlqDKNwRErI1rF1EL4w== +"@supabase/supabase-js@2.109.0": + version "2.109.0" + resolved "https://registry.yarnpkg.com/@supabase/supabase-js/-/supabase-js-2.109.0.tgz#2659b6ec7712d347829f0b6c9c8ee74d22f6e5d8" + integrity sha512-eNpUGegTT3hhoTK9j6aLViVjybYtdq6Ishb4BkVLi5tT58S1D80n7dmALMoBWkbrYG4uQv30c8iAB6nZylX0Fg== dependencies: - "@supabase/auth-js" "2.69.1" - "@supabase/functions-js" "2.4.4" - "@supabase/node-fetch" "2.6.15" - "@supabase/postgrest-js" "1.19.2" - "@supabase/realtime-js" "2.11.2" - "@supabase/storage-js" "2.7.1" + "@supabase/auth-js" "2.109.0" + "@supabase/functions-js" "2.109.0" + "@supabase/postgrest-js" "2.109.0" + "@supabase/realtime-js" "2.109.0" + "@supabase/storage-js" "2.109.0" "@sveltejs/acorn-typescript@^1.0.9": version "1.0.9" @@ -9263,11 +9259,6 @@ pg-protocol "*" pg-types "^2.2.0" -"@types/phoenix@^1.5.4": - version "1.6.6" - resolved "https://registry.yarnpkg.com/@types/phoenix/-/phoenix-1.6.6.tgz#3c1ab53fd5a23634b8e37ea72ccacbf07fbc7816" - integrity sha512-PIzZZlEppgrpoT2QgbnDU+MMzuR6BbCjllj0bM70lWoejMeNJAxCchxnv7J3XFkI8MpygtRpzXrIlmWUBclP5A== - "@types/prop-types@*": version "15.7.3" resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7" @@ -9512,7 +9503,7 @@ "@types/node" "*" "@types/webidl-conversions" "*" -"@types/ws@*", "@types/ws@^8.18.1", "@types/ws@^8.5.1", "@types/ws@^8.5.10", "@types/ws@^8.5.12": +"@types/ws@*", "@types/ws@^8.18.1", "@types/ws@^8.5.1", "@types/ws@^8.5.12": version "8.18.1" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.18.1.tgz#48464e4bf2ddfd17db13d845467f6070ffea4aa9" integrity sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg== @@ -18694,6 +18685,11 @@ humanize-ms@^1.2.1: dependencies: ms "^2.0.0" +iceberg-js@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/iceberg-js/-/iceberg-js-0.8.1.tgz#47d893468293a010385e1c70123f29d0fc1d9912" + integrity sha512-1dhVQZXhcHje7798IVM+xoo/1ZdVfzOMIc8/rgVSijRK38EDqOJoGula9N/8ZI5RD8QTxNQtK/Gozpr+qUqRRA== + iconv-lite@0.6.3, iconv-lite@^0.6.2, iconv-lite@^0.6.3: version "0.6.3" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501"