Skip to content
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

Issue-182: Trim down @wordpress dependencies to those only used in code #223

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from

Conversation

mogmarsh
Copy link
Collaborator

@mogmarsh mogmarsh commented Dec 31, 2024

Summary

Fixes #182
Fixes #183

This Pull Request addresses the issue titled "Trim down @WordPress dependencies to those only used in code" by removing and upgrading the NPM @wordpress related dependencies as needed. This ensures that only the dependencies that are actively used in the codebase are included, streamlining the development process and minimizing unnecessary bloat.

Use Case

Ensures that when a developer runs npm install, only the @wordpress dependencies that are used in code are installed. This change not only removes unused dependencies but also upgrades existing ones to their latest versions, enhancing the application's security and performance.

Changes

  • Removed unused @wordpress dependencies from package.json.
  • Upgraded versions of the remaining @wordpress dependencies to their latest.

Test Instructions

  1. Checkout this branch.
  2. Run npm install.
  3. Verify that only the necessary @wordpress dependencies are installed and that the application builds correctly. Also, ensure that the upgraded dependencies do not introduce any breaking changes.

Additional Information

For more details, see the original issue here: #182

@mogmarsh mogmarsh marked this pull request as ready for review December 31, 2024 20:43
Copy link

@mboynes mboynes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@@ -92,6 +92,7 @@ export default function Edit() {
newBlocks = [...parsedContentFromTemplate];
}

// @ts-ignore
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment applies throughout: it's better to use @ts-expect-error, so if somehow this line ever stops throwing an error, we'll know about it and can remove the directive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants