- Fix constructors to use
Stream<String?>?
- Support to add a custom base api url. This basically allows the user to use EU-based web servers as stated in here. We're not hardcoding the EU-based url in case Mixpanel considers to add support for more regions.
- Fix userId stream type. The
userId
property can be null.
- Add support for optionalHeaders and prefsKey
- Fix issue with CORS in Flutter web.
- Migrate to null safety.
- Support for CORS bypass in Flutter web.
userId$
is not required anymore. Users can still use that as a way to set up the userId but they can also use theuserId
setter at any time.
- Fix a bug that caused the stored in memory events when in batch mode to be overwriten by the first events sent, thus being lost. To avoid a breaking change, the temporal solution was to move the process that pulls from memory old stored not sent events from the batch timer process, to happen when the user sends events for the first time. The problem this solution brings is that we need the caller to push new events in order to get the old stored events to be pushed. If the first thing don't happen the second won't either. But this is better than the previous scenario of lost events. For further details you can check this PR
- Add
useIp
property.
- Fix an error when sending batch requests for engage.
- Allow encoding function to be passed.
- Add option to encode sensitive information to mixpanel.
- Add some unit tests.
- Initial release.