-
Notifications
You must be signed in to change notification settings - Fork 0
Fix: fix issue #22 Address with severe security check issues #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c974bb1
Fix: add missing file
PaperStrange d6bb2bb
Docs: delete useless folder
PaperStrange e7745d7
Docs: remove blank folder
PaperStrange 91f840c
Docs: delete duplicated file
PaperStrange 49cb439
Fix: address security vulnerabilities and improve build stability by …
PaperStrange 9479452
Update: add patch-package and postinstall-postinstall dependencies to…
PaperStrange 111d6ac
Merge branch 'master' into feat-cursor-backend
PaperStrange File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...e_and_project_structure_refactors/plans/project.refactors.cra-migration-plan.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| # Migration Plan: Move from Create React App (CRA) to Vite or Next.js | ||
|
|
||
| ## Rationale | ||
|
|
||
| Persistent security vulnerabilities in transitive dependencies (e.g., nth-check via react-scripts) cannot be resolved without breaking changes. CRA is no longer actively maintained for modern security needs. Migrating to Vite or Next.js will: | ||
| - Eliminate legacy dependency vulnerabilities | ||
| - Improve build speed and developer experience | ||
| - Enable more flexible configuration and modern features | ||
| - Align with project security and maintainability goals | ||
|
|
||
| ## High-Level Steps | ||
|
|
||
| 1. **Audit Current Dependencies and Features** | ||
| - List all dependencies, scripts, and custom configurations in the current CRA setup | ||
| - Identify any custom Webpack, Babel, or environment settings | ||
|
|
||
| 2. **Select Target Build System** | ||
| - Evaluate Vite and Next.js for project fit (SSR, routing, etc.) | ||
| - Decide on Vite (for SPA) or Next.js (for SSR/SSG needs) | ||
|
|
||
| 3. **Set Up New Project Structure** | ||
| - Initialize a new Vite or Next.js project in a separate branch or directory | ||
| - Configure TypeScript, ESLint, Prettier, and other tooling as needed | ||
|
|
||
| 4. **Migrate Source Code** | ||
| - Copy src/ and public/ assets to the new project | ||
| - Update import paths, environment variables, and entry points as required | ||
| - Refactor any CRA-specific code (e.g., service worker, index.js) | ||
|
|
||
| 5. **Migrate and Update Build/Test Scripts** | ||
| - Update package.json scripts for build, start, test, and deploy | ||
| - Remove react-scripts and related dependencies | ||
| - Ensure patch-package and overrides are no longer needed for nth-check | ||
|
|
||
| 6. **Test Thoroughly** | ||
| - Run all unit, integration, and E2E tests | ||
| - Validate all features, routes, and environment configurations | ||
| - Fix any issues with static assets, routing, or environment variables | ||
|
|
||
| 7. **Update Documentation** | ||
| - Document new build/test/deploy processes | ||
| - Update onboarding and developer guides | ||
| - Reference this migration in project.lessons.md and refactors.md | ||
|
|
||
| 8. **Deploy and Monitor** | ||
| - Deploy to staging and production | ||
| - Monitor for regressions or new issues | ||
|
|
||
| ## Risks and Mitigations | ||
|
|
||
| - **Dependency mismatches**: Audit and test all dependencies for compatibility | ||
| - **Build or runtime errors**: Use incremental migration and thorough testing | ||
| - **Team onboarding**: Update documentation and provide migration guides | ||
| - **CI/CD pipeline changes**: Update workflows and scripts for new build system | ||
|
|
||
| ## References | ||
| - See Security & Build Lessons (2025-05-18) in project.lessons.md | ||
| - See TODO and Milestone entries for migration tracking | ||
| - See project.refactors.md for rationale and audit trail | ||
|
|
||
| --- | ||
| *Last updated: 2025-05-18* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium