Skip to content
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

chore(deps): Bump the sentry group across 1 directory with 4 updates #416

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
#!/bin/sh
yarn run lint-staged
4 changes: 2 additions & 2 deletions apps/pda-back/esbuild.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ module.exports = {
},
define: {
'process.env.NX_TASK_TARGET_PROJECT': JSON.stringify(process.env.NX_TASK_TARGET_PROJECT),
'process.env.GIT_REPO_COMMIT': JSON.stringify(git.long()),
'process.env.GIT_REPO_BRANCH': JSON.stringify(git.branch()),
'process.env.GIT_REPO_COMMIT': JSON.stringify(git.long('.')),
'process.env.GIT_REPO_BRANCH': JSON.stringify(git.branch('.')),
'process.env.GIT_REPO_DIRTY': JSON.stringify(git.isDirty()),
'process.env.GIT_REPO_VERSION': JSON.stringify(version)
}
Expand Down
4 changes: 2 additions & 2 deletions apps/pda-front-e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { workspaceRoot } from '@nx/devkit';
import { fileURLToPath } from 'node:url';

// For CI, you may want to set BASE_URL to the deployed application.
const baseURL = process.env.BASE_URL || 'http://localhost:3380';
const baseURL = process.env['BASE_URL'] || 'http://localhost:4300';

/**
* Read environment variables from file.
Expand All @@ -25,7 +25,7 @@ export default defineConfig({
},
/* Run your local dev server before starting the tests */
webServer: {
command: 'yarn nx serve pda-front',
command: 'yarn nx run pda-front:preview',
url: baseURL,
reuseExistingServer: !process.env.CI,
cwd: workspaceRoot
Expand Down
24 changes: 10 additions & 14 deletions apps/pda-front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,22 @@
"license": "MIT",
"type": "module",
"dependencies": {
"@legendapp/state": "3.0.0-alpha.3",
"@nx/vite": "19.5.6",
"@legendapp/state": "3.0.0-alpha.38",
"@nx/vite": "19.7.3",
"@secretarium/connector": "0.17.0",
"@secretarium/crypto": "0.2.1",
"@secretarium/instrumentation": "0.5.0",
"@secretarium/pda-api": "0.0.1",
"@sentry/react": "^7.118.0",
"@tailwindcss/vite": "4.0.0-alpha.18",
"@tanstack/react-router": "1.46.8",
"@tanstack/router-devtools": "1.46.8",
"@tanstack/router-vite-plugin": "1.46.6",
"@testing-library/react": "16.0.0",
"@trpc/client": "11.0.0-rc.477",
"@trpc/react-query": "11.0.0-rc.477",
"@tailwindcss/vite": "4.0.0-alpha.24",
"@tanstack/react-router": "1.57.15",
"@tanstack/router-devtools": "1.57.15",
"@tanstack/router-vite-plugin": "1.57.15",
"@testing-library/react": "16.0.1",
"@vitejs/plugin-react-swc": "^3.7.0",
"git-rev-sync": "3.0.2",
"qrcode.react": "3.1.0",
"react": "19.0.0-rc-9d2da591-20240808",
"react-dom": "19.0.0-rc-9d2da591-20240808",
"superjson": "2.2.1",
"qrcode.react": "4.0.1",
"react": "19.0.0-rc-206df66e-20240912",
"react-dom": "19.0.0-rc-206df66e-20240912",
"vite": "^5.4.0"
}
}
5 changes: 4 additions & 1 deletion apps/pda-front/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@
"production": {
"buildTarget": "pda-front:build:production"
}
}
},
"dependsOn": [
"build"
]
},
"test": {
"executor": "@nx/vite:test",
Expand Down
4 changes: 1 addition & 3 deletions apps/pda-front/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ export default defineConfig({
routesDirectory: path.join(__dirname, 'src/routes'),
generatedRouteTree: path.join(__dirname, './src/routeTree.gen.ts'),
enableRouteGeneration: true,
experimental: {
enableCodeSplitting: true
}
autoCodeSplitting: true
})],

