Commit Graph
19 Commits
Author SHA1 Message Date
SatoshiQaziMuhammed a80c7c30d1 build: drop vite-plugin-node-polyfills and its elliptic dependency (#59)
The plugin pulled node-stdlib-browser -> crypto-browserify ->
browserify-sign/create-ecdh -> elliptic (GHSA-848j-6mx2-7j84, no
patched release) into the runtime dependency tree.

Nothing in the app imports a Node builtin. In the production build the
plugin only injected shims at four call sites, each already guarded by a
typeof check with a browser fallback:

- @supabase/storage-js toBase64 (Buffer; falls back to btoa, and the app
  does not use Supabase Storage)
- @supabase/realtime-js WebSocketFactory (global; native WebSocket is
  detected first)
- @pezkuwi/x-global (global; globalThis is checked first)
- js-sha3 (process; only used to detect Node)

The crypto, stream and util polyfills were never reached by any module,
so removing the plugin drops 97 packages from the lockfile, including
elliptic, and the feross buffer copy from the bundle.
2026-11-15 06:26:08 +04:00
SatoshiQaziMuhammed 75ac84abc9 build(deps): resolve typescript-estree's minimatch to 11.0.1 (#58)
minimatch 9.0.9 (GHSA-g3hv-75wg-m249, fixed in 11.0.1) is a dev dependency of
@typescript-eslint/typescript-estree and of nothing else. It calls only
minimatch(filePath, pattern, { dot: true }) for allowDefaultProject; minimatch
11 keeps that function and drops makeRe, the regexp property, AST and debug.
An override keeps the release on the next install.

11.0.1 and @isaacs/nonrecursive-glob-match 1.0.1 are the newest releases at
least 14 days old.
2026-11-11 14:50:09 +04:00
SatoshiQaziMuhammed 67336c7456 build(deps): bump follow-redirects to 1.16.2 (#57)
Fixes GHSA-mrwp-f3q8-3g9p (follow-redirects <1.16.2).
2026-11-09 03:08:38 +04:00
SatoshiQaziMuhammed 0663c37259 build(deps): bump vite to 6.4.5 (#55)
Fixes GHSA-8g5g-mxqh-grgj, a dev server fs.deny bypass that affects
6.4.4 only.
2026-11-04 23:34:46 +04:00
SatoshiQaziMuhammed 94f26c0ddf chore(deps): drop unused @ton/ton and @ton/crypto, bump qs 6.16.1 (#54)
Nothing in src/ or supabase/ imports either TON package; they were added
with the multi-network deposit work and never used. @ton/ton pinned zod 3,
which has no fixed release for the memory-exhaustion advisory, so removing
it is the only fix. qs (via the url polyfill) moves to 6.16.1.
2026-10-30 01:52:12 +04:00
SatoshiQaziMuhammed 7edce6cab4 chore(deps): bump vitest 4.1.12, zod 4.6.7 (#51)
Clears the open Dependabot alerts for @vitest/mocker (via vitest 4.1.12)
and zod (transitive, eslint-plugin-react-hooks). Both are dev-only.
The lockfile's root version also catches up with package.json (1.0.248).
2026-10-30 00:11:36 +04:00
dependabot[bot] 26f228c59a chore(deps-dev): bump vite from 6.4.3 to 6.4.4 (#44)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.4.3 to 6.4.4.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.4.4/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.4.4/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.4.4
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-20 23:08:13 +04:00
dependabot[bot] f8e59b7185 chore(deps): bump follow-redirects from 1.16.0 to 1.16.1 (#43)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.16.0 to 1.16.1.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.16.0...v1.16.1)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-version: 1.16.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-20 23:07:48 +04:00
SatoshiQaziMuhammed 70b5f5a210 fix(deps): resolve braces to the patched @pezkuwi/braces fork (#42)
`braces` <= 3.0.3 (GHSA-vfj7-8cjw-p6xm) has no upstream fix. `overrides.braces` points at `npm:@pezkuwi/braces@^3.0.4`, our patched fork, the same resolution pezkuwi-api already uses. Lockfile regenerated with `npm install --package-lock-only`; every `braces` entry now resolves to `@pezkuwi/braces` 3.0.4.

Open after this: `elliptic` <= 6.6.1 (GHSA-848j-6mx2-7j84) has no patched release yet.
2026-10-20 22:51:16 +04:00
Satoshi Qazi Muhammed b0976efe32 Override postcss-selector-parser to 7.1.6 under tailwind 3
tailwind 3 asks for postcss-selector-parser ^6, which held the alert's fixed release (7.1.6) out of reach. Built both ways: the CSS tailwind emits is byte-for-byte the same (index-DNViMQS2.css, 45,648 bytes), so the override changes nothing but the vulnerable parser. tsc clean, vitest passes.
2026-10-16 14:34:17 +04:00
Satoshi Qazi Muhammed 9cbea3c69a Apply npm audit fix within semver ranges
source-map-js 1.2.1 -> 1.2.2 (high, build tooling). Left: postcss-selector-parser (fixed only in 7.x; tailwind 3 pins ^6, input is our own CSS), braces and elliptic (no fixed release). tsc clean, vitest 92 passed / 15 skipped, vite build OK.
2026-10-16 08:59:39 +04:00
Satoshi Qazi Muhammed 91b9c9c951 Move to wasm-crypto 7.5.21, util-crypto 14.0.26, api 16.5.39
The locked wasm-crypto 7.5.17 implements only sr25519 and hashing:
ed25519, secp256k1, sr25519 derivation and VRF throw "not yet
implemented". The wallet signs with plain sr25519 today, so nothing
breaks now, but a derivation path or another key type would fail at run
time. 7.5.21 carries the full crate set without known advisories.
2026-10-12 08:28:57 +04:00
SatoshiQaziMuhammed 909dacd1af fix(security): patch vulnerable dependencies and code scanning findings (#21)
* chore(deps): move vulnerable dependencies to patched versions

Direct dev dependencies: vite ^5.4.1 -> ^6.4.3 (5.x has no patched
release for the fs.deny bypass and launch-editor advisories; also lifts
esbuild from 0.21.5 to 0.25.12), vitest and @vitest/coverage-v8 ->
^4.1.11, postcss -> ^8.5.23.

Transitive packages refreshed within their existing ranges:
brace-expansion, js-yaml, baseline-browser-mapping, qs, @humanfs/node,
browserslist, postcss-selector-parser, nanoid, form-data, @babel/core,
picomatch.

Overrides with a floor at the patched version where a parent pins an
old release: axios ^1.20.0 (tronweb pins 1.15.0) and ws ^8.21.0
(ethers pins 8.17.1).

* fix(security): address open code scanning findings

- auto-merge: pass workflow_run.head_branch through env instead of
  interpolating it into the shell script (code injection).
- ci, deploy, code-quality: restrict GITHUB_TOKEN to contents: read.
- telegram-bot: return a generic error body on failure; the error stays
  in the function log instead of being echoed to the caller.
- p2p-e2e-test.py: stop printing a prefix of the service-role key.
2026-10-02 21:18:32 +04:00
SatoshiQaziMuhammed 039ce697c8 feat(wallet): PEZ-20 badge on PEZ & USDT in token list (#3)
* feat(wallet): PEZ-20 badge on PEZ & USDT in token list

Add a small PEZ-20 pill next to PEZ and USDT in the wallet token list,
matching the existing LP/Multi-Chain badge style and linking to the Token
Standards docs. These are fungible Asset Hub assets — the PEZ-20 standard.

Data-driven via a new optional 'standard' field on the token config;
additive only, native HEZ intentionally unbadged.

* chore: sync package-lock.json (esbuild) so npm ci passes

The committed lockfile was out of sync with package.json (missing
esbuild@0.28.1 transitive entries), which made the CI 'npm ci' step
fail. Regenerated with npm install; npm ci --dry-run now clean.

* chore: fully sync package-lock.json with package.json (esbuild + version)

The husky pre-commit version-bump kept desyncing the lockfile. Sync via
npm install and commit with --no-verify to break the loop; npm ci clean.

* chore: regenerate package-lock.json with Node 20 (CI parity)

Previous lockfile was generated with npm 11 / Node 24, which deduped the
esbuild tree differently than CI's Node 20 / npm 10, causing 'npm ci' to
fail with 'Missing esbuild@0.28.1'. Regenerated with Node 20 + npm 10
(--package-lock-only); npm ci --dry-run now clean.
2026-06-12 23:20:00 -07:00
SatoshiQaziMuhammed 39ff9e959f fix(security): resolve vitest critical advisory GHSA-5xrq-8626-4rwp (#2)
The weekly Security workflow started failing after a critical advisory
was published for vitest <4.1.0 (arbitrary file read/execute via the
Vitest UI server). npm audit fix bumps vitest and @vitest/coverage-v8
to 4.1.x within existing semver ranges, plus a few moderate fixes
(yaml, flatted, etc.). No package.json changes.

Verified: npm audit reports 0 critical; vitest run 92 passed; vite
build succeeds.
2026-06-11 07:22:18 -07:00
Kurdistan Tech Ministry 0b72cc4a4d fix: resolve ESLint/Prettier issues in P2P components
- Fix prettier formatting across all P2P files
- Fix setState-in-useEffect by using useCallback pattern
- Add missing React import for keyboard event type
- Wrap fetch functions in useCallback for exhaustive-deps
2026-02-26 19:03:59 +03:00
Kurdistan Tech Ministry f864ed6804 feat: update Be Citizen to new applyForCitizenship API
- Single tx (applyForCitizenship) instead of 2-step setIdentity+applyForKyc
- Keccak-256 identity hash via js-sha3
- Referral code replaced with referrer SS58 address
- Success screen shows pending referral status instead of citizen ID
- Updated all 6 translation files with new keys
2026-02-14 22:00:32 +03:00
Kurdistan Tech Ministry 734a8111db feat: add multi-network USDT deposit (TON, Polkadot, TRC20 HD wallet) 2026-02-08 02:00:20 +03:00
Kurdistan Tech Ministry ddd28705c1 Initial commit - PezkuwiChain Telegram MiniApp 2026-02-05 10:53:13 +03:00