Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 10 Feb 19:10
· 51 commits to master since this release

2.0.0 (2021-02-10)

Features

BREAKING CHANGES

  • The package was renamed from @probot/serverless-lambda to @probot/adapter-aws-lambda-serverless for consistency with the other adapters
  • Usage changed

Before

// handler.js
const { serverless } = require("@probot/serverless-lambda");
const appFn = require("./");
module.exports.probot = serverless(appFn);

After

const { createLambdaFunction, createProbot } = require("@probot/adapter-aws-lambda-serverless");
const appFn = require("./");
module.exports.webhooks = createLambdaFunction(appFn, { probot: createProbot() });