# Migration v12

Contains 1 breaking change of the SDK interface.

## Changes

- [Subscription Model and Mapper](#subscription-model-and-mapper)

### Subscription Model and Mapper

The Subscription service now returns an array of mapped Subscription models rather than the raw response from Membership. This should provide a more consistent data structure and the ability to add helpers into the model for easier use of subscription data.

```diff
  const subscriptions = await subscription.getUserSubscriptions(view.userId);
- subscriptions.items.forEach(subscription => {
+ subscriptions.forEach(subscription => {
      ...
  });
```
