<commit_before># Mailchimp Subscribe Changelog

## 3.0.0

> {warning} This is a more complex update than usual, things have been changed and deprecated. Make sure you read this changelog before updating. 

### Added
- Added support for setting marketing permissions when subscribing a member to a GDPR enabled audience. 
- Added support for adding `tags` when subscribing.
- Added support for setting VIP status when subscribing.
- Added `getMemberByEmail` template variable, controller action and service method.
- Added `getAudienceById` template variable, controller action and service method.
- Added `delete` controller action and service method. Implements a `permanent` parameter to permanently delete a member and make it impossible to import again.
- Added `getMarketingPermissionsByEmail` template variable and service method.
- Added `getMemberTagsByEmail` template variable and service method.
- Added `SubscribeResponse`, `MemberResponse` and `AudienceResponse` models.
- Added support for Craft's environment variable syntax (ie '$MY_ENV_VARIABLE') directly in config .

### Changed
- [Audience is the new list](https://mailchimp.com/resources/introducing-your-new-audience-dashboard/). 
- Changed signature of the subscribe service method. It now takes three parameters, where the third is an array of options. **If you access the subscribe controller directly
from your own module/plugin, this is a breaking change, you need to update your code to reflect the change.**
- Changed behavior of the unsubscribe method, it now sets the status to `unsubscribed` instead of deleting a member. Use the `delete` method to delete instead.
- Changed how interests are submitted. It should now be passed as a separate `interests` parameter, and is nested by group title. See example in the docs. **This is a breaking change, if you used interest groups in version 2, you need to update your template code.**
- Changed return type of `getInterestGroups`, it now either returns an array of groups, or null. Errors in logs/debug toolbar. **This is a breaking change, if you used `getInterestGroups` in version 2, you need to update your template code.**
- Changed the return value of the `subscribe`, `unsubscribe` and `delete` service methods to be a `SubscribeResponse`. Use property `action` to check what action triggered the response.

### Removed
- **Removed support for using a pipe-delimited string with multiple list ids as a setting, or passing to service methods or 
template variables.** If you need to subscribe to multiple lists, you should create your own controller that uses the service methods,
and handles input and output accordingly.       
<commit_msg>Added date to changelog.<commit_after># Mailchimp Subscribe Changelog

## 3.0.0 - 2019-06-28

> {warning} This is a more complex update than usual, things have been changed and deprecated. Make sure you read this changelog before updating. 

### Added
- Added support for setting marketing permissions when subscribing a member to a GDPR enabled audience. 
- Added support for adding `tags` when subscribing.
- Added support for setting VIP status when subscribing.
- Added `getMemberByEmail` template variable, controller action and service method.
- Added `getAudienceById` template variable, controller action and service method.
- Added `delete` controller action and service method. Implements a `permanent` parameter to permanently delete a member and make it impossible to import again.
- Added `getMarketingPermissionsByEmail` template variable and service method.
- Added `getMemberTagsByEmail` template variable and service method.
- Added `SubscribeResponse`, `MemberResponse` and `AudienceResponse` models.
- Added support for Craft's environment variable syntax (ie '$MY_ENV_VARIABLE') directly in config .

### Changed
- [Audience is the new list](https://mailchimp.com/resources/introducing-your-new-audience-dashboard/). 
- Changed signature of the subscribe service method. It now takes three parameters, where the third is an array of options. **If you access the subscribe controller directly
from your own module/plugin, this is a breaking change, you need to update your code to reflect the change.**
- Changed behavior of the unsubscribe method, it now sets the status to `unsubscribed` instead of deleting a member. Use the `delete` method to delete instead.
- Changed how interests are submitted. It should now be passed as a separate `interests` parameter, and is nested by group title. See example in the docs. **This is a breaking change, if you used interest groups in version 2, you need to update your template code.**
- Changed return type of `getInterestGroups`, it now either returns an array of groups, or null. Errors in logs/debug toolbar. **This is a breaking change, if you used `getInterestGroups` in version 2, you need to update your template code.**
- Changed the return value of the `subscribe`, `unsubscribe` and `delete` service methods to be a `SubscribeResponse`. Use property `action` to check what action triggered the response.

### Removed
- **Removed support for using a pipe-delimited string with multiple list ids as a setting, or passing to service methods or 
template variables.** If you need to subscribe to multiple lists, you should create your own controller that uses the service methods,
and handles input and output accordingly.       

{'fraction_non_alphanumeric': 0.0625, 'fraction_numerical': 0.0033482142857142855, 'mean_word_length': 4.6839323467230445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7094885', 'n_tokens_mistral': 1326, 'n_tokens_neox': 1257, 'n_words': 738}