@medusajs/file 2.23.0 → 2.23.1-preview-20261124142230
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/package.json +4 -4
package/AGENTS.md
CHANGED
|
@@ -53,7 +53,7 @@ const buffer = await fileModule.getAsBuffer(id)
|
|
|
53
53
|
- `createFiles(data | data[])` -> `{ id, url }`
|
|
54
54
|
- `deleteFiles(id | ids)`
|
|
55
55
|
- `retrieveFile(id)`, `listFiles({ id })`, `listAndCountFiles({ id })`: return presigned download URLs
|
|
56
|
-
- `getUploadFileUrls({ filename, mimeType?, access? })`: presigned upload URLs (provider must implement `getPresignedUploadUrl`)
|
|
56
|
+
- `getUploadFileUrls({ filename, mimeType?, access?, size? })`: presigned upload URLs (provider must implement `getPresignedUploadUrl`). `size` is the exact byte length; providers that support it (S3) only accept an upload of that size, others ignore it
|
|
57
57
|
- Streams and buffers: `getDownloadStream(id)`, `getAsBuffer(id)`, `getUploadStream({ filename, mimeType, ... })` -> `{ writeStream, promise, url, fileKey }`
|
|
58
58
|
- `getProvider()`: the internal `FileProviderService`
|
|
59
59
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/file",
|
|
3
|
-
"version": "2.23.
|
|
3
|
+
"version": "2.23.1-preview-20261124142230",
|
|
4
4
|
"description": "Medusa File module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"orm:cache:clear": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm cache:clear"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@medusajs/framework": "2.23.
|
|
47
|
-
"@medusajs/test-utils": "2.23.
|
|
46
|
+
"@medusajs/framework": "2.23.1-preview-20261124142230",
|
|
47
|
+
"@medusajs/test-utils": "2.23.1-preview-20261124142230"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@medusajs/framework": "2.23.
|
|
50
|
+
"@medusajs/framework": "2.23.1-preview-20261124142230"
|
|
51
51
|
}
|
|
52
52
|
}
|