-
Notifications
You must be signed in to change notification settings - Fork 14
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
[menu-bar] Bump electron to 33.2.0 and react to 18.3.1 #218
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { requireNativeModule, EventEmitter } from 'expo-modules-core'; | ||
import { requireNativeModule, LegacyEventEmitter } from 'expo-modules-core'; | ||
import { NativeModule } from 'react-native'; | ||
|
||
import { NativeMenuBarModule } from './types'; | ||
|
||
const MenuBarModule = requireNativeModule<NativeModule & NativeMenuBarModule>('MenuBar'); | ||
export const emitter = new EventEmitter(MenuBarModule); | ||
export const emitter = new LegacyEventEmitter(MenuBarModule); | ||
|
||
export default MenuBarModule; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,25 +19,27 @@ | |
}, | ||
"dependencies": { | ||
"@apollo/client": "^3.8.1", | ||
"@expo/metro-config": "~0.18.11", | ||
"@expo/metro-runtime": "~3.2.3", | ||
"@expo/metro-runtime": "~4.0.0", | ||
"@expo/styleguide-native": "^1.0.1", | ||
"@fluentui/react-components": "^9.46.4", | ||
"@fluentui/react-checkbox": "^9.2.40", | ||
"@fluentui/react-icons": "^2.0.227", | ||
"@fluentui/react-progress": "^9.1.90", | ||
"@fluentui/react-provider": "^9.18.0", | ||
"@fluentui/react-switch": "^9.1.97", | ||
"@fluentui/react-theme": "^9.1.22", | ||
Comment on lines
+26
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. latest release of |
||
"@react-native-clipboard/clipboard": "^1.13.1", | ||
"@react-native-community/cli": "^15.1.0", | ||
"apollo3-cache-persist": "^0.14.1", | ||
"common-types": "1.0.0", | ||
"expo": "52.0.0-preview.23", | ||
"graphql": "^16.8.0", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"react": "18.3.1", | ||
"react-dom": "18.3.1", | ||
"react-native": "0.76.1", | ||
"react-native-macos": "0.76.0", | ||
"react-native-mmkv": "^2.10.2", | ||
"react-native-svg": "15.8.0", | ||
"react-native-url-polyfill": "^2.0.0", | ||
"react-native-vector-icons": "^9.2.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no longer used |
||
"react-native-web": "~0.19.6", | ||
"rudder-sdk-js": "^2.48.1" | ||
}, | ||
|
@@ -55,7 +57,6 @@ | |
"@react-native/typescript-config": "^0.75.2", | ||
"@types/jest": "^29.2.1", | ||
"@types/react": "18.0.24", | ||
"@types/react-native-vector-icons": "^6.4.13", | ||
"@types/react-test-renderer": "^18.0.0", | ||
"babel-jest": "^29.6.3", | ||
"electron-store": "^8.1.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,3 +112,22 @@ export function resetApolloStore() { | |
apolloClient.resetStore(); | ||
storage.delete('apollo-cache-persist'); | ||
} | ||
|
||
export type Log = { command: string; info: string }; | ||
export class Logs { | ||
private logs = this.get(); | ||
|
||
push(log: Log) { | ||
this.logs.push(log); | ||
if (Platform.OS === 'web') { | ||
localStorage.setItem('logs', JSON.stringify(this.logs)); | ||
} | ||
} | ||
|
||
get(): Log[] { | ||
if (Platform.OS === 'web') { | ||
return JSON.parse(localStorage.getItem('logs') ?? '[]'); | ||
} | ||
return this.logs ?? []; | ||
} | ||
} | ||
Comment on lines
+117
to
+133
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In order for the logs to work across multiple windows on react-native web we need to use some sort of storage solution like localStorage |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ | |
}, | ||
"devDependencies": { | ||
"eslint-config-universe": "^11.3.0", | ||
"typescript": "4.9.4" | ||
"typescript": "^5.3.0" | ||
} | ||
} |
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.
We need to reset localStorage logs on launch to ignore the logs from the previous session