Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: release new query parser on stable #567

Merged
merged 33 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
31d594b
feat: write select-query-parser v2
avallete Sep 11, 2024
4d2df20
chore: prettify fix tests
avallete Sep 27, 2024
ea7dec1
chore: upgrade postgrest tests image add some more test data
avallete Sep 27, 2024
82fc099
feat: make new select-query-parser available under next flag
avallete Sep 27, 2024
f1536c7
Merge branch 'avallete/chore-increase-runtime-tests-coverage' into av…
avallete Sep 27, 2024
afc0cc9
fix: prettier
avallete Sep 27, 2024
d4d3926
chore: fix typos
avallete Sep 27, 2024
237034a
Revert "feat: make new select-query-parser available under next flag"
avallete Sep 30, 2024
49ba6fd
chore: update tests
avallete Sep 30, 2024
5467682
Merge branch 'master' into avallete/fix-select-query-parser
avallete Oct 1, 2024
0c53e4b
fix: make oneToOne optional
avallete Oct 3, 2024
59e23a5
fix: update GenericTable usage to work with views
avallete Oct 3, 2024
4eea178
fix: make hinting relationships use name as well as hint to avoid dup…
avallete Oct 3, 2024
556bbc4
fix: rpc procedures call
avallete Oct 3, 2024
7298b54
fix: inner join on many relationship
avallete Oct 3, 2024
ac6165c
fix: errors with relationships duplicates
avallete Oct 4, 2024
cd55433
Revert "fix: errors with relationships duplicates"
soedirgo Oct 9, 2024
e099a47
fix: self-referencing relation corner case
avallete Oct 9, 2024
2b30bb5
chore: include all type tests
soedirgo Oct 16, 2024
a710851
chore: simplify select-query-parser
soedirgo Oct 11, 2024
05419fb
chore: fix types.test-d.ts
soedirgo Oct 16, 2024
e7b35e9
chore: add test for selecting on an rpc call
soedirgo Oct 16, 2024
4adf2a5
feat: handle select over RPC calls
avallete Oct 16, 2024
e01b7c2
fix: hint matching
soedirgo Oct 18, 2024
c6c2795
fix(types): aggregate on a missing column with alias
soedirgo Oct 18, 2024
5a87c05
Merge pull request #558 from supabase/avallete/fix-select-query-parser
soedirgo Oct 18, 2024
90d9b18
fix(parser): whitespace issue with inner embeding
avallete Oct 22, 2024
b4e587a
fix(result): error plain string results unwrapping
avallete Oct 22, 2024
e31b1ff
fix: unwrap error within arrays
avallete Oct 22, 2024
e961e94
fix(types): handle many-to-many join tables references
avallete Oct 23, 2024
803c861
chore: stricter helper types
soedirgo Oct 28, 2024
ad1c533
Merge pull request #565 from supabase/fix/forward-relationships-not-f…
avallete Oct 28, 2024
e603768
fix(parser): revert error unwrapping (#566)
avallete Oct 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading