Skip to content

Commit

Permalink
Remove File type
Browse files Browse the repository at this point in the history
Fixes #818.
  • Loading branch information
pluma4345 committed Jan 13, 2025
1 parent 6ded453 commit b49d822
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/databases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3409,7 +3409,7 @@ export class Database {
*/
async installService(
mount: string,
source: File | Blob | string,
source: Blob | string,
options: services.InstallServiceOptions = {}
): Promise<services.ServiceDescription> {
const { configuration, dependencies, ...search } = options;
Expand Down Expand Up @@ -3467,7 +3467,7 @@ export class Database {
*/
async replaceService(
mount: string,
source: File | Blob | string,
source: Blob | string,
options: services.ReplaceServiceOptions = {}
): Promise<services.ServiceDescription> {
const { configuration, dependencies, ...search } = options;
Expand Down Expand Up @@ -3525,7 +3525,7 @@ export class Database {
*/
async upgradeService(
mount: string,
source: File | Blob | string,
source: Blob | string,
options: services.UpgradeServiceOptions = {}
): Promise<services.ServiceDescription> {
const { configuration, dependencies, ...search } = options;
Expand Down

0 comments on commit b49d822

Please sign in to comment.