<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aman Gupta</title>
    <description>The latest articles on DEV Community by Aman Gupta (@amangupta678).</description>
    <link>https://dev.to/amangupta678</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4141839%2Fc23eabc9-4714-48fb-8e98-ff0c1e54f6f3.jpg</url>
      <title>DEV Community: Aman Gupta</title>
      <link>https://dev.to/amangupta678</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amangupta678"/>
    <language>en</language>
    <item>
      <title>Flutter's default targetSdk and the Google Play floor: what warnahead 0.2 reads</title>
      <dc:creator>Aman Gupta</dc:creator>
      <pubDate>Sun, 29 Nov 2026 07:38:14 +0000</pubDate>
      <link>https://dev.to/amangupta678/flutters-default-targetsdk-and-the-google-play-floor-what-warnahead-02-reads-5703</link>
      <guid>https://dev.to/amangupta678/flutters-default-targetsdk-and-the-google-play-floor-what-warnahead-02-reads-5703</guid>
      <description>&lt;p&gt;Google Play has required new apps and app updates to target API 36 since August 31, 2026; the extension Google offered on request ran until November 1, 2026. If your app is a Flutter app that keeps the line of Flutter's Android template, &lt;code&gt;targetSdk = flutter.targetSdkVersion&lt;/code&gt;, the number that decides this is not in your repository at all: the target API level is whatever the Flutter SDK on the build machine says it is. Upgrade Flutter and it moves; build on a machine with an older Flutter and it moves back.&lt;/p&gt;

&lt;p&gt;I build warnahead, a CLI and a GitHub Action that read a mobile app repository and work out which platform deadlines apply to it. Up to 0.1, warnahead answered Unknown for every Flutter app that leaves targetSdk to the Flutter default, because it could not see which Flutter would build the app. Version 0.2 adds that detection, plus a few other mobile checks it groups as "deeper mobile". This post is about what it reads now, and about what it still cannot tell.&lt;/p&gt;

&lt;h2&gt;
  
  
  Flutter: which Flutter builds your app
&lt;/h2&gt;

