@jrmc/adonis-attachment 6.0.0-alpha.0 → 6.0.0-alpha.1
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/build/index.d.ts +23 -22
- package/build/index.d.ts.map +1 -1
- package/build/index.js +15 -14
- package/build/index.js.map +1 -1
- package/build/src/core/attachment.d.ts +37 -2
- package/build/src/core/attachment.d.ts.map +1 -1
- package/build/src/core/attachment.js +108 -5
- package/build/src/core/attachment.js.map +1 -1
- package/build/src/core/attachment_options.d.ts +32 -0
- package/build/src/core/attachment_options.d.ts.map +1 -0
- package/build/src/core/attachment_options.js +24 -0
- package/build/src/core/attachment_options.js.map +1 -0
- package/build/src/core/attachment_service.d.ts +7 -1
- package/build/src/core/attachment_service.d.ts.map +1 -1
- package/build/src/core/attachment_service.js +50 -4
- package/build/src/core/attachment_service.js.map +1 -1
- package/build/src/core/index.d.ts +2 -1
- package/build/src/core/index.d.ts.map +1 -1
- package/build/src/core/index.js +2 -1
- package/build/src/core/index.js.map +1 -1
- package/build/src/define_config.d.ts +4 -0
- package/build/src/define_config.d.ts.map +1 -1
- package/build/src/define_config.js +1 -0
- package/build/src/define_config.js.map +1 -1
- package/build/src/integrations/lucid/attachment_column.d.ts +8 -1
- package/build/src/integrations/lucid/attachment_column.d.ts.map +1 -1
- package/build/src/integrations/lucid/attachment_column.js +25 -12
- package/build/src/integrations/lucid/attachment_column.js.map +1 -1
- package/build/src/integrations/lucid/attachment_model.d.ts +1 -0
- package/build/src/integrations/lucid/attachment_model.d.ts.map +1 -1
- package/build/src/integrations/lucid/attachment_model.js +3 -0
- package/build/src/integrations/lucid/attachment_model.js.map +1 -1
- package/build/src/integrations/lucid/attachment_owner.d.ts +2 -1
- package/build/src/integrations/lucid/attachment_owner.d.ts.map +1 -1
- package/build/src/integrations/lucid/attachment_owner.js.map +1 -1
- package/build/src/integrations/lucid/attachment_relation.d.ts +60 -0
- package/build/src/integrations/lucid/attachment_relation.d.ts.map +1 -0
- package/build/src/integrations/lucid/attachment_relation.js +163 -0
- package/build/src/integrations/lucid/attachment_relation.js.map +1 -0
- package/build/src/integrations/lucid/index.d.ts +13 -12
- package/build/src/integrations/lucid/index.d.ts.map +1 -1
- package/build/src/integrations/lucid/index.js +13 -12
- package/build/src/integrations/lucid/index.js.map +1 -1
- package/build/src/integrations/lucid/lucid_attachment_lifecycle_service.d.ts +14 -5
- package/build/src/integrations/lucid/lucid_attachment_lifecycle_service.d.ts.map +1 -1
- package/build/src/integrations/lucid/lucid_attachment_lifecycle_service.js +130 -10
- package/build/src/integrations/lucid/lucid_attachment_lifecycle_service.js.map +1 -1
- package/build/src/integrations/lucid/lucid_attachment_store.d.ts +10 -1
- package/build/src/integrations/lucid/lucid_attachment_store.d.ts.map +1 -1
- package/build/src/integrations/lucid/lucid_attachment_store.js +102 -7
- package/build/src/integrations/lucid/lucid_attachment_store.js.map +1 -1
- package/build/src/integrations/lucid/migrate_legacy_attachment.d.ts +9 -2
- package/build/src/integrations/lucid/migrate_legacy_attachment.d.ts.map +1 -1
- package/build/src/integrations/lucid/migrate_legacy_attachment.js +25 -3
- package/build/src/integrations/lucid/migrate_legacy_attachment.js.map +1 -1
- package/build/src/sources/attachment_manager.d.ts +14 -12
- package/build/src/sources/attachment_manager.d.ts.map +1 -1
- package/build/src/sources/attachment_manager.js +14 -6
- package/build/src/sources/attachment_manager.js.map +1 -1
- package/build/stubs/migrations/attachments_table.stub +1 -0
- package/build/tests/attachment_manager.spec.js +21 -18
- package/build/tests/attachment_manager.spec.js.map +1 -1
- package/build/tests/attachment_manager_service.spec.js +2 -2
- package/build/tests/attachment_manager_service.spec.js.map +1 -1
- package/build/tests/attachment_options.spec.d.ts +2 -0
- package/build/tests/attachment_options.spec.d.ts.map +1 -0
- package/build/tests/attachment_options.spec.js +31 -0
- package/build/tests/attachment_options.spec.js.map +1 -0
- package/build/tests/attachment_service.spec.js +55 -0
- package/build/tests/attachment_service.spec.js.map +1 -1
- package/build/tests/attachments_table_stub.spec.js +1 -0
- package/build/tests/attachments_table_stub.spec.js.map +1 -1
- package/build/tests/define_config.spec.js +12 -0
- package/build/tests/define_config.spec.js.map +1 -1
- package/build/tests/helpers/lucid_test_database.d.ts.map +1 -1
- package/build/tests/helpers/lucid_test_database.js +1 -0
- package/build/tests/helpers/lucid_test_database.js.map +1 -1
- package/build/tests/lucid_attachment_collection_store.spec.d.ts +2 -0
- package/build/tests/lucid_attachment_collection_store.spec.d.ts.map +1 -0
- package/build/tests/lucid_attachment_collection_store.spec.js +52 -0
- package/build/tests/lucid_attachment_collection_store.spec.js.map +1 -0
- package/build/tests/lucid_attachment_column.spec.js +57 -1
- package/build/tests/lucid_attachment_column.spec.js.map +1 -1
- package/build/tests/lucid_attachment_lifecycle_service.spec.js +172 -0
- package/build/tests/lucid_attachment_lifecycle_service.spec.js.map +1 -1
- package/build/tests/lucid_attachment_relation.spec.d.ts +8 -0
- package/build/tests/lucid_attachment_relation.spec.d.ts.map +1 -0
- package/build/tests/lucid_attachment_relation.spec.js +216 -0
- package/build/tests/lucid_attachment_relation.spec.js.map +1 -0
- package/build/tests/lucid_attachment_store.spec.js +2 -0
- package/build/tests/lucid_attachment_store.spec.js.map +1 -1
- package/build/tests/migrate_legacy_attachment.spec.js +96 -54
- package/build/tests/migrate_legacy_attachment.spec.js.map +1 -1
- package/package.json +4 -2
|
@@ -4,88 +4,130 @@
|
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright Jeremy Chaufourier <jeremy@chaufourier.fr>
|
|
6
6
|
*/
|
|
7
|
-
import { test } from
|
|
8
|
-
import { migrateLegacyAttachment } from
|
|
9
|
-
import { createAttachmentOwnerKey } from
|
|
10
|
-
test.group(
|
|
11
|
-
test(
|
|
12
|
-
const ids = [
|
|
7
|
+
import { test } from "@japa/runner";
|
|
8
|
+
import { migrateLegacyAttachment, migrateLegacyAttachmentColumn, } from "../index.js";
|
|
9
|
+
import { createAttachmentOwnerKey } from "../src/integrations/lucid/attachment_owner.js";
|
|
10
|
+
test.group("migrateLegacyAttachment", () => {
|
|
11
|
+
test("converts an original attachment and its variants to polymorphic rows", ({ assert, }) => {
|
|
12
|
+
const ids = ["original-id", "thumbnail-id"];
|
|
13
13
|
const rows = migrateLegacyAttachment({
|
|
14
|
-
name:
|
|
15
|
-
originalName:
|
|
14
|
+
name: "avatar.jpg",
|
|
15
|
+
originalName: "profile.jpg",
|
|
16
16
|
size: 42,
|
|
17
|
-
extname:
|
|
18
|
-
mimeType:
|
|
19
|
-
disk:
|
|
20
|
-
path:
|
|
17
|
+
extname: "jpg",
|
|
18
|
+
mimeType: "image/jpeg",
|
|
19
|
+
disk: "s3",
|
|
20
|
+
path: "users/42/avatar.jpg",
|
|
21
21
|
meta: { width: 800 },
|
|
22
22
|
variants: [
|
|
23
23
|
{
|
|
24
|
-
key:
|
|
25
|
-
name:
|
|
24
|
+
key: "thumbnail",
|
|
25
|
+
name: "avatar.webp",
|
|
26
26
|
size: 12,
|
|
27
|
-
extname:
|
|
28
|
-
mimeType:
|
|
29
|
-
path:
|
|
27
|
+
extname: "webp",
|
|
28
|
+
mimeType: "image/webp",
|
|
29
|
+
path: "users/42/variants/avatar.webp",
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
32
|
}, {
|
|
33
|
-
owner: { type:
|
|
34
|
-
defaultDisk:
|
|
33
|
+
owner: { type: "users", id: "42", field: "avatar" },
|
|
34
|
+
defaultDisk: "public",
|
|
35
35
|
createId: () => ids.shift(),
|
|
36
36
|
});
|
|
37
37
|
assert.deepEqual(rows, [
|
|
38
38
|
{
|
|
39
|
-
id:
|
|
40
|
-
attachableType:
|
|
41
|
-
attachableId:
|
|
42
|
-
field:
|
|
43
|
-
ownerKey: createAttachmentOwnerKey({
|
|
39
|
+
id: "original-id",
|
|
40
|
+
attachableType: "users",
|
|
41
|
+
attachableId: "42",
|
|
42
|
+
field: "avatar",
|
|
43
|
+
ownerKey: createAttachmentOwnerKey({
|
|
44
|
+
type: "users",
|
|
45
|
+
id: "42",
|
|
46
|
+
field: "avatar",
|
|
47
|
+
}),
|
|
44
48
|
parentId: null,
|
|
45
49
|
variantKey: null,
|
|
46
|
-
disk:
|
|
47
|
-
path:
|
|
48
|
-
name:
|
|
49
|
-
originalName:
|
|
50
|
-
mimeType:
|
|
51
|
-
extname:
|
|
50
|
+
disk: "s3",
|
|
51
|
+
path: "users/42/avatar.jpg",
|
|
52
|
+
name: "avatar.jpg",
|
|
53
|
+
originalName: "profile.jpg",
|
|
54
|
+
mimeType: "image/jpeg",
|
|
55
|
+
extname: "jpg",
|
|
52
56
|
size: 42,
|
|
53
57
|
metadata: { width: 800 },
|
|
54
58
|
},
|
|
55
59
|
{
|
|
56
|
-
id:
|
|
57
|
-
attachableType:
|
|
58
|
-
attachableId:
|
|
59
|
-
field:
|
|
60
|
+
id: "thumbnail-id",
|
|
61
|
+
attachableType: "users",
|
|
62
|
+
attachableId: "42",
|
|
63
|
+
field: "avatar",
|
|
60
64
|
ownerKey: null,
|
|
61
|
-
parentId:
|
|
62
|
-
variantKey:
|
|
63
|
-
disk:
|
|
64
|
-
path:
|
|
65
|
-
name:
|
|
66
|
-
originalName:
|
|
67
|
-
mimeType:
|
|
68
|
-
extname:
|
|
65
|
+
parentId: "original-id",
|
|
66
|
+
variantKey: "thumbnail",
|
|
67
|
+
disk: "public",
|
|
68
|
+
path: "users/42/variants/avatar.webp",
|
|
69
|
+
name: "avatar.webp",
|
|
70
|
+
originalName: "profile.jpg",
|
|
71
|
+
mimeType: "image/webp",
|
|
72
|
+
extname: "webp",
|
|
69
73
|
size: 12,
|
|
70
74
|
metadata: null,
|
|
71
75
|
},
|
|
72
76
|
]);
|
|
73
77
|
});
|
|
74
|
-
test(
|
|
78
|
+
test("accepts a serialized v5 document", ({ assert }) => {
|
|
75
79
|
const rows = migrateLegacyAttachment('{"name":"report.pdf","size":10,"extname":"pdf","mimeType":"application/pdf"}', {
|
|
76
|
-
owner: { type:
|
|
77
|
-
defaultDisk:
|
|
78
|
-
createId: () =>
|
|
80
|
+
owner: { type: "reports", id: "report-id", field: "document" },
|
|
81
|
+
defaultDisk: "public",
|
|
82
|
+
createId: () => "attachment-id",
|
|
79
83
|
});
|
|
80
|
-
assert.equal(rows[0]?.disk,
|
|
81
|
-
assert.equal(rows[0]?.originalName,
|
|
84
|
+
assert.equal(rows[0]?.disk, "public");
|
|
85
|
+
assert.equal(rows[0]?.originalName, "report.pdf");
|
|
82
86
|
});
|
|
83
|
-
test(
|
|
84
|
-
assert.throws(() => migrateLegacyAttachment(
|
|
85
|
-
owner: { type:
|
|
86
|
-
defaultDisk:
|
|
87
|
-
createId: () =>
|
|
88
|
-
}),
|
|
87
|
+
test("rejects malformed serialized documents", ({ assert }) => {
|
|
88
|
+
assert.throws(() => migrateLegacyAttachment("{not json}", {
|
|
89
|
+
owner: { type: "reports", id: "report-id", field: "document" },
|
|
90
|
+
defaultDisk: "public",
|
|
91
|
+
createId: () => "attachment-id",
|
|
92
|
+
}), "Legacy attachment value must be valid JSON");
|
|
93
|
+
});
|
|
94
|
+
test("converts a v5 document for a retained single attachment column", ({ assert, }) => {
|
|
95
|
+
const attachment = migrateLegacyAttachmentColumn({
|
|
96
|
+
name: "avatar.jpg",
|
|
97
|
+
originalName: "profile.jpg",
|
|
98
|
+
size: 42,
|
|
99
|
+
extname: "jpg",
|
|
100
|
+
mimeType: "image/jpeg",
|
|
101
|
+
meta: { width: 800 },
|
|
102
|
+
}, { defaultDisk: "public", createId: () => "attachment-id" });
|
|
103
|
+
assert.deepEqual(attachment, {
|
|
104
|
+
id: "attachment-id",
|
|
105
|
+
disk: "public",
|
|
106
|
+
path: "avatar.jpg",
|
|
107
|
+
name: "avatar.jpg",
|
|
108
|
+
originalName: "profile.jpg",
|
|
109
|
+
mimeType: "image/jpeg",
|
|
110
|
+
extname: "jpg",
|
|
111
|
+
size: 42,
|
|
112
|
+
metadata: { width: 800 },
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
test("rejects legacy variants for a retained single attachment column", ({ assert, }) => {
|
|
116
|
+
assert.throws(() => migrateLegacyAttachmentColumn({
|
|
117
|
+
name: "avatar.jpg",
|
|
118
|
+
size: 42,
|
|
119
|
+
extname: "jpg",
|
|
120
|
+
mimeType: "image/jpeg",
|
|
121
|
+
variants: [
|
|
122
|
+
{
|
|
123
|
+
key: "thumbnail",
|
|
124
|
+
name: "thumbnail.jpg",
|
|
125
|
+
size: 10,
|
|
126
|
+
extname: "jpg",
|
|
127
|
+
mimeType: "image/jpeg",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
}, { defaultDisk: "public", createId: () => "attachment-id" }), "Legacy attachments with variants must migrate to the polymorphic table");
|
|
89
131
|
});
|
|
90
132
|
});
|
|
91
133
|
//# sourceMappingURL=migrate_legacy_attachment.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate_legacy_attachment.spec.js","sourceRoot":"","sources":["../../tests/migrate_legacy_attachment.spec.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"migrate_legacy_attachment.spec.js","sourceRoot":"","sources":["../../tests/migrate_legacy_attachment.spec.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EACL,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAEzF,IAAI,CAAC,KAAK,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACzC,IAAI,CAAC,sEAAsE,EAAE,CAAC,EAC5E,MAAM,GACP,EAAE,EAAE;QACH,MAAM,GAAG,GAAG,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;QAC5C,MAAM,IAAI,GAAG,uBAAuB,CAClC;YACE,IAAI,EAAE,YAAY;YAClB,YAAY,EAAE,a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package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jrmc/adonis-attachment",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Next-generation attachment primitives for AdonisJS and standalone TypeScript applications",
|
|
6
6
|
"repository": {
|
|
@@ -115,9 +115,11 @@
|
|
|
115
115
|
"better-sqlite3": "^12.11.1",
|
|
116
116
|
"copyfiles": "^2.4.1",
|
|
117
117
|
"del-cli": "^7.0.0",
|
|
118
|
+
"mermaid": "^11.16.0",
|
|
118
119
|
"prettier": "^3.9.5",
|
|
119
120
|
"typescript": "^5.9.3",
|
|
120
|
-
"vitepress": "^1.6.4"
|
|
121
|
+
"vitepress": "^1.6.4",
|
|
122
|
+
"vitepress-plugin-mermaid": "^2.0.17"
|
|
121
123
|
},
|
|
122
124
|
"peerDependencies": {
|
|
123
125
|
"@adonisjs/core": "^7.0.0",
|