// Uncomment this if you are using workers.
Expand Down
3 changes: 2 additions & 1 deletion apps/pocket/eas.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cli": {
"version": ">= 5.2.0"
"appVersionSource": "remote",
"version": ">= 11.0.2"
},
"submit": {
"production": {}
Expand Down
15 changes: 8 additions & 7 deletions apps/pocket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
"type": "module",
"dependencies": {
"@expo/metro-config": "^0.18.10",
"@nx/expo": "19.5.6",
"@nx/expo": "19.7.3",
"@sentry/react-native": "^5.27.0",
"@testing-library/jest-native": "5.4.3",
"expo": "51.0.24",
"expo": "51.0.32",
"expo-barcode-scanner": "~13.0.1",
"expo-keep-awake": "13.0.2",
"expo-secure-store": "~13.0.2",
"metro-config": "0.80.10",
"react": "19.0.0-rc-9d2da591-20240808",
"metro-config": "0.80.12",
"react": "19.0.0-rc-206df66e-20240912",
"react-devtools-core": "5.3.1",
"react-native": "0.74.5",
"react-native": "0.75.3",
"react-native-svg-transformer": "1.5.0",
"react-native-biometrics": "3.0.1",
"react-native-use-websocket": "0.2.6",
"react-router-native": "6.26.0"
"react-router-native": "6.26.2"
},
"resolutions": {
"**/@expo/config-plugins": "~8.0.0",
Expand All @@ -39,5 +39,6 @@
"scripts": {
"eas-build-pre-install": "cd ../../ && node tools/scripts/eas-build-pre-install.mjs . apps/pocket && cp yarn.lock apps/pocket",
"eas-build-post-install": "cd ../../ && node tools/scripts/eas-build-post-install.mjs . apps/pocket"
}
},
"devDependencies": {}
}
18 changes: 9 additions & 9 deletions libs/connector/src/secretarium.connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,26 +106,26 @@ export class SCP {
if (!this._options.broadcastChannel)
this._options.broadcastChannel = false;
if (this._options.broadcastChannel !== false) {
const { hostname, port, protocol } = window?.location ?? {}
const { hostname, port, protocol } = window?.location ?? {};
this._broadcastChannel = new BroadcastChannel(`__SCP_BChannel_${hostname}_${port ?? (protocol.includes('https') ? 443 : 80)}_${version}`, this._options.broadcastChannelOptions);
this._options.logger?.debug?.(`Secretarium broadcast: channel ${this._broadcastChannel.name} (${this._broadcastChannel.id}) created via ${this._broadcastChannel.type} API`);
this._broadcastChannel.onmessage = async (ev) => {
if (ev.type === 'response' && !await this.isBroadcastLeader()) {
const json = Utils.decode(ev.data);
await this._notify(json);
}
}
};
this._broadcastElector = createLeaderElection(this._broadcastChannel, {
fallbackInterval: 100,
responseTime: 100
})
});
this._broadcastElector.onduplicate = () => {
this._options.logger?.debug?.(`Secretarium broadcast: duplicate leader detected`);
this._options.logger?.debug?.('Secretarium broadcast: duplicate leader detected');
this._broadcastElector?.die();
}
console.log('tutu', this._broadcastElector)
};
console.log('tutu', this._broadcastElector);
this._broadcastElector.awaitLeadership().then(() => {
this._options.logger?.debug?.(`Secretarium broadcast: leader elected`);
this._options.logger?.debug?.('Secretarium broadcast: leader elected');
}).catch((e) => {
this._options.logger?.error?.(`Secretarium broadcast: leader election failed: ${e}`);
});
Expand Down Expand Up @@ -241,7 +241,7 @@ export class SCP {
return this._broadcastElector.isLeader;
else
return this._broadcastElector.awaitLeadership().then(() => {
this._options.logger?.debug?.(`Secretarium broadcast: leader elected`);
this._options.logger?.debug?.('Secretarium broadcast: leader elected');
if (!this._broadcastElector)
return false;
return this._broadcastElector.isLeader;
Expand Down Expand Up @@ -408,7 +408,7 @@ export class SCP {
this._broadcastChannel?.postMessage({
type: 'response',
data
})
});
}
} catch (e: any) {
console.error(e.name, e);
Expand Down
6 changes: 1 addition & 5 deletions libs/instrumentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
"directory": "libs/instrumentation"
},
"peerDependencies": {
"@secretarium/connector": "0.17.0",
"@sentry/core": "7.118.0",
"@sentry/utils": "7.118.0",
"@sentry/types": "7.118.0",
"pretty-bytes": "6.1.1"
"@secretarium/connector": "0.17.0"
}
}
8 changes: 4 additions & 4 deletions libs/pda-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.0.1",
"type": "module",
"dependencies": {
"@sentry/node": "^7.118.0",
"@swc/helpers": "0.5.12",
"@trpc/server": "11.0.0-rc.477",
"express": "4.19.2",
"@sentry/node": "^7.119.0",
"@swc/helpers": "0.5.13",
"@trpc/server": "11.0.0-rc.502",
"express": "4.21.0",
"superjson": "2.2.1"
}
}
Loading
Loading