Skip to content

Commit 1020cdd

Browse files
authored
Merge pull request #567 from supabase/rc
feat: release new query parser on stable
2 parents e45a2c7 + e603768 commit 1020cdd

23 files changed

+3821
-883
lines changed

package-lock.json

Lines changed: 197 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"test": "run-s format:check test:types db:clean db:run test:run db:clean && node test/smoke.cjs && node test/smoke.mjs",
4141
"test:run": "jest --runInBand",
4242
"test:update": "run-s db:clean db:run && jest --runInBand --updateSnapshot && run-s db:clean",
43-
"test:types": "run-s build && tsd --files test/*.test-d.ts",
43+
"test:types": "run-s build && tsd --files 'test/**/*.test-d.ts'",
4444
"db:clean": "cd test/db && docker compose down --volumes",
4545
"db:run": "cd test/db && docker compose up --detach && wait-for-localhost 3000"
4646
},
@@ -56,8 +56,9 @@
5656
"prettier": "^2.6.2",
5757
"rimraf": "^3.0.2",
5858
"semantic-release-plugin-update-version-in-files": "^1.1.0",
59+
"ts-expect": "^1.3.0",
5960
"ts-jest": "^28.0.3",
60-
"tsd": "^0.24.1",
61+
"tsd": "^0.31.2",
6162
"typedoc": "^0.22.16",
6263
"typescript": "~4.7",
6364
"wait-for-localhost-cli": "^3.0.0"

src/PostgrestClient.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ export default class PostgrestClient<
140140
? Fn['Returns'][number]
141141
: never
142142
: never,
143-
Fn['Returns']
143+
Fn['Returns'],
144+
FnName,
145+
null
144146
> {
145147
let method: 'HEAD' | 'GET' | 'POST'
146148
const url = new URL(`${this.url}/rpc/${fn}`)

src/PostgrestQueryBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import PostgrestBuilder from './PostgrestBuilder'
22
import PostgrestFilterBuilder from './PostgrestFilterBuilder'
3-
import { GetResult } from './select-query-parser'
3+
import { GetResult } from './select-query-parser/result'
44
import { Fetch, GenericSchema, GenericTable, GenericView } from './types'
55

66
export default class PostgrestQueryBuilder<

0 commit comments

Comments
 (0)