&lt;p&gt;warnahead 0.2 looks for the Flutter version that builds the Android app: an &lt;code&gt;.fvmrc&lt;/code&gt; file (or FVM's older &lt;code&gt;fvm_config.json&lt;/code&gt;), or the version a CI job that builds Android pins, as in &lt;code&gt;flutter-action&lt;/code&gt;. It then looks up the default targetSdk of that Flutter release in a table it keeps from the Flutter source, and compares it with Google Play's floors.&lt;/p&gt;

&lt;p&gt;If you pin Flutter in neither place, the answer stays Unknown, with the reason: "no .fvmrc or Android build in CI pins a Flutter version". A CI job that follows the stable channel is Unknown too, because stable moves with every Flutter release.&lt;/p&gt;

&lt;p&gt;A few other cases stay Unknown as well. warnahead reads a version from a plain &lt;code&gt;env:&lt;/code&gt; value of the workflow or the job, but not one that comes from a secret or a repository variable, and none of a job's env values when one of its steps writes to &lt;code&gt;GITHUB_ENV&lt;/code&gt;. Two pins give Unknown when their Flutter releases have different default targetSdk values, and so does a package's example app, which may never be published. If the README points to F-Droid or GitHub Releases for the Android build and not to Google Play, warnahead does not assume the app is on Google Play: a finding it would report becomes Unknown, and the reason says so.&lt;/p&gt;

&lt;p&gt;A version pinned only in CI is a hint of what ships, not proof, so that result stays inferred: it shows, but opens no issue. An FVM file is the project's own choice, so with Google Play evidence (see below) the result can be certain, but only if it pins an exact release of Flutter 3.38 or later that warnahead's table has read, not a newer patch or release. The table's rows up to Flutter 3.35 are inferred, and so is any result from them. Every release that defaults below API 36 is 3.32 or older, so in 0.2 a Flutter app on the default below the API 36 or API 35 floor is always an inferred hint and opens no issue. A certain Flutter finding below a floor can only come from the API 37 check.&lt;/p&gt;

&lt;p&gt;How often is the version pinned? I ran warnahead 0.2 over the 155 public repositories of its last blind test, picked by kind (Flutter, Expo, native iOS, apps for Wear OS, TV, Automotive and XR, and iOS apps with an upload step in CI). The sample leans to those kinds on purpose; it is not a survey of all apps. Among the repositories with a Flutter Android app on the Flutter default, warnahead could give an answer for about 6 of 26: about 5 of 26 meet the API 36 floor by what it read, and about 1 of 26 is below it, as an inferred result. None of these answers is a certain finding yet. The rest, about 20 of 26, stay Unknown, and not all for the same reason. I counted each of them once, by the first reason that applies. About 6 of 20 are Unknown only because nothing pins a Flutter version. In about 6 of 20, the README names F-Droid or GitHub Releases rather than Google Play. In about 4 of 20, CI follows the stable channel, and about 3 of 20 are example apps of a package. In about 1 of 20, the version comes from an env variable that warnahead cannot read from the files. Counting the ones that also have another reason, about 8 of 20 pin nothing. If a missing pin is the only reason, pinning an exact Flutter version can get you an answer. Only an &lt;code&gt;.fvmrc&lt;/code&gt; pin of Flutter 3.38 or later, with &lt;code&gt;stores&lt;/code&gt;, can make it certain.&lt;/p&gt;

&lt;p&gt;The next floor is already announced: Google says new and updated apps must target API 37 in August 2027 (no day published yet). No Flutter release defaults to it yet, so every Flutter app on the default that warnahead could answer for at API 37, about 6 of 26, is below it. Most of those results are inferred, so read them as a hint to check. They are also not exactly the same apps as the ones it could answer for at API 36.&lt;/p&gt;

&lt;h2&gt;
  
  
  Native iOS projects: which targets build for iOS
&lt;/h2&gt;

&lt;p&gt;For native iOS projects, 0.2 reads the Xcode project file to see what each application target builds for. A project whose application targets all build for macOS is no longer checked as an iOS app, so the App Store iOS floors no longer show for it. A project with an iOS target beside a macOS one keeps its findings, and a project file it cannot read is still treated as iOS. This does not add a new deadline for native iOS apps; it removes findings that should not have been there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Uploads count, test builds do not
&lt;/h2&gt;

&lt;p&gt;Apple's next SDK floor is about what you upload: starting April 2027, iOS apps uploaded to App Store Connect must be built with the iOS 27 SDK or later, which comes with Xcode 27. A CI job that builds for the simulator or runs tests uploads nothing, so it should not decide this. In 0.2 the App Store SDK floors are certain only for a build path that uploads: a CI job or fastlane lane that builds for a device and sends the build to TestFlight or App Store Connect, an EAS store profile, or a Codemagic or Bitrise workflow that publishes to App Store Connect. Without a visible upload path the result is Unknown, never "not affected".&lt;/p&gt;

&lt;p&gt;In the sample, at least 6 of 109 repositories with an iOS app upload with an Xcode older than Xcode 27 today, which is allowed until the floor starts. About 29 of 109 are affected if you count the inferred results, which rest on a default, such as an Expo SDK's default EAS image that Expo can change. Read inferred as a hint to check, not as a finding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Google Play findings need Google Play evidence
&lt;/h2&gt;

&lt;p&gt;A Google Play finding is now certain only when something shows the app is on Google Play: &lt;code&gt;stores&lt;/code&gt; in &lt;code&gt;.warnahead.json&lt;/code&gt;, an EAS submit profile with an Android part or &lt;code&gt;eas submit&lt;/code&gt;, fastlane &lt;code&gt;supply&lt;/code&gt;, the Play upload action, or a README link to the app's own Google Play listing. Without that, the finding still shows, with "if you publish to Google Play", but the Action opens no issue for it and it never fails a build. If you publish to Google Play and see that line, set &lt;code&gt;stores&lt;/code&gt;. That settles the Google Play question; a Flutter result that rests on a CI pin or on Flutter 3.35 or older is never certain, even then. An issue that is already open stays open.&lt;/p&gt;

&lt;h2&gt;
  
  
  Smaller checks in the same area
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Apps whose manifest requires Wear OS, TV, Automotive or XR are checked against their own target API floors. For such an app, the phone and tablet floor now shows Unknown instead of certain, the Flutter phone floors do not apply, and an open issue for it stays open.&lt;/li&gt;
&lt;li&gt;Google Play says that starting February 1, 2027, app updates that target API 35 or higher and do not support 16 KB memory pages on 64-bit devices cannot be released. The files of a repository rarely show this, so the result is mostly Unknown: it was Unknown for about 93 of 98 sample repositories with an Android app that this rule covers. Build your release app and run &lt;code&gt;npx warnahead --check-binaries&lt;/code&gt; to read its native libraries; the Action never reads binaries.&lt;/li&gt;
&lt;li&gt;GitHub removed NDK 26 from its runner images, and NDK 28 from its Ubuntu and Windows images. If your app pins one of them and a CI job builds it on such an image, warnahead warns. Gradle can install a missing NDK during the build when its license is accepted; otherwise the build can fail. warnahead only warns about it and never fails your job for it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How it is switched on
&lt;/h2&gt;

&lt;p&gt;The Flutter, form-factor, 16 KB and NDK checks belong to a new area, &lt;code&gt;deeper-mobile&lt;/code&gt;. The CLI and the job summary show every area. The Action opens, updates or closes issues for this area, and lets it fail the job, only when your workflow names it in the &lt;code&gt;areas&lt;/code&gt; input. Even then, an issue opens only for a certain finding whose deadline is near: the Google Play checks need Google Play evidence such as &lt;code&gt;stores&lt;/code&gt; to be certain, the Flutter checks also need an &lt;code&gt;.fvmrc&lt;/code&gt; pin of Flutter 3.38 or later, and the NDK checks only warn. The changed rules for uploads, Google Play evidence and macOS projects are not part of that area: they apply to everyone who moves to the new version.&lt;/p&gt;

&lt;h2&gt;
  
  
  How wrong it was
&lt;/h2&gt;

&lt;p&gt;Before this release, the results of the new and changed rules were checked on a fresh blind sample of repositories. Two separate Claude sessions, the AI assistant I build with, read each result against the repository's files at the pinned commit. They agreed on all but one of the 48 results that count below; a third reading, which was not blind, settled that one. It was the fifth such sample for this version; the first four found mistakes, and the fixes for them are in this release.&lt;/p&gt;

&lt;p&gt;In the fifth, none of the 48 results it measured was wrong. That needed a second look at one group: on the first reading, 3 of the 17 Google Play results were marked wrong, because those apps upload to Google Play but are not publicly listed. I read Google's rule for updates as covering any upload to Google Play, on any track, so after the fifth round I changed the labelling rule to that reading, and two fresh sessions labelled that group again under it. The inferred results were not part of the measure, and 5 of the 11 inferred results were wrong. Inferred results never open an issue.&lt;/p&gt;

&lt;p&gt;These samples are small. They check that warnahead read the files right, not what Google or Apple will enforce, and they cover the new and changed rules only. They are not an error rate for everything warnahead reports.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;CLI: &lt;code&gt;npx warnahead&lt;/code&gt; (Node.js 22.13 or later)&lt;/li&gt;
&lt;li&gt;GitHub Action: &lt;code&gt;uses: warnahead/action@v0&lt;/code&gt;, with &lt;code&gt;areas: deeper-mobile&lt;/code&gt; so the new checks may open issues (and &lt;code&gt;stores&lt;/code&gt; in &lt;code&gt;.warnahead.json&lt;/code&gt; if you publish to Google Play)&lt;/li&gt;
&lt;li&gt;Every deadline in the dataset, each with its source: &lt;a href="https://warnahead.pages.dev" rel="noopener noreferrer"&gt;https://warnahead.pages.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Corrections and missing deadlines: &lt;a href="https://github.com/warnahead/action/issues" rel="noopener noreferrer"&gt;https://github.com/warnahead/action/issues&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;warnahead is an aid, not a guarantee: check the linked official source before you rely on a result. Not affiliated with or endorsed by Google, Apple, Expo or GitHub.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I wrote this post with help from Claude, an AI assistant. Every repository count in it comes from a recorded run, every platform date and requirement is in warnahead's dataset with its source, and I reviewed the text before publishing.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>android</category>
      <category>googleplay</category>
      <category>mobile</category>
    </item>
    <item>
      <title>Linting dashboards against the code that feeds them</title>
      <dc:creator>Aman Gupta</dc:creator>
      <pubDate>Sat, 28 Nov 2026 05:02:58 +0000</pubDate>
      <link>https://dev.to/amangupta678/linting-dashboards-against-the-code-that-feeds-them-384h</link>
      <guid>https://dev.to/amangupta678/linting-dashboards-against-the-code-that-feeds-them-384h</guid>
      <description>&lt;p&gt;A dashboard tile can be broken in a way neither side shows. The chart draws a plausible zero or a single "(none)" bucket, and the code passes review. The bug lives between the two.&lt;/p&gt;

&lt;p&gt;I found that out on a production app I run. A sharing dashboard of 23 tiles had 4 that could show a real number. Nobody noticed for 7 weeks. One instrumentation commit, adding properties at call sites that already had the data, took it to 10.&lt;/p&gt;

&lt;p&gt;So I built dashlint to find that kind of tile. Here's how it works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four ways my tiles broke
&lt;/h2&gt;

&lt;p&gt;Each of these was a small mismatch between the query and the tracking call:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dashboard asked for&lt;/th&gt;
&lt;th&gt;Code sent&lt;/th&gt;
&lt;th&gt;What the tile showed&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;a breakdown by &lt;code&gt;category&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;category_id&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;one "(none)" bucket&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;a filter on "Trending"&lt;/td&gt;
&lt;td&gt;"trending"&lt;/td&gt;
&lt;td&gt;zero&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;feed_tab_changed&lt;/code&gt; for everyone&lt;/td&gt;
&lt;td&gt;the event from mobile only&lt;/td&gt;
&lt;td&gt;a mobile number read as all users&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;an alert on &lt;code&gt;referral_invite_shared&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;nothing, the event was no longer sent&lt;/td&gt;
&lt;td&gt;an alert that couldn't warn anyone&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;None of these throws an error anywhere. PostHog answers the query it was given, correctly.&lt;/p&gt;

&lt;h2&gt;
  
  
  What dashlint does
&lt;/h2&gt;

&lt;p&gt;dashlint is a CLI and a GitHub Action. It has two inputs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A catalog of your analytics calls.&lt;/strong&gt; It uses the TypeScript compiler's type checker on your TypeScript or JavaScript code to find calls on the PostHog, Mixpanel, Amplitude and Segment SDKs (web and React Native), and records the event name, the property keys and, where the code only allows a fixed set, the values.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A snapshot of your dashboards.&lt;/strong&gt; &lt;code&gt;dashlint pull&lt;/code&gt; reads saved insights, dashboards and alerts from PostHog with a read-only key and writes &lt;code&gt;dashlint.requirements.json&lt;/code&gt;, which you commit. For any other dashboard tool you write the same requirements by hand in YAML.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then it checks each tile and gives it a verdict: dead, partly dead, degraded, one platform, not checked, or live, with the reason and the line of code behind it.&lt;/p&gt;

&lt;p&gt;It checks the property filters, filter values and breakdowns of each tile against the calls your code makes: a filter on a property no call sends, a value the code can't produce, a breakdown that collapses into one "(none)" bucket, a negative filter with no effect. PostHog's dead-insight scout covers event firings and, in its instructions as of November 2026, says property filters, cohorts and breakdowns are "outside this check", so the two are complementary.&lt;/p&gt;

&lt;p&gt;Each tile also shows which platforms (web, iOS, Android) can send its data, read from the code before release.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it on the demo
&lt;/h2&gt;

&lt;p&gt;The demo repo is a small fictional bookshop with a web app and a mobile app, a few tiles broken on purpose, and a committed snapshot of its dashboards. No account and no key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/dashlint/demo.git
&lt;span class="nb"&gt;cd&lt;/span&gt; demo
npx @dashlint/cli audit --offline
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiedrhfwhmaum3tcfwcta.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiedrhfwhmaum3tcfwcta.gif" alt="dashlint audit --offline running on the demo repo" width="800" height="1360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two of the tiles it reports:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DEAD          Book views by genre
              filters on `genre` = "mystery", but no call site sends `genre` with `book_viewed`
              (they send `genre_id`), and PostHog has never seen `genre` on that event
              web/src/App.tsx:25

DEAD          Gift card redemptions
              (alert "Gift card redemptions dropped" can never fire; alert "Gift card redemptions
              below one" fires on every check)
              queries `gift_card_redeemed`: no code sends it and PostHog has never seen it; closest
              event in code: `giftcard_redeemed`
              web/src/App.tsx:74
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It also writes &lt;code&gt;dashlint-report.html&lt;/code&gt; with every tile, its verdict and the query path behind it.&lt;/p&gt;

&lt;p&gt;On your own repo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @dashlint/cli init
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;DASHLINT_POSTHOG_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;phx_your_read_only_key
npx @dashlint/cli pull
npx @dashlint/cli audit --offline
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Between &lt;code&gt;init&lt;/code&gt; and &lt;code&gt;pull&lt;/code&gt;, open the &lt;code&gt;dashlint.config.yml&lt;/code&gt; that &lt;code&gt;init&lt;/code&gt; wrote, uncomment its &lt;code&gt;platforms&lt;/code&gt; block and set your PostHog project id. The key is read from the environment variable the config names, never from the config file, and never printed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Alerts on dead events
&lt;/h2&gt;

&lt;p&gt;An alert on an event your code never sends can't warn you, and it doesn't look broken. In a test PostHog project in November 2026, alerts on an event nothing sends showed "Not firing" with no error on every hourly check when they watched for a decrease or an upper limit, and fired on every check when they had a lower limit. dashlint checks each alert's insight and condition against your code and flags both cases, plus alerts that point at a series or step the insight no longer has.&lt;/p&gt;

&lt;h2&gt;
  
  
  In CI
&lt;/h2&gt;

&lt;p&gt;The Action runs &lt;code&gt;dashlint diff&lt;/code&gt; on every pull request. It builds the catalog for the base and head commits, checks both against the committed snapshot, and comments on the tiles and alerts the change would newly break:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# .github/workflows/dashlint.yml
&lt;/span&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dashlint&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pull_request&lt;/span&gt;
&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
  &lt;span class="na"&gt;pull-requests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;dashlint&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v4&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;fetch-depth&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm ci --ignore-scripts&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dashlint/action@v0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's deterministic and needs no analytics key in CI, because the snapshot is a file in the repo. Tiles that were already dead are mentioned but never block a merge; only newly broken ones fail the check. Rename &lt;code&gt;gift_card_redeemed&lt;/code&gt; in a pull request and the comment names the tiles that rename takes down.&lt;/p&gt;

&lt;h2&gt;
  
  
  Unknown is an answer
&lt;/h2&gt;

&lt;p&gt;Static analysis of analytics code hits plenty of cases it can't decide. Event names get built at run time, properties get spread from objects of unknown shape, and SQL insights are their own world. Facts in dashlint are yes, no or unknown. Only a definite "no" makes a tile dead; when it can't tell, it says "not checked" with the reason and counts it, and unknown counts are always printed. Same input, same verdicts.&lt;/p&gt;

&lt;p&gt;I measured it on real code. On 64 public repositories across the four SDK families, dashlint read a literal event name at 95.9% of the call sites it found, with 0 crashes. In blind samples of 100 facts it reported, 1 was wrong.&lt;/p&gt;

&lt;p&gt;In the CLI, only &lt;code&gt;pull&lt;/code&gt; touches the network, with read-only requests to PostHog. Everything else runs offline, there's no telemetry, and your source code never leaves your machine. It's free per run.&lt;/p&gt;

&lt;p&gt;A clean result means nothing dashlint can see is broken, not that every number is right.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Repo and docs: &lt;a href="https://github.com/dashlint/dashlint" rel="noopener noreferrer"&gt;https://github.com/dashlint/dashlint&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;The rules for every check: &lt;a href="https://github.com/dashlint/dashlint/blob/main/docs/checks.md" rel="noopener noreferrer"&gt;https://github.com/dashlint/dashlint/blob/main/docs/checks.md&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Demo: &lt;a href="https://github.com/dashlint/demo" rel="noopener noreferrer"&gt;https://github.com/dashlint/demo&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub Action: &lt;a href="https://github.com/dashlint/action" rel="noopener noreferrer"&gt;https://github.com/dashlint/action&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;npm: &lt;a href="https://www.npmjs.com/package/@dashlint/cli" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@dashlint/cli&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MIT licensed. If it gets a tile wrong on your app, in either direction, please open an issue.&lt;/p&gt;

&lt;p&gt;Not affiliated with or endorsed by PostHog, Mixpanel, Amplitude or Twilio Segment.&lt;/p&gt;

&lt;p&gt;AI disclosure: dashlint and this post were built and drafted with Claude, an AI assistant, working from my design and my measurements. I reviewed and edited the text and stand behind every claim in it.&lt;/p&gt;

</description>
      <category>analytics</category>
      <category>posthog</category>
      <category>typescript</category>
      <category>opensource</category>
    </item>
    <item>
      <title>April 2027: the App Store floor your build image may not meet</title>
      <dc:creator>Aman Gupta</dc:creator>
      <pubDate>Sat, 28 Nov 2026 04:07:07 +0000</pubDate>
      <link>https://dev.to/amangupta678/april-2027-the-app-store-floor-your-build-image-may-not-meet-1eh5</link>
      <guid>https://dev.to/amangupta678/april-2027-the-app-store-floor-your-build-image-may-not-meet-1eh5</guid>
      <description>&lt;p&gt;Apple has set its next App Store floor. Starting April 2027, iOS and iPadOS apps uploaded to App Store Connect must be built with the iOS 27 and iPadOS 27 SDK or later, and they must "target iOS 15 or later". Apple announced the SDK floor on its developer news page, and its "Submitting to the App Store" page states both requirements. tvOS, visionOS and watchOS apps need their own 27 SDKs too; this post is about iOS.&lt;/p&gt;

&lt;p&gt;Nothing in your repository has to change for this to stop a release. The upload that worked last week is refused because the SDK it was built with is too old, or because the app still says it runs on an iOS that Apple no longer accepts. You find out on the day you try to ship a fix.&lt;/p&gt;

&lt;p&gt;I build warnahead, a CLI and a GitHub Action that read a mobile app repository and work out which platform deadlines apply to it. When I launched it I wrote about Google Play's target API rule and GitHub's runner retirements. This post is about the two Apple rules, because they are easy to miss in an Expo or React Native project: the Xcode that builds your app and the iOS version it targets are usually not written where you would look.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two rules, two different places to look
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The SDK floor is about the Xcode that builds the upload.&lt;/strong&gt; The iOS 27 SDK ships with Xcode 27, so the build you upload needs Xcode 27 or later. In a React Native project that Xcode is chosen by your build setup, not by your code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;on EAS Build, by the &lt;code&gt;image&lt;/code&gt; in your &lt;code&gt;eas.json&lt;/code&gt; profile, or, if you set none, by the default image for your Expo SDK&lt;/li&gt;
&lt;li&gt;on GitHub Actions, by the macOS runner label and any Xcode selection step in the job&lt;/li&gt;
&lt;li&gt;on Codemagic or Bitrise, by the Xcode setting in their config file&lt;/li&gt;
&lt;li&gt;on your own Mac, by whatever &lt;code&gt;xcode-select&lt;/code&gt; points at, a &lt;code&gt;.xcode-version&lt;/code&gt; file, or fastlane&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The iOS 15 minimum is about your deployment target.&lt;/strong&gt; Apple's words are "target iOS 15 or later"; warnahead reads that as the deployment target, the lowest iOS your app says it runs on. For a bare React Native app that is &lt;code&gt;platform :ios&lt;/code&gt; in the Podfile and &lt;code&gt;IPHONEOS_DEPLOYMENT_TARGET&lt;/code&gt; in the Xcode project. For an Expo app with Continuous Native Generation there is no &lt;code&gt;ios/&lt;/code&gt; folder: the value comes from an &lt;code&gt;expo-build-properties&lt;/code&gt; override if you set one, and otherwise from the default of your Expo SDK.&lt;/p&gt;

&lt;p&gt;warnahead reads the ones that live in the repository: the &lt;code&gt;eas.json&lt;/code&gt; profiles and your Expo SDK, the runner labels and Xcode selection steps in your workflows, Codemagic and Bitrise files, a &lt;code&gt;.xcode-version&lt;/code&gt; file and fastlane, the Podfile, and &lt;code&gt;expo-build-properties&lt;/code&gt;. It does not read Xcode project build settings, so for a bare app it checks the Podfile only, and it cannot see the Xcode on your own Mac or a CI service it does not know. When a value is set somewhere a static read cannot follow, such as a dynamic &lt;code&gt;app.config.ts&lt;/code&gt; or an Xcode version picked from a workflow input, it marks the finding Unknown and says why, instead of guessing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it found in public repositories
&lt;/h2&gt;

&lt;p&gt;On November 24, 2026 I re-ran warnahead over the same 120 public Expo and React Native app repositories I used for the launch post, at the commits I pinned when I picked them, with the scan's date set to November 26, 2026. One repository could not be cloned; warnahead scanned the other 119 without a crash, and 113 of them have an iOS app that is not an example app. Part of this sample was used to tune warnahead before launch, so treat it as a check of the tool's reading, not an independent test.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Xcode.&lt;/strong&gt; The tool marked a lot of repositories as certain here, so I read every one of those by hand before quoting anything. Many were builds where I found no upload step: unsigned simulator builds for CI, test jobs, a build uploaded to a GitHub release, and one Android job that happens to run on a macOS runner. The floor only applies to uploads, so I left them out. That is also a limit of warnahead itself: for this rule it does not yet tell a build that uploads from one that does not, so it reports those simulator and test builds too, and most of its certain Xcode findings in this sample were of that kind. Read its Xcode findings with that in mind. Two more only pin an old Xcode in a &lt;code&gt;.xcode-version&lt;/code&gt; file and I found no upload job, so I did not count them either. What is left:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;at least 9 of 113 repositories with an iOS app have a build set up for the App Store with an Xcode older than Xcode 27: a CI job that, as written, sends the build to TestFlight or App Store Connect, or an EAS profile that can make a store build and pins an Xcode 26 image. I read the files; I cannot see how often those builds run.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two other groups are not lower bounds, and I did not check them by hand:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;about 26 of 113 have EAS build profiles with no image pinned, so their Xcode is whatever the default image of their Expo SDK carries. In warnahead's table of Expo SDK defaults, every stable SDK's default image has an Xcode before Xcode 27; only the prerelease of the next SDK has Xcode 27. Expo sets those defaults and can change them, so warnahead marks these as inferred, not certain, and I did not check which of these builds upload.&lt;/li&gt;
&lt;li&gt;for about 39 of 113 warnahead could not tell which Xcode builds the app, so they are Unknown. Almost always the reason is that no build setup naming an Xcode is in the repository, which is what you see when the app is built on a developer's Mac or on a CI service warnahead does not read; a few take the Xcode version from a variable, or have a lockfile warnahead could not parse.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Deployment target.&lt;/strong&gt; At least 4 of 113 set a deployment target below iOS 15. I checked each by hand: the Podfile and the Xcode project both resolve to a value below 15.0. I did not check whether these four upload to the App Store. For about 63 of 113 the answer is Unknown; the most common reason is a dynamic &lt;code&gt;app.config.js&lt;/code&gt; or &lt;code&gt;app.config.ts&lt;/code&gt;, which warnahead does not run unless you pass &lt;code&gt;--eval-config&lt;/code&gt; (that flag runs your app config code). For every Expo SDK in warnahead's table, an app with no &lt;code&gt;ios/&lt;/code&gt; folder and no override gets a default of iOS 15 or later; all four of these have a committed iOS project.&lt;/p&gt;

&lt;p&gt;The upload count and the deployment-target count are lower bounds over a small public sample, not a survey of all apps. At launch I measured 2 false positives in a blind sample of 50 findings, about 4.0%, and that was the fourth such sample; that sample was not drawn for these two Apple rules, which is why I read their certain findings by hand. None of these repositories are named here, and none will be.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do before April
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Find the build that uploads. Check the &lt;code&gt;ios&lt;/code&gt; section of the profiles you submit from in &lt;code&gt;eas.json&lt;/code&gt;, the runner label and Xcode step of the workflow that uploads, or your fastlane lane. Simulator and test builds can wait.&lt;/li&gt;
&lt;li&gt;Move that build to Xcode 27, and test it first: an older Expo SDK or React Native version may not build cleanly with a new Xcode. On EAS, set the profile's &lt;code&gt;image&lt;/code&gt; to a stable image with Xcode 27 or later from Expo's list of build images (not a prerelease alias), or, once a stable Expo SDK's default image has it, move to that SDK. On GitHub Actions, check which runner labels carry Xcode 27: in warnahead's runner table, only preview labels have it installed so far, and the standard macOS labels do not.&lt;/li&gt;
&lt;li&gt;Raise the deployment target to 15.0 or later: in &lt;code&gt;expo-build-properties&lt;/code&gt;, or in both the Podfile and the Xcode project for a bare app.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;npx warnahead&lt;/code&gt; in the repository root to see what it reads for your app, and pass &lt;code&gt;--eval-config&lt;/code&gt; if your Expo config is dynamic, so fewer answers come back Unknown.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;While you are in the workflow file: GitHub retires the ubuntu-22.04 runner images on April 17, 2027, with brownouts that fail some jobs before then. I covered that one in the launch post.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;CLI: &lt;code&gt;npx warnahead&lt;/code&gt; (Node.js 22.13 or later)&lt;/li&gt;
&lt;li&gt;GitHub Action: &lt;code&gt;uses: warnahead/action@v0&lt;/code&gt;, which opens an issue in your repository once a deadline it is certain about is near, so inferred findings like the EAS default image do not open one; for this Xcode rule, certain can still mean a simulator or test build, as above&lt;/li&gt;
&lt;li&gt;Every deadline with its source, plus a calendar feed: &lt;a href="https://warnahead.pages.dev" rel="noopener noreferrer"&gt;https://warnahead.pages.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Corrections and missing deadlines: &lt;a href="https://github.com/warnahead/action/issues" rel="noopener noreferrer"&gt;https://github.com/warnahead/action/issues&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;warnahead is an aid, not a guarantee: check the linked official source before you rely on a result. Not affiliated with or endorsed by Google, Apple, Expo or GitHub.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I wrote this post with help from Claude, an AI assistant. Every repository count in it comes from a recorded run, the upload and deployment-target counts were also checked by hand, every platform date and requirement is in warnahead's dataset with its source, and I reviewed the text before publishing.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>expo</category>
      <category>android</category>
      <category>ios</category>
    </item>
    <item>
      <title>Your app can stop shipping on a date nobody put in your calendar</title>
      <dc:creator>Aman Gupta</dc:creator>
      <pubDate>Tue, 24 Nov 2026 18:45:00 +0000</pubDate>
      <link>https://dev.to/amangupta678/your-app-can-stop-shipping-on-a-date-nobody-put-in-your-calendar-5d01</link>
      <guid>https://dev.to/amangupta678/your-app-can-stop-shipping-on-a-date-nobody-put-in-your-calendar-5d01</guid>
      <description>&lt;p&gt;A Play Console email says your app updates will be blocked. An Apple notice says uploads need a newer Xcode. A GitHub changelog post retires the runner image your release workflow runs on. Each of these lands on a date, and none of them needs anyone to change a line of your code.&lt;/p&gt;

&lt;p&gt;I kept a hand-made list of these dates for my own apps. It went stale every few months, and the dates were the easy part. The hard part was knowing which ones applied to which app.&lt;/p&gt;

&lt;p&gt;So I built warnahead: a CLI and a GitHub Action that read a mobile app repository and work out which platform deadlines apply to that app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "does this apply to me?" is hard
&lt;/h2&gt;

&lt;p&gt;Take Google Play's target API rule. Since August 31, 2026, new apps and app updates must target API level 36 or higher to be submitted, and the extension window ended on November 1, 2026. In an Expo app that uses Continuous Native Generation there is no &lt;code&gt;android/&lt;/code&gt; folder to look at. The value that ships comes from an &lt;code&gt;expo-build-properties&lt;/code&gt; override if you set one, from any other config plugin that changes it, and otherwise from the defaults of your Expo SDK. A check that reads only committed native files has nothing to read. warnahead reads the override and the SDK default, and marks the target Unknown when a config plugin in your repository may change it.&lt;/p&gt;

&lt;p&gt;iOS has the same shape. Since April 28, 2026, uploads to App Store Connect must be built with Xcode 26 or later. Which Xcode builds your app depends on your EAS image, your GitHub runner label and any Xcode selection step, a &lt;code&gt;.xcode-version&lt;/code&gt; file, fastlane, Codemagic or Bitrise.&lt;/p&gt;

&lt;p&gt;And CI moves under you. GitHub retires the ubuntu-22.04 runner images on April 17, 2027. Node 20 is gone from GitHub runners already, so actions that still declare it now run on Node 24, whether or not they were tested on it.&lt;/p&gt;

&lt;p&gt;Dates like these also end up typed into scripts and checks, and they go stale the next time a platform raises the floor. I think they belong in a maintained dataset where every date has a source.&lt;/p&gt;

&lt;h2&gt;
  
  
  What warnahead does
&lt;/h2&gt;

&lt;p&gt;Run this in the root of your repository (Node.js 22.13 or later):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx warnahead
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It reads your Expo or React Native project, your Gradle and Xcode settings and your CI workflows, and checks them against a dataset of announced deadlines: Google Play target API levels, App Store SDK floors, GitHub Actions runner retirements, Node.js and React Native end of life, and Play Billing Library versions.&lt;/p&gt;

&lt;p&gt;Each due finding gives:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the date and the requirement&lt;/li&gt;
&lt;li&gt;the file and line the finding is based on&lt;/li&gt;
&lt;li&gt;the fix for your setup&lt;/li&gt;
&lt;li&gt;the official source and the date the entry was last verified&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The page for each deadline on the site says what happens on the date and quotes the source.&lt;/p&gt;

&lt;p&gt;The report shows findings in three groups; deadlines further out are only counted, and &lt;code&gt;--all&lt;/code&gt; lists them. &lt;strong&gt;Due&lt;/strong&gt; is announced and coming up, or already passed. &lt;strong&gt;Expected&lt;/strong&gt; is likely but not announced yet, shown with the basis for the estimate, and it never fails a build. &lt;strong&gt;Unknown&lt;/strong&gt; is where warnahead could not resolve a value; it says so and gives the reason instead of guessing. A clean result means nothing warnahead can detect, not that nothing is due.&lt;/p&gt;

&lt;p&gt;The GitHub Action can run the same scan on a schedule. It opens an issue once a deadline it is certain about is near, comments again as the date gets closer, and closes the issue when the fix lands. There is also a calendar feed and a page per deadline on the site.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8z7fqebv6yjl6r8nse6e.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8z7fqebv6yjl6r8nse6e.gif" alt="Terminal recording: npx warnahead scanning a small Expo app and listing the deadlines that apply to it" width="800" height="330"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it found in public repositories
&lt;/h2&gt;

&lt;p&gt;Before launch I ran it over 120 public Expo and React Native app repositories: no forks, no templates or demos, each with a push in the 12 months before I picked them. The run was on November 21, 2026, over each repository at the commit I pinned when I picked it, with the scan's date set to November 28, 2026 (the &lt;code&gt;--as-of&lt;/code&gt; option). One repository could no longer be found upstream, so it could not be cloned; warnahead scanned the other 119 (100 Expo, 19 bare React Native) without a crash.&lt;/p&gt;

&lt;p&gt;The numbers below count only findings warnahead was certain about, so they are lower bounds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;at least 7 of 112 repositories with an Android app target below API level 36, which Google Play no longer accepts for app updates&lt;/li&gt;
&lt;li&gt;at least 6 of 112 are below the separate, lower floor for existing apps, below which Play does not show an app to new users on newer Android versions&lt;/li&gt;
&lt;li&gt;at least 9 of 119 run CI jobs on ubuntu-22.04, which GitHub retires on April 17, 2027&lt;/li&gt;
&lt;li&gt;at least 51 of 119 use actions that declare node20; that is a warning, not a break, since GitHub runs them on Node 24 anyway&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Many repositories landed in Unknown for at least one of these, which is the honest answer when a value is set somewhere a static read cannot follow. A blind sample of 50 findings, from repositories I had not tuned on, had 2 false positives, about 4.0%. That was the fourth such sample: the first three missed my bar, and I fixed what they found before drawing the next one.&lt;/p&gt;

&lt;p&gt;None of these repositories are named here, and none will be.&lt;/p&gt;

&lt;h2&gt;
  
  
  Privacy
&lt;/h2&gt;

&lt;p&gt;There is no telemetry, and your code never leaves your machine or GitHub. The CLI's only network traffic is a GET of the public dataset, from the site or, if the site does not answer, from the GitHub repository, and &lt;code&gt;--offline&lt;/code&gt; turns that off. It never reads &lt;code&gt;.env&lt;/code&gt; files. The Action fetches the dataset the same way, and the only token it uses is the workflow's &lt;code&gt;GITHUB_TOKEN&lt;/code&gt;, with the GitHub API: to manage its own issues, to fetch the dataset copy from the GitHub repository if the site does not answer, and to read the &lt;code&gt;action.yml&lt;/code&gt; of the actions your workflows use. The issues it opens in your repository name the file, line and value they are based on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Free to use, source not public
&lt;/h2&gt;

&lt;p&gt;warnahead is free to use, including at work and for commercial projects. The built CLI, the Action, the dataset and the site are public; the source code is not. If a date is wrong or a deadline is missing, please open an issue with a link to the platform's page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;CLI: &lt;code&gt;npx warnahead&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;GitHub Action: &lt;code&gt;uses: warnahead/action@v0&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Every deadline with its source, plus a calendar feed: &lt;a href="https://warnahead.pages.dev" rel="noopener noreferrer"&gt;https://warnahead.pages.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Corrections and missing deadlines: &lt;a href="https://github.com/warnahead/action/issues" rel="noopener noreferrer"&gt;https://github.com/warnahead/action/issues&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;warnahead is an aid, not a guarantee: check the linked official source before you rely on a result. Not affiliated with or endorsed by Google, Apple, Expo or GitHub.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I wrote this post with help from Claude, an AI assistant. Every repository count in it comes from a recorded run, every platform date and requirement is in warnahead's dataset with its source, and I reviewed the text before publishing.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>expo</category>
      <category>android</category>
      <category>ios</category>
    </item>
    <item>
      <title>typescript-eslint suggests void. With supabase-js, that drops the request.</title>
      <dc:creator>Aman Gupta</dc:creator>
      <pubDate>Tue, 20 Oct 2026 11:18:29 +0000</pubDate>
      <link>https://dev.to/amangupta678/typescript-eslint-suggests-void-with-supabase-js-that-drops-the-request-422m</link>
      <guid>https://dev.to/amangupta678/typescript-eslint-suggests-void-with-supabase-js-that-drops-the-request-422m</guid>
      <description>&lt;p&gt;For the first 39 sends of a new feature in a production app I run, open tracking just didn't work. The sends went out fine. The opens never got recorded: 39 sends recorded zero opens. No exception, nothing in the logs, every test green. It came down to one word.&lt;/p&gt;

&lt;p&gt;The call looked roughly like this (names changed):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;rpc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;track_event&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;id&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That &lt;code&gt;void&lt;/code&gt; was a habit. typescript-eslint's &lt;code&gt;no-floating-promises&lt;/code&gt; complains about promises you don't await, and its message tells you to await it, handle it, or have it "explicitly marked as ignored with the &lt;code&gt;void&lt;/code&gt; operator". The first suggestion it offers is "Add void operator to ignore." For an eager promise, like a storage upload or an auth call, that's fine, because the request is already on its way.&lt;/p&gt;

&lt;p&gt;A supabase-js query builder isn't like that. It's a lazy thenable, and nothing gets sent until something calls &lt;code&gt;.then()&lt;/code&gt; on it. &lt;code&gt;await&lt;/code&gt; does that for you. &lt;code&gt;void&lt;/code&gt; doesn't. So &lt;code&gt;void supabase.rpc(...)&lt;/code&gt; builds the request and then throws it away.&lt;/p&gt;

&lt;p&gt;It gets worse. Since typescript-eslint 8.0.0, &lt;code&gt;no-floating-promises&lt;/code&gt; doesn't check thenables by default, so a builder you forgot on its own line isn't flagged by anything. And if you turn &lt;code&gt;checkThenables&lt;/code&gt; on to catch those, the rule flags every builder and suggests &lt;code&gt;void&lt;/code&gt; first, which is the one fix guaranteed to make sure the request never happens.&lt;/p&gt;

&lt;p&gt;So I built an ESLint plugin that knows the difference: &lt;a href="https://github.com/guptaaman678/eslint-plugin-supabase" rel="noopener noreferrer"&gt;eslint-plugin-supabase&lt;/a&gt;. It has five rules, each for a Supabase mistake that's easy to ship without noticing. Four of them don't produce an error at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The query that never gets sent
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;supabase/no-unsent-query&lt;/code&gt; flags a lazy builder that's voided or just left sitting there as a statement:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;todos&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;insert&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;title&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt; &lt;span class="c1"&gt;// voided: never sent&lt;/span&gt;
&lt;span class="nx"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;todos&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;done&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}).&lt;/span&gt;&lt;span class="nf"&gt;eq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;id&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// never awaited: never sent&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You get two suggestions, &lt;code&gt;await&lt;/code&gt; (inside an async function) and &lt;code&gt;.then()&lt;/code&gt;. There's no autofix, because both change when the request runs, and that's your call to make. &lt;code&gt;.then()&lt;/code&gt; chains, &lt;code&gt;await&lt;/code&gt;, &lt;code&gt;return&lt;/code&gt; and passing the builder somewhere else are all fine. Storage downloads are lazy too, so they're covered.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The subscription that never fires
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;supabase&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;channel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;room&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;postgres_changes&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;event&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;INSERT&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;schema&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;public&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;table&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;messages&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="nx"&gt;onMessage&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;subscribe&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;status&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;status&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;public.messages&lt;/code&gt; isn't in the &lt;code&gt;supabase_realtime&lt;/code&gt; publication, this channel happily reaches &lt;code&gt;SUBSCRIBED&lt;/code&gt; and then never gets a single event. The only error is a system message your subscribe callback never sees. That same app had a subscription like this sitting on an unpublished table while the table took 1,926 writes. It fired zero times.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;supabase/realtime-table-published&lt;/code&gt; replays your migrations and reports the subscription, along with the fix: &lt;code&gt;alter publication supabase_realtime add table public.messages;&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The read that comes back empty
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;error&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;orders&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;*&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;// data: [], error: null&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;public.orders&lt;/code&gt; has row level security on and no select policy for the role your client uses, this read gives you an empty result and no error. An update or delete in the same situation quietly changes nothing, also without an error. (Inserts and upserts fail loudly with 42501, so the rule doesn't bother with them.)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;supabase/rls-readable&lt;/code&gt; reads your policies from the migrations and reports the read, plus filtered updates and deletes.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The channel error nobody hears
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;channel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;room&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;broadcast&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;event&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;ping&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="nx"&gt;onPing&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;subscribe&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Call &lt;code&gt;.subscribe()&lt;/code&gt; without a status callback and &lt;code&gt;CHANNEL_ERROR&lt;/code&gt; and &lt;code&gt;TIMED_OUT&lt;/code&gt; go nowhere. &lt;code&gt;supabase/subscribe-status-handler&lt;/code&gt; asks you to pass one: &lt;code&gt;.subscribe((status, err) =&amp;gt; { ... })&lt;/code&gt;. If you already wrap &lt;code&gt;subscribe&lt;/code&gt; in a helper that checks the status, add it to &lt;code&gt;allowWrappers&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The call the 2026-10-30 change will break
&lt;/h2&gt;

