Skip to content

chore: reconcile staging (master) with production (legacy)#347

Merged
maryia-deriv merged 4 commits into
masterfrom
maryia/remove-new-account-virtual
Jun 4, 2026
Merged

chore: reconcile staging (master) with production (legacy)#347
maryia-deriv merged 4 commits into
masterfrom
maryia/remove-new-account-virtual

Conversation

@maryia-deriv
Copy link
Copy Markdown
Collaborator

@maryia-deriv maryia-deriv commented Jun 3, 2026

Summary

Reconciles staging (master) with production (legacy) to full parity: removes the unwanted new_account_virtual API call, fixes staging's broken lock, and upgrades protobufjs. After this PR and its companion (#346) merge, master and legacy are byte-for-byte identical.

Changes

  • Remove new_account_virtual
    • delete config/v3/new_account_virtual/ (example.json, receive.json, send.json)
    • remove its nav entry from static/data/v3.yml (the only reference outside the config dir)
  • Schema files (get_settings/set_settings) left in upstream (raw) format — these JSON schemas are auto-generated by an external flow that does not apply this repo's prettier config. They are kept in master's raw format (no reformatting) so the next automated schema update doesn't produce a huge reformatting diff. (Content is already identical to legacy; only formatting differed.)
  • Fix broken lock + pin exact versions + upgrade protobufjs (package.json, package-lock.json):
    • staging's lock was out of sync with package.json (npm ci failed; root cause: regenerated with --legacy-peer-deps, which drops peer deps)
    • pin dependencies/devDependencies to exact versions (drop caret ranges) using the versions already resolved in the working lock
    • keep security overrides (lodash 4.18.0, lodash-es 4.18.0, dompurify 3.4.0)
    • protobufjs 7.5.6 override — fixes CVE-2026-41242 (CRITICAL) + CVE-2026-44289/44290/44291, pulls @protobufjs/utf8 1.1.1 (fixes CVE-2026-44293)
    • regenerate package-lock.json with peer deps retained (npm install --force)
  • .trivyignore — drop the now-obsolete protobufjs CVE suppressions (the 7.5.6 upgrade removes the vulnerable version from the tree)
  • French i18n — refresh i18n/fr/code.json from authoritative source

Verification

Companion PR: #346 (into legacy)

🤖 Generated with Claude Code

…tting

Reconcile staging (master) with production (legacy) toward full parity.

- Remove the new_account_virtual API call:
  - delete config/v3/new_account_virtual/ (example/receive/send.json)
  - remove its nav entry from static/data/v3.yml
- Normalize get_settings/set_settings config files to the repo's
  prettier-canonical form (matching legacy). These were semantically
  identical between branches but unformatted on master; this aligns the
  bytes so the two branches become fully identical.
- Refresh i18n/fr/code.json from authoritative source
  (navbar.json already matched, no change)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
deriv-api-docs Ready Ready Preview Jun 4, 2026 9:21am

Request Review

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@maryia-deriv maryia-deriv changed the title chore: remove new_account_virtual from staging + align schema formatting chore: reconcile (master) with staging (legacy) Jun 4, 2026
@maryia-deriv maryia-deriv changed the title chore: reconcile (master) with staging (legacy) chore: reconcile staging (master) with production (legacy) Jun 4, 2026
@maryia-deriv maryia-deriv force-pushed the maryia/remove-new-account-virtual branch from 5de0f41 to 991a194 Compare June 4, 2026 08:09
master's package-lock.json was out of sync with package.json (npm ci
failed: "Missing from lock file", e.g. @testing-library/dom). Regenerate a
valid lock from the healthy production base:

- pin dependencies/devDependencies to exact versions (drop caret ranges)
  using the versions already resolved in the working lock
- keep security overrides; add protobufjs 7.5.6 (fixes CVE-2026-41242
  CRITICAL, plus CVE-2026-44289/44290/44291, and pulls @protobufjs/utf8
  1.1.1 which fixes CVE-2026-44293)
- drop the now-obsolete protobufjs CVE suppressions from .trivyignore
- regenerate package-lock.json with peer deps retained (npm install --force)

Verified: npm ci passes, full jest suite passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The external schema-generation flow commits these JSON files to master
without the repo's prettier formatting. Revert the earlier normalization
so the files keep their upstream raw format on both branches — otherwise
the next automated schema update would produce a huge reformatting diff.
7.5.6 still trips dependency-review on GHSA-jggg-4jg4-v7c6 (moderate DoS
via unbounded recursive JSON descriptor expansion, affects <=7.5.7).
7.5.8 is the minimal patched version; @protobufjs/utf8 stays 1.1.1.
@maryia-deriv maryia-deriv merged commit bd2ccb1 into master Jun 4, 2026
7 checks passed
@maryia-deriv maryia-deriv deleted the maryia/remove-new-account-virtual branch June 4, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants