From 2552c7ffb1246206593fd7fd00ba4efa7f5aaf1a Mon Sep 17 00:00:00 2001 From: Jonathan Cardoso Machado Date: Thu, 25 Dec 2025 11:28:44 -0300 Subject: [PATCH] fix: the FileInfo type not matching the actual shape of the object --- CHANGELOG.md | 2 ++ lib/types/FileInfo.ts | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fa2b47ba..14aea481f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Breaking Change ### Fixed +- Fixed the types on the `FileInfo` object. With 5.0.0, the properties were changed to be all in lowercase, to follow the libcurl struct more closely. ### Added @@ -38,6 +39,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Ubuntu >= v22.04. - Alpine >= 3.21 - C++ compilers supporting c++20 +- The `FileInfo` object properties are now all in lowercase, to follow the libcurl struct more closely. - Errors thrown by the addon are now instances of one of the following classes: - `CurlEasyError` - `CurlMultiError` diff --git a/lib/types/FileInfo.ts b/lib/types/FileInfo.ts index 9fade96dd..462c32228 100644 --- a/lib/types/FileInfo.ts +++ b/lib/types/FileInfo.ts @@ -12,14 +12,14 @@ import { CurlFileType } from '../enum/CurlFileType' * @public */ export type FileInfo = { - fileType: CurlFileType - fileName: string + filetype: CurlFileType + filename: string time: Date perm: number uid: number gid: number size: number - hardLinks: number + hardlinks: number strings: { time: string perm: string