&lt;p&gt;This one comes with a date, so it gets its own section further down.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a linter needs your schema
&lt;/h2&gt;

&lt;p&gt;Supabase's own database linter already catches something close to the empty read (the third one above): lint &lt;code&gt;0008_rls_enabled_no_policy&lt;/code&gt; flags every table with row level security on and no policy. But plenty of those tables are like that on purpose. The app only reads them through a function, and "no policy" is the design.&lt;/p&gt;

&lt;p&gt;You can't tell a deliberate table from a broken one by looking at the database alone. You can't tell from the client code alone either: &lt;code&gt;supabase.from('orders').select()&lt;/code&gt; looks fine until you know what the migrations say about &lt;code&gt;orders&lt;/code&gt;. You need both. So the schema rules replay &lt;code&gt;supabase/migrations&lt;/code&gt; into a model of the database (tables, grants, row level security, policies, publication membership) and check every client call against it. A table that's only read through a function never trips &lt;code&gt;rls-readable&lt;/code&gt;, because there's no direct client call to report.&lt;/p&gt;

&lt;p&gt;The plugin also works out which role each client acts as. A client created with a publishable or anon key is &lt;code&gt;anon&lt;/code&gt; or &lt;code&gt;authenticated&lt;/code&gt;. A client created with the service role key bypasses row level security, so &lt;code&gt;rls-readable&lt;/code&gt; leaves it alone. When the plugin can't trace a client at all, it skips the call and counts the skip. When it can trace the client but can't tell what kind of key it got (&lt;code&gt;createClient(url, config.key)&lt;/code&gt;), it treats it like a publishable client by default (&lt;code&gt;unknownKey: "default"&lt;/code&gt;), because in client code that's almost always what it is. Set &lt;code&gt;unknownKey: "skip"&lt;/code&gt; if you'd rather skip those calls.&lt;/p&gt;

