@ddd-ts-kit/s3 0.113.2 → 0.114.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.
Files changed (3) hide show
  1. package/README.fr.md +3 -3
  2. package/README.md +2 -2
  3. package/package.json +10 -10
package/README.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:850ad6c6eab8788c -->
2
+ <!-- translation-of: README.md sha256:81d3f92f58479ee5 -->
3
3
 
4
4
  # @ddd-ts-kit/s3
5
5
 
@@ -16,7 +16,7 @@ npm i @ddd-ts-kit/s3 @aws-sdk/client-s3 @aws-sdk/lib-storage @aws-sdk/s3-request
16
16
  Les trois *packages* du SDK AWS v3 officiel sont des dépendances *peer* optionnelles, écrites pour
17
17
  la version 3.1150.
18
18
 
19
- ![Les cas d'usage et FileStaging dépendent du port FileStorage du noyau ; S3FileStorage l'implémente, place chaque clé sous son préfixe et envoie ses commandes par un S3Client construit par s3ClientOf ; le client envoie et télécharge directement vers le bucket par des liens signés ; le bucket garde les fichiers promus sous leurs clés et les fichiers mis en attente sous staging/](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/s3-place-in-an-application.fr.svg)
19
+ ![Les cas d'usage et FileStaging dépendent du port FileStorage du noyau ; S3FileStorage l'implémente, place chaque clé sous son préfixe et envoie ses commandes par un S3Client construit par s3ClientOf ; le client envoie et télécharge directement vers le bucket par des liens signés ; le bucket garde les fichiers promus sous leurs clés et les fichiers mis en attente sous staging/](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/s3-place-in-an-application.fr.svg)
20
20
 
21
21
  Les cas d'usage parlent au port avec des clés comme `appointment-documents/2026/10/7f3c`,
22
22
  générées par `TenantFileKeys`, le `FileKeys` du noyau : la zone, l'année, le mois, puis un
@@ -128,7 +128,7 @@ pour plus d'une heure avec `INVALID_FILE_URL_EXPIRY`, avant toute requête. La s
128
128
  demande pas de requête non plus : un lien signé est calculé à partir des identifiants d'accès, et
129
129
  seul le fournisseur le vérifie, quand le client l'utilise.
130
130
 
131
- ![Un envoi par lien signé : le client demande un lien, FileStaging.uploadUrl fait signer un PUT localement par S3FileStorage et garde l'autorisation d'envoi sur l'agrégat, le client envoie le fichier directement au bucket, qui vérifie la clé, la méthode, le content-type et l'expiration mais ne peut pas plafonner la taille ; puis le client confirme, et FileStaging.confirm relit l'objet mis en attente pour vérifier sa taille contre le plafond, son type de média, son empreinte et l'analyse](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/s3-signed-upload.fr.svg)
131
+ ![Un envoi par lien signé : le client demande un lien, FileStaging.uploadUrl fait signer un PUT localement par S3FileStorage et garde l'autorisation d'envoi sur l'agrégat, le client envoie le fichier directement au bucket, qui vérifie la clé, la méthode, le content-type et l'expiration mais ne peut pas plafonner la taille ; puis le client confirme, et FileStaging.confirm relit l'objet mis en attente pour vérifier sa taille contre le plafond, son type de média, son empreinte et l'analyse](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/s3-signed-upload.fr.svg)
132
132
 
133
133
  Le client envoie le fichier exactement comme le dit le lien, avec les en-têtes qu'il a reçus :
134
134
 
package/README.md CHANGED
@@ -14,7 +14,7 @@ npm i @ddd-ts-kit/s3 @aws-sdk/client-s3 @aws-sdk/lib-storage @aws-sdk/s3-request
14
14
 
15
15
  The three packages of the official AWS SDK v3 are optional peers, written against 3.1150.
16
16
 
17
- ![The use cases and FileStaging depend on the FileStorage port of the kernel; S3FileStorage implements it, maps each key under its prefix and sends its commands through an S3Client built by s3ClientOf; the client uploads and downloads straight to the bucket with signed links; the bucket holds promoted files under their keys and staged files under staging/](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/s3-place-in-an-application.svg)
17
+ ![The use cases and FileStaging depend on the FileStorage port of the kernel; S3FileStorage implements it, maps each key under its prefix and sends its commands through an S3Client built by s3ClientOf; the client uploads and downloads straight to the bucket with signed links; the bucket holds promoted files under their keys and staged files under staging/](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/s3-place-in-an-application.svg)
18
18
 
