-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[polyfills] Bundling of package dependencies (#237)
Co-authored-by: Steven Ontong <[email protected]>
- Loading branch information
1 parent
b0b31ac
commit 02ae5de
Showing
40 changed files
with
16,582 additions
and
21,548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@powersync/attachments': minor | ||
'@powersync/kysely-driver': minor | ||
'@powersync/react': minor | ||
'@powersync/vue': minor | ||
'@powersync/web': minor | ||
--- | ||
|
||
Prebundling dependencies with the aim of reducing the need for polyfills. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@powersync/react-native': minor | ||
--- | ||
|
||
Prebundling react-native dependencies with the aim of reducing the need for polyfills. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@powersync/common': minor | ||
--- | ||
|
||
Prebundling common package with the aim of reducing the need for polyfills. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
demos/django-react-native-todolist/library/stores/system.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 11 additions & 17 deletions
28
demos/react-native-supabase-group-chat/src/lib/supabase.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
import "react-native-url-polyfill/auto"; | ||
import AsyncStorage from "@react-native-async-storage/async-storage"; | ||
import { createClient } from "@supabase/supabase-js"; | ||
import AsyncStorage from '@react-native-async-storage/async-storage'; | ||
import { createClient } from '@supabase/supabase-js'; | ||
|
||
import { config } from "./config"; | ||
import { Database } from "./database.types"; | ||
import { config } from './config'; | ||
import { Database } from './database.types'; | ||
|
||
const authStorage = { | ||
setItem: async (key: string, value: string) => | ||
await AsyncStorage.setItem(key, value), | ||
setItem: async (key: string, value: string) => await AsyncStorage.setItem(key, value), | ||
getItem: async (key: string) => await AsyncStorage.getItem(key), | ||
removeItem: async (key: string) => await AsyncStorage.removeItem(key), | ||
removeItem: async (key: string) => await AsyncStorage.removeItem(key) | ||
}; | ||
|
||
export const supabase = createClient<Database>( | ||
config.supabaseUrl, | ||
config.supabaseAnonKey, | ||
{ | ||
auth: { | ||
storage: authStorage, | ||
}, | ||
}, | ||
); | ||
export const supabase = createClient<Database>(config.supabaseUrl, config.supabaseAnonKey, { | ||
auth: { | ||
storage: authStorage | ||
} | ||
}); |
1 change: 0 additions & 1 deletion
1
demos/react-native-supabase-group-chat/src/providers/PowerSync.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.