&lt;h2&gt;
  
  
  2026-10-30: find the call sites before the change does
&lt;/h2&gt;

&lt;p&gt;Supabase has announced that from 2026-10-30, new tables, views and sequences in &lt;code&gt;public&lt;/code&gt; stop getting automatic grants for &lt;code&gt;anon&lt;/code&gt;, &lt;code&gt;authenticated&lt;/code&gt; and &lt;code&gt;service_role&lt;/code&gt; on every existing project. A migration that creates a table and forgets the &lt;code&gt;grant&lt;/code&gt; will apply cleanly, row level security will look right, and the first request will fail.&lt;/p&gt;

&lt;p&gt;After the change, a client call on a new table that the role has no grant for fails with 42501. &lt;a href="https://github.com/guptaaman678/supabase-grants-lint" rel="noopener noreferrer"&gt;supabase-grants-lint&lt;/a&gt; catches it at the migration. This plugin catches it at the line of client code that will break. A Realtime subscription on such a table fails silently instead: it connects and never receives any data.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;supabase/table-granted&lt;/code&gt; knows which privileges each call needs (an &lt;code&gt;upsert&lt;/code&gt; needs insert, update and select; a filtered &lt;code&gt;delete&lt;/code&gt; needs delete and select) and reports a call when no role the client can act as has them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;authenticated has no insert privilege on `public.orders` in your migrations, so this call fails with
42501 (permission denied). Fix in a migration: `grant insert on public.orders to authenticated;`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Right now, before the change, the replayed defaults still grant almost everything, so this rule is quiet on most projects. And the replay doesn't look at the calendar. It only sees the change once your project records it, either with the opt-in migration (the revoke SQL Supabase published) or with grants-lint's &lt;code&gt;since&lt;/code&gt; setting. Without one of those, the rule stays quiet after 2026-10-30 too. Once it's recorded, every table your next migration creates gets checked at the call site, in your editor, before the request fails in production.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it found in 99 public repos
&lt;/h2&gt;

