@kimafinance/kima-transaction-api 1.5.6 → 1.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +1,38 @@
1
1
  name: CI
2
+
2
3
  on:
3
4
  push:
4
5
  branches:
5
6
  - main
7
+
8
+ # Required for OIDC + repo read
9
+ permissions:
10
+ contents: read
11
+ id-token: write
12
+
6
13
  jobs:
7
- build:
14
+ build-and-publish:
8
15
  runs-on: ubuntu-latest
9
- permissions:
10
- contents: read
11
- id-token: write
12
16
 
13
17
  steps:
14
- - uses: actions/checkout@v2
15
- - uses: actions/setup-node@v1
18
+ - name: Checkout repository
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Setup Node.js
22
+ uses: actions/setup-node@v4
16
23
  with:
17
- node-version: 18
24
+ node-version: 20
18
25
  registry-url: https://registry.npmjs.org/
19
26
 
20
- - name: test
21
- run: |
22
- echo ${{ secrets.NPM_TOKEN }}
27
+ # npm 11.5.1+ is required for trusted publishing
28
+ - name: Ensure latest npm (Trusted Publishing support)
29
+ run: npm install -g npm@latest
23
30
 
24
- - name: Build the npm module and publish to npmjs.org
25
- run: |
31
+ - name: Install dependencies
32
+ run: npm ci
26
33
 
27
- npm install
28
- npm start
29
- npm publish --provenance
34
+ - name: Build / smoke check
35
+ run: npm start
30
36
 
31
- env:
32
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
37
+ - name: Publish to npm via OIDC
38
+ run: npm publish
package/CHANGELOG.md ADDED
@@ -0,0 +1,51 @@
1
+ # Release Log
2
+
3
+ ## v1.5.5
4
+
5
+ ### Overview
6
+
7
+ - New: Bank transfers (FIAT rails) fully supported and unified with Credit Card handling.
8
+ - New: On-chain Swap flow (end-to-end) via new submit endpoint.
9
+ - Stricter FIAT contract: FIAT flows now require a transactionIdSeed (UUIDv4) and a derived transactionIdSignature.
10
+ - Naming change: fee/options naming aligned to camelCase (payment_method → paymentMethod).
11
+ - Stability fixes across Solana RPC usage and payload validation.
12
+ - Internals: large feature-based refactor (no route renames, but code layout changed).
13
+
14
+ ### Added
15
+
16
+ - Swap module: high-level submitKimaSwapTransaction(...) + helpers aligned with backend contract.
17
+
18
+ ### Changed
19
+
20
+ - Minor cleanups & version bumps.
21
+
22
+ Breaking
23
+
24
+ - None specific beyond the shared 1.5.x submit/fees expectations.
25
+
26
+ ### Upgrade checklist
27
+
28
+ - npm i @kimafinance/kima-transaction-api@^1.5.5
29
+ - Use the swap helper for the new /submit/swap flow.
30
+ - Ensure you still pass feeId from the fee estimator for any submit.
31
+
32
+ ## 1.4.x
33
+
34
+ ### Overview
35
+
36
+ - Credit cards introduced as an origin network (on-ramp).
37
+ - Mandatory message signing of transaction details (light-mode approvals).
38
+ - Fee estimator required before submit; returns a feeId to forward to /submit.
39
+
40
+ ### Changed
41
+
42
+ - Wrapped 1.4 submit contract: feeId forwarding and signed approval.
43
+
44
+ ### Breaking
45
+
46
+ - Aligns with 1.4 backend requirements (fee+signature).
47
+
48
+ ### Upgrade checklist
49
+
50
+ - npm i @kimafinance/kima-transaction-api@^1.4.0
51
+ - Use the fee estimator first; include feeId + signature in submit.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimafinance/kima-transaction-api",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "A wrapper around Kima's API, enabling sending and monitoring transactions (Beta version)",
5
5
  "repository": "https://github.com/kima-finance/kima-transaction-api",
6
6
  "author": "",