@usethrottle/cart 3.15.0 → 3.16.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/dist/index.d.cts CHANGED
@@ -297,7 +297,8 @@ interface CreateCartInput {
297
297
  }>;
298
298
  }
299
299
  interface UpdateCartInput {
300
- customerId?: string;
300
+ /** Send `null` to detach the customer; omit to keep it. Detaching does not clear `customerEmail`. */
301
+ customerId?: string | null;
301
302
  /** Lightweight email capture; `null` clears a previously-set value. */
302
303
  customerEmail?: string | null;
303
304
  billingAddress?: CartAddress;
package/dist/index.d.ts CHANGED
@@ -297,7 +297,8 @@ interface CreateCartInput {
297
297
  }>;
298
298
  }
299
299
  interface UpdateCartInput {
300
- customerId?: string;
300
+ /** Send `null` to detach the customer; omit to keep it. Detaching does not clear `customerEmail`. */
301
+ customerId?: string | null;
301
302
  /** Lightweight email capture; `null` clears a previously-set value. */
302
303
  customerEmail?: string | null;
303
304
  billingAddress?: CartAddress;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usethrottle/cart",
3
- "version": "3.15.0",
3
+ "version": "3.16.0",
4
4
  "description": "Typed REST client for the Throttle Cart API.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "scripts": {
32
32
  "build": "tsup",
33
- "test": "tsc --noEmit --strict --skipLibCheck --target es2022 --lib es2022,dom --module esnext --moduleResolution bundler __tests__/recurring-types.check.ts && vitest run",
33
+ "test": "tsc --noEmit --strict --skipLibCheck --target es2022 --lib es2022,dom --module esnext --moduleResolution bundler __tests__/recurring-types.check.ts __tests__/cart-customer-detach.check.ts && vitest run",
34
34
  "typecheck": "tsc --noEmit"
35
35
  }
36
36
  }