wechat-jssdk

🐧微信JSSDK与NodeJS及Web端集成 WeChat JSSDK integration with NodeJS & Web

MIT License

Downloads
1K
Stars
721
Committers
6

Bot releases are hidden (Show)

wechat-jssdk - v5.1.0 Latest Release

Published by JasonBoy over 1 year ago

wechat-jssdk - v5.0.8

Published by JasonBoy about 3 years ago

  • 🐛 fix #64
wechat-jssdk - v5.0.7

Published by JasonBoy over 3 years ago

  • ✨ add openTagList support #61
wechat-jssdk - v5.0.6

Published by JasonBoy over 3 years ago

  • 🐛 fix decryptRefundNotifyResult, #57
wechat-jssdk - v5.0.5

Published by JasonBoy about 4 years ago

  • 💖 improve usage of browser side usage #54
wechat-jssdk - v5.0.4

Published by JasonBoy over 4 years ago

  • 🔧 Cleanup some mongoose deprecation warning
  • ✏️ Minor doc update
  • 🔁 Replace istanbul with nyc
  • 🆙 Upgrade dependence
  • ✂️ Remove lock file
  • ✂️ Remove direct dependence of fsevents
wechat-jssdk - v5.0.3

Published by JasonBoy almost 5 years ago

wechat-jssdk - v5.0.2

Published by JasonBoy over 5 years ago

  • 🔧 Fix tests in node-v12
  • 🆙 Couple of dependence update
wechat-jssdk - v5.0.1

Published by JasonBoy over 5 years ago

  • ✨ Add files property to pack specific files
  • 🐛 Remove old duplicated bundled client js files in v5.0.0
wechat-jssdk - v5.0.0

Published by JasonBoy over 5 years ago

🎉 Release v5.0.0

💣Breaking Changes

  • Drop node-v6 support, use wechat-jssdk@4 if you need node6 support

🚀 Improvements

  • 🔁 Replace request with got(#32 )
  • 🌲 Update dependence
wechat-jssdk - v4.1.0

Published by JasonBoy over 5 years ago

🎉 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
wechat-jssdk - v4.0.0

Published by JasonBoy almost 6 years ago

🎉 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
wechat-jssdk - v4.0.0-alpha.2

Published by JasonBoy almost 6 years ago

  • 🐛 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
wechat-jssdk - v4.0.0-alpha.0

Published by JasonBoy almost 6 years ago

🎉 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
wechat-jssdk - v3.1.5

Published by JasonBoy about 6 years ago

  • 🆙 Update jweixin client script to v1.4.0 by default
wechat-jssdk - v3.1.4

Published by JasonBoy over 6 years ago

◀️ 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

wechat-jssdk - v3.1.3

Published by JasonBoy over 6 years ago

  • 🔧 Use ES Module to export default WechatJSSDK in client.js,
    you can directly import wechat-jssdk/lib/client to use it
wechat-jssdk - v3.1.2

Published by JasonBoy over 6 years ago

  • 💘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
wechat-jssdk - v3.1.1

Published by JasonBoy over 6 years ago

  • 🚐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'
})
wechat-jssdk - v3.1.0

Published by JasonBoy over 6 years ago

🎉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.
Package Rankings
Top 2.5% on Npmjs.org
Badges
Extracted from project README
npm node Coverage Status npm code style: prettier