Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency bottender to v0.15.18 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jul 18, 2018

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
bottender (source) 0.14.34 -> 0.15.18 age adoption passing confidence

Release Notes

Yoctol/bottender

v0.15.18

Compare Source

line
  • [deps] bump messaging-api-line to 0.7.18 to support LINE domain changes.

v0.15.17

Compare Source

line
  • [new] add member join/leave event to LineEvent
event.isMemberJoined;
event.memberJoined;
event.isMemberLeft;
event.memberLeft;

v0.15.16

Compare Source

  • [deps] upgrade messaging-api-messenger to 0.7.16

v0.15.15

Compare Source

messenger
  • [new] Add page.id to Messenger sessions:
session.page.id;
line
  • [new] Add skipProfile to LinekBot and LinekConnector.
  • [new] Add destination to LineEvent.
slack
  • [new] Add skipProfile to SlackBot and SlackConnector.
telegram
  • [fix] Add missing cli alias -w for --webhook.

v0.15.14

Compare Source

messenger
  • [new] provide useful information when setting webhook

v0.15.13

Compare Source

  • [new] Add context.usePersona:
context.usePersona('<PERSONA_ID>');
await context.sendText('Hello');
await context.sendText('World');

v0.15.12

Compare Source

messenger
  • [new] Add skipProfile option to MessengerBot and MessengerConnector to skip auto updating user profile:
const bot = new MessengerBot({
  accessToken: ACCESS_TOKEN,
  appSecret: APP_SECRET,
  skipProfile: true,
});

v0.15.11

Compare Source

messenger
  • [new] Add skipAppSecretProof option to MessengerBot and MessengerConnector:
const bot = new MessengerBot({
  accessToken: ACCESS_TOKEN,
  appSecret: APP_SECRET,
  skipAppSecretProof: true,
});

v0.15.10

Compare Source

  • [new] platform bots: add origin option for testing purpose:
new MessengerBot({
  // ...
  origin: 'https://mydummytestserver.com',
});
new LineBot({
  // ...
  origin: 'https://mydummytestserver.com',
});
new SlackBot({
  // ...
  origin: 'https://mydummytestserver.com',
});
new ViberBot({
  // ...
  origin: 'https://mydummytestserver.com',
});
new TelegramBot({
  // ...
  origin: 'https://mydummytestserver.com',
});
messenger
  • [fix] update Messenger profile_pic check logic
  • [fix] fix persona cli error messages

v0.15.9

Compare Source

messenger
  • [new] Add CLI commands for Messenger persona API:

List all personas:

$ bottender messenger persona list

Create a new persona with name and profile picture url:

$ bottender messenger persona create --name <PERSONA_NAME> --pic <PROFILE_IMAGE_URL>

Get persona by persona ID:

$ bottender messenger persona get --id <PERSONA_ID>

Delete persona by persona ID:

$ bottender messenger persona delete --id <PERSONA_ID>

v0.15.8

Compare Source

  • [new] Add sessionStore.all() to fetch all of sessions from the store:
// for those session stores
const sessionStore = new MemorySessionStore(500);
const sessionStore = new MongoSessionStore('mongodb://localhost:27017/');
const sessionStore = new FileSessionStore();
const sessionStore = new RedisSessionStore();
const sessions = await sessionStore.all();
  • [deps] update messaging-apis (which support messenger persona api)

v0.15.7

Compare Source

  • [new] upgrade messaging-apis, so now we can use DEBUG env variable to enable request debugger:
DEBUG=messaging-api*
  • [fix] fix ConsoleBot recognize symbol as _methodMissing (#​333)
  • [deps] upgrade dependencies

v0.15.6

Compare Source

line
  • [new] make sure all of methods support quick reply (#​331):
context.sendText('hahaha', {
  quickReply: {
    items: [
      {
        type: 'action',
        action: {
          type: 'cameraRoll',
          label: 'Send photo',
        },
      },
      {
        type: 'action',
        action: {
          type: 'camera',
          label: 'Open camera',
        },
      },
    ],
  },
});
telegram
  • [new] add isReplyToMessage, replyToMessage (#​330):
event.isReplyToMessage;
event.replyToMessage;

v0.15.5

Compare Source

slack
  • [fix] get correct channel id from more slack event format

v0.15.4

Compare Source

  • [new] add debugger for sync response
DEBUG=bottender:response

print:

bottender:response Outgoing response:
bottender:response {
bottender:response   body: {
bottender:response   }
bottender:response }

Useful when debugging synchronized connectors.

console
  • [fix] makes context.platform consistent with context.session.platform

v0.15.3

Compare Source

console
  • [new] Add mockPlatform option:
const bot = new ConsoleBot({
  fallbackMethods: true,
  mockPlatform: 'messenger',
});

bot.connector.platform; // 'messenger'
bot.onEvent((context) => {
  context.platform; // 'messenger'
});

v0.15.2

Compare Source

messenger
  • [new] Add context.isThreadOwner():
await context.isThreadOwner(); // true | false

v0.15.1

Compare Source

line
  • [new] add member join/leave event to LineEvent
event.isMemberJoined;
event.memberJoined;
event.isMemberLeft;
event.memberLeft;

v0.15.0

Compare Source

v0.15 is the second major version after we open sourced Bottender. In this version, we introduce a lot of helpful, community requested features based on Messaging APIs v0.7.

  • [new] add context.requestContext:

Express, Micro, Restify:

context.requestContext; // { req, res }

Koa:

context.requestContext; // ctx in koa
  • [new] add more debug logs and key change (#​239, #​295), so you can run bots with following DEBUG env:
DEBUG=bottender:*
DEBUG=bottender:request
DEBUG=bottender:session:read
DEBUG=bottender:session:write
  • [new] skip and show warning when calling send API in Messenger echo delivery read event (#​306)
  • [fix] deepClone when read from MemoryCacheStore (#​235)
  • [deps] Upgrade to Babel 7
messenger
  • [breaking] remove deprecated MessengerContext method - sendQuickReplies
  • [new] support Messenger platform v2.4.
  • [new] enable verifying graph API calls with appsecret_proof by default.
  • [new] context.getThreadOwner
const threadOwner = await context.getThreadOwner();
// {
//   app_id: '12345678910'
// }
  • [new] add pageId, gamePlay, brandedCamera, isRequestThreadControlFromPageInbox getters to MessengerEvent
context.event.pageId; // "<PAGE_ID>"

context.event.isRequestThreadControlFromPageInbox; // true

context.event.isGamePlay; //
context.event.gamePlay; //

context.event.isBrandedCamera; //
context.event.brandedCamera; //
  • [new] implement Batch Mode to send multiple requests in one batch (up to 50 messages):
const { isError613 } = require('messenger-batch');

new MessengerBot({
  // ...
  batchConfig: {
    delay: 1000,
    shouldRetry: isError613, // (#&#8203;613) Calls to this api have exceeded the rate limit.
    retryTimes: 2,
  },
});

It will enable message batching functionality via messaging-api-messenger under the hood.

  • [deprecated] sendAirlineFlightUpdateTemplate has been renamed to sendAirlineUpdateTemplate.
line
  • [new] support LINE Flex Message with replyFlex, pushFlex, sendFlex:
context.sendFlex('this is a flex', {
  type: 'bubble',
  header: {
    type: 'box',
    layout: 'vertical',
    contents: [
      {
        type: 'text',
        text: 'Header text',
      },
    ],
  },
  hero: {
    type: 'image',
    url: 'https://example.com/flex/images/image.jpg',
  },
  body: {
    type: 'box',
    layout: 'vertical',
    contents: [
      {
        type: 'text',
        text: 'Body text',
      },
    ],
  },
  footer: {
    type: 'box',
    layout: 'vertical',
    contents: [
      {
        type: 'text',
        text: 'Footer text',
      },
    ],
  },
  styles: {
    comment: 'See the example of a bubble style object',
  },
});
  • [new] add issueLinkToken to LineContext (#​245):
const result = await context.issueLinkToken();
// {
//   linkToken: 'NMZTNuVrPTqlr2IF8Bnymkb7rXfYv5EY',
// }
  • [new] add LINE linkAccount events support (#​243):
context.event.isAccountLink; // true
context.event.linkAccount;
// {
//   result: 'ok',
//   nonce: 'xxxxxxxxxxxxxxx',
// }
  • [new] add shouldBatch option:
new LineBot({
  // ...
  shouldBatch: true, // Default: false
});

When batching is enabled,

context.replyText('Hi');
context.replyText('Hi');
context.replyText('Hi');
context.replyText('Hi');
context.replyText('Hi');

Those 5 messages will be sent in one API call, just like the below one.

const { Line } = require('messaging-api-line');

context.reply([
  Line.createText('Hi'),
  Line.createText('Hi'),
  Line.createText('Hi'),
  Line.createText('Hi'),
  Line.createText('Hi'),
]);
  • [new] add sendMethod option:
new LineBot({
  // ...
  sendMethod: 'reply', // Default: 'push'
});
telegram
  • [breaking] Now context methods throw error when ok is false in Telegram:
{
  ok: false,
  result: { /* ... */ }
}
custom connector
  • [new] pass merged query and body to handler:
{
  ...query,
  ...body,
}

It's useful in custom connectors.

  • [new] export Context from entry (#​250)
const { Context } = require('bottender');

class MyContext extends Context {
  //...
}

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot changed the title Update dependency bottender to v0.15.0 Update dependency bottender to v0.15.1 Jul 20, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.1 Update dependency bottender to v0.15.2 Aug 16, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.2 Update dependency bottender to v0.15.3 Aug 21, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.3 Update dependency bottender to v0.15.4 Aug 22, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.4 Update dependency bottender to v0.15.5 Aug 27, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.5 Update dependency bottender to v0.15.6 Aug 28, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.6 Update dependency bottender to v0.15.7 Sep 19, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.7 Update dependency bottender to v0.15.8 Oct 18, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.8 Update dependency bottender to v0.15.9 Oct 26, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.9 Update dependency bottender to v0.15.10 Nov 2, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.10 Update dependency bottender to v0.15.11 Nov 7, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.11 Update dependency bottender to v0.15.12 Nov 9, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.12 Update dependency bottender to v0.15.13 Nov 12, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.13 Update dependency bottender to v0.15.14 Nov 14, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.14 Update dependency bottender to v0.15.15 Dec 6, 2018
@renovate renovate bot changed the title Update dependency bottender to v0.15.15 Update dependency bottender to v0.15.16 Jan 29, 2019
@renovate renovate bot changed the title Update dependency bottender to v0.15.16 Update dependency bottender to v0.15.17 Feb 1, 2019
@renovate renovate bot changed the title Update dependency bottender to v0.15.17 Update dependency bottender to v0.15.18 Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant