The previous version of States SDK had a bug for writing models
- Bugfixes
- new readModels-method for all handlers. this provides an option to read multiple models of one type at once by giving it a collection of ids.
- split read/write-batches in DynamoDB handler in order to comply with AWS batch size limits. If you wrote more than 25 or read more than 100 items at once there was an exception before. Now the handler puts and pulls Dynamo items in chunks of 25 / 100 requests per call.
- writeModels was not usable as the input collection required AlexaStateModel-objects. Now it is corrected to support objects that extend AlexaStateModel.
- set custom userId used by a handler to store user-scoped state (withUserId(String)). If not set, handlers fall back to the userId coming in with the Alexa session-object (previous default behavior). This is useful if you're working with account linking. You should always avoid using Alexa session-userId as it changes once a user re-enables the skill.