&lt;p&gt;I ran the recommended config over 99 public repositories that have Supabase migrations, TypeScript sources and supabase-js. I pinned the commits and linted them as they are. Out of those 99:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;35 of 99 (35.4%) had at least one finding.&lt;/li&gt;
&lt;li&gt;15 of 99 (15.2%) subscribed with &lt;code&gt;postgres_changes&lt;/code&gt; to a table their migrations never add to the publication.&lt;/li&gt;
&lt;li&gt;11 of 99 (11.1%) had a read, update or delete that row level security turns into a silent no-op, by their own migrations.&lt;/li&gt;
&lt;li&gt;8 of 99 (8.1%) had a query that's never sent, either voided or left floating.&lt;/li&gt;
&lt;li&gt;29 of 99 (29.3%) had a &lt;code&gt;.subscribe()&lt;/code&gt; with no status callback.&lt;/li&gt;
&lt;li&gt;2 of 99 (2.0%) already had a call with no privilege behind it, before the change.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some honest caveats. The corpus only sees migrations, so a table published or a policy added by hand in the dashboard is invisible to it, and a finding can be right about the migrations and still not happen in that repo's production database. It's not a random sample of Supabase apps either. Calls the plugin can't resolve are skipped, so treat these numbers as lower bounds. I also did a blind hand review of 50 schema findings, drawn at random from a fresh run I hadn't looked at before. It turned up 2 false positives (4.0%), and one of those came from my own corpus harness and is fixed. I'm not naming any of the repositories, and I won't.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;You'll need a TypeScript project with typed linting:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--save-dev&lt;/span&gt; eslint-plugin-supabase eslint @typescript-eslint/parser &lt;span class="s2"&gt;"typescript@&amp;gt;=5.8 &amp;lt;6.1"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// eslint.config.mjs&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;parser&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@typescript-eslint/parser&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;eslint-plugin-supabase&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;files&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;**/*.ts&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;**/*.tsx&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="na"&gt;ignores&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;**/supabase/functions/**&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="na"&gt;languageOptions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nx"&gt;parser&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;parserOptions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;projectService&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;tsconfigRootDir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;meta&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;dirname&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="nx"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;configs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;recommended&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run &lt;code&gt;npx eslint .&lt;/code&gt;. The &lt;code&gt;ignores&lt;/code&gt; line keeps Deno edge functions out of typed linting. The two code rules work on any project. The three schema rules look for &lt;code&gt;supabase/migrations&lt;/code&gt; next to your code (and read &lt;code&gt;grants-lint.config.json&lt;/code&gt; if you have one). If you created your tables in the dashboard, run &lt;code&gt;supabase db pull&lt;/code&gt; once so your migrations actually create them. The plugin doesn't open a network connection, doesn't read your &lt;code&gt;.env&lt;/code&gt; file and doesn't send telemetry.&lt;/p&gt;

