Compare commits

..

2 Commits

Author SHA1 Message Date
0e403e1584 4.1.2 2025-07-25 11:53:04 +00:00
16135cae02 fix(httpclient): pass query params as object for smartrequest compatibility 2025-07-25 11:27:55 +00:00
4 changed files with 13 additions and 6 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## 2025-07-25 - 4.1.1 - fix(httpclient)
Fix query parameter handling for smartrequest compatibility
- Changed query parameter handling to pass objects directly instead of URLSearchParams
- Removed URLSearchParams usage and string conversion
- Now passes queryParams as an object to smartrequest which handles URL encoding internally
## 2025-07-25 - 4.1.0 - feat(transactions)
Enhanced transaction pagination support with full control over historical data retrieval

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@apiclient.xyz/bunq",
"version": "4.0.1",
"version": "4.1.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@apiclient.xyz/bunq",
"version": "4.0.1",
"version": "4.1.2",
"license": "MIT",
"dependencies": {
"@bunq-community/bunq-js-client": "^1.1.2",

View File

@@ -1,6 +1,6 @@
{
"name": "@apiclient.xyz/bunq",
"version": "4.1.0",
"version": "4.1.2",
"private": false,
"description": "A full-featured TypeScript/JavaScript client for the bunq API",
"type": "module",

View File

@@ -53,13 +53,13 @@ export class BunqHttpClient {
};
if (options.params) {
const params = new URLSearchParams();
const queryParams: { [key: string]: string } = {};
Object.entries(options.params).forEach(([key, value]) => {
if (value !== undefined && value !== null) {
params.append(key, String(value));
queryParams[key] = String(value);
}
});
requestOptions.queryParams = params.toString();
requestOptions.queryParams = queryParams;
}
try {