You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✨ Add simple mini program support(see API), including getsessionkey from code, decrypt phone data...
✨ Reset old FileStore data when major wechat config(e.g appId) change on initialization
💣Breaking Changes
✂️ Drop node-v4 support, if you need node4 support, stick to wechat-jssdk@3
🙏 Use Promise in client.js, which will change the init process, see browser-side-usage
⬅️Export modules directly instead of module.exports in one big class, the {Wechat} here is like the old const Wechat = require('wechat-jssdk') to be backward compatible, which will compose all the sub modules together(like JSSDK, OAuth, MiniProgram)
e.g const {Wechat, JSSDK} = require('wechat-jssdk')
🔧Improvements and Fixes
🔧Many internal refactoring
✂️Remove bluebird dependence
✂️Remove crypto-js, use native crypto
✂️Remove dist from repo, only build before publish
📦Significantly Reduce the npm package size when publish