Skip to content

Releases: JasonBoy/wechat-jssdk

v4.1.0

11 Apr 07:15
Compare
Choose a tag to compare

🎉 Release v4.1.0

  • 📦 Use microbundle to bundle clientjs(#31 )
  • 💣 Change earlier wechat-jssdk/dist/client.js to wechat-jssdk/dist/client.umd.js to be more specific
  • ✂️ Remove webpack stuff
  • ✏️ Couple of doc updates
  • 🌲 Update dependences

v4.0.0

06 Jan 07:19
Compare
Choose a tag to compare

🎉 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 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
  • 💉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 from yarn.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

06 Dec 06:16
Compare
Choose a tag to compare
v4.0.0-alpha.2 Pre-release
Pre-release
  • 🐛 Parse refund response to json (#29)
  • 🐛 Fix event-stream incident, see npm blog
  • 🚸 Migrate to npm package-lock from yarn.lock
  • 📦 Use specific versions for all packages
  • ✏️ Couple of doc updates

v4.0.0-alpha.0

29 Nov 09:33
Compare
Choose a tag to compare
v4.0.0-alpha.0 Pre-release
Pre-release

🎉 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.g const {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

17 Oct 03:03
Compare
Choose a tag to compare
  • 🆙 Update jweixin client script to v1.4.0 by default

v3.1.4

10 Jul 03:51
Compare
Choose a tag to compare

◀️ Revert client.js bundles:
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

22 Jun 11:02
Compare
Choose a tag to compare
  • 🔧 Use ES Module to export default WechatJSSDK in client.js,
    you can directly import wechat-jssdk/lib/client to use it

v3.1.2

01 Jun 03:51
Compare
Choose a tag to compare
  • 💘Return appId from signature api, you don't need to get appId somewhere else from the app,
    now you get appId returned from the JSSDK#getSignature() api, e.g:
{
      appId: "", //new added
      timestamp: "",
      nonceStr: "",
      signature: "",
      url: "",
}
  • ⬆️Minor updates for UTs

v3.1.1

11 May 08:17
Compare
Choose a tag to compare
  • 🚐Upgrade wx client js to 1.3.2 which has mini program(小程序) support

With older version, you can also use custom js src config to use the 1.3.2 version:

new WechatJSSDK({
   customUrl: 'https://res.wx.qq.com/open/js/jweixin-1.3.2.js'
})

v3.1.0

23 Mar 07:13
Compare
Choose a tag to compare

🎉Finally v3.1.0 is Released 🍻

New Features

  • ✨ Wechat Cards and Offers support
  • ✨ Wechat Payment server side support, see the demo & apis
  • ✨ Add a simple Order implementation for a rich featured demo for payment
  • 🔧 From v3.1.0-rc.0, api Card.decodeCardCode name changed to Card.decryptCardCode since it's a decryption operation.