All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
1.1.0-RC.2 - 2017-10-23
- simplified and more consistent creation of template messages using builders
- adding
X-Frame-OptionsandContent-Security-Policyheaders for extensions - adding support for convenient adding URL Buttons and Default Actions linking Chat Extensions
- API CHANGE ButtonTemplateMessageBuilder, ListTemplateMessageBuilder, ElementBuilder and OgElementBuilder have new add...Button methods for adding buttons (they replace removed button builders)
- API CHANGE ElementBuilder has new methods setDefaultAction and setExtensionDefaultAction for adding Deafault Actions (they replace removed DefaultActionBuilder)
- API CHANGE CallButtonBuilder, LoginButtonBuilder, LogoutButtonBuilder, PostbackButtonBuilder, ShareButtonBuilder, UrlButtonBuilder and DefaultActionBuilder in order to simplify creating template messages
- API CHANGE TemplateMessageBuilder lost its static methods createElement, createOgElement, createReceiptElement, createDefaultAction, createUrlButton, createPostbackButton, createCallButton, createShareButton, createLoginButton and createLogoutButton in order to simplify and to have more consistent creating template messages using builders
1.1.0-RC.1 - 2017-09-15
- several minor fixies according to unit testing
- CLI refactored to not using
process.exit() - Chat.askWithMessage() supports validator
- tests coveraging almost all code
- ping service
- expiration of unanswered questions (BotConfig.askTimeout)
- documentation (monitoring, expiration, intro example)
1.1.0-beta.5 - 2017-09-01
- storing reusable media ids (store module refactored)
- number of fixies according to tslint & Codacy findings
- messenger code generating error handling
- TypeScript 2.5, Node 8.4
- API CHANGE BotUtils.constructor() needs only accessToken (instead of all BotConfig object)
- API CHANGE BotUtils.sendAudio|sendFile|sendImage|sendVideo have new optional parameter reusable
- API CHANGE BotUtils.addGreeting() changed to setGreeting (according to its logic)
- API CHANGE BotUtils.setPersistentMenu() accepts PersistentMenuDef instead of Messenger API type (MessengerProfile.PersistentMenu)
- all BotUtils & Chat methods now return Promises with response (prior this version they were returning Promise)
- API CHANGE MessengerProfile.setPersistentMenu() no longer accepts PersistentMenuBuilder
- PersistentMenuBuilder now accepts PersistentMenuDef in constructor
- PersistentMenuDef interface for better separation from Messenger API types and simplified menu definition in declarative way
- testing infrastructure using Jest
- test coverage: store, BotUtils
- tslint
- coveralls
- Chat.wait
1.1.0-beta.4 - 2017-08-19
- using built-in 'crypto' module instead of deprecated external package (no more warnings)
- added @types/express to devDeps (solving "Cannot find type definition file for 'express'" error)
- conversation redesigned (see doc)
- API CHANGE Chat - methods ask() and askWithMessage() moved from Conversation
- TypeScript upgraded to 2.4 -> string enums used instead namespace+type workaround
- changed type of Send.ShareButton.share_contents to proper type
- CLI:
--inTestand--shareButtonswitches doesn't need followingtrue/false
- validation support for Conversation.ask
- CLI: added alias
code generatetocode create
- API CHANGE class Conversation
1.1.0-beta.3 - 2017-08-15
- emitting postback identified events