chore(deps): cleanups and updates#2371
Merged
Merged
Conversation
@supabase/auth-js
@supabase/functions-js
@supabase/postgrest-js
@supabase/realtime-js
@supabase/storage-js
@supabase/supabase-js
commit: |
834bd3b to
9505863
Compare
81dbbd7 to
6571fe7
Compare
53cee2e to
b9875a7
Compare
jgoux
previously approved these changes
May 14, 2026
jgoux
approved these changes
May 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Follow-up dependency cleanup that was intentionally deferred from the pnpm migration (#2368) to keep that PR scope-focused. Batches five cohesive items: replacing a sabotaged package, removing dead deps, normalizing version placeholders, an EOL ESLint upgrade with a flat-config migration, and an Expo SDK bump that lets us drop a pnpm workaround.
What changed?
1. Replace
fakerwith@faker-js/fakerThe original
fakerpackage was sabotaged by its maintainer in January 2022 and is unmaintained. Swapped for the community fork@faker-js/faker(v10.4). The only consumer ispackages/core/auth-js/test/lib/utils.ts, which needed three API renames:import faker from 'faker'toimport { faker } from '@faker-js/faker'faker.random.alphaNumeric(N)tofaker.string.alphanumeric(N)(3 call sites)faker.image.imageUrl()tofaker.image.url()(1 call site)@types/fakeris also removed since@faker-js/fakerships its own types.2. Remove unused
webpack-cliZero consumers in the repo: no
webpack.config.*, no scripts invoke webpack, no source imports. Leftover from before the Nx + tsdown + vite migration.3. Normalize
versionplaceholders to0.0.0-automatedauth-jsandstorage-jshad"version": "0.0.0"in bothpackage.jsonandsrc/lib/version.ts, while the other four core packages used"0.0.0-automated". Cosmetic only sincenx releaseoverwrites both at publish time, but it affects theX-Client-Infoheader value in pkg.pr.new preview builds.4. Upgrade ESLint 8 to 10 and migrate to flat config
ESLint 8 reached EOL in October 2024. Bumps and a flat-config migration:
eslint:^8.57.1to^10.0.1@typescript-eslint/eslint-pluginandparser:^7.18.0to^8.21.0(v7 only supports ESLint 8)typescript-eslint,@eslint/js,globalsto support the new flat configseslint-plugin-node(abandoned since 2020;eslint-plugin-nalready present)/.eslintrc.jsontoeslint.config.mjs,packages/core/auth-js/.eslintrc.jsontoeslint.config.mjs, andpackages/core/realtime-js/.eslintrctoeslint.config.mjs(the last also drops the deprecatedbabel-eslintparser)nx.jsonso thelintingnamed input picks upeslint.config.mjsfor cache invalidationnx lintis not wired into CI in this PR. Lint targets exist forauth-jsandrealtime-jsvia@nx/eslint/pluginauto-detection, but invoking them surfaces a pile of latent rule violations that would need their own triage pass. Enabling lint in CI and clearing the violations is a follow-up.5. Bump Expo SDK 53 to 54 and remove the pnpm
transformIgnorePatternsworkaroundThe pnpm migration added a regex lookahead in
packages/core/supabase-js/test/integration/expo/package.jsonto handle pnpm's.pnpm/directory layout in Jest. Newerjest-expoversions (Expo SDK 54+) are pnpm-aware out of the box, so the workaround is gone:Pin bumps for
expo,expo-router, allexpo-*modules,react/react-dom/react-native,jest-expo,react-test-renderer,eslint-config-expo, and related react-native ecosystem deps.Why was this change needed?
Reduces the attack surface (sabotaged
faker, EOLeslint@8), drops dead code (webpack-cli), and modernizes the ESLint config so a future CI lint pass can be enabled without first migrating off legacy config formats. Removes a workaround that newer Expo no longer requires.