-
Notifications
You must be signed in to change notification settings - Fork 30
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
[polyfills] Bundling of package dependencies #237
Merged
+16,582
−21,548
Merged
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
44d7247
test
stevensJourney 6b5ced4
not working state webpack config for react native bundling
Chriztiaan a24fba5
Testing dev publish
Chriztiaan f752719
Merge branch 'main' into poc-bundle-christiaan
Chriztiaan 0638cc2
Dropping unused dependencies.
Chriztiaan 0057d8e
Cleaned react-native package.json.
Chriztiaan f6a451f
Bson alias.
Chriztiaan 1974635
Resolved readable stream polyfill.
Chriztiaan 27fd57c
PoC of prebundling (half working React Native and half working common).
Chriztiaan 04e35c1
fix React navtive
stevensJourney d856e91
random cleanup
stevensJourney d749c68
Common changeset.
Chriztiaan e410da0
Testing inline vite webworker syntax.
Chriztiaan a2cac24
Testing rollup common with tsc web.
Chriztiaan cfc5054
Dropped buffer from `web`.
Chriztiaan dd06141
Dropped default implementation of fetch (via cross-fetch) in common.
Chriztiaan 7d8ab8c
Merge branch 'main' into poc-bundle-christiaan-steven
Chriztiaan c84ac1c
Fixed web-streams-polyfills using a polyfill instead of a ponyfill (b…
Chriztiaan d9ccb77
Started updating dependencies and polyfills.
Chriztiaan 58dbde7
Fix ponyfills + Merge branch 'main' into poc-bundle-christiaan-steven
Chriztiaan e5ea43b
Updating todo apps. Removed code/dependencies related to polyfllls .
Chriztiaan 9440b7b
Changelog entries. Used for dev package release.
Chriztiaan 0bc04e0
Merge branch 'main' into poc-bundle-christiaan-steven
Chriztiaan 1f683c0
Updated demo vite config to have an empty include.
Chriztiaan c87b59c
Merge branch 'main' into poc-bundle-christiaan-steven
Chriztiaan 5a3e2aa
Added web to changesets.
Chriztiaan fd869fd
Vendoring crypto.
Chriztiaan 5db3507
Cleanup react-supabase-todolist vite config.
Chriztiaan 047c141
Updated changesets to be minor instead of patch.
Chriztiaan 5e03971
Minified bundles for common and react-native.
Chriztiaan 5642b97
Merge branch 'main' into prebundling
Chriztiaan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By having an empty array instead of omitting the field, it silences a vite warning.