@ironflow/browser 0.37.1 → 0.39.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/README.md CHANGED
@@ -53,7 +53,7 @@ ironflow.configure({
53
53
  },
54
54
  reconnect: {
55
55
  enabled: true, // Default: true
56
- maxAttempts: 10, // Default: 10. Use -1 for infinite.
56
+ maxAttempts: 10, // Accepted but not enforced — reconnects are unbounded.
57
57
  backoff: {
58
58
  initial: 1000, // Default: 1000ms
59
59
  max: 30000, // Default: 30000ms
@@ -712,7 +712,8 @@ for (const event of timeline) {
712
712
  ```typescript
713
713
  const output = await ironflow.getStepOutputAt('run_abc123', 'step-id', new Date('2026-03-05T10:00:00Z'));
714
714
  console.log(output.output);
715
- console.log(output.patched); // Whether output was injected
715
+ console.log(output.patched); // Whether output was patched
716
+ console.log(output.injected); // Whether output was injected
716
717
  ```
717
718
 
718
719
  ## Agents (`ironflow.agents.*`)
@@ -1323,7 +1324,8 @@ const source = await ironflow.webhooks.create({
1323
1324
  const sources = await ironflow.webhooks.listSources();
1324
1325
  const current = await ironflow.webhooks.getSource(source.id);
1325
1326
 
1326
- // Full-replace, not patch: omitted fields are cleared server-side.
1327
+ // name and metadata are full-replace (omitting metadata clears it);
1328
+ // verifyHeader / verifyAlgorithm / verifyConfig are preserve-on-omit.
1327
1329
  await ironflow.webhooks.updateSource({
1328
1330
  id: current.id,
1329
1331
  name: 'Stripe production (EU)',
@@ -1415,7 +1417,7 @@ function OrderFeed() {
1415
1417
  return (
1416
1418
  <ul>
1417
1419
  {orders.map((o, i) => (
1418
- <li key={i}>{o.name}: {JSON.stringify(o.data)}</li>
1420
+ <li key={i}>{o.topic}: {JSON.stringify(o.data)}</li>
1419
1421
  ))}
1420
1422
  </ul>
1421
1423
  );
@@ -1502,7 +1504,7 @@ function Dashboard() {
1502
1504
  <div>
1503
1505
  <span>{connected ? 'Connected' : 'Disconnected'}</span>
1504
1506
  {events.map((e, i) => (
1505
- <div key={i}>{e.name}</div>
1507
+ <div key={i}>{e.topic}</div>
1506
1508
  ))}
1507
1509
  </div>
1508
1510
  );
@@ -1672,7 +1674,6 @@ Common error codes returned by the client:
1672
1674
  | `TIMEOUT` | Request exceeded the configured timeout |
1673
1675
  | `RUN_WAIT_TIMEOUT` | `invoke()` stopped waiting; the durable run continues. `emitSync()` sets `waitTimedOut` per result instead of throwing |
1674
1676
  | `REQUEST_FAILED` | Network or fetch failure |
1675
- | `PATCH_FAILED` | Step patch operation failed |
1676
1677
  | `NOT_CONFIGURED` | Client used before `configure()` |
1677
1678
 
1678
1679
  ## Browser Compatibility
package/dist/client.d.ts CHANGED
@@ -736,7 +736,7 @@ declare class IronflowClient {
736
736
  * name: "deny-prod-delete",
737
737
  * effect: "deny",
738
738
  * actions: "delete",
739
- * resources: "irn:*:prod:*",
739
+ * resources: "irn:ironflow:*:*:*:env_prod:*",
740
740
  * condition: 'request.environment == "production"',
741
741
  * org_id: "org-1",
742
742
  * });
package/dist/client.js CHANGED
@@ -1774,7 +1774,7 @@ class IronflowClient {
1774
1774
  * name: "deny-prod-delete",
1775
1775
  * effect: "deny",
1776
1776
  * actions: "delete",
1777
- * resources: "irn:*:prod:*",
1777
+ * resources: "irn:ironflow:*:*:*:env_prod:*",
1778
1778
  * condition: 'request.environment == "production"',
1779
1779
  * org_id: "org-1",
1780
1780
  * });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironflow/browser",
3
- "version": "0.37.1",
3
+ "version": "0.39.0",
4
4
  "description": "Browser client for Ironflow event-driven backend platform - real-time subscriptions, workflow triggers, and event emission",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "@connectrpc/connect": "^2.1.2",
23
23
  "@connectrpc/connect-web": "^2.1.2",
24
24
  "zod": "^4.4.3",
25
- "@ironflow/core": "^0.37.1"
25
+ "@ironflow/core": "^0.39.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.20.1",