Skip to content

fix(realtime): pin @supabase/phoenix and browser test CDN deps - #2457

Merged
mandarini merged 2 commits into
masterfrom
chore/pin-phoenix
Jun 17, 2026
Merged

mandarini merged 2 commits into
masterfrom
chore/pin-phoenix

Conversation

@mandarini

@mandarini mandarini commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

Pin externally-resolved versions that can change without any code change in this repo, and fix the realtime browser integration test that broke as a result of one of them.

What changed?

  • packages/core/realtime-js/package.json: pin @supabase/phoenix from ^0.4.2 to exactly 0.4.4. The lockfile is updated to match.
  • packages/core/supabase-js/test/integration.browser.test.ts:
    • Pin the CDN scripts the test page loads from unpkg: react@18.3.1, react-dom@18.3.1, and @babel/standalone@7.29.7 (previously react@18, react-dom@18, and an unversioned @babel/standalone).
    • Use a realistic demo anon key that includes an iat claim (matches the shape of real Supabase-issued JWTs).
    • Add pageerror and requestfailed listeners on the Puppeteer page so client-side failures surface in the logs instead of presenting only as a silent #realtime_status selector timeout. Both are silent on success.
  • pnpm-lock.yaml: the phoenix pin above, plus an incidental refresh of the transitive next dependency (16.2.7 to 16.2.9) pulled in by an example app that tracks next@latest.

Why was this change needed?

The integration test page loads @babel/standalone unversioned from unpkg, so it always resolved to the latest release. When @babel/standalone 8.0.0 was published on 2026-06-16, the in-browser text/babel transform began emitting an import statement that the loader could not append, so the React test page threw Cannot use import statement outside a module and crashed before ever calling channel.subscribe(). No socket was opened, #realtime_status was never set, and the test failed with a Puppeteer selector timeout. This made the browser integration test go red across all open PRs with no related code change.

Pinning the page's CDN dependencies makes the test deterministic again. Pinning @supabase/phoenix to an exact version applies the same principle to the published client: a floating ^0.4.2 range meant a phoenix release could reach consumers and CI (via the esm.sh-resolved Deno test path) without a deliberate bump here.

The iat-bearing anon key and the new page error listeners are hardening: a more realistic token and faster diagnosis the next time a client-side failure manifests as a selector timeout.

This PR does not change any shipped SDK behavior. Production consumers were never affected; the failure was confined to test infrastructure.

Screenshots/Examples

N/A

Breaking changes

  • This PR contains no breaking changes

Checklist

  • I have read the Contributing Guidelines
  • My PR title follows the conventional commit format: <type>(<scope>): <description>
  • I have run pnpm nx format to ensure consistent code formatting
  • I have added tests for new functionality (if applicable)
  • I have updated documentation (if applicable)

Additional notes

The root causes here were all unpinned externals moving under PR-blocking tests (the unversioned @babel/standalone, the floating ^0.4.2 phoenix range resolved by esm.sh, and the CLI-default realtime image via npx supabase). A follow-up to sweep the test and CI setup for remaining floating versions would prevent the recurring "green yesterday, red today, no code change" failures.

@mandarini
mandarini requested review from a team as code owners June 17, 2026 11:37
@github-actions github-actions Bot added the realtime-js Related to the realtime-js library. label Jun 17, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jun 17, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@supabase/auth-js

npm i https://pkg.pr.new/@supabase/auth-js@2457

@supabase/functions-js

npm i https://pkg.pr.new/@supabase/functions-js@2457

@supabase/postgrest-js

npm i https://pkg.pr.new/@supabase/postgrest-js@2457

@supabase/realtime-js

npm i https://pkg.pr.new/@supabase/realtime-js@2457

@supabase/storage-js

npm i https://pkg.pr.new/@supabase/storage-js@2457

@supabase/supabase-js

npm i https://pkg.pr.new/@supabase/supabase-js@2457

commit: d143d0b

leandrocp
leandrocp previously approved these changes Jun 17, 2026
@mandarini mandarini changed the title chore(realtime): pin phoenix version test(supabase): pin browser integration test CDN deps Jun 17, 2026
@mandarini mandarini self-assigned this Jun 17, 2026
@mandarini mandarini changed the title test(supabase): pin browser integration test CDN deps fix(realtime): pin @supabase/phoenix and browser test CDN deps Jun 17, 2026
@mandarini
mandarini merged commit dd2d4c2 into master Jun 17, 2026
27 of 29 checks passed
@mandarini
mandarini deleted the chore/pin-phoenix branch June 17, 2026 13:00
mandarini pushed a commit to supabase/ssr that referenced this pull request Jun 30, 2026
This PR updates `@supabase/supabase-js` to v2.110.0.

**Source**: supabase-js-stable-release

---

## Release Notes

## v2.110.0

## 2.110.0 (2026-06-30)

### 🚀 Features