&lt;p&gt;One more step for the 2026-10-30 change. Once your project is past it (or you opted in early from the dashboard), tell the replay: add the opt-in migration (the revoke SQL Supabase published), or set &lt;code&gt;since&lt;/code&gt; in &lt;code&gt;grants-lint.config.json&lt;/code&gt; to the version of your last migration before the change. Without one of those, the replay keeps the old automatic grants and &lt;code&gt;table-granted&lt;/code&gt; stays quiet on new tables.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I built it
&lt;/h2&gt;

&lt;p&gt;The schema rules don't parse SQL themselves. They use the replay engine from supabase-grants-lint, the migration linter I wrote for the same change, through a new &lt;code&gt;engine&lt;/code&gt; export. That way the CLI and the editor agree on what your migrations mean.&lt;/p&gt;

&lt;p&gt;Before writing this, I pointed the plugin at the history of the app where both incidents happened. At the commit before the &lt;code&gt;void&lt;/code&gt; fix, &lt;code&gt;no-unsent-query&lt;/code&gt; reports the call. At the fix, it goes quiet. The subscription was harder. That app adds tables to the publication inside a &lt;code&gt;do&lt;/code&gt; block, which a replay can't read, so the plugin skips those subscriptions instead of guessing (&lt;code&gt;reportUnresolved&lt;/code&gt; names the block and asks for plain &lt;code&gt;alter publication&lt;/code&gt; statements). With the block rewritten as plain statements, &lt;code&gt;realtime-table-published&lt;/code&gt; reports the unpublished subscription and nothing else.&lt;/p&gt;

