Skip to content

Commit

Permalink
v0.0.9 Moved @dfinity/xxx dependencies from dependencies to peerDepen…
Browse files Browse the repository at this point in the history
…dencies to reduce package size.
  • Loading branch information
kristoferlund committed Mar 7, 2024
1 parent fd3042a commit 0f2133d
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 22 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.0.9] - 2024-03-07

### Changed
- Moved @dfinity/xxx dependencies from dependencies to peerDependencies to reduce package size.

## [0.0.8] - 2024-03-04

### Changed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
## Installation

```bash
npm install ic-use-internet-identity
npm install ic-use-internet-identity @dfinity/agent @dfinity/auth-client @dfinity/identity
```

## Usage
Expand Down
8 changes: 7 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ esbuild.build({
splitting: true,
outdir: "dist",
format: "esm",
external: ["react", "react-dom"],
external: [
"react",
"react-dom",
"@dfinity/agent",
"@dfinity/auth-client",
"@dfinity/identity",
],
plugins: [],
});
46 changes: 33 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ic-use-internet-identity",
"version": "0.0.8",
"version": "0.0.9",
"description": "Hook that makes it easy to integrate IC Internet Identity into your React application.",
"author": "Kristofer Lund <kristofer@kristoferlund.se>",
"repository": {
Expand Down Expand Up @@ -29,13 +29,12 @@
"dev:esbuild": "npm run build --watch"
},
"license": "MIT",
"dependencies": {
"@dfinity/agent": "^1.0.1",
"@dfinity/auth-client": "^1.0.1",
"@dfinity/identity": "^1.0.1"
},
"dependencies": {},
"peerDependencies": {
"react": ">=18.0.0"
"react": ">=18.0.0",
"@dfinity/agent": ">=1.0.1",
"@dfinity/auth-client": ">=1.0.1",
"@dfinity/identity": ">=1.0.1"
},
"devDependencies": {
"@types/node": "^20.10.6",
Expand Down

0 comments on commit 0f2133d

Please sign in to comment.