Skip to content

[IN-201]: chore: remove storj-lib and storj-mongodb-adapter - #234

Merged
apsantiso merged 3 commits into
masterfrom
chore/drop-storj-lib
Nov 9, 2026
Merged

apsantiso merged 3 commits into
masterfrom
chore/drop-storj-lib

Conversation

@apsantiso

@apsantiso apsantiso commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

What

  • Remove storj-lib and storj-mongodb-adapter by using service-storage-models 11.2.0.
  • V1 files download EPGET /buckets/:id/files/:file now uses logic that got migrated to this repository (v1 files are an unicorn right now but added for retrocompatibility)
  • Remove GET / as it doesn't work.

Why

storj-lib breaks with Node 24, so it has to go before the upgrade.

Tests

API build completed and working

.....
2026-11-09 09:46:32 info [- | - | -] setting up http(s) server instance
2026-11-09 09:46:32 info [- | - | -] connected to redis
2026-11-09 09:46:32 info [- | - | -] connected to database
2026-11-09 09:50:10 info [2406931c-245c-450a-a8d9-ff870170224e | drive-server | -] GET /limit [STARTED]
2026-11-09 09:50:11 info [4955147e-0191-4758-a6e8-ef67ebe0c0b6 | drive-server | -] GET /limit [STARTED]
2026-11-09 09:50:11 info [2406931c-245c-450a-a8d9-ff870170224e | drive-server | -] GET /limit [FINISHED] 200 213.15 ms
2026-11-09 09:50:11 info [2406931c-245c-450a-a8d9-ff870170224e | drive-server | -] GET /limit [CLOSED] 200 1,011.281 ms
2026-11-09 09:50:11 info [9b02c84f-e73d-4059-83e3-8672150339d6 | drive-server | -] GET /limit [STARTED]
2026-11-09 09:50:11 info [08fd591c-fdb8-4afe-9337-e8c038c88cde | drive-server | -] GET /limit [STARTED]
2026-11-09 09:50:12 info [cec40b5c-9302-4027-907f-d585c5140701 | drive-server | -] GET /limit [STARTED]
2026-11-09 09:50:21 info [835861f2-8731-4f98-a394-48640e4860a3 | - | -] OPTIONS /v2/buckets/6ae31a0094fdddb985c46f53/files/start?multiparts=1 [STARTED]
2026-11-09 09:50:21 info [835861f2-8731-4f98-a394-48640e4860a3 | - | -] OPTIONS /v2/buckets/6ae31a0094fdddb985c46f53/files/start?multiparts=1 [FINISHED] 204 2.927 ms
2026-11-09 09:50:21 info [835861f2-8731-4f98-a394-48640e4860a3 | - | -] OPTIONS /v2/buckets/6ae31a0094fdddb985c46f53/files/start?multiparts=1 [CLOSED] 204 5.731 ms
2026-11-09 09:50:21 info [7e8777fd-dc70-49c4-b5d4-0c4277825002 | drive-web | v1.1.4] POST /v2/buckets/6ae31a0094fdddb985c46f53/files/start?multiparts=1 [STARTED]
2026-11-09 09:50:22 info [7e8777fd-dc70-49c4-b5d4-0c4277825002 | drive-web | v1.1.4] POST /v2/buckets/6ae31a0094fdddb985c46f53/files/start?multiparts=1 [FINISHED] 200 611.988 ms
2026-11-09 09:50:22 info [7e8777fd-dc70-49c4-b5d4-0c4277825002 | drive-web | v1.1.4] POST /v2/buckets/6ae31a0094fdddb985c46f53/files/start?multiparts=1 [CLOSED] 200 612.173 ms

CLI build connected and working

yarn run v1.22.22
(node:13503) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
(Use `node --trace-deprecation ...` to show where the warning was created)
$ ts-node ./bin/cli --help
Preparing resources...
(node:13514) NOTE: The AWS SDK for JavaScript (v2) has reached end-of-support.
It will no longer receive updates or releases.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the blog post at https://a.co/cUPnyil
(Use `node --trace-warnings ...` to show where the warning was created)
Deprecated 'server' option detected in database configuration. This option was removed in MongoDB driver 4.x and will be ignored. Please remove it from your configuration.
opening database connection at mongodb://admin:password@localhost:27017/__inxt-network
connected to database
bull queue initialized
Resources prepared!
Preparing commands...
Commands prepared! Executing...
Usage: cli [options] [command]

Use service-storage-models 11.2.0. Replace contracts.load with a direct
Shard query. Keep validations and errors.
Route returned swagger spec and depended on lib/apispec.json, which
tsc does not copy to dist.
@apsantiso
apsantiso marked this pull request as ready for review November 9, 2026 09:09
@apsantiso
apsantiso requested a review from sg-gs as a code owner November 9, 2026 09:09
@apsantiso apsantiso self-assigned this Nov 9, 2026
@apsantiso apsantiso added the dependencies PR that updates a dependency label Nov 9, 2026
@apsantiso
apsantiso merged commit fb4dc8b into master Nov 9, 2026
10 of 11 checks passed
@apsantiso
apsantiso deleted the chore/drop-storj-lib branch November 9, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies PR that updates a dependency ready-for-preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants