Skip to content

Commit

Permalink
Merge pull request #1878 from Web3Auth/v9
Browse files Browse the repository at this point in the history
v9 Release
  • Loading branch information
chaitanyapotti authored Sep 18, 2024
2 parents 922788e + c4db1c4 commit c2864f4
Show file tree
Hide file tree
Showing 254 changed files with 110,250 additions and 13,057 deletions.
11 changes: 4 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@ module.exports = {
root: true,
extends: ["@toruslabs/eslint-config-typescript"],
parser: "@typescript-eslint/parser",
ignorePatterns: ["*.config.js", ".eslintrc.js"],
parserOptions: {
sourceType: "module",
ecmaVersion: 11,
ecmaVersion: 2022,
project: "./tsconfig.json",
},
ignorePatterns: ["*.config.js", "*.d.ts", ".eslintrc.js"],
env: {
es2020: true,
browser: true,
node: true,
mocha: true,
rules: {
camelcase: 0,
},
};
43 changes: 22 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
strategy:
matrix:
node: ["18.x"]
node: ["21.x"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
Expand All @@ -27,41 +27,42 @@ jobs:
- name: Build
run: npm run build

- name: Build demo
if: github.ref == 'refs/heads/master'
run: |
cd demo/vue-app
npm run install:local
npm install
npm run build
# Set the credentials from repository settings/secrets
- name: Configure AWS credentials
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/v9'
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION_US }}

# Copy the files from build folder to the S3 bucket
# Upload to S3
- name: sync s3
if: github.ref == 'refs/heads/master'
- name: Build new vue demo app
if: github.ref == 'refs/heads/v9'
run: |
cd demo/vue-app-new
npm install
npm run build
# Copy the files from build folder to the S3 bucket
# Upload to S3
- name: sync vue app new s3
if: github.ref == 'refs/heads/v9'
uses: jakejarvis/s3-sync-action@master
env:
SOURCE_DIR: "./demo/vue-app/dist"
SOURCE_DIR: "./demo/vue-app-new/dist"
AWS_REGION: "us-east-1"
AWS_S3_BUCKET: "demo-app.web3auth.io"
AWS_S3_BUCKET: "demo-sdk.web3auth.io"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

# Invalidate Cloudfront (this action)
- name: invalidate
if: github.ref == 'refs/heads/master'
# Invalidate Cloudfront (this action)
- name: invalidate vue app new s3
if: github.ref == 'refs/heads/v9'
uses: chaitanyapotti/cloudfront-update-distribution@v2
with:
cloudfront-distribution-id: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }}
cloudfront-distribution-id: ${{ secrets.AWS_CLOUDFRONT_NEW_DEMO_APP_DISTRIBUTION_ID }}
cloudfront-invalidation-path: "/*"
cloudfront-invalidation-required: true
cloudfront-wait-for-service-update: false


13 changes: 2 additions & 11 deletions .github/workflows/demo-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,9 @@ jobs:
demo:
strategy:
matrix:
node: ["18.x"]
node: ["20.x"]
os: [ubuntu-latest]
demo:
[
react-app,
next-app,
angular-app,
firebase-next-app,
firebase-react-app,
whitelabel-app,
starkex-react-app,
]
demo: [react-app, next-app, angular-app, firebase-next-app, firebase-react-app, whitelabel-app, starkex-react-app]

