Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
6b64d5a
feat: modernize Zemu codebase to Zondax standards (#547)
jleni Jul 19, 2025
98e687d
Modernize codebase (#548)
jleni Jul 19, 2025
006249c
feat: implement container pooling and fix transport error handling (#…
jleni Jul 20, 2025
ba4634e
feat: increase default container pool size to 2 for all devices
jleni Jul 20, 2025
8795229
fix: add explicit permissions to GitHub workflows
jleni Jul 20, 2025
b4cf22f
fix: address CodeRabbit review comments
jleni Jul 20, 2025
5bf6cd5
test: align metadata and comments to CLA_NOT_SUPPORTED (0x6E00)
jleni Jul 20, 2025
e8ecdb8
fix: correct property name from containerPooling to disablePool in tests
jleni Jul 20, 2025
84cbfdd
fix: resolve ButtonKind errors for non-touch devices
jleni Jul 20, 2025
61da4b4
feat: implement automatic container cleanup to prevent port conflicts
jleni Jul 20, 2025
10f3a97
fix: add explicit support for prerelease tags while maintaining security
jleni Jul 20, 2025
0b82757
refactor: simplify tag patterns with clear comments
jleni Jul 20, 2025
e7871ce
fix: improve error handling and code formatting in container pool ini…
jleni Jul 20, 2025
68820f6
adjust github token permission settings
jleni Jul 21, 2025
4d552a5
feat: add comprehensive APDU error codes to errors module
jleni Jul 21, 2025
56bf24d
refactor: consolidate duplicate dummyButton definitions into single e…
jleni Jul 21, 2025
db3c466
fix: update GitHub workflow permissions for npm publishing
jleni Jul 21, 2025
49eb797
docs: update README with latest features and improvements
jleni Jul 21, 2025
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
16 changes: 0 additions & 16 deletions .eslintrc.json

This file was deleted.

32 changes: 16 additions & 16 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# Basic dependabot.yml file with
# minimum configuration for two package managers

version: 2
updates:
# Enable version updates for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "daily"
target-branch: dev
commit-message:
prefix: "deps"
open-pull-requests-limit: 5
target-branch: "main"
groups:
all:
patterns: ["*"]
ignore:
# Ignore major version updates for stability
- dependency-name: "*"
update-types: ["version-update:semver-major"]

# Enable version updates for GitHub Actions
- package-ecosystem: 'github-actions'
directory: '/'
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: 'daily'
time: '11:00'
interval: "daily"
commit-message:
prefix: 'chore'
prefix-development: 'chore'
include: 'scope'
target-branch: dev
prefix: "ci"
target-branch: "main"
50 changes: 50 additions & 0 deletions .github/workflows/ci-ts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI-ts

on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
schedule:
- cron: "0 0 * * *" # Daily at midnight UTC

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.head.ref || github.ref }}
cancel-in-progress: true
Comment thread
coderabbitai[bot] marked this conversation as resolved.

permissions:
contents: read

jobs:
ts-checks:
uses: zondax/_workflows/.github/workflows/_checks-ts.yaml@main
with:
package_manager: pnpm
node_version: "22"
enable_tests: false # Disable tests here since they need Docker
enable_coverage: false
test_command: "test"
lint_command: "check"
format_command: "check"

test-with-docker:
Comment thread Fixed
runs-on: ubuntu-latest
needs: ts-checks
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run tests with Docker
run: pnpm test
env:
DISPLAY: :99
Comment thread Fixed
37 changes: 0 additions & 37 deletions .github/workflows/main.yml

This file was deleted.

70 changes: 22 additions & 48 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,29 @@
name: Publish package
name: Publish NPM Package

on:
release:
types:
- created
types: [created]
push:
tags:
- "v[0-9]+(\\.[0-9]+)*"
- "v[0-9]+"
- "v[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-*"

Comment thread
jleni marked this conversation as resolved.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

Comment thread
jleni marked this conversation as resolved.
permissions:
contents: read
packages: write

jobs:
build-test:
name: Build and Test
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install node
uses: actions/setup-node@v4
- run: npm install -g yarn
- run: yarn install
- run: yarn build
- run: yarn test
publish-npm:
uses: zondax/_workflows/.github/workflows/_publish-npm.yaml@main
with:
timeout_minutes: 10
Comment thread
jleni marked this conversation as resolved.
dry_run: false
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH_AUTO }}

publish:
timeout-minutes: 5
runs-on: ubuntu-latest
needs: [build-test]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install node
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
scope: "@zondax"
- run: npm install -g yarn
- run: yarn install
- run: yarn build
- run: mv README-npm README.md
- name: Get latest release version number
id: get_version
run: echo "version=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
- name: Show version
run: echo ${{ steps.get_version.outputs.version }}
- name: Update tag
run: npm --no-git-tag-version version ${{ steps.get_version.outputs.version }}
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH_AUTO }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,5 @@ dist

# Finder (MacOS) folder config
.DS_Store
tests/snapshots-tmp/

31 changes: 31 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[tools]
node = "22"
pnpm = "latest"

[env]
# Ensure pnpm uses the correct Node.js version
NODE_ENV = "development"

[tasks.install]
description = "Install dependencies"
run = "pnpm install"

[tasks.build]
description = "Build the project"
run = "pnpm build"

[tasks.test]
description = "Run tests"
run = "pnpm test"

[tasks.check]
description = "Run linting and formatting checks"
run = "pnpm check"

[tasks.dev]
description = "Development setup"
run = [
"pnpm install",
"pnpm check",
"pnpm build"
]
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["biomejs.biome"]
}
35 changes: 35 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"cSpell.words": ["zemu"],
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#93e6fc",
"activityBar.background": "#93e6fc",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#fa45d4",
"activityBarBadge.foreground": "#15202b",
"commandCenter.border": "#15202b99",
"sash.hoverBorder": "#93e6fc",
"statusBar.background": "#61dafb",
"statusBar.foreground": "#15202b",
"statusBarItem.hoverBackground": "#2fcefa",
"statusBarItem.remoteBackground": "#61dafb",
"statusBarItem.remoteForeground": "#15202b",
"titleBar.activeBackground": "#61dafb",
"titleBar.activeForeground": "#15202b",
"titleBar.inactiveBackground": "#61dafb99",
"titleBar.inactiveForeground": "#15202b99"
},
"peacock.color": "#61dafb"
}
3 changes: 0 additions & 3 deletions .yarnrc.yml

This file was deleted.

Loading