&lt;p&gt;Every guard in the rules is mutation-tested, and every rule has a test for each case it leaves alone on purpose.&lt;/p&gt;

&lt;p&gt;It doesn't check the 1,000-row PostgREST limit. For that, use &lt;a href="https://github.com/anabecalab/rowcap" rel="noopener noreferrer"&gt;rowcap&lt;/a&gt; by anabecalab, which does it well.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it on your project
&lt;/h2&gt;

&lt;p&gt;Run it once before 2026-10-30. If it finds something, or flags something that isn't a bug, please &lt;a href="https://github.com/guptaaman678/eslint-plugin-supabase/issues" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt;. A false positive is a bug, and I want to fix it this week.&lt;/p&gt;

&lt;p&gt;I used AI to help draft and edit this post; the plugin, the tests and the numbers are mine.&lt;/p&gt;

&lt;p&gt;Not affiliated with or endorsed by Supabase.&lt;/p&gt;

</description>
      <category>supabase</category>
      <category>eslint</category>
      <category>typescript</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Supabase stops auto-granting on Oct 30. Here is what breaks, and five traps the changelog does not mention.</title>
      <dc:creator>Aman Gupta</dc:creator>
      <pubDate>Tue, 29 Sep 2026 13:10:00 +0000</pubDate>
      <link>https://dev.to/amangupta678/supabase-stops-auto-granting-on-oct-30-here-is-what-breaks-and-five-traps-the-changelog-does-not-5h77</link>
      <guid>https://dev.to/amangupta678/supabase-stops-auto-granting-on-oct-30-here-is-what-breaks-and-five-traps-the-changelog-does-not-5h77</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmapjrqhrzajeydeljcwh.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmapjrqhrzajeydeljcwh.gif" alt="supabase-grants-lint finding three missing grants, then passing"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I replayed the migration histories of 100 public Supabase projects on a database without automatic grants. In 98 of them, at least one table ended up unreachable through the Data API for some role. In 92, at least one row level security policy could never apply, because the role it names lacks the privilege the policy's command needs. Not one of the 100 histories contains the opt-in migration.&lt;/p&gt;

&lt;p&gt;That is not a statement about those projects' production databases: existing tables keep their grants. It is a statement about what their next table, their next preview branch, or their next fresh environment will look like. Here is why, and what to look for.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changes
&lt;/h2&gt;

