@adonis-agora/media 0.26.2 → 0.27.0
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/CHANGELOG.md +15 -0
- package/dist/assets/spa/assets/{index-BO6hgGp1.js → index-C7-E4B8r.js} +4 -4
- package/dist/assets/spa/assets/index-C7-E4B8r.js.map +1 -0
- package/dist/assets/spa/index.html +1 -1
- package/dist/src/dashboard/service.d.ts +5 -3
- package/dist/src/dashboard/service.d.ts.map +1 -1
- package/dist/src/dashboard/service.js +14 -2
- package/dist/src/dashboard/service.js.map +1 -1
- package/dist/src/disks/s3.d.ts.map +1 -1
- package/dist/src/disks/s3.js +21 -6
- package/dist/src/disks/s3.js.map +1 -1
- package/dist/src/disks/sigv4.d.ts.map +1 -1
- package/dist/src/disks/sigv4.js +24 -1
- package/dist/src/disks/sigv4.js.map +1 -1
- package/dist/src/hls/delivery.js +3 -3
- package/dist/src/hls/delivery.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/media_library.d.ts.map +1 -1
- package/dist/src/media_library.js +169 -59
- package/dist/src/media_library.js.map +1 -1
- package/dist/src/media_store.d.ts +11 -0
- package/dist/src/media_store.d.ts.map +1 -1
- package/dist/src/media_store.js.map +1 -1
- package/dist/src/resumable_upload.d.ts +2 -0
- package/dist/src/resumable_upload.d.ts.map +1 -1
- package/dist/src/resumable_upload.js +22 -4
- package/dist/src/resumable_upload.js.map +1 -1
- package/dist/src/stores/lucid-schema.d.ts.map +1 -1
- package/dist/src/stores/lucid-schema.js +4 -1
- package/dist/src/stores/lucid-schema.js.map +1 -1
- package/dist/src/stores/lucid.d.ts +2 -1
- package/dist/src/stores/lucid.d.ts.map +1 -1
- package/dist/src/stores/lucid.js +15 -0
- package/dist/src/stores/lucid.js.map +1 -1
- package/dist/src/testing/in_memory_media_store.d.ts +2 -1
- package/dist/src/testing/in_memory_media_store.d.ts.map +1 -1
- package/dist/src/testing/in_memory_media_store.js +18 -0
- package/dist/src/testing/in_memory_media_store.js.map +1 -1
- package/dist/src/transformers/video.d.ts +6 -0
- package/dist/src/transformers/video.d.ts.map +1 -1
- package/dist/src/transformers/video.js +42 -15
- package/dist/src/transformers/video.js.map +1 -1
- package/dist/stubs/database/migrations/create_media_table.stub +2 -1
- package/package.json +4 -4
- package/dist/assets/spa/assets/index-BO6hgGp1.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @adonis-agora/media
|
|
2
2
|
|
|
3
|
+
## 0.27.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#228](https://github.com/DavideCarvalho/adonis-agora-media/pull/228) [`98ae7c1`](https://github.com/DavideCarvalho/adonis-agora-media/commit/98ae7c1af1187943eff5215e41196bff36e508f0) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Faster and lighter hot paths, plus an exact console summary:
|
|
8
|
+
|
|
9
|
+
- Resumable `complete()` on a disk without native multipart streams the parts in order into `putStream` instead of concatenating the whole upload in memory (three copies of it before), so a multi-gigabyte upload no longer runs the process out of memory.
|
|
10
|
+
- Attaching to a collection with eager conversions reads the original once for every preset (zero times when the bytes are in hand) and records all of them in one save. `stripMetadata` strips the uploaded bytes before the single write instead of writing, reading back and rewriting them.
|
|
11
|
+
- `image()` builds every `srcSet` URL from the record it already fetched: one store read per image instead of one per candidate.
|
|
12
|
+
- Concurrent requests for the same missing lazy conversion (or on-demand size) share one generation, and conversion entries generated at once for the same media in the same process no longer overwrite each other.
|
|
13
|
+
- The HLS playlist route checks references against a set, the SigV4 presigner reuses the derived signing key per (secret, day, region, service), and `S3Disk` parses its endpoints once: a 1,200-segment playlist renders about 3x faster.
|
|
14
|
+
- `transformers.video()` uploads the package six files at a time; when one fails, the rest finish before the partial output is swept.
|
|
15
|
+
- The `media` table gains `(created_at, id)` and `(collection, created_at, id)` indexes for the newest-first `list()`. The auto-created schema adds them on boot; the published migration includes them. It no longer creates `media_owner_idx`, whose columns are the leftmost prefix of `media_owner_collection_idx`.
|
|
16
|
+
- `MediaStore` gains an optional `collectionTotals()`, implemented by both bundled stores (a `GROUP BY` in Lucid). The console's collection summary uses it and is now exact at any size, where it previously stopped counting at 5,000 records.
|
|
17
|
+
|
|
3
18
|
## 0.26.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|