Skip to content

Commit

Permalink
react: make @lens-protocol/metadata a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysu committed Apr 18, 2024
1 parent cccb264 commit ce6bb9e
Show file tree
Hide file tree
Showing 12 changed files with 1,792 additions and 554 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"access": "public",
"baseBranch": "develop",
"updateInternalDependencies": "patch",
"ignore": ["example-*"]
"ignore": ["example-*", "lens-next-app"]
}
9 changes: 9 additions & 0 deletions .changeset/fair-shrimps-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@lens-protocol/gated-content": patch
"@lens-protocol/client": patch
"@lens-protocol/react": patch
"@lens-protocol/react-native": patch
"@lens-protocol/react-web": patch
---

**chore:** make @lens-protocol/metadata a direct dependency
10 changes: 6 additions & 4 deletions .github/workflows/lens-next-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,20 @@ jobs:
node-version-file: ".nvmrc"
cache: "pnpm"

- run: pnpm install --frozen-lockfile
- name: Create a new Next.js App from the template
- run: pnpm create next-app -e https://github.com/lens-protocol/lens-sdk/tree/develop/examples/lens-next-app test-app
- run: cd test-app

- name: Install Playwright Browsers
run: pnpm --dir examples/lens-next-app exec playwright install --with-deps
run: pnpm exec playwright install --with-deps

- name: Run Playwright tests
run: pnpm --dir examples/lens-next-app run test:e2e
run: pnpm run test:e2e

- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
retention-days: 10
34 changes: 17 additions & 17 deletions examples/lens-next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@
"dependencies": {
"@lens-protocol/react-web": "latest",
"@lens-protocol/wagmi": "latest",
"@tanstack/react-query": "^5.18.1",
"connectkit": "^1.7.2",
"next": "^14.1.1",
"react": "^18",
"react-dom": "^18",
"viem": "^2.9.16",
"wagmi": "^2.5.19"
"@tanstack/react-query": "^5.29.2",
"connectkit": "^1.7.3",
"next": "^14.2.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "^2.9.21",
"wagmi": "^2.5.20"
},
"devDependencies": {
"@playwright/test": "^1.42.1",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
"dotenv": "^16.3.1",
"eslint": "^8",
"@playwright/test": "^1.43.1",
"@types/node": "^20.12.7",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"autoprefixer": "^10.4.19",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-next": "14.1.1",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"typescript": "^5"
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
}
}
2 changes: 1 addition & 1 deletion examples/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@ethersproject/providers": "^5.7.2",
"@irys/sdk": "^0.0.4",
"@lens-protocol/client": "workspace:*",
"@lens-protocol/metadata": "^1.0.5",
"@lens-protocol/metadata": "^1.1.6",
"dotenv": "^16.3.1",
"ethers": "^5.7.2",
"typechain": "^8.3.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@gluestack-style/react": "^1.0.48",
"@gluestack-ui/config": "^1.1.16",
"@gluestack-ui/themed": "^1.1.9",
"@lens-protocol/metadata": "^1.0.5",
"@lens-protocol/metadata": "^1.1.6",
"@lens-protocol/react-native": "link:../../packages/react-native",
"ethers": "^5.7.2",
"react": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@ethersproject/providers": "^5.7.2",
"@irys/sdk": "^0.0.4",
"@lens-protocol/client": "workspace:*",
"@lens-protocol/metadata": "^1.0.5",
"@lens-protocol/metadata": "^1.1.6",
"@lens-protocol/react-web": "workspace:*",
"@lens-protocol/wagmi": "workspace:*",
"@tanstack/react-query": "^5.18.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"@graphql-codegen/typescript-graphql-request": "^5.0.0",
"@graphql-codegen/typescript-operations": "^4.0.1",
"@lens-protocol/eslint-config": "workspace:*",
"@lens-protocol/metadata": "^1.0.5",
"@lens-protocol/metadata": "^1.1.6",
"@lens-protocol/prettier-config": "workspace:*",
"@lens-protocol/tsconfig": "workspace:*",
"@types/jest": "^29.5.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/gated-content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@graphql-codegen/typescript": "^3.0.4",
"@jest/globals": "^29.7.0",
"@lens-protocol/eslint-config": "workspace:*",
"@lens-protocol/metadata": "^1.0.5",
"@lens-protocol/metadata": "^1.1.6",
"@lens-protocol/prettier-config": "workspace:*",
"@lens-protocol/tsconfig": "workspace:*",
"@types/jest": "^29.5.10",
Expand Down
6 changes: 1 addition & 5 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"@lens-protocol/api-bindings": "workspace:*",
"@lens-protocol/blockchain-bindings": "workspace:*",
"@lens-protocol/domain": "workspace:*",
"@lens-protocol/metadata": "^1.1.6",
"@lens-protocol/shared-kernel": "workspace:*",
"@lens-protocol/storage": "workspace:*",
"eth-rpc-errors": "^4.0.3",
Expand All @@ -81,7 +82,6 @@
"@ethersproject/abi": "^5.7.0",
"@faker-js/faker": "^7.6.0",
"@lens-protocol/eslint-config": "workspace:*",
"@lens-protocol/metadata": "^1.0.6",
"@lens-protocol/prettier-config": "workspace:*",
"@lens-protocol/tsconfig": "workspace:*",
"@testing-library/react": "^13.4.0",
Expand All @@ -107,14 +107,10 @@
"typescript": "5.2.2"
},
"peerDependencies": {
"@lens-protocol/metadata": "^1.0.0",
"@types/react": "^18.0.0",
"react": "^18.2.0"
},
"peerDependenciesMeta": {
"@lens-protocol/metadata": {
"optional": true
},
"@types/react": {
"optional": true
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const amoy: ChainConfig = {
chainId: 80002,
name: 'Polygon Testnet Amoy',
rpcUrl: 'https://rpc-amoy.polygon.technology/',
blockExplorer: 'https://www.oklink.com/amoy/',
blockExplorer: 'https://amoy.polygonscan.com/',
nativeCurrency: matic(),
};

Expand Down
Loading

0 comments on commit ce6bb9e

Please sign in to comment.