From 5454bdd3f3774291c843d7a4b913ce6cbf1d887f Mon Sep 17 00:00:00 2001 From: Josh Perez Date: Tue, 26 May 2015 11:04:26 -0700 Subject: [PATCH] Add rm getEventEmitter & Symbol to CHANGELOG --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ src/alt/store/index.js | 2 -- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0f9e37d..96f9ccdf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,32 @@ ### Breaking Changes +* Removed Symbol + + **Upgrade Guide** + + - Remove all references to Symbol, Symbol.keyFor, etc. + - Get access to the action's unique id via `myAction.id` + +* Removed `getEventEmitter()` + + **Upgrade Guide** + + - You can no longer access the internal event emitter to dispatch your own custom events. This is usually an anti-pattern. + - If you still need this behavior you can create your own event emitter in your store. + +```js +class TodoStore { + constructor() { + this.eventEmitter = new EventEmitter() + + this.exportPublicMethods({ + getEventEmitter: () => this.eventEmitter + }); + } +} +``` + * Removed `_storeName`. **Upgrade Guide** diff --git a/src/alt/store/index.js b/src/alt/store/index.js index cb44c804..d3dc3042 100644 --- a/src/alt/store/index.js +++ b/src/alt/store/index.js @@ -1,5 +1,3 @@ -import transmitter from 'transmitter' - import * as utils from '../utils/AltUtils' import * as fn from '../../utils/functions' import AltStore from './AltStore'