1.1.1 • Published 2 years ago
wechaty-puppet-1.0-migration v1.1.1
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.