• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-js / 16887185443

11 Aug 2025 05:19PM UTC coverage: 49.734% (-25.1%) from 74.8%
16887185443

Pull #1527

github

web-flow
Merge 14e02df3f into 7876a2487
Pull Request #1527: feat: update realtime-js to 2.16.0

65 of 156 branches covered (41.67%)

Branch coverage included in aggregate %.

0 of 74 new or added lines in 2 files covered. (0.0%)

122 of 220 relevant lines covered (55.45%)

22.57 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/index.auto.ts
1
/**
2
 * @deprecated This auto-detection export will be removed in v3.0.0
3
 *
4
 * This export provides backward compatibility for Node.js < 22 environments
5
 * by using the auto-detection version of realtime-js which includes dynamic imports.
6
 *
7
 * For production builds, use the main export instead:
8
 * import { createClient } from '@supabase/supabase-js'
9
 */
10

NEW
11
import SupabaseClient from './SupabaseClient.auto'
×
12
import type { GenericSchema, SupabaseClientOptions } from './lib/types'
13

NEW
14
export * from '@supabase/auth-js'
×
15
export type { User as AuthUser, Session as AuthSession } from '@supabase/auth-js'
NEW
16
export {
×
17
  type PostgrestResponse,
18
  type PostgrestSingleResponse,
19
  type PostgrestMaybeSingleResponse,
NEW
20
  PostgrestError,
×
21
} from '@supabase/postgrest-js'
NEW
22
export {
×
NEW
23
  FunctionsHttpError,
×
NEW
24
  FunctionsFetchError,
×
NEW
25
  FunctionsRelayError,
×
NEW
26
  FunctionsError,
×
27
  type FunctionInvokeOptions,
NEW
28
  FunctionRegion,
×
29
} from '@supabase/functions-js'
30

31
// Import from realtime-js/auto instead of main export
32
// @ts-ignore - TypeScript doesn't understand package.json exports with Node moduleResolution
NEW
33
export * from '@supabase/realtime-js/auto'
×
34

NEW
35
export { default as SupabaseClient } from './SupabaseClient.auto'
×
36
export type { SupabaseClientOptions, QueryResult, QueryData, QueryError } from './lib/types'
37

38
/**
39
 * Creates a new Supabase Client.
40
 */
NEW
41
export const createClient = <
×
42
  Database = any,
43
  SchemaName extends string & keyof Database = 'public' extends keyof Database
44
    ? 'public'
45
    : string & keyof Database,
46
  Schema extends GenericSchema = Database[SchemaName] extends GenericSchema
47
    ? Database[SchemaName]
48
    : any
49
>(
50
  supabaseUrl: string,
51
  supabaseKey: string,
52
  options?: SupabaseClientOptions<SchemaName>
53
): SupabaseClient<Database, SchemaName, Schema> => {
NEW
54
  return new SupabaseClient<Database, SchemaName, Schema>(supabaseUrl, supabaseKey, options)
×
55
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc