Skip to content

Commit e2784b4

Browse files
committed
Release v0.9.1
1 parent 5b02d50 commit e2784b4

24 files changed

Lines changed: 979 additions & 837 deletions

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## Version 0.9.1
4+
5+
* Migrate vintasend and all officially supported packages from jest to vitest
6+
* Update dependencies on all officially supported packages
7+
38
## Version 0.9.0
49

510
* **Asynchronous replication queue (per backend) added**:

jest.config.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vintasend",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"main": "dist/index.js",
55
"files": [
66
"dist"
@@ -13,9 +13,9 @@
1313
"check": "biome check --write .",
1414
"build": "tsc",
1515
"prepublishOnly": "npm run build",
16-
"test": "jest",
17-
"test:watch": "jest --watch",
18-
"test:coverage": "jest --coverage",
16+
"test": "vitest run",
17+
"test:watch": "vitest",
18+
"test:coverage": "vitest run --coverage",
1919
"test:implementations:local": "node scripts/test-implementations-local.js",
2020
"release:bump": "node scripts/release-bump.js",
2121
"release:bump:patch": "node scripts/release-bump.js --bump=patch",
@@ -26,12 +26,11 @@
2626
},
2727
"devDependencies": {
2828
"@biomejs/biome": "^2.3.11",
29-
"@types/jest": "^30.0.0",
3029
"@types/mime-types": "^3.0.1",
3130
"@types/node": "^25.0.8",
32-
"jest": "^30.2.0",
33-
"ts-jest": "^29.4.6",
34-
"typescript": "^5.9.3"
31+
"@vitest/coverage-v8": "4.0.18",
32+
"typescript": "^5.9.3",
33+
"vitest": "4.0.18"
3534
},
3635
"dependencies": {
3736
"mime-types": "^3.0.2"

src/implementations/vintasend-implementation-template/jest.config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/implementations/vintasend-implementation-template/package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@
66
"scripts": {
77
"build": "tsc",
88
"prepublishOnly": "npm run build",
9-
"test": "jest",
10-
"test:watch": "jest --watch",
11-
"test:coverage": "jest --coverage"
9+
"test": "vitest run",
10+
"test:watch": "vitest",
11+
"test:coverage": "vitest run --coverage"
1212
},
1313
"files": ["dist"],
1414
"author": "Hugo Bessa",
1515
"license": "MIT",
1616
"dependencies": {
17-
"vintasend": "^0.6.0"
17+
"vintasend": "^0.9.0"
1818
},
1919
"devDependencies": {
20-
"@types/jest": "^30.0.0",
21-
"jest": "^30.2.0",
22-
"ts-jest": "^29.4.6",
23-
"typescript": "^5.9.3"
20+
"@vitest/coverage-v8": "4.0.18",
21+
"typescript": "^5.9.3",
22+
"vitest": "4.0.18"
2423
}
2524
}

src/implementations/vintasend-implementation-template/src/__tests__/attachment-manager.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('TemplateAttachmentManager', () => {
4646
// 2. Delete the file
4747
// 3. Verify file is deleted (getFile returns null)
4848

49-
await expect(manager.deleteFile('test-id')).rejects.toThrow('not implemented');
49+
await expect(manager.deleteFileByIdentifiers({ id: 'test-id' })).rejects.toThrow('not implemented');
5050
});
5151
});
5252

@@ -55,6 +55,7 @@ describe('TemplateAttachmentManager', () => {
5555
const storageMetadata = {
5656
// TODO: Add storage-specific metadata structure
5757
// Example for S3: { bucket: 'test-bucket', key: 'test-key' }
58+
id: 'test-id',
5859
};
5960

6061
// TODO: Implement test once reconstructAttachmentFile is implemented
@@ -76,7 +77,7 @@ describe('TemplateAttachmentManager', () => {
7677
expect(manager.detectContentType('document.pdf')).toBe('application/pdf');
7778
expect(manager.detectContentType('image.png')).toBe('image/png');
7879
expect(manager.detectContentType('data.json')).toBe('application/json');
79-
expect(manager.detectContentType('unknown.xyz')).toBe('application/octet-stream');
80+
expect(manager.detectContentType('unknown.unknownext')).toBe('application/octet-stream');
8081
});
8182

8283
it('should calculate SHA-256 checksum', () => {

src/implementations/vintasend-implementation-template/src/attachment-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class TemplateAttachmentManager extends BaseAttachmentManager {
105105
* This class provides access to a stored file. Create an implementation
106106
* specific to your storage backend.
107107
*/
108-
class TemplateAttachmentFile implements AttachmentFile {
108+
export class TemplateAttachmentFile implements AttachmentFile {
109109
constructor(
110110
private fileId: string,
111111
private storageIdentifiers: StorageIdentifiers,

0 commit comments

Comments
 (0)