Commit Graph
16 Commits
Author SHA1 Message Date
Claude 1422318f0a fix: enhance test setup and environment configuration for improved reliability 2026-07-28 22:44:08 +07:00
asepharyana 340c12d671 feat: implement authentication routes with login, logout, and user info retrieval
feat: add S3 bucket versioning support and related XML response handling

refactor: rename temporary file paths from 'teleuploader' to 'filedrop' for consistency

fix: update Swagger documentation to reflect new API name and descriptions

test: add unit tests for authentication routes and utilities

test: implement end-to-end tests for S3 bucket configuration and versioning

chore: update environment variable defaults for new service name
2026-07-07 19:58:15 +07:00
asepharyana f88ac1a124 test: add real AWS SDK v3 S3 compatibility tests (20 tests)
Tests use @aws-sdk/client-s3 against https://upload.asepharyana.my.id
with forcePathStyle=true. Covers all standard S3 operations:
ListBuckets, CreateBucket, HeadBucket, DeleteBucket, PutObject,
GetObject, HeadObject, ListObjectsV1/V2 (prefix, delimiter),
CopyObject, DeleteObject, DeleteObjects (batch), error handling.

Multipart is excluded from SDK tests — the SDK adds amz-sdk-* /
x-amz-user-agent to signed headers, which can differ between
signing time and the actual request through Cloudflare, causing
403 SignatureDoesNotMatch. Multipart is verified via manual
SigV4 signing in test/production-e2e.test.ts.
2026-07-07 01:59:17 +07:00
asepharyana b731ddd7e1 fix: sequential test execution to avoid mock pollution between files 2026-07-06 22:50:59 +07:00
asepharyana e175a27512 test: add S3 auth, operations, and web API tests 2026-07-06 21:15:26 +07:00
MythEclipse fd5eb98586 feat: implement caching for file info, add rate limiting, and enhance upload handling with retry logic 2026-05-21 23:31:49 +07:00
MythEclipseandClaude Opus 4.7 bf6d5f04c4 fix: bundle migration script and ensure file_hash column exists
- Compile src/db/migrate.ts to dist/migrate.js during build
- Copy dist/migrate.js to Stage 2 (runner) inside Dockerfile
- Run bun dist/migrate.js on db:migrate command
- Modify schema.sql to use CREATE TABLE IF NOT EXISTS and ALTER TABLE to add file_hash to existing database instances on VPS

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 19:46:21 +07:00
MythEclipse 2c1c5ad638 fix: add Bun database migration runner 2026-05-18 08:25:24 +07:00
MythEclipse 6feca3564a feat: add Swagger OpenAPI documentation endpoints 2026-05-18 07:39:27 +07:00
MythEclipse 825a8f42cb chore: add build script and target bun bundle output 2026-05-18 07:30:33 +07:00
MythEclipse 9c5a855f7d chore: configure typescript, biome, and package scripts 2026-05-18 07:23:22 +07:00
MythEclipse 252b2e4a1f test: isolate module mocking and add sequential test script 2026-05-18 07:16:30 +07:00
MythEclipseandClaude Opus 4.7 434905313c refactor: replace TypeScript with ESM JavaScript
Remove index.ts and tsconfig.json, update package.json, and install dependencies.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 07:15:05 +07:00
MythEclipseandClaude Opus 4.7 281329a1af feat: add Drizzle ORM database layer
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 07:00:46 +07:00
MythEclipseandClaude Opus 4.7 25c82bcf0b chore: add dependencies and configuration
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 06:51:06 +07:00
MythEclipse cf55f6dee8 Initialize TeleUploader project with Bun, including configuration files and basic setup 2026-05-18 06:34:02 +07:00