Skip to content

Commit b49d822

Browse files
committed
Remove File type
Fixes #818.
1 parent 6ded453 commit b49d822

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ This driver uses semantic versioning:
1414
- A change in the major version (e.g. 1.Y.Z -> 2.0.0) indicates _breaking_
1515
changes that require changes in your code to upgrade.
1616

17+
## [Unreleased]
18+
19+
### Changed
20+
21+
- Removed `File` from `source` option types in Foxx CRUD methods ([#818](https://github.com/arangodb/arangojs/issues/818))
22+
23+
The `source` option type already includes `Blob`, which `File` extends.
24+
1725
## [10.1.0] - 2025-01-13
1826

1927
### Added
@@ -2460,6 +2468,7 @@ For a detailed list of changes between pre-release versions of v7 see the
24602468

24612469
Graph methods now only return the relevant part of the response body.
24622470

2471+
[unreleased]: https://github.com/arangodb/arangojs/compare/v10.1.0...HEAD
24632472
[10.1.0]: https://github.com/arangodb/arangojs/compare/v10.0.0...v10.1.0
24642473
[10.0.0]: https://github.com/arangodb/arangojs/compare/v9.3.0...v10.0.0
24652474
[9.3.0]: https://github.com/arangodb/arangojs/compare/v9.2.0...v9.3.0

src/databases.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3409,7 +3409,7 @@ export class Database {
34093409
*/
34103410
async installService(
34113411
mount: string,
3412-
source: File | Blob | string,
3412+
source: Blob | string,
34133413
options: services.InstallServiceOptions = {}
34143414
): Promise<services.ServiceDescription> {
34153415
const { configuration, dependencies, ...search } = options;
@@ -3467,7 +3467,7 @@ export class Database {
34673467
*/
34683468
async replaceService(
34693469
mount: string,
3470-
source: File | Blob | string,
3470+
source: Blob | string,
34713471
options: services.ReplaceServiceOptions = {}
34723472
): Promise<services.ServiceDescription> {
34733473
const { configuration, dependencies, ...search } = options;
@@ -3525,7 +3525,7 @@ export class Database {
35253525
*/
35263526
async upgradeService(
35273527
mount: string,
3528-
source: File | Blob | string,
3528+
source: Blob | string,
35293529
options: services.UpgradeServiceOptions = {}
35303530
): Promise<services.ServiceDescription> {
35313531
const { configuration, dependencies, ...search } = options;

0 commit comments

Comments
 (0)