Skip to content

Commit

Permalink
Merge pull request #567 from supabase/rc
Browse files Browse the repository at this point in the history
feat: release new query parser on stable
  • Loading branch information
soedirgo authored Oct 28, 2024
2 parents e45a2c7 + e603768 commit 1020cdd
Show file tree
Hide file tree
Showing 23 changed files with 3,821 additions and 883 deletions.
219 changes: 197 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"test": "run-s format:check test:types db:clean db:run test:run db:clean && node test/smoke.cjs && node test/smoke.mjs",
"test:run": "jest --runInBand",
"test:update": "run-s db:clean db:run && jest --runInBand --updateSnapshot && run-s db:clean",
"test:types": "run-s build && tsd --files test/*.test-d.ts",
"test:types": "run-s build && tsd --files 'test/**/*.test-d.ts'",
"db:clean": "cd test/db && docker compose down --volumes",
"db:run": "cd test/db && docker compose up --detach && wait-for-localhost 3000"
},
Expand All @@ -56,8 +56,9 @@
"prettier": "^2.6.2",
"rimraf": "^3.0.2",
"semantic-release-plugin-update-version-in-files": "^1.1.0",
"ts-expect": "^1.3.0",
"ts-jest": "^28.0.3",
"tsd": "^0.24.1",
"tsd": "^0.31.2",
"typedoc": "^0.22.16",
"typescript": "~4.7",
"wait-for-localhost-cli": "^3.0.0"
Expand Down
4 changes: 3 additions & 1 deletion src/PostgrestClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ export default class PostgrestClient<
? Fn['Returns'][number]
: never
: never,
Fn['Returns']
Fn['Returns'],
FnName,
null
> {
let method: 'HEAD' | 'GET' | 'POST'
const url = new URL(`${this.url}/rpc/${fn}`)
Expand Down
2 changes: 1 addition & 1 deletion src/PostgrestQueryBuilder.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PostgrestBuilder from './PostgrestBuilder'
import PostgrestFilterBuilder from './PostgrestFilterBuilder'
import { GetResult } from './select-query-parser'
import { GetResult } from './select-query-parser/result'
import { Fetch, GenericSchema, GenericTable, GenericView } from './types'

export default class PostgrestQueryBuilder<
Expand Down
Loading

0 comments on commit 1020cdd

Please sign in to comment.