Skip to content

Commit

Permalink
Remove old deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetso committed Jul 30, 2024
1 parent a0212ff commit 64bf575
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 24 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ jobs:
- name: Deploy fail notification
if: failure()
run: |
echo "Deploy failed"
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\":check-failed: Deploy <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|v${{ steps.next_version.outputs.version }}> failed.\"}" ${{ secrets.SLACKBOT_DEVOPS }}
echo "Staging Deploy failed"
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\":check-failed: Staging Deploy <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|v${{ steps.next_version.outputs.version }}> failed.\"}" ${{ secrets.SLACKBOT_DEVOPS }}
- name: Deploy success notification
if: success()
run: |
echo "Deploy succeeded"
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\":check-passed: Deploy <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|v${{ steps.next_version.outputs.version }}> succeeded.\"}" ${{ secrets.SLACKBOT_DEVOPS }}
echo "Staging Deploy succeeded"
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\":check-passed: Staging Deploy <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|v${{ steps.next_version.outputs.version }}> succeeded.\"}" ${{ secrets.SLACKBOT_DEVOPS }}
9 changes: 4 additions & 5 deletions demos/client-example-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,17 @@
"@prosopo/procaptcha": "1.0.2",
"@prosopo/server": "1.0.2",
"@prosopo/types": "1.0.2",
"@typegoose/auto-increment": "3.3.0",
"@typegoose/auto-increment": "^4.5.0",
"cors": "^2.8.5",
"jsonwebtoken": "^9.0.0",
"mongoose": "^7.3.3",
"mongoose": "^8.5.1",
"zod": "^3.22.3"
},
"devDependencies": {
"@prosopo/config": "1.0.2",
"@types/jsonwebtoken": "^9.0.2",
"nodemon": "^2.0.22",
"tslib": "2.6.2",
"typescript": "5.1.6",
"vite": "^5.1.7",
"@prosopo/config": "1.0.2"
"vite": "^5.1.7"
}
}
6 changes: 3 additions & 3 deletions demos/cypress-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
},
"dependencies": {
"@prosopo/types": "1.0.2",
"@prosopo/util": "1.0.2"
"@prosopo/util": "1.0.2",
"mongodb": "5.9.2"
},
"devDependencies": {
"@cypress/xpath": "^2.0.3",
"@types/node": "^20.3.1",
"cypress": "^13.4.0",
"cypress-vite": "^1.5.0",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-builtins": "^2.0.0",
"tslib": "2.6.2",
"typescript": "5.1.6",
"vite": "^5.1.7",
Expand Down
4 changes: 2 additions & 2 deletions dev/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
"webpack-dev-server": "^5.0.4"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-class-properties": "^7.24.7",
"@babel/plugin-transform-object-rest-spread": "^7.24.7",
"@babel/preset-typescript": "^7.24.1",
"tslib": "2.6.2",
"typescript": "5.1.6"
Expand Down
6 changes: 3 additions & 3 deletions dev/config/src/webpack/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import HtmlWebpackPlugin from 'html-webpack-plugin'
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
import NodePolyfillPlugin from 'node-polyfill-webpack-plugin'
import TerserPlugin from 'terser-webpack-plugin'
import path from 'path'
import path from 'node:path'

const moduleDirs = [path.resolve('./node_modules')]

Expand Down Expand Up @@ -58,8 +58,8 @@ export default (mode: string) => {
options: {
plugins: [
'@babel/plugin-transform-runtime',
'@babel/proposal-class-properties',
'@babel/proposal-object-rest-spread',
'@babel/transform-class-properties',
'@babel/transform-object-rest-spread',
'@babel/plugin-transform-react-jsx',
['@babel/plugin-syntax-import-attributes', { deprecatedAssertSyntax: true }],
],
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@
"eslint-plugin-yaml": "^0.5.0",
"markdownlint-cli": "^0.41.0",
"node-loader": "^2.0.0",
"nodemon": "^3.0.1",
"npm-check-updates": "^15.3.4",
"npm-run-all": "^4.1.5",
"prettier": "3.0.3",
"tsc-alias": "^1.8.6",
Expand Down
4 changes: 2 additions & 2 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"@prosopo/config": "1.0.2",
"@prosopo/types": "1.0.2",
"@prosopo/types-database": "1.0.2",
"mongodb-memory-server": "^8.7.2",
"mongoose": "^7.3.3"
"mongodb-memory-server": "^9.4.0",
"mongoose": "^8.5.1"
},
"devDependencies": {
"tslib": "2.6.2",
Expand Down
24 changes: 23 additions & 1 deletion packages/load-balancer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type HardcodedProvider = {
}

export const loadBalancer = (environment: EnvironmentTypes): HardcodedProvider[] => {
if (environment === 'production' || environment === 'staging') {
if (environment === 'production') {
return [
{
address: '5CFHA8d3S1XXkZuBwGqiuA6SECTzfoucq397YL34FuPAH89G',
Expand All @@ -44,6 +44,28 @@ export const loadBalancer = (environment: EnvironmentTypes): HardcodedProvider[]
},
]
}
if (environment === 'staging') {
return [
{
address: '5CFHA8d3S1XXkZuBwGqiuA6SECTzfoucq397YL34FuPAH89G',
url: 'https://staging-pronode2.prosopo.io',
datasetId: '0x7eca1e4806d91c9f905448d0ba9ed18b420d2930c8c8e11d3471befbbd75a672',
datasetIdContent: '0x1b66283e8d4dc61f9a076141974db4ba810bc8385268205a01d650ea0d40c320',
},
{
address: '5C7bfXYwachNuvmasEFtWi9BMS41uBvo6KpYHVSQmad4nWzw',
url: 'https://staging-pronode3.prosopo.io',
datasetId: '0x7eca1e4806d91c9f905448d0ba9ed18b420d2930c8c8e11d3471befbbd75a672',
datasetIdContent: '0x1b66283e8d4dc61f9a076141974db4ba810bc8385268205a01d650ea0d40c320',
},
{
address: '5FnBurrfqWgSLJFMsojjEP74mLX1vZZ9ASyNXKfA5YXu8FR2',
url: 'https://staging-pronode4.prosopo.io',
datasetId: '0xe666b35451f302b9fccfbe783b1de9a6a4420b840abed071931d68a9ccc1c21d',
datasetIdContent: '0x4cb09a9a3470199a41418267c9ceb0025572f05193e21ab6ef50a7e490f0dd2f',
},
]
}
if (environment === 'development') {
return [
{
Expand Down
3 changes: 1 addition & 2 deletions packages/types-database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
"@prosopo/common": "1.0.2",
"@prosopo/types": "1.0.2",
"@prosopo/captcha-contract": "1.0.2",
"mongodb": "5.6.0",
"mongoose": "^7.3.3",
"mongoose": "^8.5.1",
"zod": "^3.22.3"
},
"devDependencies": {
Expand Down

0 comments on commit 64bf575

Please sign in to comment.