Skip to content

Commit

Permalink
chore: update agent deps in frontend projects (alternate approach) (#…
Browse files Browse the repository at this point in the history
…3975)

* Bump agent-js in React starter project

* Bump agent-js in other starter projects

* Update changelog

* Remove lockfiles
  • Loading branch information
rvanasa authored Nov 7, 2024
1 parent a4ca210 commit 7d36bdd
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 13 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# UNRELEASED

### chore: update agent version in frontend templates, and include `resolve.dedupe` in Vite config

### chore: improve error message when trying to use the local replica when it is not running

### Frontend canister
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@dfinity/agent": "^1.4.0",
"@dfinity/candid": "^1.4.0",
"@dfinity/principal": "^1.4.0"
"@dfinity/agent": "^2.1.3",
"@dfinity/candid": "^2.1.3",
"@dfinity/principal": "^2.1.3"
},
"devDependencies": {
"@types/react": "^18.2.14",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ export default defineConfig({
),
},
],
dedupe: ['@dfinity/agent'],
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"format": "prettier --write \"src/**/*.{json,js,jsx,ts,tsx,css,scss}\""
},
"dependencies": {
"@dfinity/agent": "^1.4.0",
"@dfinity/candid": "^1.4.0",
"@dfinity/principal": "^1.4.0"
"@dfinity/agent": "^2.1.3",
"@dfinity/candid": "^2.1.3",
"@dfinity/principal": "^2.1.3"
},
"devDependencies": {
"@sveltejs/adapter-static": "^3.0.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ export default defineConfig({
),
},
],
dedupe: ['@dfinity/agent'],
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"vitest": "^2.0.5"
},
"dependencies": {
"@dfinity/agent": "^1.4.0",
"@dfinity/candid": "^1.4.0",
"@dfinity/principal": "^1.4.0",
"@dfinity/agent": "^2.1.3",
"@dfinity/candid": "^2.1.3",
"@dfinity/principal": "^2.1.3",
"lit-html": "^2.8.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ export default defineConfig({
),
},
],
dedupe: ['@dfinity/agent'],
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"dependencies": {
"pinia": "^2.1.6",
"vue": "^3.3.4",
"@dfinity/agent": "^1.4.0",
"@dfinity/candid": "^1.4.0",
"@dfinity/principal": "^1.4.0"
"@dfinity/agent": "^2.1.3",
"@dfinity/candid": "^2.1.3",
"@dfinity/principal": "^2.1.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default defineConfig({
alias: [
{ find: 'declarations', replacement: fileURLToPath(new URL('../declarations', import.meta.url)) },
{ find: '@', replacement: fileURLToPath(new URL('./src', import.meta.url)) },
]
],
dedupe: ['@dfinity/agent'],
}
});

0 comments on commit 7d36bdd

Please sign in to comment.