Releases: JasonBoy/wechat-jssdk
Releases · JasonBoy/wechat-jssdk
v4.1.0
v4.0.0
🎉 v4.0.0
✨New Features
- ✨ 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 oldconst Wechat = require('wechat-jssdk')
to be backward compatible, which will compose all the sub modules together(likeJSSDK
,OAuth
,MiniProgram
)
e.gconst {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
- 💉Add mini program tests
- 💅Prettify not only js in
lib
- 🐛Couple of
MongoStore
fixes - 🐛Couple of payment api fixes(#26 #25)
- 🐛 Parse refund response to json (#29)
- 🐛 Fix
event-stream
incident, see npm blog - 🚸 Migrate to npm
package-lock
fromyarn.lock
- 📦 Use specific versions for all packages
- ✏️ Couple of doc updates
- 🔁Use
date-fns
to format date - 🙈 Ignore some hard reached branches when doing the test coverage
- 🆙Use webpack4 to bundle client js
- 🆙Upgrade packages
v4.0.0-alpha.2
v4.0.0-alpha.0
🎉 First pre release of v4 Alpha
✨New Features
- ✨ 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 - ⬅️Export modules directly instead of module.exports in one big class,
e.gconst {Wechat, JSSDK} = require('wechat-jssdk')
🔧Improvements and Fixes
- ✂️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
- 💉Add mini program tests
- 💅Prettify not only js in
lib
- 🐛Couple of
MongoStore
fixes - 🐛Couple of payment api fixes(#26 #25)
- 🔁Use
date-fns
to format date - 🙈 Ignore some hard reached branches when doing the test coverage
- 🆙Use webpack4 to bundle client js
- 🆙Upgrade packages
v3.1.5
v3.1.4
which caused in v3.1.3
in which changed to export default
, since webpack 2.x resolve modules as commonjs, you may need to use window.WechatJSSDK.default
or require('wechat-jssdk/dist/client').default
in a non es module env in version 3.1.3, this version revert that back to module.exports
, so you don't need the verbose .default
TODO: will upgrade webpack to 4 to solve the
default
issue
v3.1.3
v3.1.2
- 💘Return appId from signature api, you don't need to get appId somewhere else from the app,
now you getappId
returned from theJSSDK#getSignature()
api, e.g:
{
appId: "", //new added
timestamp: "",
nonceStr: "",
signature: "",
url: "",
}
- ⬆️Minor updates for UTs