Skip to content

General dev update and unpinning #15

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

Open
wants to merge 32 commits into
base: dev
Choose a base branch
from
Open

General dev update and unpinning #15

wants to merge 32 commits into from

Conversation

confleux
Copy link
Member

@confleux confleux commented Jun 18, 2025

This PR aggregates all the changes made yet, although I've initially used split PRs, now I'm forced to use a single PR for everything.

Changelist:

  • Updated all deps, including helia and updated code to match deps update
  • Bumped node version to v22, as v20 is no longer suitable after deps update
  • Updated eslint config, as v9 required flat config usage
  • Allowed setting any datadir outside of the user's ~
  • Added swagger spec, using swagger-jsdoc
  • Updated logger usage, splitting pino logger and pino-http, as pino-http prints AggregateErrors the wrong way
  • Updated codestyle, reformatted some of code
  • Updated project structure to move logic from utils dir to prevent a single file growth with functions
  • Updated README and added wiki pages
  • Updated endpoints name for /api/helia/* to better match RESTful API standarts
  • Added POST /api/helia/pins/:cid/unpin to allow file unpinning, so that they can be cleaned by garbage collector
  • Added garbage-collection.cron which runs helia garbage collection with interval set in config

Issues still needed to be resolved:

  • GET /pins/:cid/providers doesn't work, as we don't specify any provider and we don't need one
  • GET /services/ping doesn't work with peerId

@confleux confleux requested a review from a team June 18, 2025 18:03
@yoxira yoxira self-requested a review June 23, 2025 23:20
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