19
19
  The use cases speak to the port with keys such as `appointment-documents/2026/10/7f3c`,
20
20
  generated by `TenantFileKeys`, the `FileKeys` of the kernel: the area, the year, the month, then
@@ -125,7 +125,7 @@ more than an hour with `INVALID_FILE_URL_EXPIRY`, before any request. Signing ne
125
125
  either: a signed link is computed from the credentials, and only the provider checks it, when
126
126
  the client uses it.
127
127
 
128
- ![An upload through a signed link: the client asks for a link, FileStaging.uploadUrl has S3FileStorage sign a PUT locally and keeps the grant on the aggregate, the client sends the file straight to the bucket, which checks the key, method, content-type and expiry but cannot cap the size; then the client confirms, and FileStaging.confirm reads the staged object back to check its size against the cap, its media type, its checksum and the scan](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/s3-signed-upload.svg)
128
+ ![An upload through a signed link: the client asks for a link, FileStaging.uploadUrl has S3FileStorage sign a PUT locally and keeps the grant on the aggregate, the client sends the file straight to the bucket, which checks the key, method, content-type and expiry but cannot cap the size; then the client confirms, and FileStaging.confirm reads the staged object back to check its size against the cap, its media type, its checksum and the scan](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/s3-signed-upload.svg)
129
129
 
130
130
  The client sends the file exactly as the link says, with the headers it was given:
131
131
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-ts-kit/s3",
3
- "version": "0.113.2",
3
+ "version": "0.114.1",
4
4
  "description": "Adapter of the kernel FileStorage port on the S3 protocol (AWS S3, MinIO, OVHcloud, Scaleway, Cloudflare R2): streamed uploads, signed links, copy, move, listing.",
5
5
  "keywords": [
6
6
  "ddd",
@@ -17,11 +17,11 @@
17
17
  "license": "MIT",
18
18
  "repository": {
19
19
  "type": "git",
20
- "url": "git+https://github.com/gbourgeat/ddd-ts-kit.git",
20
+ "url": "git+https://github.com/ddd-ts-kit/ddd-ts-kit.git",
21
21
  "directory": "packages/s3"
22
22
  },
23
- "homepage": "https://gbourgeat.github.io/ddd-ts-kit/packages/s3/",
24
- "bugs": "https://github.com/gbourgeat/ddd-ts-kit/issues",
23
+ "homepage": "https://ddd-ts-kit.github.io/ddd-ts-kit/packages/s3/",
24
+ "bugs": "https://github.com/ddd-ts-kit/ddd-ts-kit/issues",
25
25
  "publishConfig": {
26
26
  "access": "public",
27
27
  "provenance": true
@@ -45,13 +45,13 @@
45
45
  "dist"
46
46
  ],
47
47
  "dependencies": {
48
- "@ddd-ts-kit/kernel": "0.113.2"
48
+ "@ddd-ts-kit/kernel": "0.114.1"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@aws-sdk/client-s3": "^3.1152.0",
52
52
  "@aws-sdk/lib-storage": "^3.1152.0",
53
53
  "@aws-sdk/s3-request-presigner": "^3.1152.0",
54
- "@ddd-ts-kit/testing": "0.113.2"
54
+ "@ddd-ts-kit/testing": "0.114.1"
55
55
  },
56
56
  "peerDependenciesMeta": {
57
57
  "@aws-sdk/client-s3": {
@@ -68,9 +68,9 @@
68
68
  }
69
69
  },
70
70
  "devDependencies": {
71
- "@aws-sdk/client-s3": "3.1165.0",
72
- "@aws-sdk/lib-storage": "3.1165.0",
73
- "@aws-sdk/s3-request-presigner": "3.1165.0",
74
- "@ddd-ts-kit/testing": "0.113.2"
71
+ "@aws-sdk/client-s3": "3.1166.0",
72
+ "@aws-sdk/lib-storage": "3.1166.0",
73
+ "@aws-sdk/s3-request-presigner": "3.1166.0",
74
+ "@ddd-ts-kit/testing": "0.114.1"
75
75
  }
76
76
  }