ic-use-actor
Advanced tools
Comparing version 0.0.4 to 0.0.5
12
build.js
@@ -6,13 +6,7 @@ import esbuild from "esbuild"; | ||
bundle: true, | ||
outfile: "dist/index.jsx", | ||
outdir: "dist", | ||
format: "esm", | ||
minify: true, | ||
external: [ | ||
"react", | ||
"react-dom", | ||
"@dfinity/agent", | ||
"@dfinity/identity", | ||
"@dfinity/candid", | ||
], | ||
splitting: true, | ||
external: ["react", "react-dom"], | ||
plugins: [], | ||
}); |
@@ -10,2 +10,9 @@ # Changelog | ||
## [0.0.5] - 2024-01-18 | ||
### Changed | ||
- Moved @dfinity/xxx dependencies from peerDependencies to dependencies because of bundling issues. This grows package size but prevents bundling issues in consuming apps. | ||
- Minor refactoring. | ||
## [0.0.4] - 2024-01-18 | ||
@@ -12,0 +19,0 @@ |
{ | ||
"name": "ic-use-actor", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "React Hook and context provider to make interacting with Internet Computer canisters more fun!", | ||
@@ -22,3 +22,3 @@ "author": "Kristofer Lund <kristofer@kristoferlund.se>", | ||
"license": "MIT", | ||
"main": "dist/index.jsx", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
@@ -33,12 +33,10 @@ "clean": "rm -rf dist", | ||
}, | ||
"dependencies": { | ||
"@dfinity/agent": ">=0.20.0", | ||
"@dfinity/candid": ">=0.20.0" | ||
}, | ||
"peerDependencies": { | ||
"@dfinity/agent": ">=0.20.0", | ||
"@dfinity/candid": ">=0.20.0", | ||
"@dfinity/identity": ">=0.20.0", | ||
"react": ">=18.0.0" | ||
}, | ||
"devDependencies": { | ||
"@dfinity/agent": "^0.20.2", | ||
"@dfinity/candid": "^0.20.2", | ||
"@dfinity/identity": "^0.20.2", | ||
"@types/node": "^20.10.6", | ||
@@ -45,0 +43,0 @@ "@types/react": "^18.2.39", |
@@ -34,10 +34,4 @@ # ic-use-actor | ||
In addition to `ic-use-actor`, the following packages are required: | ||
- `@dfinity/agent` | ||
- `@dfinity/identity` | ||
- `@dfinity/candid` | ||
```bash | ||
npm install ic-use-actor @dfinity/agent @dfinity/identity @dfinity/candid | ||
npm install ic-use-actor | ||
``` | ||
@@ -44,0 +38,0 @@ |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
551716
3
6
14
15006
196
1
2
+ Added@dfinity/agent@>=0.20.0
+ Added@dfinity/candid@>=0.20.0
- Removed@dfinity/identity@2.3.0(transitive)