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

Remove unused dependencies #9223

Merged
merged 4 commits into from
Dec 9, 2024
Merged

Remove unused dependencies #9223

merged 4 commits into from
Dec 9, 2024

Conversation

Fraggle
Copy link
Contributor

@Fraggle Fraggle commented Dec 9, 2024

Description

Remove all dependencies flagged as "unused" by depcheck + manual search.

Risk

Medium, relying on typechecking and build working. Testing in front-edge.

Deploy Plan

Deploy front-edge, test, then Deploy to front

Copy link
Contributor

@spolu spolu left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@aubin-tchoi aubin-tchoi left a comment

Choose a reason for hiding this comment

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

👍

@Fraggle Fraggle merged commit 1de1194 into main Dec 9, 2024
4 checks passed
@Fraggle Fraggle deleted the sflory-remove-unused-dependencies branch December 9, 2024 12:25
tdraier added a commit that referenced this pull request Dec 9, 2024
tdraier added a commit that referenced this pull request Dec 9, 2024
"hot-shots": "^10.0.0",
"io-ts": "^2.2.20",
"io-ts-reporters": "^2.0.1",
"io-ts-types": "^0.5.19",
Copy link
Contributor

Choose a reason for hiding this comment

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

Likely the culrpit @Fraggle?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

io-ts-types is not imported in the code except in dust-tt/types, so I'm puzzled.
Trying to repro/config.

"react-textarea-autosize": "^8.4.0",
"redis": "^4.6.8",
"rehype-katex": "^7.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

quite suspicious that this is really unused along with all remark/rehype plugins

Copy link
Contributor

Choose a reason for hiding this comment

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

(some were moved to sparkle with the markdown component but there isn't a 1-1 mapping in particular the maths related ones)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From what I can see, it's only used here

Fraggle added a commit that referenced this pull request Dec 9, 2024
Fraggle added a commit that referenced this pull request Dec 10, 2024
* Revert "Revert "Remove unused dependencies (#9223)" (#9225)"

This reverts commit 30d241f.

* Fix: use the embedded pg-types instead of a mismatching dep

* Fix: do not use pg-types, but pg.types
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.

3 participants