• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / postgres-meta / 33406142349
80%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2026 03:04PM UTC
Jobs 1
Files 80
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Aug 2026 03:02PM UTC coverage: 79.944% (-4.2%) from 84.113%
33406142349

push

github

web-flow
feat: consume @supabase/postgrest-typegen for type generation (#1084)

* feat: consume @supabase/postgrest-typegen for type generation

Integrate the extracted @supabase/postgrest-typegen package as the single
source of truth for type generation, replacing the embedded templates.

- src/lib/generators.ts: rewrite getGeneratorMetadata as a ~30-line adapter
  over the package's introspect(). It wraps pgMeta.query into the package's
  structural Queryable (throws on {error}), preserves the
  Promise<PostgresMetaResult<GeneratorMetadata>> contract, surfaces the first
  query error, and still ends the pool. Re-exports GeneratorMetadata from the
  package.
- src/server/server.ts: getTypeOutput now calls getGeneratorMetadata +
  generateTypescript/Go/Python/Swift, threading GENERATE_TYPES_DEFAULT_SCHEMA,
  POSTGREST_VERSION, detect-1:1, and Swift access-control env values. Behavior
  freeze: the CLI path still only supports included schemas.
- src/server/routes/generators/*.ts: swap `apply` template imports for the
  package's generateX; query params, headers, and error shapes unchanged.
- Delete src/server/templates/*.ts and test/server/templates/go.test.ts;
  re-point test/types.test.ts's pgTypeToTsType import and constants.ts's
  AccessControl import to the package; drop the now-unused VALID_* constants.
- Keep PostgresMetaRelationships.ts and src/lib/sql/*.sql.ts (they back the
  REST endpoints) — accepted temporary duplication.

`npm run check` passes. Full-suite byte-parity validation is Phase 2.3
(PGMETA-114). The dependency is pinned to 1.0.0-alpha.1; local validation
installs it from Verdaccio via an uncommitted scoped .npmrc, and the lockfile
is finalized when the package is published to npm (Phase 3).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B53a2ayu9d16u821FQ5Qqz

* chore: point @supabase/postgrest-typegen at pkg-pr-new preview build

The package isn't published to npm yet; pin th... (continued)

706 of 988 branches covered (71.46%)

Branch coverage included in aggregate %.

34 of 63 new or added lines in 8 files covered. (53.97%)

119 existing lines in 6 files now uncovered.

4679 of 5748 relevant lines covered (81.4%)

50.89 hits per line

Uncovered Changes

Lines Coverage ∆ File
16
0.0
0.0% src/server/server.ts
7
0.0
0.0% src/server/format-worker.js
6
76.92
-3.87% src/lib/generators.ts

Coverage Regressions

Lines Coverage ∆ File
110
10.24
-85.25% src/lib/PostgresMetaRelationships.ts
3
25.0
-37.5% src/lib/sql/table_relationships.sql.ts
3
25.0
-37.5% src/lib/sql/views_key_dependencies.sql.ts
1
87.5
-8.5% src/lib/sql/types.sql.ts
1
0.0
0.0% src/server/format-worker.js
1
0.0
0.0% src/server/server.ts
Jobs
ID Job ID Ran Files Coverage
1 33406142349.1 31 Aug 2026 03:04PM UTC 80
79.94
GitHub Action Run
Source Files on build 33406142349
  • Tree
  • List 80
  • Changed 15
  • Source Changed 9
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33406142349
  • f380cc5b on github
  • Prev Build on master (#31820444672)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc