Skip to content

V2.2.0

Choose a tag to compare

@Maxessien Maxessien released this 26 Mar 04:03
· 6 commits to main since this release
5b471a7

[2.2.0] - 2026-03-26

Added

  • Added TypeScript source layout with new modules in src/ (index.ts, types, and utils/fileHandlers.ts)
  • Added richer upload response metadata by probing uploaded files for dimensions (width/height)
  • Added resource type detection and validation using file-type

Changed

  • Refactored package distribution to compile output in dist/ (main and types now point to dist/index.js and dist/index.d.ts)
  • Migrated implementation files from JavaScript to TypeScript and introduced tsconfig.json build pipeline
  • Updated dependencies to support metadata probing and type-safe builds (ffprobe, ffprobe-static, file-type, TypeScript tooling)

Fixed

  • Improved destroy() behavior to return { result: "not found" } when the file is missing
  • Improved clearStorage() to reset in-memory upload mappings after clearing storage