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 codecs and dependencies #1084

Merged
merged 17 commits into from
Feb 4, 2025
Merged

Conversation

nokome
Copy link
Member

@nokome nokome commented Oct 16, 2024

Some remaining opportunities for removing dependencies:

  • if CLI is not being used. i.e only being used by calling a function then @stencila/jesta, get-stdin and other dependenices can be removed
  • replace @stencila/logga with use of console.warn
  • can the the yaml codec be removed (perhaps being used in tests)?

@nlisgo
Copy link
Collaborator

nlisgo commented Oct 16, 2024

Thanks for this @nokome. Great to catch up with you today. I will bring this up with the rest of the team today.

@nlisgo
Copy link
Collaborator

nlisgo commented Oct 17, 2024

This looks great. We have been getting some value from the cli in development. But we know the cli is over-engineered when we only support the conversion of JATS to JSON now.

I've submitted a PR to introduce a lightweight cli option which will reduce the feedback loop for us when developing support for things that aren't currently handled in Encoda.

#1085

I will merge in the above once green. I've tested the script on master and this feature branch and it works and gives the same output.

@nlisgo nlisgo self-requested a review October 17, 2024 09:06
Copy link
Collaborator

@nlisgo nlisgo left a comment

Choose a reason for hiding this comment

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

This looks good to me. The yaml removal could be done as a followup?

@nokome nokome force-pushed the chore/remove-unused-deps branch from b3d3972 to 08ac72a Compare February 4, 2025 18:57
@nokome nokome marked this pull request as ready for review February 4, 2025 18:59
@nokome
Copy link
Member Author

nokome commented Feb 4, 2025

I have rebased this on to current master and tests pass so will merge now as this dramatically reduces dependency count and code bloat.

@nokome nokome merged commit 0b8b9cc into master Feb 4, 2025
1 check passed
@nokome nokome deleted the chore/remove-unused-deps branch February 4, 2025 19:02
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.

2 participants