Fix issue #2221
upgrade promise dependency
Fix the API files