Skip to content

Commit a47bf6e

Browse files
bump to 0.9.1
- feat: isolate the `APIv2` & `APIv3` config and client - feat: use the `axios.VERSION`, `axios.mergeConfig` and `axios.AxiosHeaders` internally - feat: refactor the `Transformer.signer` for the `GET` or `POST` requests - feat: move the `merchant{key,cert}` inside `transformer.signer`, side affect by the `security:true` per request - fix: `Transformer::parse(xml)` for stream download - fix: `Rsa.fromPkcs1(str, KEY_TYPE_PUBLIC)` for loading the `PublicKey` - doc: Q/A the `Rsa.from[Pkcs8|Pkcs1|Spki]` features
1 parent fac4c96 commit a47bf6e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# 变更历史
22

3+
## v0.9.1 (2025-03-15)
4+
5+
- 隔离`APIv2``APIv3`配置和客户端实例;
6+
- 重构`Transformer.signer`以支持`GET``POST`请求自动签名;
7+
- 将初始化声明的`merchant{key,cert}`移动到`transformer.signer`内部,当需要时,通过每个请求声明的`security:true`加载;
8+
- 修复文件流下载的`Transformer.parse(xml)`异常问题;
9+
- 修复`Rsa.fromPkcs1(str,KEY_TYPE_PUBLIC)`加载公钥异常问题;
10+
- 优化文档,`Q/A`简单说明`Rsa.from[Pkcs8|Pkcs1|Spki]`加载公/私钥新机制;
11+
312
## v0.9.0 (2025-03-09)
413

514
- 调整`node`最低版本要求至`12`,不再支持`node10`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wechatpay-axios-plugin",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"description": "微信支付APIv2及v3 NodeJS SDK,支持CLI模式请求OpenAPI,支持v3证书下载,v2付款码支付、企业付款、退款,企业微信-企业支付-企业红包/向员工付款,v2&v3 Native支付、扫码支付、H5支付、JSAPI/小程序支付、合单支付...",
55
"main": "index.js",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)