runs-on: ${{ matrix.os }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-auth0-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
auth0-react-app:
strategy:
matrix:
node: ["18.x"]
node: ["20.x"]
os: [ubuntu-latest]
demo: [auth0-react-app]

Expand All @@ -28,7 +28,7 @@ jobs:
node-version: ${{ matrix.node }}
registry-url: "https://registry.npmjs.org"
cache: "npm"

- name: Build ${{ matrix.demo }} demo
if: ((github.event_name == 'release') || (github.event_name == 'push' && contains(github.event.head_commit.message, '[deploy-demos]')))
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-cognito-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
cognito-react-app:
strategy:
matrix:
node: ["18.x"]
node: ["20.x"]
os: [ubuntu-latest]
demo: [cognito-react-app]

Expand All @@ -27,7 +27,7 @@ jobs:
node-version: ${{ matrix.node }}
registry-url: "https://registry.npmjs.org"
cache: "npm"

- name: Build ${{ matrix.demo }} demo
if: ((github.event_name == 'release') || (github.event_name == 'push' && contains(github.event.head_commit.message, '[deploy-demos]')))
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-customui-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
custom-ui-react-app:
strategy:
matrix:
node: ["18.x"]
node: ["20.x"]
os: [ubuntu-latest]
demo: [custom-ui-react-app]

Expand All @@ -27,7 +27,7 @@ jobs:
node-version: ${{ matrix.node }}
registry-url: "https://registry.npmjs.org"
cache: "npm"

- name: Build ${{ matrix.demo }} demo
if: ((github.event_name == 'release') || (github.event_name == 'push' && contains(github.event.head_commit.message, '[deploy-demos]')))
run: |
Expand Down Expand Up @@ -83,4 +83,4 @@ jobs:
cloudfront-distribution-id: ${{ secrets.AWS_CLOUDFRONT_CORE_DEMO_DISTRIBUTION_ID }}
cloudfront-invalidation-path: "/*"
cloudfront-invalidation-required: true
cloudfront-wait-for-service-update: false
cloudfront-wait-for-service-update: false
6 changes: 3 additions & 3 deletions .github/workflows/deploy-torus-plugin-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
torus-wallet-plugin-app:
strategy:
matrix:
node: ["18.x"]
node: ["20.x"]
os: [ubuntu-latest]
demo: [torus-wallet-plugin-app]

Expand All @@ -27,7 +27,7 @@ jobs:
node-version: ${{ matrix.node }}
registry-url: "https://registry.npmjs.org"
cache: "npm"

- name: Build ${{ matrix.demo }} demo
if: ((github.event_name == 'release') || (github.event_name == 'push' && contains(github.event.head_commit.message, '[deploy-demos]')))
run: |
Expand Down Expand Up @@ -83,4 +83,4 @@ jobs:
cloudfront-distribution-id: ${{ secrets.AWS_CLOUDFRONT_PLUGIN_DEMO_DISTRIBUTION_ID }}
cloudfront-invalidation-path: "/*"
cloudfront-invalidation-required: true
cloudfront-wait-for-service-update: false
cloudfront-wait-for-service-update: false
2 changes: 0 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ typings/


examples/
toruslabs-openlogin-*
openlogin-*
ssl/
src/
scripts/
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"editor.tabSize": 2,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
Expand All @@ -12,5 +13,5 @@
"changeProcessCWD": true
}
],
"cSpell.words": ["JRPC", "openlogin", "Solana"]
"cSpell.words": ["JRPC","Solana"]
}
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ await web3auth.connect();
| `@web3auth/no-modal-react-hooks` | [![npm version](https://img.shields.io/npm/v/@web3auth/no-modal-react-hooks?label=%22%22)](https://www.npmjs.com/package/@web3auth/no-modal-react-hooks/v/latest) | [![minzip](https://img.shields.io/bundlephobia/minzip/@web3auth/no-modal-react-hooks?label=%22%22)](https://bundlephobia.com/result?p=@web3auth/no-modal-react-hooks@latest) | Provides React hooks for integrating Web3Auth No Modal SDK in React applications. Offers flexibility for custom UI implementations while simplifying Web3Auth state management and interactions. |
| 🔌 **Adapters** |
| `@web3auth/coinbase-adapter` | [![npm version](https://img.shields.io/npm/v/@web3auth/coinbase-adapter?label=%22%22)](https://www.npmjs.com/package/@web3auth/coinbase-adapter/v/latest) | [![minzip](https://img.shields.io/bundlephobia/minzip/@web3auth/coinbase-adapter?label=%22%22)](https://bundlephobia.com/result?p=@web3auth/coinbase-adapter@latest) | Adds coinbase login functionality |
| `@web3auth/metamask-adapter` | [![npm version](https://img.shields.io/npm/v/@web3auth/metamask-adapter?label=%22%22)](https://www.npmjs.com/package/@web3auth/metamask-adapter/v/latest) | [![minzip](https://img.shields.io/bundlephobia/minzip/@web3auth/metamask-adapter?label=%22%22)](https://bundlephobia.com/result?p=@web3auth/metamask-adapter@latest) | Adds metamask chrome extension login functionality |
| `@web3auth/openlogin-adapter` | [![npm version](https://img.shields.io/npm/v/@web3auth/openlogin-adapter?label=%22%22)](https://www.npmjs.com/package/@web3auth/openlogin-adapter/v/latest) | [![minzip](https://img.shields.io/bundlephobia/minzip/@web3auth/openlogin-adapter?label=%22%22)](https://bundlephobia.com/result?p=@web3auth/openlogin-adapter@latest) | Adds social logins with MFA functionality |
| `@web3auth/phantom-adapter` | [![npm version](https://img.shields.io/npm/v/@web3auth/phantom-adapter?label=%22%22)](https://www.npmjs.com/package/@web3auth/phantom-adapter/v/latest) | [![minzip](https://img.shields.io/bundlephobia/minzip/@web3auth/phantom-adapter?label=%22%22)](https://bundlephobia.com/result?p=@web3auth/phantom-adapter@latest) | Adds phantom chrome extension login functionality |
| `@web3auth/auth-adapter` | [![npm version](https://img.shields.io/npm/v/@web3auth/auth-adapter?label=%22%22)](https://www.npmjs.com/package/@web3auth/auth-adapter/v/latest) | [![minzip](https://img.shields.io/bundlephobia/minzip/@web3auth/auth-adapter?label=%22%22)](https://bundlephobia.com/result?p=@web3auth/auth-adapter@latest) | Adds social logins with MFA functionality |
| `@web3auth/torus-evm-adapter` | [![npm version](https://img.shields.io/npm/v/@web3auth/torus-evm-adapter?label=%22%22)](https://www.npmjs.com/package/@web3auth/torus-evm-adapter/v/latest) | [![minzip](https://img.shields.io/bundlephobia/minzip/@web3auth/torus-evm-adapter?label=%22%22)](https://bundlephobia.com/result?p=@web3auth/torus-evm-adapter@latest) | Adds Torus Wallet login functionality (https://app.tor.us) |
| `@web3auth/torus-solana-adapter` | [![npm version](https://img.shields.io/npm/v/@web3auth/torus-solana-adapter?label=%22%22)](https://www.npmjs.com/package/@web3auth/torus-solana-adapter/v/latest) | [![minzip](https://img.shields.io/bundlephobia/minzip/@web3auth/torus-solana-adapter?label=%22%22)](https://bundlephobia.com/result?p=@web3auth/torus-solana-adapter@latest) | Adds Solana Torus Wallet login functionality (https://solana.tor.us) |
| `@web3auth/wallet-connect-v2-adapter` | [![npm version](https://img.shields.io/npm/v/@web3auth/wallet-connect-v2-adapter?label=%22%22)](https://www.npmjs.com/package/@web3auth/wallet-connect-v2-adapter/v/latest) | [![minzip](https://img.shields.io/bundlephobia/minzip/@web3auth/wallet-connect-v2-adapter?label=%22%22)](https://bundlephobia.com/result?p=@web3auth/wallet-connect-v2-adapter@latest) | Adds wallet connect v2 login functionality + all supported adapters (eg: Metamask mobile, rainbow etc.) |
Expand Down
Loading

0 comments on commit c2864f4

Please sign in to comment.