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: select-query-parser-v2 #558

Merged
merged 124 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
94db709
Merge pull request #347 from supabase/rc
alaister Oct 11, 2022
15bdb1a
docs: fix typedoc link
soedirgo Oct 14, 2022
4081771
feat: allow overriding result types
soedirgo Oct 18, 2022
ebe94e7
test: allow overriding result types
soedirgo Oct 18, 2022
4aa24d5
chore(deps-dev): bump typedoc
soedirgo Oct 18, 2022
6c1902e
fix v1 spec
kiwicopple Oct 19, 2022
709f245
Merge pull request #357 from supabase/chore/fix_spec
kiwicopple Oct 19, 2022
84f1518
move v1 to correct repo
kiwicopple Oct 19, 2022
6132a32
Roll back to previous typedoc version
saltcod Nov 8, 2022
a42dcf7
Add package lock
saltcod Nov 8, 2022
f1b4ed8
Merge pull request #365 from supabase/chore/revert-to-old-typedoc-ver…
kiwicopple Nov 8, 2022
c3871df
chore(deps): fix conflict
soedirgo Nov 15, 2022
ebd3690
chore(deps): bump minimatch from 3.0.4 to 3.1.2
dependabot[bot] Nov 15, 2022
933b4d6
docs: move doc comments to func impl
soedirgo Nov 23, 2022
cc25705
fix: wrong response on update w/o match
soedirgo Dec 16, 2022
1e00cbc
test: update with no match
soedirgo Dec 16, 2022
281ffe0
chore(deps): bump json5 from 2.2.1 to 2.2.3
dependabot[bot] Jan 9, 2023
a0e4db7
feat: support `->`/`->>` for column names
mqp Jan 17, 2023
8f49667
feat: target ES2017 in tsconfig (#391)
mqp Jan 18, 2023
e3788a6
test: replace toMatchSnapshot -> toMatchInlineSnapshot
soedirgo Feb 3, 2023
7fddd75
test: update images
soedirgo Feb 4, 2023
7891ef9
refactor: Postgrest*Response typings
soedirgo Feb 4, 2023
9c1ddd0
fix: rpc return type
soedirgo Feb 4, 2023
f8edc51
Merge pull request #394 from supabase/fix/rpc-return-type
soedirgo Feb 6, 2023
860387e
fix: use `null` if `return=minimal`
soedirgo Feb 4, 2023
8ce5da4
feat(types): export PostgrestResponseSuccess and PostgrestResponseFai…
kjrocker Feb 8, 2023
1946c72
Update PostgrestQueryBuilder.ts
yannxaver Feb 11, 2023
c3a8bf5
Update PostgrestQueryBuilder.ts
yannxaver Feb 11, 2023
9fb56c7
fix: prettify intersected types when selecting multiple columns (#399)
TomasHubelbauer Feb 21, 2023
c69ef50
feat: Support for double-quoted identifiers in queries (#415)
tvogel Mar 31, 2023
320ac92
chore(deps): bump shell-quote from 1.7.2 to 1.8.0
dependabot[bot] Apr 7, 2023
76a9a94
test: postgrest 11 pre-release
steve-chavez Apr 8, 2023
62b49e1
feat: bulk inserts/upserts w/ column defaults
soedirgo Apr 14, 2023
adf4839
test: make snapshots more deterministic
soedirgo Apr 14, 2023
5ad7562
Update docker-compose.yml to postgrest v11
steve-chavez Apr 16, 2023
a9c3629
fix: use `?columns=` on upsert
soedirgo Apr 17, 2023
0557752
test: update snapshots
soedirgo Apr 17, 2023
d4e03a0
feat(filters): likeAllOf, likeAnyOf, ilikeAllOf, ilikeAnyOf
soedirgo Apr 17, 2023
1e2981f
fix: populate `details` on FetchError
soedirgo Apr 18, 2023
29b3808
Merge branch 'master' into pgrst-11
soedirgo Apr 18, 2023
ad74608
Merge pull request #417 from steve-chavez/pgrst-11
soedirgo Apr 18, 2023
8030cc0
fix: partial fix for maybeSingle logging 406s
soedirgo May 11, 2023
878034b
Merge pull request #424 from supabase/fix/maybe-single
soedirgo May 11, 2023
578fe56
chore(test): regenerate types
soedirgo May 18, 2023
fc59958
feat(types): determine relationship cardinality
soedirgo May 26, 2023
56376c0
Merge pull request #426 from supabase/feat/relationship-cardinality
soedirgo May 26, 2023
aeb2ce9
fix: return SelectQueryError when referencing missing columns (#436)
3ru Jun 14, 2023
cb94a8d
docs: improve tsdoc for the `range()` method (#439)
pangolingo Jun 23, 2023
c95035a
fix: type error when ordering on json[b] columns
soedirgo Jul 7, 2023
2f4df87
chore: Mark array filter values readonly (#443)
wyozi Jul 17, 2023
32e220c
chore(docs): add note re: defaultToNull
soedirgo Jul 21, 2023
8d3f1e9
feat: add dynamic schema to postgrest client
sjones6 Aug 5, 2023
d7b7eaf
fix: use @supabase/node-fetch
soedirgo Aug 22, 2023
be421d9
fix: revert using @supabase/node-fetch
soedirgo Aug 23, 2023
fbeb24c
enforce non-null parameter to .eq
wyozi Aug 22, 2023
3811585
fix: trigger release
soedirgo Aug 24, 2023
7b0a696
fix: use @supabase/node-fetch
soedirgo Aug 22, 2023
18f580c
fix: detection of maybeSingle
steve-chavez Oct 11, 2023
7eabd65
chore: `foreignTable` -> `referencedTable`
soedirgo Nov 2, 2023
858e23e
chore(deps-dev): bump @babel/traverse from 7.18.2 to 7.23.2 (#487)
dependabot[bot] Nov 9, 2023
3816371
chore: update docker-compose to postgrest v11.2.2
laurenceisla Nov 17, 2023
5e7dbdc
fix: `explain()` always returning an error
laurenceisla Nov 18, 2023
f0ec2e9
chore: update generated types
soedirgo Oct 31, 2023
56c39a5
Merge pull request #490 from supabase/chore/update-generated-types
soedirgo Nov 22, 2023
f91aa29
feat: detect one-to-one relationships
soedirgo Nov 22, 2023
197b4d2
fix: add link on how to enable explain on the explain() method (#507)
dshukertjr Jan 2, 2024
f730aa7
fix: Ensure thrown errors have a stack trace (#502)
meyer9 Jan 15, 2024
a79d78c
feat: dedup values passed to PostgrestFilterBuilder.in (#517)
travis-humata Feb 7, 2024
4525dc4
feat: add support for type casting (id::text) (#429)
ozanmakes Feb 7, 2024
c9cebf8
refactor: query parser cleanup (#496)
bnjmnt4n Feb 8, 2024
e6a64c6
Add support for `...` spread operator
bnjmnt4n Feb 8, 2024
14910bf
feat: query parser: handle empty embedded resources `()`
bnjmnt4n Feb 8, 2024
5ea5163
feat: query parser: add types for `count` (#498)
bnjmnt4n Mar 3, 2024
e525751
Parser: Split parsing of non-embedded fields out of `ParseField`
bnjmnt4n Mar 5, 2024
f30fcc2
Parser: Split parsing of type casts into separate helper
bnjmnt4n Mar 5, 2024
6f5d570
Parser: Add support for aggregate functions
bnjmnt4n Mar 5, 2024
e26266a
non-nullable relationship if inner join (#458)
wyozi Mar 13, 2024
9dd41d9
feat: typecheck table names in `.from()` (#528)
soedirgo Mar 28, 2024
7c3dd21
feat: `.rpc()` with GET
soedirgo Mar 28, 2024
2895b77
fix: ignore undefined args when using rpc with head/get
soedirgo Apr 11, 2024
ec0762c
chore: Function -> Fn, like supabase-js
soedirgo Apr 11, 2024
03a811d
fix: rpc w/ HEAD/GET w/ array param
soedirgo Apr 11, 2024
2c4e846
fix: use proper dual-packaging
soedirgo May 21, 2024
dc42087
Revert "fix: use proper dual-packaging"
soedirgo May 23, 2024
7fc5fcb
fix: detect !inner in one-to-one relationships (#530)
wyozi May 29, 2024
24dcbde
chore: offset should be `to + 1` not `from + to` in function document…
abhadu May 29, 2024
63d32e5
chore(deps-dev): bump braces from 3.0.2 to 3.0.3
dependabot[bot] Jun 16, 2024
541cd5d
fix: Reland ESM fix (#540)
lucacasonato Jun 25, 2024
7591b92
Merge pull request #541 from supabase/dependabot/npm_and_yarn/braces-…
mansueli Jun 26, 2024
7b8c974
fix: esm typings (#547)
soedirgo Jun 27, 2024
7b5922f
fix: imports not working w/ Metro bundler
soedirgo Jul 4, 2024
9f91e72
feat: allow setting headers on a per-call basis
soedirgo Jul 17, 2024
c2049b2
fix(select-query-parser): support `!left`
avallete Sep 10, 2024
5ea6d90
chore: upgrade postgrest tests image add some more test data
avallete Sep 27, 2024
df9274e
chore: add more runtime tests coverage for selection
avallete Sep 27, 2024
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
23943a6
chore: upgrade postgrest tests image add some more test data (#556)
avallete Sep 30, 2024
981fa4d
fix: export PostgresError as a class (#555)
blechatellier Sep 30, 2024
f66f056
Merge branch 'master' into avallete/chore-increase-runtime-tests-cove…
soedirgo Sep 30, 2024
69afff9
Merge pull request #557 from supabase/avallete/chore-increase-runtime…
soedirgo 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
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Isomorphic JavaScript client for [PostgREST](https://postgrest.org). The goal of this library is to make an "ORM-like" restful interface.

Full documentation can be found [here](https://supabase.github.io/postgrest-js/).
Full documentation can be found [here](https://supabase.github.io/postgrest-js/v2).

### Quick start

Expand Down
4 changes: 2 additions & 2 deletions docs/v1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h1><code>postgrest-js</code></h1>
<a href="https://www.npmjs.com/package/@supabase/postgrest-js"><img src="https://img.shields.io/npm/v/@supabase/postgrest-js" alt="Package"></a>
<a href="#license"><img src="https://img.shields.io/npm/l/@supabase/postgrest-js" alt="License: MIT"></a></p>
<p>Isomorphic JavaScript client for <a href="https://postgrest.org">PostgREST</a>. The goal of this library is to make an &quot;ORM-like&quot; restful interface.</p>
<p>Full documentation can be found <a href="https://supabase.github.io/postgrest-js/">here</a>.</p>
<p>Full documentation can be found <a href="https://supabase.github.io/postgrest-js/v1">here</a>.</p>
<a href="#quick-start" id="quick-start" style="color: inherit; text-decoration: none;">
<h3>Quick start</h3>
</a>
Expand Down Expand Up @@ -164,4 +164,4 @@ <h2>Legend</h2>
<div class="overlay"></div>
<script src="assets/js/main.js"></script>
</body>
</html>
</html>
Loading
Loading