wechaty-puppet-1.0-migration
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

wechaty-puppet-1.0-migration

A temporary solution when moving to wechaty 1.x

how to use

install

npm install wechaty-puppet-1.0-migration wechaty-puppet file-box

Note: You need to insall wechaty-puppet and file-box yourself. So that you can choose your ideal version of these dependencies. It supports wechaty-puppet@1.10.x so far.

usage

import everything from wechaty-puppet-1.0-migration just as you did before from wechaty-puppet

e.g.

old:

import {
  ContactPayload,
  ContactType,

  FileBox,
  FriendshipPayload,

  ImageType,
  MessagePayload,

  Puppet,
  PuppetOptions,
} from 'wechaty-puppet

now:

import {
  ContactPayload,
  ContactType,

  FileBox,
  FriendshipPayload,

  ImageType,
  MessagePayload,

  Puppet,
  PuppetOptions,
} from 'wechaty-puppet-1.0-migration'

You still need to rewrite to fit new puppet api such as: onStart() instead of start().

note

Only use this as a temporary solution and move to wechaty-puppet 1.0 asap.

Readme

Keywords

none

Package Sidebar

Install

npm i wechaty-puppet-1.0-migration

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

17.1 kB

Total Files

22

Last publish

Collaborators

  • hcfw007