[Fix] Track frontend lockfile + migrate to public @penguintechinc/react-libs - #159
[Fix] Track frontend lockfile + migrate to public @penguintechinc/react-libs#159PenguinzTech wants to merge 3 commits into
Conversation
The frontend's package-lock.json was out of sync with package.json (@penguin/react_libs version mismatch: lock had 1.0.0, manifest required 1.1.0). Regenerated lockfile via npm install and removed package-lock.json from .gitignore to enable proper tracking per frontend-react.md standards (exact npm versions must be committed). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…/react-libs Replaced local file:// dependency (@penguin/react_libs from shared/react_libs) with the official published package @penguintechinc/react-libs@1.3.4 on public npm. Updated all 15 import sites across the frontend (FormModalBuilder usage). No API divergence — public package's FormModalBuilder export is compatible. Both npm ci and production build pass with no changes to component usage. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
- vite 6.2.6 → 6.4.3: fixes 8 high-severity path traversal/file read vulnerabilities (GHSA-859w-5945-r5v3, GHSA-g4jq-h2w9-997c, GHSA-jqfw-vq24-v9c3, GHSA-93m4-6634-74q7, GHSA-4w7w-66w2-5vf9, GHSA-p9ff-h696-f583, GHSA-v6wh-96g9-6wx3, GHSA-fx2h-pf6j-xcff) - axios 1.7.9 → 1.18.1: fixes 5 high-severity SSRF/DoS/auth bypass vulnerabilities (GHSA-jr5f-v2jv-69x6, GHSA-4hjh-wcwx-xvwj, GHSA-3p68-rc4w-qgx5, GHSA-w9j2-pvgh-6h63, GHSA-pmwg-cvhr-8vh7) - postcss 8.4.49 → 8.5.25: security updates - Pin all dependencies to exact versions (no ^/~) per frontend-react.md npm audit after: 12 high-severity remaining (mostly react-router 7.x CVEs across all versions 7.0.0-7.18.2; no stable fix available without major version bump). npm ci: OK. npm run build: OK. All production build passes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Caution Review the following alerts detected in dependencies. According to your organization's Security Policy, you must resolve all "Block" alerts before proceeding. It is recommended to resolve "Warn" alerts too. Learn more about Socket for GitHub.
|
Summary
Two frontend fixes for the hub module web UI (
admin/hub_module/frontend):fix(frontend): regenerate package-lock.json and enable its tracking) —package-lock.jsonwas previously gitignored/untracked. This regenerates it and updates.gitignoreso the lockfile is committed, giving reproducible, hash-verified installs (npm ci) in CI and Docker builds.feat(frontend): migrate @penguin/react_libs to public @penguintechinc/react-libs) — swaps the old@penguin/react_libsdependency for the public npm package@penguintechinc/react-libs(v1.3.4) and updates all component imports across the admin/superadmin/public pages.Changes
admin/hub_module/frontend/package.json— dependency swapped to public@penguintechinc/react-libsadmin/hub_module/frontend/package-lock.json— regenerated, now tracked.gitignore— stop ignoring the frontend lockfile.jsxpages/componentsWhy this matters
The desktop client depends on this landing — it consumes the same public
@penguintechinc/react-libspackage, and a tracked, reproducible lockfile is a prerequisite for its build. This unblocks that downstream work.Notes