From b49d8222562a98efe28a9361c2b0ce90587147f8 Mon Sep 17 00:00:00 2001 From: Alan Plum Date: Mon, 13 Jan 2025 11:03:59 +0100 Subject: [PATCH] Remove File type Fixes #818. --- CHANGELOG.md | 9 +++++++++ src/databases.ts | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6de865743..3b0192514 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,14 @@ This driver uses semantic versioning: - A change in the major version (e.g. 1.Y.Z -> 2.0.0) indicates _breaking_ changes that require changes in your code to upgrade. +## [Unreleased] + +### Changed + +- Removed `File` from `source` option types in Foxx CRUD methods ([#818](https://github.com/arangodb/arangojs/issues/818)) + + The `source` option type already includes `Blob`, which `File` extends. + ## [10.1.0] - 2025-01-13 ### Added @@ -2460,6 +2468,7 @@ For a detailed list of changes between pre-release versions of v7 see the Graph methods now only return the relevant part of the response body. +[unreleased]: https://github.com/arangodb/arangojs/compare/v10.1.0...HEAD [10.1.0]: https://github.com/arangodb/arangojs/compare/v10.0.0...v10.1.0 [10.0.0]: https://github.com/arangodb/arangojs/compare/v9.3.0...v10.0.0 [9.3.0]: https://github.com/arangodb/arangojs/compare/v9.2.0...v9.3.0 diff --git a/src/databases.ts b/src/databases.ts index 52d72333c..4ed4e2d9f 100644 --- a/src/databases.ts +++ b/src/databases.ts @@ -3409,7 +3409,7 @@ export class Database { */ async installService( mount: string, - source: File | Blob | string, + source: Blob | string, options: services.InstallServiceOptions = {} ): Promise { const { configuration, dependencies, ...search } = options; @@ -3467,7 +3467,7 @@ export class Database { */ async replaceService( mount: string, - source: File | Blob | string, + source: Blob | string, options: services.ReplaceServiceOptions = {} ): Promise { const { configuration, dependencies, ...search } = options; @@ -3525,7 +3525,7 @@ export class Database { */ async upgradeService( mount: string, - source: File | Blob | string, + source: Blob | string, options: services.UpgradeServiceOptions = {} ): Promise { const { configuration, dependencies, ...search } = options;