Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": [],
"privatePackages": {
"version": false,
"tag": false
}
}
12 changes: 12 additions & 0 deletions .changeset/dependency-ranges.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@tkey/chrome-storage": patch
"@tkey/common-types": patch
"@tkey/default": patch
"@tkey/private-keys": patch
"@tkey/seed-phrase": patch
"@tkey/service-provider-sfa": patch
"@tkey/service-provider-torus": patch
"@tkey/share-serialization": patch
---

Raise direct dependencies to the newest release on the same major that is older than the 3-day install window.
22 changes: 22 additions & 0 deletions .changeset/tooling-engines.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
"@tkey/chrome-storage": patch
"@tkey/common-types": patch
"@tkey/core": patch
"@tkey/default": patch
"@tkey/private-keys": patch
"@tkey/security-questions": patch
"@tkey/seed-phrase": patch
"@tkey/service-provider-base": patch
"@tkey/service-provider-sfa": patch
"@tkey/service-provider-torus": patch
"@tkey/share-serialization": patch
"@tkey/share-transfer": patch
"@tkey/storage-layer-torus": patch
"@tkey/web-storage": patch
---

Require Node >=24.22.0 and npm >=12, and point package types at dist/lib.cjs/index.d.ts. Drop the unused @babel/runtime peer dependency.

The pack:lerna script is removed. Compatibility workflows pack with npm run pack.

Oxlint does not replace @typescript-eslint/no-explicit-any, no-empty, import/no-extraneous-dependencies, or @typescript-eslint/no-var-requires. It still reports typescript no-this-alias, vitest expect-expect, and vitest no-conditional-expect, so those suppressions stay.
9 changes: 5 additions & 4 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
# and responsibility to publish libraries under the MetaMask name.

# Fallback for all other files
* @Metamask/Admins
* @MetaMask/Web3Auth-Admins

# Product code
src/ @Metamask/Web3Auth-Product
test/ @Metamask/Web3Auth-Product
packages/*/src/ @MetaMask/Web3Auth-Product
packages/*/test/ @MetaMask/Web3Auth-Product
test/ @MetaMask/Web3Auth-Product

# Most restrictive — last match wins
.github/CODEOWNERS @Metamask/Admins
.github/CODEOWNERS @MetaMask/Web3Auth-Admins
6 changes: 5 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Motivation and Context

<!-- Why is this change required? What problem does it solve? -->

## Jira Link

<!-- Link to the Jira ticket (if applicable) -->
Expand Down Expand Up @@ -26,4 +30,4 @@
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] All new and existing tests passed.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2

updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
cooldown:
default-days: 3
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
cooldown:
default-days: 3
8 changes: 6 additions & 2 deletions .github/workflows/backward.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Backward Compatibility Tests
strategy:
matrix:
node: ["24.x"]
node: ["24.22.0"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
Expand All @@ -40,10 +40,14 @@ jobs:
node-version: ${{ matrix.node }}
cache: "npm"

- name: Install npm 12
run: npm install --global npm@12.2.0

- name: Install dependencies, pack
run: |
cd ./tkey
npm ci
npm run pack:lerna
npm run pack

- name: Clone comp tests
uses: actions/checkout@v6
Expand Down
103 changes: 38 additions & 65 deletions .github/workflows/browserTests.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,38 @@
name: BrowserTests

on:
create: #[push]
workflow_dispatch:
env:
PLAYWRIGHT_BROWSERS_PATH: 0
NODE_VERSION: 24
FORCE_COLOR: 3

jobs:
test:
strategy:
max-parallel: 1
matrix:
browser: [chromium, firefox]
# browser: [chromium, firefox, webkit]
# os: [macos-latest, windows-latest, ubuntu-latest]
os: [macos-latest]
exclude:
- browser: webkit
os: windows-latest
# - browser: webkit
# os: ubuntu-latest
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"

- name: Install Node.js dependencies
run: npm ci

- name: Run Build
run: npm run build && npx playwright install

- name: Browser Test Development Chrome (Mocked)
if: startsWith(matrix.browser, 'chromium')
run: npm run browser-tests:local-mocked-chrome

- name: Browser Test Development Firefox (Mocked)
if: startsWith(matrix.browser, 'firefox')
run: npm run browser-tests:local-mocked-firefox

# - name: Browser Test Development webkit (Mocked)
# if: startsWith(matrix.browser, 'webkit')
# run: npm run browser-tests:local-mocked-webkit

- name: Browser Test Production Chrome (Prod)
if: startsWith(matrix.browser, 'chromium')
run: npm run browser-tests:local-prod-chrome

# - name: Browser Test Production Firefox (prod)
# if: startsWith(matrix.browser, 'firefox')
# run: npm run browser-tests:local-prod-firefox

# - name: Browser Test Production webkit (prod)
# if: startsWith(matrix.browser, 'webkit')
# run: npm run browser-tests:local-prod-webkit
name: BrowserTests

on:
create: #[push]
workflow_dispatch:
env:
PLAYWRIGHT_BROWSERS_PATH: 0
NODE_VERSION: 24.22.0
FORCE_COLOR: 3

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Setup Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"

- name: Install npm 12
run: npm install --global npm@12.2.0

- name: Install Node.js dependencies
run: npm ci

- name: Run Build
run: npm run build && npm exec -- playwright install --with-deps

- name: Browser tests mocked
run: npm run browser-tests:local-mocked

- name: Browser tests production
run: npm run browser-tests:local-prod
Comment on lines +13 to +38
7 changes: 5 additions & 2 deletions .github/workflows/buildMocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Backward Compatibility Tests
strategy:
matrix:
node: ["24.x"]
node: ["24.22.0"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
Expand All @@ -31,11 +31,14 @@ jobs:
node-version: ${{ matrix.node }}
cache: "npm"

- name: Install npm 12
run: npm install --global npm@12.2.0

- name: Install dependencies, pack
run: |
cd ./tkey
npm ci
npm run pack:lerna
npm run pack

- name: Clone comp tests
uses: actions/checkout@v6
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/ci.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Create release pull request

on:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: release-pr
cancel-in-progress: false

jobs:
release-pr:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
- name: Install npm 12
run: npm install --global npm@12.2.0
- name: Install dependencies
run: npm ci
# The GitHub API commit mode signs the release commit, which `master` requires.
- name: Create or update the release pull request
uses: changesets/action@ae32849d5ba541f9ae29e40e22a623bc13562f51 # v2.1.2
with:
version-script: npm run version-packages
commit-message: "chore: release packages"
pr-title: "chore: release packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/security-code-scanner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Security code scanner

on:
pull_request:
push:
branches: [master]
schedule:
- cron: "17 4 * * 1"
workflow_dispatch:

permissions:
contents: read

jobs:
security-scan:
uses: MetaMask/action-security-code-scanner/.github/workflows/security-scan.yml@becb242930b3cc271c26da0280050db9c157e291 # v2.1.1
permissions:
actions: read
contents: read
security-events: write
with:
scanner-ref: becb242930b3cc271c26da0280050db9c157e291 # v2.1.1
paths-ignored: |
**/node_modules/**
**/dist/**
**/build/**
**/coverage/**
Loading
Loading