- Upgrade to TypeScript 2.6.
- Remove implicit 'any'.
- Fix where generic types were being used as argument names.
- Use strict checks between null and undefined.
- Renamed Pipe and PromiseOrValue
catch
functions tocatchErr
to avoid clash with JS keyword.
- Add request context object to request body.
- Add support for newer node versions (by @bfsmith).
- Add
Pipe.catch
for handling forward errors. - Don’t fail when neither
Text
orSSML
is defined - just say nothing if no speech is defined. - Don’t bother freezing module objects.
- Add default handling of
SessionEndedRequest
- just return void if not specified in routes. - Add basic documentation for modules and types.
- Fix bug with handling of undefined in PromiseOrValue
- Fix detection of promises.
- Use
toString()
on Errors in the tracer pipe.
- Use PromiseLike interface instead of relying on using built in promise type.
- Add then and catch functions to the module.
- Make the
Say
property on a response optional.
- Expose function for reading state from request. This is helpful for when you’re writing your own middleware and you want to interrogate the state.
- Add raw request argument to intent handlers.
- Add support for forward piping from intent handlers. NOTE: Having made the IntentResult slightly more complex, TS type inference appears to be less reliable (see the kitchen-sink example change).
- Use NPM for publishing - yarn is creating invalid packages :(
- Add change log.
- Try to fix packaging again :/
Failed attempt to fix npm packaging.
Major rework following use in first project.
Breaking changes:
- Package paths changed so everything is in the root, instead of in
dist
. Code referencingalexa-ts/dist/testing
will now just referencealexa-ts/testing
. - Re-order
response
function arguments to be(response, previousState)
instead of(previousState, response)
so that thepreviousState
argument can be optional. - Rework
testing
module to cover testing whole session scenarious.
Features:
- Add logging of errors in the
Pipe.tracer()
with the message "Error:". - Add new
doNothing
pipe, which just calls the next step. This can be useful when composing complex pipes with optional steps. - Lots more documentation comments :)
Fix github path in repo.
First workable code!