@porulle/plugin-channel-connector 0.79.0 → 0.79.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/dist/service.d.ts +4 -0
- package/dist/service.js +5 -1
- package/package.json +4 -4
- package/src/service.ts +5 -1
package/dist/service.d.ts
CHANGED
|
@@ -355,6 +355,10 @@ export declare const channelOrderAddressSchema: z.ZodObject<{
|
|
|
355
355
|
* A hero is streamed inside the page's own invocation, so it is bounded: a 30 MB TIFF a merchant
|
|
356
356
|
* uploaded by mistake must not buffer into a 128 MiB isolate. Anything larger is reported, not
|
|
357
357
|
* stored, and the product still lands — the index reads text first and media later.
|
|
358
|
+
*
|
|
359
|
+
* 4 MiB, not 1: at 1 MiB the cap refused ordinary product photographs — 16 of 100 Kelly Felder
|
|
360
|
+
* heroes and 11 of 100 Arienti, all between 1 and 2 MiB, measured 2026-10-06 — and a product with
|
|
361
|
+
* no photo is left out of every agent feed. Three in flight at 4 MiB stays far under the isolate.
|
|
358
362
|
*/
|
|
359
363
|
export declare const HERO_IMAGE_BYTE_CAP: number;
|
|
360
364
|
export type CatalogMediaFailureReason = "too-large" | "download-failed" | "unsupported" | "storage";
|
package/dist/service.js
CHANGED
|
@@ -507,8 +507,12 @@ function redactStore(store) {
|
|
|
507
507
|
* A hero is streamed inside the page's own invocation, so it is bounded: a 30 MB TIFF a merchant
|
|
508
508
|
* uploaded by mistake must not buffer into a 128 MiB isolate. Anything larger is reported, not
|
|
509
509
|
* stored, and the product still lands — the index reads text first and media later.
|
|
510
|
+
*
|
|
511
|
+
* 4 MiB, not 1: at 1 MiB the cap refused ordinary product photographs — 16 of 100 Kelly Felder
|
|
512
|
+
* heroes and 11 of 100 Arienti, all between 1 and 2 MiB, measured 2026-10-06 — and a product with
|
|
513
|
+
* no photo is left out of every agent feed. Three in flight at 4 MiB stays far under the isolate.
|
|
510
514
|
*/
|
|
511
|
-
export const HERO_IMAGE_BYTE_CAP = 1024 * 1024;
|
|
515
|
+
export const HERO_IMAGE_BYTE_CAP = 4 * 1024 * 1024;
|
|
512
516
|
/** The hero, the variant photos and the gallery together never exceed this — what a projection reads. */
|
|
513
517
|
const IMPORT_IMAGE_LIMIT = 6;
|
|
514
518
|
function imageOrder(a, b) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porulle/plugin-channel-connector",
|
|
3
|
-
"version": "0.79.
|
|
3
|
+
"version": "0.79.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@hono/zod-openapi": "^1.2.2",
|
|
24
24
|
"hono": "^4.12.5",
|
|
25
|
-
"@porulle/core": "0.79.
|
|
25
|
+
"@porulle/core": "0.79.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^24.5.2",
|
|
29
29
|
"eslint": "^9.39.1",
|
|
30
30
|
"typescript": "5.9.2",
|
|
31
31
|
"vitest": "^3.2.4",
|
|
32
|
-
"@porulle/
|
|
33
|
-
"@porulle/
|
|
32
|
+
"@porulle/eslint-config": "0.1.0",
|
|
33
|
+
"@porulle/typescript-config": "0.1.0"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
package/src/service.ts
CHANGED
|
@@ -1135,8 +1135,12 @@ function redactStore(store: ConnectedStore): PublicConnectedStore {
|
|
|
1135
1135
|
* A hero is streamed inside the page's own invocation, so it is bounded: a 30 MB TIFF a merchant
|
|
1136
1136
|
* uploaded by mistake must not buffer into a 128 MiB isolate. Anything larger is reported, not
|
|
1137
1137
|
* stored, and the product still lands — the index reads text first and media later.
|
|
1138
|
+
*
|
|
1139
|
+
* 4 MiB, not 1: at 1 MiB the cap refused ordinary product photographs — 16 of 100 Kelly Felder
|
|
1140
|
+
* heroes and 11 of 100 Arienti, all between 1 and 2 MiB, measured 2026-10-06 — and a product with
|
|
1141
|
+
* no photo is left out of every agent feed. Three in flight at 4 MiB stays far under the isolate.
|
|
1138
1142
|
*/
|
|
1139
|
-
export const HERO_IMAGE_BYTE_CAP = 1024 * 1024;
|
|
1143
|
+
export const HERO_IMAGE_BYTE_CAP = 4 * 1024 * 1024;
|
|
1140
1144
|
|
|
1141
1145
|
export type CatalogMediaFailureReason = "too-large" | "download-failed" | "unsupported" | "storage";
|
|
1142
1146
|
|