Skip to content

Commit

Permalink
chore: Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fguitton committed Oct 4, 2024
1 parent 37783ee commit eaa955a
Show file tree
Hide file tree
Showing 14 changed files with 5,054 additions and 4,837 deletions.
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
10 changes: 5 additions & 5 deletions apps/pda-back/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"license": "MIT",
"type": "module",
"dependencies": {
"@fastify/helmet": "11.1.1",
"@fastify/rate-limit": "9.1.0",
"@fastify/sensible": "5.6.0",
"@fastify/websocket": "10.0.1",
"@fastify/helmet": "12.0.1",
"@fastify/rate-limit": "10.1.0",
"@fastify/sensible": "6.0.1",
"@fastify/websocket": "11.0.1",
"@secretarium/connector": "0.17.0",
"fastify": "4.28.1",
"fastify": "5.0.0",
"git-rev-sync": "3.0.2"
}
}
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
28 changes: 12 additions & 16 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-beta.5",
"@nx/vite": "19.8.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",
"@vitejs/plugin-react-swc": "^3.7.0",
"@tailwindcss/vite": "4.0.0-alpha.26",
"@tanstack/react-router": "1.58.18",
"@tanstack/router-devtools": "1.58.18",
"@tanstack/router-vite-plugin": "1.58.12",
"@testing-library/react": "16.0.1",
"@vitejs/plugin-react-swc": "^3.7.1",
"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",
"vite": "^5.4.0"
"qrcode.react": "4.0.1",
"react": "19.0.0-rc-0751fac7-20241002",
"react-dom": "19.0.0-rc-0751fac7-20241002",
"vite": "^5.4.8"
}
}
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
39 changes: 20 additions & 19 deletions apps/pocket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,41 @@
"private": true,
"type": "module",
"dependencies": {
"@expo/metro-config": "^0.18.10",
"@nx/expo": "19.5.6",
"@sentry/react-native": "^5.27.0",
"@expo/metro-config": "^0.18.11",
"@nx/expo": "19.8.3",
"@sentry/react-native": "^5.33.1",
"@testing-library/jest-native": "5.4.3",
"expo": "51.0.24",
"expo": "51.0.36",
"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-0751fac7-20241002",
"react-devtools-core": "5.3.1",
"react-native": "0.74.5",
"react-native": "0.75.4",
"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",
"**/@expo/prebuild-config": "~7.0.0",
"**/@expo/metro-config": "~0.18.10",
"**/@sentry/core": "^8.25.0",
"**/@sentry/browser": "^8.25.0",
"**/@sentry/node": "^8.25.0",
"**/@sentry/react": "^8.25.0",
"**/@sentry/types": "^8.25.0",
"**/@sentry/utils": "^8.25.0",
"**/@expo/metro-config": "~0.18.11",
"**/@sentry/core": "^7.119.1",
"**/@sentry/browser": "^7.119.1",
"**/@sentry/node": "^7.119.1",
"**/@sentry/react": "^7.119.1",
"**/@sentry/types": "^7.119.1",
"**/@sentry/utils": "^7.119.1",
"**/pretty-format": "^29",
"**/react": "^18",
"**/react-dom": "^18",
"**/typescript": "^5.5.4"
"**/react": "19.0.0-rc-0751fac7-20241002",
"**/react-dom": "19.0.0-rc-0751fac7-20241002",
"**/typescript": "^5.6.2"
},
"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.1",
"@swc/helpers": "0.5.13",
"@trpc/server": "11.0.0-rc.553",
"express": "4.21.0",
"superjson": "2.2.1"
}
}
Loading

0 comments on commit eaa955a

Please sign in to comment.