&lt;p&gt;Supabase has announced that from &lt;strong&gt;2026-10-30&lt;/strong&gt;, new tables, views and sequences in the &lt;code&gt;public&lt;/code&gt; schema stop getting automatic grants for &lt;code&gt;anon&lt;/code&gt;, &lt;code&gt;authenticated&lt;/code&gt; and &lt;code&gt;service_role&lt;/code&gt; on every existing project (&lt;a href="https://github.com/orgs/supabase/discussions/45329" rel="noopener noreferrer"&gt;announcement&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Until now, a default privilege did the work for you. &lt;code&gt;postgres&lt;/code&gt; created a table in &lt;code&gt;public&lt;/code&gt;, and the three API roles got access to it immediately. You wrote your row level security policies and forgot that grants existed at all.&lt;/p&gt;

&lt;p&gt;After the change, you need to say it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;todos&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="n"&gt;uuid&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="n"&gt;gen_random_uuid&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
  &lt;span class="n"&gt;user_id&lt;/span&gt; &lt;span class="n"&gt;uuid&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="k"&gt;null&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;users&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
  &lt;span class="n"&gt;title&lt;/span&gt; &lt;span class="nb"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="k"&gt;null&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;alter&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;todos&lt;/span&gt; &lt;span class="n"&gt;enable&lt;/span&gt; &lt;span class="k"&gt;row&lt;/span&gt; &lt;span class="k"&gt;level&lt;/span&gt; &lt;span class="k"&gt;security&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="nv"&gt;"read own todos"&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;todos&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt; &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;-- the new part&lt;/span&gt;
&lt;span class="k"&gt;grant&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;todos&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;grant&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;insert&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;update&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;delete&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;todos&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;service_role&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Forget the last two lines and nothing complains. The migration applies cleanly, the policy looks right in the dashboard, and the first request returns:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"42501"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"permission denied for table todos"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Existing tables are not affected. The risk is every table you create from now on, and every environment that is built from your migration history instead of from production.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five traps
&lt;/h2&gt;

&lt;p&gt;These are the parts that are easy to miss, even after reading the announcement.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Replaying your history turns the grants back on
&lt;/h3&gt;

&lt;p&gt;If your first migration came from &lt;code&gt;supabase db pull&lt;/code&gt;, it probably contains lines like these:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;alter&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="k"&gt;privileges&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;role&lt;/span&gt; &lt;span class="nv"&gt;"postgres"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="k"&gt;schema&lt;/span&gt; &lt;span class="nv"&gt;"public"&lt;/span&gt;
  &lt;span class="k"&gt;grant&lt;/span&gt; &lt;span class="k"&gt;all&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;tables&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;"anon"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;alter&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="k"&gt;privileges&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;role&lt;/span&gt; &lt;span class="nv"&gt;"postgres"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="k"&gt;schema&lt;/span&gt; &lt;span class="nv"&gt;"public"&lt;/span&gt;
  &lt;span class="k"&gt;grant&lt;/span&gt; &lt;span class="k"&gt;all&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;tables&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;"authenticated"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;alter&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="k"&gt;privileges&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;role&lt;/span&gt; &lt;span class="nv"&gt;"postgres"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="k"&gt;schema&lt;/span&gt; &lt;span class="nv"&gt;"public"&lt;/span&gt;
  &lt;span class="k"&gt;grant&lt;/span&gt; &lt;span class="k"&gt;all&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;tables&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;"service_role"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;pg_dump&lt;/code&gt; copies your default privileges as they were when you pulled. Replay that file on a preview branch or a local &lt;code&gt;supabase db reset&lt;/code&gt;, and every table your later migrations create gets full access again. Supabase's own branching docs say so. Production no longer has those defaults, so the table that works in your preview branch fails once it ships.&lt;/p&gt;

&lt;p&gt;The local stack has a second version of the same trap: with the current CLI, new tables are exposed automatically unless you set &lt;code&gt;auto_expose_new_tables = false&lt;/code&gt; under &lt;code&gt;[api]&lt;/code&gt; in &lt;code&gt;supabase/config.toml&lt;/code&gt;. A local test run tells you nothing about grants.&lt;/p&gt;

&lt;p&gt;Of the 100 histories, 2 end with default grants still switched on by their own statements, after replaying every file. The fix is a migration that switches them off again, after the baseline.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The revoke is narrow
&lt;/h3&gt;

&lt;p&gt;Per the SQL Supabase published, the opt-in removes &lt;code&gt;select&lt;/code&gt;, &lt;code&gt;insert&lt;/code&gt;, &lt;code&gt;update&lt;/code&gt; and &lt;code&gt;delete&lt;/code&gt; on tables, and &lt;code&gt;usage&lt;/code&gt; and &lt;code&gt;select&lt;/code&gt; on sequences:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;alter&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="k"&gt;privileges&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;role&lt;/span&gt; &lt;span class="n"&gt;postgres&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="k"&gt;schema&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;
  &lt;span class="k"&gt;revoke&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;insert&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;update&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;delete&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;tables&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;anon&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;service_role&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;alter&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="k"&gt;privileges&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;role&lt;/span&gt; &lt;span class="n"&gt;postgres&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="k"&gt;schema&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;
  &lt;span class="k"&gt;revoke&lt;/span&gt; &lt;span class="k"&gt;usage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;sequences&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;anon&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;service_role&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The old default was &lt;code&gt;grant all&lt;/code&gt;. So &lt;code&gt;truncate&lt;/code&gt;, &lt;code&gt;references&lt;/code&gt; and &lt;code&gt;trigger&lt;/code&gt; (plus &lt;code&gt;maintain&lt;/code&gt; on Postgres 17 and later) still go to &lt;code&gt;anon&lt;/code&gt; and &lt;code&gt;authenticated&lt;/code&gt; on every new table. Row level security does not apply to &lt;code&gt;truncate&lt;/code&gt; or &lt;code&gt;references&lt;/code&gt;. If you want clients to hold only what you granted, revoke the rest yourself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;revoke&lt;/span&gt; &lt;span class="k"&gt;truncate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;trigger&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;todos&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;anon&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. &lt;code&gt;service_role&lt;/code&gt; bypasses row level security, not grants
&lt;/h3&gt;

&lt;p&gt;A common assumption is that the service role key can do anything. It bypasses policies, but Postgres checks privileges before it looks at policies, and &lt;code&gt;service_role&lt;/code&gt; is not a superuser. Your edge functions, cron jobs and admin tools that use the service role key get the same &lt;code&gt;42501&lt;/code&gt; on a table nobody granted to &lt;code&gt;service_role&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;grant&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;insert&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;update&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;delete&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;audit_log&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;service_role&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This was the most common finding in the corpus: 97 of the 100 histories create at least one table &lt;code&gt;service_role&lt;/code&gt; cannot read or write without the automatic grants.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Policies without grants are dead
&lt;/h3&gt;

&lt;p&gt;A policy never grants access. It only narrows access a role already has. This policy:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="nv"&gt;"insert own messages"&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;messages&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;insert&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="k"&gt;check&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sender_id&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;does nothing unless &lt;code&gt;authenticated&lt;/code&gt; holds &lt;code&gt;insert&lt;/code&gt; on &lt;code&gt;public.messages&lt;/code&gt;. Without the grant, the request fails before the policy is evaluated. The policy looks like access control, reads like access control, and never runs.&lt;/p&gt;

&lt;p&gt;In 87 of the 100 histories, a table has policies for &lt;code&gt;anon&lt;/code&gt; or &lt;code&gt;authenticated&lt;/code&gt; while that role holds no data privilege on it at all. Counting every mismatch, including a &lt;code&gt;for update&lt;/code&gt; policy on a table the role can only select, 92 have at least one policy that can never apply.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. &lt;code&gt;serial&lt;/code&gt; columns need their sequence
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="n"&gt;bigserial&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;user_id&lt;/span&gt; &lt;span class="n"&gt;uuid&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="k"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="nb"&gt;numeric&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="k"&gt;null&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;grant&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;insert&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The insert still fails. A &lt;code&gt;serial&lt;/code&gt; column's default calls &lt;code&gt;nextval()&lt;/code&gt; on its own sequence, and &lt;code&gt;nextval()&lt;/code&gt; needs &lt;code&gt;usage&lt;/code&gt; (or &lt;code&gt;update&lt;/code&gt;) on that sequence. The announced revoke removes sequence &lt;code&gt;usage&lt;/code&gt; too:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;grant&lt;/span&gt; &lt;span class="k"&gt;usage&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;sequence&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orders_id_seq&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Identity columns (&lt;code&gt;generated always as identity&lt;/code&gt;) and &lt;code&gt;uuid&lt;/code&gt; keys do not need this: Postgres does not check sequence privileges for identity columns, and &lt;code&gt;gen_random_uuid()&lt;/code&gt; uses no sequence at all. This one is rare (1 history in the corpus), but when it happens the error names a sequence nobody remembers creating.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the numbers were measured
&lt;/h2&gt;

&lt;p&gt;The corpus is 100 public GitHub repositories with at least three files in &lt;code&gt;supabase/migrations&lt;/code&gt;, pushed within the last year, not forks, each pinned to a commit. Median history length: 30 migrations. Each history was replayed twice: once as a database without automatic grants would build it (every migration checked), and once as the project is configured today.&lt;/p&gt;

&lt;p&gt;In total the replays flagged 5,820 distinct tables and views as unreachable for at least one role, a median of 21 per project (for scale, 6,601 relations are in scope at the end of the histories). The parser read 103,326 statements and rejected 0.4% of them; each kind of rejected statement was checked against its source, and all were invalid SQL, syntax Postgres does not have, or not SQL at all. Results are published as aggregates only; no project is named.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check your own project
&lt;/h2&gt;

&lt;p&gt;I turned these checks into a linter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx supabase-grants-lint check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it from your project root, the folder that contains &lt;code&gt;supabase/&lt;/code&gt;. If your migrations live somewhere else, point at them: &lt;code&gt;npx supabase-grants-lint check --dir db/migrations&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It reads your migrations, replays them in order into a model of who holds which privilege on which table and sequence, and prints the grant that fixes each finding:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="n"&gt;supabase&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;migrations&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;20261002120000&lt;/span&gt;&lt;span class="n"&gt;_add_todos&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;sql&lt;/span&gt;
  &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;   &lt;span class="n"&gt;error&lt;/span&gt;  &lt;span class="n"&gt;GL001&lt;/span&gt;  &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;todos&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="n"&gt;created&lt;/span&gt; &lt;span class="k"&gt;without&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="k"&gt;grant&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;service_role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;...&lt;/span&gt;
               &lt;span class="n"&gt;fix&lt;/span&gt;   &lt;span class="k"&gt;grant&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;insert&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;update&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;delete&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;todos&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;service_role&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;  &lt;span class="n"&gt;error&lt;/span&gt;  &lt;span class="n"&gt;GL003&lt;/span&gt;  &lt;span class="n"&gt;Policy&lt;/span&gt; &lt;span class="nv"&gt;"read own todos"&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;todos&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                      &lt;span class="n"&gt;but&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt; &lt;span class="n"&gt;holds&lt;/span&gt; &lt;span class="k"&gt;no&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;privilege&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;it&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;...&lt;/span&gt;
               &lt;span class="n"&gt;fix&lt;/span&gt;   &lt;span class="k"&gt;grant&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;todos&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;npx supabase-grants-lint doctor&lt;/code&gt; gives a readiness report: whether an opt-in migration exists, whether replaying the history turns automatic grants back on, and which existing tables a fresh database would not expose.&lt;/p&gt;

&lt;p&gt;To keep it from happening again, run it on every pull request:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx supabase-grants-lint init &lt;span class="nt"&gt;--since&lt;/span&gt; next
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This writes a config and a GitHub Actions workflow. &lt;code&gt;--since next&lt;/code&gt; enforces every migration you add from now on and leaves your history alone, so you do not have to fix a long history before you can turn it on. Findings show up as annotations on the pull request.&lt;/p&gt;

&lt;p&gt;It reads files only. It never connects to your database and sends no telemetry.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it was built
&lt;/h2&gt;

&lt;p&gt;This started as a test in a production app with about 60 tables. When I opted that project in early, I wanted proof that every table would still be reachable, so I wrote a test that replayed the whole migration history and compared the result with the grants production actually had. Every trap above is something that test caught.&lt;/p&gt;

&lt;p&gt;The open source version is a rewrite, not a copy. It parses migrations with the real Postgres parser (compiled to WebAssembly), and replays them through a small model of grants, default privileges, sequences and policies. Every rule has failing and passing fixtures, and the rules and the model are mutation-tested, so a check that stops catching its bug fails the build. Before release, it ran over the corpus above, and every false positive I found in a hand-checked sample became a fixture and a fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it before Oct 30
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Run &lt;code&gt;npx supabase-grants-lint doctor&lt;/code&gt; on your project.&lt;/li&gt;
&lt;li&gt;Add the &lt;a href="https://github.com/marketplace/actions/supabase-grants-lint" rel="noopener noreferrer"&gt;GitHub Action&lt;/a&gt;, so the next migration is checked before it ships.&lt;/li&gt;
&lt;li&gt;If it flags something that works, or misses something that does not, please open an issue with the SQL: false-positive reports are the most useful thing you can send.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The code is MIT licensed at &lt;a href="https://github.com/guptaaman678/supabase-grants-lint" rel="noopener noreferrer"&gt;github.com/guptaaman678/supabase-grants-lint&lt;/a&gt;. A star helps other people find it before the deadline.&lt;/p&gt;

&lt;p&gt;Not affiliated with or endorsed by Supabase.&lt;/p&gt;

</description>
      <category>supabase</category>
      <category>postgres</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
