Skip to content

Commit 54affd3

Browse files
Publish Next Version (#1888)
* Publish Next Version * Update CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Gerardo Rodriguez <[email protected]>
1 parent 1efb554 commit 54affd3

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

.changeset/gold-shirts-yell.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# @cloudfour/patterns
22

3+
## 9.0.0
4+
5+
### Major Changes
6+
7+
- [#1882](https://github.com/cloudfour/cloudfour.com-patterns/pull/1882) [`1efb5548`](https://github.com/cloudfour/cloudfour.com-patterns/commit/1efb55482c65e9ca57666525c20c3b536a44026a) Thanks [@gerardo-rodriguez](https://github.com/gerardo-rodriguez)! - Enhances the Subscribe component's ability to programmatically control its UI via `destroy()`/`init()` methods
8+
9+
- `initSubscribe()` was renamed to `createSubscribe()`
10+
- `init()` must now be explicitly called to initialize
11+
- `destroy()` hides CTA buttons UI, shows digests sign up form
12+
13+
```js
14+
// Initialize
15+
const subscribe = createSubscribe(document.querySelector('.js-subscribe'));
16+
subscribe.init();
17+
18+
// Remove all event listeners, show subscription form
19+
subscribe.destroy();
20+
```
21+
322
## 8.2.0
423

524
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cloudfour/patterns",
3-
"version": "8.2.0",
3+
"version": "9.0.0",
44
"author": "Cloud Four",
55
"description": "Front-end patterns for cloudfour.com",
66
"homepage": "https://github.com/cloudfour/cloudfour.com-patterns",

0 commit comments

Comments
 (0)