@porulle/plugin-channel-connector 0.48.0 → 0.48.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porulle/plugin-channel-connector",
3
- "version": "0.48.0",
3
+ "version": "0.48.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@hono/zod-openapi": "^1.2.2",
21
21
  "hono": "^4.12.5",
22
- "@porulle/core": "0.48.0"
22
+ "@porulle/core": "0.48.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^24.5.2",
package/src/index.ts CHANGED
@@ -335,6 +335,15 @@ export function channelConnectorPlugin(options: ChannelConnectorPluginOptions =
335
335
  counted: page.value.imported,
336
336
  cursor: page.value.cursor ?? null,
337
337
  ...(page.value.warnings ? { warnings: page.value.warnings } : {}),
338
+ // UNCONDITIONAL, unlike `warnings` and `failures` beside it. The step's return value is
339
+ // the only per-batch seam a host application has — `walkBatches` keeps just `last` — so
340
+ // this is where a page gets its identity. Omitting it when empty would make "this batch
341
+ // committed nothing" and "this plugin build does not report entities" the same
342
+ // `undefined` at the seam, and a caller that collapses those enqueues nothing and
343
+ // reports success. The service's own return declares it unconditional for the same
344
+ // reason; dropping it here would have undone that one line later.
345
+ entityIds: page.value.entityIds,
346
+ ...(page.value.failures ? { failures: page.value.failures } : {}),
338
347
  };
339
348
  },
340
349
  );