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 - v3.1.0-rc.0

Published by JasonBoy over 6 years ago

  • 🔑Add sandbox key invalid retry
  • 💂Extract wechat config into separate file
  • 📝 Docs updates
wechat-jssdk - v3.1.0-alpha.4

Published by JasonBoy over 6 years ago

  • 📎checkout the #20
  • 🥂 almost RC 😆
wechat-jssdk - v3.0.12

Published by JasonBoy over 6 years ago

  • 🐛 global token flush fix, now flush immediately when update the global token
  • ✏️ clean up Store, add missing jsdoc
wechat-jssdk - v3.1.0-alpha.3

Published by JasonBoy over 6 years ago

  • 🐛fix fenToYuan func #17
  • 🐛 some UT fixes
  • 🔧 enable Payment & Card in tests
  • 📛 badges updates
wechat-jssdk - v3.1.0-alpha.2

Published by JasonBoy over 6 years ago

  • client side js: provide a unminified file
  • client side js: pass wechatJSSDK instance to ready callback
  • travis: node version update
  • couple of readme & copyright updates
wechat-jssdk - v3.0.11

Published by JasonBoy almost 7 years ago

  • provide both original transpiled client.js and minified one, now you can:
    const WechatJSSDK = require('wechat-jssdk/dist/client') or
    const WechatJSSDK = require('wechat-jssdk/dist/client.min'),
    for browser side usage, before there is only minified version. 👯
wechat-jssdk - v3.0.10

Published by JasonBoy almost 7 years ago

  • add getOriginalWx and setOriginWx in client.js to get or set the original wx object to instance
  • the instance will be passed to success and error callback as the last arg, since when people use the arrow function, this will be lost:
{
  success: w => {console.log(w.getOriginalWx())},
  error: (err, w) => {console.log(w.getOriginalWx())},
}
  • demo updates to use getter above and other minor fixes
wechat-jssdk - v3.1.0-alpha.1

Published by JasonBoy about 7 years ago

New Features

  • Wechat Card server side support for jssdk card functionality
  • Wechat Payment server side support for jssdk payment functionality

And lots of issues fixes and updates

I will list all the changes, and usages of new features when it gets ready :)

wechat-jssdk - v3.0.9

Published by JasonBoy over 7 years ago

  • update packages to avoid ReDoS vulnerability
wechat-jssdk - v3.0.8

Published by JasonBoy over 7 years ago

  • fix hasOwnProperty undefined on Store class
wechat-jssdk - v3.0.7

Published by JasonBoy over 7 years ago

  • peerDependence fix, move to dependence
wechat-jssdk - v3.0.6

Published by JasonBoy over 7 years ago

  • update client js to use jweixin-1.2.0.js by default
wechat-jssdk - v3.0.3

Published by JasonBoy over 7 years ago

  • add yarn.lock
  • minor updates
wechat-jssdk - v3.0.2

Published by JasonBoy almost 8 years ago

  • pretty write the json file, with 2 spaces indent instead of stringify in one line
wechat-jssdk - v3.0.0

Published by JasonBoy almost 8 years ago

🍻 Merry Chrismas 🍸 To v3.0.0

  • just minor updates
wechat-jssdk - v3.0.0-rc.1

Published by JasonBoy almost 8 years ago

We are reaching the final release of V3 🥂 🍺

Breaking Changes

  • When try the demo, use npm start instead of npm run demo now
  • The OAuth tokens are now stored in Stores, without need to get code every time
  • Some Store APIs are updated, with api names changes
  • Now can pass scope and state when generating your custom oauth url, generateOAuthUrl (redirectUrl, scope, state), see #3
  • Add support for node v4 by removing default function parameter

Fixing and Updates

  • fix oauth url query order
  • implementation for storing oauth tokens for MongoStore
  • Add MongoStore options for custom host and port config
  • does not threw error when batch operation is empty, since it's not error on the Store perspective
  • fix some UTs
  • use different debug names for stores
  • use strict mode
wechat-jssdk - v2.2.0

Published by JasonBoy almost 8 years ago

  • #3 add api to generate oauth url with custom scope
  • other minor updates
wechat-jssdk - v3.0.0-beta.5

Published by JasonBoy almost 8 years ago

  • add UTs
  • add coveralls for tests
  • remove some unnecessary sdk apis, remove getStore, getCachedGlobalToken from JSSDK, use store api directly
  • add option for store flush interval
  • reject promise when wechat response status is 200, but not ok
wechat-jssdk - v3.0.0-beta.4

Published by JasonBoy almost 8 years ago

  • fix url field missing in get-signature response
  • add flush store interval
  • signature from memory or mongodb optimization
  • try/catch while parsing json file when use FileStore
wechat-jssdk - v3.0.0-beta.3

Published by JasonBoy almost 8 years ago

  • fix jsApiList config names transformed by the original wx library
  • expose built-in MongoStore and FileStore inside Wechat class
  • README and usage updates
Package Rankings
Top 2.5% on Npmjs.org
Badges
Extracted from project README
npm node Coverage Status npm code style: prettier