- **repo:** drop Node.js 20 support
([#2482](supabase/supabase-js#2482))

### ❤️ Thank You

- Katerina Skroumpelou @mandarini
## v2.109.0

## 2.109.0 (2026-06-30)

### 🚀 Features

- **auth:** add custom_claims_allowlist to custom providers admin API
([#2473](supabase/supabase-js#2473))
- **realtime:** add postgres_changes filter builder, new operators and
select ([#2463](supabase/supabase-js#2463))
- **storage:** expose purgeCache for buckets and single objects
([#2429](supabase/supabase-js#2429))

### 🩹 Fixes

- **functions:** honor a caller's Content-Type override regardless of
casing ([#2455](supabase/supabase-js#2455))
- **realtime:** pin @supabase/phoenix and browser test CDN deps
([#2457](supabase/supabase-js#2457))
- **realtime:** add replication connection system message option
([#2470](supabase/supabase-js#2470))
- **storage:** keep sortBy defaults when list() is given a partial
sortBy ([#2454](supabase/supabase-js#2454))

### ❤️ Thank You

- Anubhav Anand @i-anubhav-anand
- Cemal Kılıç @cemalkilic
- Claude Opus 4.8 (1M context)
- Filipe Cabaço @filipecabaco
- Katerina Skroumpelou @mandarini
- Lenny
- Rodrigo Mansueli @mansueli
## v2.108.2

## 2.108.2 (2026-06-15)

### 🩹 Fixes

- **auth:** preserve valid session on refresh failure and cooldown
repeat failures
([#2436](supabase/supabase-js#2436))
- **realtime:** clarify httpSend() 404 error and server migration note
([#2444](supabase/supabase-js#2444))
- **release:** pin Deno and bound JSR publish to survive stranded-task
hangs ([#2439](supabase/supabase-js#2439))
- **release:** restore JSR publish flags and enable for beta
([#2440](supabase/supabase-js#2440))

### ❤️ Thank You

- Katerina Skroumpelou @mandarini
## v2.108.1

## 2.108.1 (2026-06-09)

### 🩹 Fixes

- **ci:** forward DOGFOOD_APP_CLIENT_ID to dogfood workflow
([#2434](supabase/supabase-js#2434))
- **postgrest:** then typing
([#2349](supabase/supabase-js#2349))

### ❤️ Thank You

- Katerina Skroumpelou @mandarini
- Vaibhav @7ttp

This PR was created automatically.

Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
mandarini pushed a commit to supabase/supabase that referenced this pull request Jul 7, 2026
This PR updates @supabase/*-js libraries to version 2.110.1.

**Source**: supabase-js-stable-release

**Changes**:
- Updated @supabase/supabase-js to 2.110.1
- Updated @supabase/auth-js to 2.110.1
- Updated @supabase/realtime-js to 2.110.1
- Updated @supabase/postgest-js to 2.110.1
- Refreshed pnpm-lock.yaml

---

## Release Notes

## v2.110.1

## 2.110.1 (2026-07-07)

### 🩹 Fixes

- **auth:** defer init-time notifications until initializePromise
resolves ([#2498](supabase/supabase-js#2498))
- **realtime:** suppress disconnected status from onHeartbeat consumers
([#2496](supabase/supabase-js#2496))

### ❤️ Thank You

- Katerina Skroumpelou @mandarini
## v2.110.0

## 2.110.0 (2026-06-30)

### 🚀 Features

- **repo:** drop Node.js 20 support
([#2482](supabase/supabase-js#2482))

### ❤️ Thank You

- Katerina Skroumpelou @mandarini
## v2.109.0

## 2.109.0 (2026-06-30)

### 🚀 Features

- **auth:** add custom_claims_allowlist to custom providers admin API
([#2473](supabase/supabase-js#2473))
- **realtime:** add postgres_changes filter builder, new operators and
select ([#2463](supabase/supabase-js#2463))
- **storage:** expose purgeCache for buckets and single objects
([#2429](supabase/supabase-js#2429))

### 🩹 Fixes

- **functions:** honor a caller's Content-Type override regardless of
casing ([#2455](supabase/supabase-js#2455))
- **realtime:** pin @supabase/phoenix and browser test CDN deps
([#2457](supabase/supabase-js#2457))
- **realtime:** add replication connection system message option
([#2470](supabase/supabase-js#2470))
- **storage:** keep sortBy defaults when list() is given a partial
sortBy ([#2454](supabase/supabase-js#2454))

### ❤️ Thank You

- Anubhav Anand @i-anubhav-anand
- Cemal Kılıç @cemalkilic
- Claude Opus 4.8 (1M context)
- Filipe Cabaço @filipecabaco
- Katerina Skroumpelou @mandarini
- Lenny
- Rodrigo Mansueli @mansueli

This PR was created automatically.

Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

realtime-js Related to the realtime-js library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants