Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

fix(client): use default import for qs CJS compatibility

vholik0ab1b0db8aa2
diff --git a/packages/cli/package.json b/packages/cli/package.json
index b6fce1dea..1d7cb7f98 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/cli",
- "version": "2.0.0-canary.9",
+ "version": "2.0.0-canary.10",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/client/package.json b/packages/client/package.json
index 5d42df27e..94175445b 100644
--- a/packages/client/package.json
+++ b/packages/client/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/client",
- "version": "2.0.0-canary.9",
+ "version": "2.0.0-canary.10",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/client/src/index.ts b/packages/client/src/index.ts
index 06a9bb36f..12fbfd3cd 100644
--- a/packages/client/src/index.ts
+++ b/packages/client/src/index.ts
@@ -1,4 +1,4 @@
-import { stringify } from "qs";
+import qs from "qs";
import { createRecursiveProxy } from "./create-proxy";
import { ActionType, ClientOptions, InferClient, PrettifyDeep } from "./types";
export type { InferClient } from "./types";
@@ -61,7 +61,7 @@ export function createClient(options: ClientOptions) {
let body: string | undefined;
if (method === "GET" && Object.keys(rest).length > 0) {
- url.search = stringify(rest, { skipNulls: true });
+ url.search = qs.stringify(rest, { skipNulls: true });
} else if (method !== "GET" && Object.keys(rest).length > 0) {
body = JSON.stringify(rest);
}
diff --git a/packages/core-plugin/package.json b/packages/core-plugin/package.json
index 5d6e3bb42..d006300c9 100644
--- a/packages/core-plugin/package.json
+++ b/packages/core-plugin/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/core-plugin",
- "version": "2.0.0-canary.9",
+ "version": "2.0.0-canary.10",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/dashboard-sdk/package.json b/packages/dashboard-sdk/package.json
index 7c29bf521..61a07294a 100644
--- a/packages/dashboard-sdk/package.json
+++ b/packages/dashboard-sdk/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/dashboard-sdk",
- "version": "2.0.0-canary.9",
+ "version": "2.0.0-canary.10",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/dashboard-shared/package.json b/packages/dashboard-shared/package.json
index b72e3d7ce..f526182a5 100644
--- a/packages/dashboard-shared/package.json
+++ b/packages/dashboard-shared/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/dashboard-shared",
- "version": "2.0.0-canary.9",
+ "version": "2.0.0-canary.10",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
@@ -23,7 +23,7 @@
"build": "tsup"
},
"dependencies": {
- "@mercurjs/client": "2.0.0-canary.9",
+ "@mercurjs/client": "2.0.0-canary.10",
"@ariakit/react": "^0.4.15",
"@babel/runtime": "^7.26.10",
"@dnd-kit/core": "^6.1.0",
diff --git a/packages/types/package.json b/packages/types/package.json
index 5e3888002..fac1eedd8 100644
--- a/packages/types/package.json
+++ b/packages/types/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/types",
- "version": "2.0.0-canary.9",
+ "version": "2.0.0-canary.10",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/vendor/package.json b/packages/vendor/package.json
index 6a26687f8..22575c153 100644
--- a/packages/vendor/package.json
+++ b/packages/vendor/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/vendor",
- "version": "2.0.0-canary.9",
+ "version": "2.0.0-canary.10",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
@@ -29,8 +29,8 @@
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
},
"dependencies": {
- "@mercurjs/dashboard-shared": "2.0.0-canary.9",
- "@mercurjs/client": "2.0.0-canary.9",
+ "@mercurjs/dashboard-shared": "2.0.0-canary.10",
+ "@mercurjs/client": "2.0.0-canary.10",
"@ariakit/react": "^0.4.15",
"@babel/runtime": "^7.26.10",
"@dnd-kit/core": "^6.1.0",
diff --git a/templates/basic/apps/vendor/package.json b/templates/basic/apps/vendor/package.json
index b177c8213..a7fc02bf0 100644
--- a/templates/basic/apps/vendor/package.json
+++ b/templates/basic/apps/vendor/package.json
@@ -11,15 +11,15 @@
},
"dependencies": {
"@medusajs/icons": "^2.13.0",
- "@mercurjs/dashboard-sdk": "2.0.0-canary.9",
- "@mercurjs/vendor": "2.0.0-canary.9",
+ "@mercurjs/dashboard-sdk": "2.0.0-canary.10",
+ "@mercurjs/vendor": "2.0.0-canary.10",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-i18next": "13.5.0",
"@tanstack/react-query": "5.64.2",
"@medusajs/ui": "4.1.1",
"react-router-dom": "6.30.3",
- "@mercurjs/client": "2.0.0-canary.9",
+ "@mercurjs/client": "2.0.0-canary.10",
"@acme/api": "*",
"@tanstack/react-table": "8.20.5"
},
diff --git a/templates/basic/packages/api/package.json b/templates/basic/packages/api/package.json
index 354a71b75..4ce8751fe 100644
--- a/templates/basic/packages/api/package.json
+++ b/templates/basic/packages/api/package.json
@@ -36,8 +36,8 @@
"@medusajs/admin-shared": "^2.13.0",
"@medusajs/medusa": "^2.13.0",
"@medusajs/draft-order": "2.13.0",
- "@mercurjs/core-plugin": "2.0.0-canary.9",
- "@mercurjs/types": "2.0.0-canary.9",
+ "@mercurjs/core-plugin": "2.0.0-canary.10",
+ "@mercurjs/types": "2.0.0-canary.10",
"zod": "3.25.76"
},
"devDependencies": {