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

fix(common): Move typing dependencies to peer #477

Merged
merged 3 commits into from
Jun 1, 2024

Conversation

sebimarkgraf
Copy link
Contributor

This could be a fix for #474 and the other related issues.

This ignores the type import of antd and casts it to any if antd is not installed.
Additionally, the antd dependency is downgraded to peer in common.

If ui is installed the direct dependency would lead to the correct typing being filled in.

Copy link

vercel bot commented Apr 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
pdfme-playground ⬜️ Ignored (Inspect) Visit Preview Jun 1, 2024 0:07am
pdfme-playground-v4 ⬜️ Ignored (Inspect) Visit Preview Jun 1, 2024 0:07am

@sebimarkgraf
Copy link
Contributor Author

Something that could be interesting, is doing the same thing with form-render, but I am unsure if form-render is a real dependency

@sebimarkgraf
Copy link
Contributor Author

The tests are passing with form-render as peer as well.

Should I do additional checks?

@sebimarkgraf sebimarkgraf changed the title fix(dep): Remove antd as direct dependency of common fix(common): Move typing dependencies to peer Apr 30, 2024
@hand-dot
Copy link
Collaborator

Hey @sebimarkgraf !

Sorry for the delayed response.
I plan to merge it if everything works fine on my end after verification.

@svivenns
Copy link

Hi @hand-dot, any update on this MR, thank you.

Copy link
Collaborator

@hand-dot hand-dot left a comment

Choose a reason for hiding this comment

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

LGTM!

@hand-dot
Copy link
Collaborator

hand-dot commented Jun 1, 2024

Hey @sebimarkgraf

Sorry for the delayed review.
I will merge it now and release it in a patch version!

Thank you for your contribution!

@hand-dot hand-dot merged commit da7f7cf into pdfme:main Jun 1, 2024
4 checks passed
@hand-dot
Copy link
Collaborator

hand-dot commented Jun 1, 2024

Released as V4.0.2!!

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.

None yet

3 participants