@supatype/client 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/client@0.10.0 build /home/runner/work/supatype/supatype/packages/client
2
+ > @supatype/client@0.10.1 build /home/runner/work/supatype/supatype/packages/client
3
3
  > tsc --project tsconfig.json
4
4
 
@@ -1,122 +1,110 @@
1
1
 
2
- > @supatype/client@0.10.0 test /home/runner/work/supatype/supatype/packages/client
2
+ > @supatype/client@0.10.1 test /home/runner/work/supatype/supatype/packages/client
3
3
  > vitest run --maxWorkers=50%
4
4
 
5
5
 
6
6
   RUN  v4.0.18 /home/runner/work/supatype/supatype/packages/client
7
7
 
8
- ✓ tests/auth.test.ts (47 tests) 436ms
9
- ✓ tests/realtime-private-channels.test.ts (37 tests) 838ms
10
- ✓ tests/query.test.ts (39 tests) 593ms
11
- ✓ tests/types.test.ts (30 tests) 904ms
12
- ✓ .single() resolves to QueryResult<Row>  712ms
13
- ✓ tests/mfa-totp-integration.test.ts (12 tests) 809ms
14
- ✓ calls POST /factors with factor_type=totp  420ms
15
- ✓ tests/draft-profile.test.ts (18 tests) 710ms
16
- ✓ is sent as Accept-Profile when the query asks for it  313ms
17
- ✓ tests/table-subscribe.test.ts (12 tests) 843ms
18
- ✓ opens a socket, sends the subscribe frame, and delivers a change  480ms
19
- ✓ tests/runtime-env.test.ts (33 tests) 358ms
20
- ✓ tests/auth-sso.test.ts (20 tests) 531ms
21
- ✓ tests/realtime-multi-tenant-integration.test.ts (7 tests) 367ms
22
- ✓ tests/draft-insert.test.ts (18 tests) 429ms
23
- ✓ tests/graphql-json.test.ts (12 tests) 306ms
24
- ✓ tests/realtime-rows-after-broadcast.test.ts (9 tests) 404ms
25
- ✓ tests/exact-values.test.ts (33 tests) 135ms
26
- ✓ tests/realtime-shared-channel.test.ts (8 tests) 289ms
27
- ✓ tests/draft-update.test.ts (11 tests) 482ms
28
- ✓ tests/exact-response.test.ts (20 tests) 96ms
29
- ✓ tests/server-bodies.test.ts (20 tests) 707ms
30
- ✓ tests/auth-url-session.test.ts (10 tests) 558ms
31
- ✓ signs in from implicit-grant tokens in the fragment and cleans the URL  361ms
32
- ✓ tests/subscribe-frame.test.ts (10 tests) 449ms
33
- ✓ tests/realtime-exact-values.test.ts (12 tests) 728ms
34
- ✓ gives a bigint column a native bigint  381ms
35
- ✓ tests/realtime-connection.test.ts (12 tests) 2469ms
36
- ✓ reports a drop as connecting, and connected again once the socket is back  1058ms
37
- ✓ drops the socket on the error and reconnects  1027ms
38
- ✓ tests/retry-integration.test.ts (12 tests) 549ms
39
- ✓ tests/storage-quota-integration.test.ts (10 tests) 196ms
40
- ✓ tests/runtime-env-page-script.test.ts (16 tests) 261ms
41
- ✓ tests/storage-upload-limit-integration.test.ts (11 tests) 404ms
42
- ✓ tests/rate-limit-integration.test.ts (8 tests) 771ms
43
- ✓ waits Retry-After seconds then retries on 429  474ms
8
+ ✓ tests/auth.test.ts (47 tests) 611ms
9
+ ✓ tests/realtime-private-channels.test.ts (37 tests) 816ms
10
+ ✓ tests/query.test.ts (39 tests) 799ms
11
+ ✓ tests/types.test.ts (30 tests) 569ms
12
+ ✓ .single() resolves to QueryResult<Row>  369ms
13
+ ✓ tests/mfa-totp-integration.test.ts (12 tests) 526ms
14
+ ✓ tests/draft-profile.test.ts (18 tests) 386ms
15
+ ✓ tests/table-subscribe.test.ts (12 tests) 498ms
16
+ ✓ tests/runtime-env.test.ts (33 tests) 201ms
17
+ ✓ tests/auth-sso.test.ts (20 tests) 230ms
18
+ ✓ tests/realtime-multi-tenant-integration.test.ts (7 tests) 283ms
19
+ ✓ tests/draft-insert.test.ts (18 tests) 280ms
20
+ ✓ tests/graphql-json.test.ts (12 tests) 254ms
21
+ ✓ tests/realtime-rows-after-broadcast.test.ts (9 tests) 221ms
22
+ ✓ tests/exact-values.test.ts (33 tests) 88ms
23
+ ✓ tests/realtime-shared-channel.test.ts (8 tests) 351ms
24
+ ✓ tests/draft-update.test.ts (11 tests) 320ms
25
+ ✓ tests/exact-response.test.ts (20 tests) 62ms
26
+ ✓ tests/server-bodies.test.ts (20 tests) 534ms
27
+ ✓ tests/auth-url-session.test.ts (10 tests) 195ms
28
+ ✓ tests/subscribe-frame.test.ts (10 tests) 393ms
29
+ ✓ tests/realtime-exact-values.test.ts (12 tests) 596ms
30
+ ✓ tests/realtime-connection.test.ts (12 tests) 2586ms
31
+ ✓ reports a drop as connecting, and connected again once the socket is back  1055ms
32
+ ✓ drops the socket on the error and reconnects  1075ms
33
+ ✓ tests/retry-integration.test.ts (12 tests) 453ms
34
+ ✓ tests/storage-quota-integration.test.ts (10 tests) 72ms
35
+ ✓ tests/runtime-env-page-script.test.ts (16 tests) 133ms
36
+ ✓ tests/storage-upload-limit-integration.test.ts (11 tests) 47ms
37
+ ✓ tests/rate-limit-integration.test.ts (8 tests) 192ms
44
38
  ✓ tests/realtime-session-auth.test.ts (7 tests) 240ms
45
- ✓ tests/retry-policy.test.ts (17 tests) 1933ms
39
+ ✓ tests/retry-policy.test.ts (17 tests) 1760ms
46
40
  ↓ tests/draft-update.integration.test.ts (3 tests | 3 skipped)
47
- ✓ tests/minimal-writes.test.ts (8 tests) 437ms
48
- ✓ insert asks for no representation and resolves to no rows  302ms
41
+ ✓ tests/minimal-writes.test.ts (8 tests) 348ms
49
42
  ↓ tests/draft-insert.integration.test.ts (4 tests | 4 skipped)
50
- ✓ tests/supatype-prepare.test.ts (12 tests) 5116ms
51
- ✓ ignores a CLI in the home folder's .node_modules  428ms
52
- ✓ runs supatype generate where the CLI is installed, its bin named  401ms
53
- ✓ runs supatype generate where the CLI is installed, its bin given as a string  542ms
54
- ✓ finds a CLI hoisted into a parent directory  656ms
55
- ✓ runs the nearest CLI  659ms
56
- ✓ passes over a node_modules it cannot look inside  336ms
57
- ✓ fails the install when the CLI folder is a link to nothing  391ms
58
- ✓ fails the install when the CLI folder is an empty folder  355ms
59
- ✓ fails the install when generate fails  452ms
60
- ✓ tests/filters.test.ts (11 tests) 448ms
61
- ✓ an array becomes a Postgres array literal, not JSON  306ms
62
- ✓ tests/realtime-ack-ref.test.ts (4 tests) 173ms
63
- ✓ tests/unauthorized-resend.test.ts (5 tests) 287ms
64
- ✓ tests/table-subscription-rows.test.ts (9 tests) 1473ms
65
- ✓ reads the table again once the join is back, so a change made while down shows up  1234ms
66
- ✓ tests/storage-object-shape.test.ts (8 tests) 208ms
67
- ✓ tests/result-error-class.test.ts (12 tests) 278ms
68
- ✓ tests/postgrest-error-codes.test.ts (28 tests) 268ms
69
- ✓ tests/examples-runtime-env.test.ts (8 tests) 9782ms
70
- ✓ loads, and sends the key the server's /supatype-env.js set  4921ms
71
- ✓ loads, and sends the key the server's /supatype-env.js set  2839ms
72
- ✓ loads, and sends the key the server's /supatype-env.js set  1992ms
73
- ✓ tests/channel-watch-private.test.ts (6 tests) 206ms
74
- ✓ tests/auth-events.test.ts (6 tests) 53ms
75
- ✓ tests/runtime-env-bundle.test.ts (3 tests) 2008ms
76
- ✓ tests/data-plane-auth.test.ts (2 tests) 67ms
77
- ✓ tests/serverless.test.ts (9 tests) 20ms
78
- ✓ tests/query-cache.test.ts (8 tests) 65ms
79
- ✓ tests/auth-errors.test.ts (14 tests) 63ms
80
- ✓ tests/table-subscription.test.ts (8 tests) 63ms
81
- ✓ tests/identity-change.test.ts (6 tests) 17ms
82
- ✓ tests/field-kinds-registry.test.ts (9 tests) 22ms
83
- ✓ tests/channel-watch.test.ts (5 tests) 132ms
84
- ✓ tests/table-transport.test.ts (8 tests) 475ms
85
- ✓ tests/signed-url-absolute.test.ts (5 tests) 108ms
86
- (node:11496) TimeoutOverflowWarning: 2306736714334 does not fit into a 32-bit signed integer.
43
+ ✓ tests/filters.test.ts (11 tests) 352ms
44
+ ✓ tests/supatype-prepare.test.ts (12 tests) 4075ms
45
+ ✓ runs supatype generate where the CLI is installed, its bin given as a string  436ms
46
+ ✓ finds a CLI hoisted into a parent directory  714ms
47
+ ✓ runs the nearest CLI  398ms
48
+ ✓ fails the install when the CLI folder is a CLI naming no supatype command  303ms
49
+ ✓ fails the install when generate fails  509ms
50
+ ✓ tests/realtime-ack-ref.test.ts (4 tests) 253ms
51
+ ✓ tests/unauthorized-resend.test.ts (5 tests) 268ms
52
+ ✓ tests/table-subscription-rows.test.ts (9 tests) 1506ms
53
+ ✓ reads the table again once the join is back, so a change made while down shows up  1241ms
54
+ ✓ tests/storage-object-shape.test.ts (8 tests) 114ms
55
+ ✓ tests/result-error-class.test.ts (12 tests) 81ms
56
+ ✓ tests/postgrest-error-codes.test.ts (28 tests) 135ms
57
+ ✓ tests/examples-runtime-env.test.ts (8 tests) 7782ms
58
+ ✓ loads, and sends the key the server's /supatype-env.js set  4123ms
59
+ ✓ loads, and sends the key the server's /supatype-env.js set  2025ms
60
+ ✓ loads, and sends the key the server's /supatype-env.js set  1617ms
61
+ ✓ tests/channel-watch-private.test.ts (6 tests) 136ms
62
+ ✓ tests/auth-events.test.ts (6 tests) 125ms
63
+ ✓ tests/data-plane-auth.test.ts (2 tests) 96ms
64
+ ✓ tests/serverless.test.ts (9 tests) 17ms
65
+ ✓ tests/runtime-env-bundle.test.ts (3 tests) 2368ms
66
+ ✓ tests/query-cache.test.ts (8 tests) 54ms
67
+ ✓ tests/auth-errors.test.ts (14 tests) 112ms
68
+ ✓ tests/identity-change.test.ts (6 tests) 16ms
69
+ ✓ tests/table-subscription.test.ts (8 tests) 77ms
70
+ ✓ tests/field-kinds-registry.test.ts (9 tests) 9ms
71
+ ✓ tests/channel-watch.test.ts (5 tests) 129ms
72
+ ✓ tests/table-transport.test.ts (8 tests) 476ms
73
+ ✓ tests/signed-url-absolute.test.ts (5 tests) 61ms
74
+ (node:10580) TimeoutOverflowWarning: 2306666685677 does not fit into a 32-bit signed integer.
87
75
  Timeout duration was set to 1.
88
76
  (Use `node --trace-warnings ...` to show where the warning was created)
89
- (node:11496) TimeoutOverflowWarning: 2306736714332 does not fit into a 32-bit signed integer.
77
+ (node:10580) TimeoutOverflowWarning: 2306666685676 does not fit into a 32-bit signed integer.
90
78
  Timeout duration was set to 1.
91
- (node:11496) TimeoutOverflowWarning: 2306736714330 does not fit into a 32-bit signed integer.
79
+ (node:10580) TimeoutOverflowWarning: 2306666685675 does not fit into a 32-bit signed integer.
92
80
  Timeout duration was set to 1.
93
- (node:11496) TimeoutOverflowWarning: 2306736714330 does not fit into a 32-bit signed integer.
81
+ (node:10580) TimeoutOverflowWarning: 2306666685675 does not fit into a 32-bit signed integer.
94
82
  Timeout duration was set to 1.
95
- (node:11496) TimeoutOverflowWarning: 2306736714328 does not fit into a 32-bit signed integer.
83
+ (node:10580) TimeoutOverflowWarning: 2306666685673 does not fit into a 32-bit signed integer.
96
84
  Timeout duration was set to 1.
97
- ✓ tests/auth-restore-user.test.ts (3 tests) 100ms
98
- ✓ tests/error-family.test.ts (10 tests) 24ms
99
- ✓ tests/realtime-refusal-error.test.ts (4 tests) 83ms
100
- ✓ tests/storage-upload-browser.test.ts (3 tests) 159ms
101
- ✓ tests/realtime-presence.test.ts (3 tests) 116ms
102
- ✓ tests/thrown-error.test.ts (6 tests) 24ms
103
- ✓ tests/storage-reference-url.test.ts (5 tests) 12ms
104
- ✓ tests/runtime-env-expo.test.ts (3 tests) 25ms
105
- ✓ tests/realtime-swap-status.test.ts (4 tests) 167ms
106
- ✓ tests/auth-error-codes.test.ts (26 tests) 31ms
107
- ✓ tests/masked-fields.test.ts (6 tests) 10ms
108
- ✓ tests/rpc-resend.test.ts (1 test) 60ms
109
- ✓ tests/count.test.ts (11 tests) 16ms
110
- ✓ tests/storage-url-encoding.test.ts (4 tests) 58ms
111
- ✓ tests/realtime-typed-channels.test.ts (3 tests) 14ms
112
- ✓ tests/entry-points.test.ts (4 tests) 18ms
113
- ✓ tests/public-env.test.ts (5 tests) 6ms
114
- ✓ tests/dynamic-headers.test.ts (2 tests) 45ms
115
- ✓ tests/pkce.test.ts (4 tests) 8ms
116
- ✓ tests/sha256-hex.test.ts (1 test) 5ms
85
+ ✓ tests/auth-restore-user.test.ts (3 tests) 38ms
86
+ ✓ tests/error-family.test.ts (10 tests) 9ms
87
+ ✓ tests/realtime-refusal-error.test.ts (4 tests) 89ms
88
+ ✓ tests/storage-upload-browser.test.ts (3 tests) 49ms
89
+ ✓ tests/realtime-presence.test.ts (3 tests) 96ms
90
+ ✓ tests/thrown-error.test.ts (6 tests) 14ms
91
+ ✓ tests/storage-reference-url.test.ts (5 tests) 13ms
92
+ ✓ tests/runtime-env-expo.test.ts (3 tests) 10ms
93
+ ✓ tests/auth-error-codes.test.ts (26 tests) 41ms
94
+ ✓ tests/realtime-swap-status.test.ts (4 tests) 116ms
95
+ ✓ tests/masked-fields.test.ts (6 tests) 8ms
96
+ ✓ tests/rpc-resend.test.ts (1 test) 79ms
97
+ ✓ tests/storage-url-encoding.test.ts (4 tests) 81ms
98
+ ✓ tests/count.test.ts (11 tests) 30ms
99
+ ✓ tests/realtime-typed-channels.test.ts (3 tests) 9ms
100
+ ✓ tests/entry-points.test.ts (4 tests) 7ms
101
+ ✓ tests/dynamic-headers.test.ts (2 tests) 37ms
102
+ ✓ tests/public-env.test.ts (5 tests) 5ms
103
+ ✓ tests/pkce.test.ts (4 tests) 18ms
104
+ ✓ tests/sha256-hex.test.ts (1 test) 6ms
117
105
 
118
106
   Test Files  72 passed | 2 skipped (74)
119
107
   Tests  813 passed | 7 skipped (820)
120
-  Start at  15:46:01
121
-  Duration  68.62s (transform 9.66s, setup 0ms, import 32.75s, tests 40.55s, environment 61ms)
108
+  Start at  11:13:25
109
+  Duration  52.41s (transform 7.96s, setup 0ms, import 26.17s, tests 33.04s, environment 29ms)
122
110
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/client@0.10.0 typecheck /home/runner/work/supatype/supatype/packages/client
2
+ > @supatype/client@0.10.1 typecheck /home/runner/work/supatype/supatype/packages/client
3
3
  > tsc --project tests/tsconfig.json --noEmit && tsc --project type-tests/tsconfig.json --noEmit
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supatype/client",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "license": "MIT",
5
5
  "description": "Supatype client SDK: typed REST, auth, storage, realtime",
6
6
  "type": "module",