Skip to content

v5.1.0

Compare
Choose a tag to compare
@tniezg tniezg released this 28 Dec 12:51
· 117 commits to main since this release
0b420f8
  • Squash positional arguments in all endpoints into a single argument. Examples:
    • client.products.list({}, { include: 'default_variant' }) -> client.products.list({ include: 'default_variant' })
    • client.cart.addItem({ orderToken }, { variant_id: variantId, quantity: 1 }) -> client.cart.addItem({ order_token, variant_id: variantId, quantity: 1 })
    • client.order.status({ orderToken }, orderNumber) -> client.order.status({ order_token, order_number })
  • Standardise endpoints' options to use snake case.
  • Allow arbitrary options when calling endpoints without requiring changes in TypeScript.
  • Allow sending token and query options with all endpoints.