The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
chore: v2.0.0-canary.36
vholik160461ad4a7a
diff --git a/packages/admin/package.json b/packages/admin/package.jsonindex 5d50b744c..5e71144f9 100644--- a/packages/admin/package.json+++ b/packages/admin/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/admin",- "version": "2.0.0-canary.35",+ "version": "2.0.0-canary.36","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.27",- "@mercurjs/client": "2.0.0-canary.27",+ "@mercurjs/dashboard-shared": "2.0.0-canary.36",+ "@mercurjs/client": "2.0.0-canary.36","@ariakit/react": "^0.4.15","@babel/runtime": "^7.26.10","@dnd-kit/core": "^6.1.0",diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex d6f8e1b80..d70c52a0a 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/cli",- "version": "2.0.0-canary.35",+ "version": "2.0.0-canary.36","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",diff --git a/packages/client/package.json b/packages/client/package.jsonindex 4f80299a6..9666f3d93 100644--- a/packages/client/package.json+++ b/packages/client/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/client",- "version": "2.0.0-canary.35",+ "version": "2.0.0-canary.36","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",diff --git a/packages/client/src/index.ts b/packages/client/src/index.tsindex 030536af7..ca852a620 100644--- a/packages/client/src/index.ts+++ b/packages/client/src/index.ts@@ -1,19 +1,19 @@import qs from "qs";import { createRecursiveProxy } from "./create-proxy";-import { ActionType, ClientOptions, InferClient, PrettifyDeep } from "./types";+import { ActionType, ClientOptions } from "./types";export type { InferClient } from "./types";import { kebabCase } from "./utils";type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;export type InferClientInput<T> = T extends (input: infer I) => any- ? PrettifyDeep<DistributiveOmit<I, 'fetchOptions'>>+ ? DistributiveOmit<I, 'fetchOptions'>: T extends (input?: infer I) => any- ? PrettifyDeep<DistributiveOmit<NonNullable<I>, 'fetchOptions'>>+ ? DistributiveOmit<NonNullable<I>, 'fetchOptions'>: never;export type InferClientOutput<T> = T extends (...args: any[]) => Promise<infer O>- ? PrettifyDeep<O>+ ? O: never;export class ClientError extends Error {diff --git a/packages/client/src/types/client.ts b/packages/client/src/types/client.tsindex 46b5f5365..4a728483b 100644--- a/packages/client/src/types/client.ts+++ b/packages/client/src/types/client.ts@@ -1,5 +1,4 @@-import { ChildKeys, InferInput, InferOutput, PrettifyDeep, TypeError } from "./helpers";-+import { ChildKeys, InferInput, InferOutput, TypeError } from "./helpers";export type ActionType = "query" | "mutate" | "delete";@@ -20,8 +19,8 @@ type AddParamsToFn<Fn, TParams> =type InferFetchFn<TRequest,TResponse,- TInput = PrettifyDeep<InferInput<TRequest>>,- TOutput = PrettifyDeep<InferOutput<TResponse>>,+ TInput = InferInput<TRequest>,+ TOutput = InferOutput<TResponse>,> = [TInput] extends [Record<string, any>]? (input: TInput & { fetchOptions?: RequestInit }) => Promise<TOutput>: (input?: { fetchOptions?: RequestInit }) => Promise<TOutput>;diff --git a/packages/client/src/types/helpers.ts b/packages/client/src/types/helpers.tsindex e98b69a23..a6dae4174 100644--- a/packages/client/src/types/helpers.ts+++ b/packages/client/src/types/helpers.ts@@ -1,19 +1,5 @@import { MedusaResponse } from "@medusajs/framework";-type DecrementDepth = [never, 0, 1, 2, 3, 4, 5, 6];--export type PrettifyDeep<T, Depth extends number = 4> = Depth extends never- ? T- : T extends (...args: any[]) => any- ? T- : T extends Array<infer U>- ? Array<PrettifyDeep<U, DecrementDepth[Depth]>>- : T extends Date- ? T- : T extends object- ? { [K in keyof T]: PrettifyDeep<T[K], DecrementDepth[Depth]> } & {}- : T;-const _errorSymbol = Symbol();export type ErrorSymbol = typeof _errorSymbol;diff --git a/packages/client/src/types/index.ts b/packages/client/src/types/index.tsindex 7d616d482..c26a0acf9 100644--- a/packages/client/src/types/index.ts+++ b/packages/client/src/types/index.ts@@ -1,3 +1,3 @@-export { PrettifyDeep, TypeError, ErrorSymbol } from "./helpers";+export { TypeError, ErrorSymbol } from "./helpers";export * from "./client";diff --git a/packages/core-plugin/package.json b/packages/core-plugin/package.jsonindex 2b469f15f..bde4dc868 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.35",+ "version": "2.0.0-canary.36","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",diff --git a/packages/dashboard-sdk/package.json b/packages/dashboard-sdk/package.jsonindex e3581b4eb..de39d5793 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.35",+ "version": "2.0.0-canary.36","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",diff --git a/packages/dashboard-shared/package.json b/packages/dashboard-shared/package.jsonindex d05bbe3d8..afc3a6218 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.35",+ "version": "2.0.0-canary.36","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",@@ -23,7 +23,7 @@"build": "tsup"},"dependencies": {- "@mercurjs/client": "2.0.0-canary.27",+ "@mercurjs/client": "2.0.0-canary.36","@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.jsonindex 2db21de0a..8ab1fffa8 100644--- a/packages/types/package.json+++ b/packages/types/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/types",- "version": "2.0.0-canary.35",+ "version": "2.0.0-canary.36","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",diff --git a/packages/vendor/package.json b/packages/vendor/package.jsonindex 710711a6b..3b949e587 100644--- a/packages/vendor/package.json+++ b/packages/vendor/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/vendor",- "version": "2.0.0-canary.35",+ "version": "2.0.0-canary.36","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.27",- "@mercurjs/client": "2.0.0-canary.27",+ "@mercurjs/dashboard-shared": "2.0.0-canary.36",+ "@mercurjs/client": "2.0.0-canary.36","@ariakit/react": "^0.4.15","@babel/runtime": "^7.26.10","@dnd-kit/core": "^6.1.0",diff --git a/templates/basic/apps/admin/package.json b/templates/basic/apps/admin/package.jsonindex f5dc0b2b9..b09491b74 100644--- a/templates/basic/apps/admin/package.json+++ b/templates/basic/apps/admin/package.json@@ -11,16 +11,16 @@},"dependencies": {"@medusajs/icons": "^2.13.3",- "@mercurjs/dashboard-sdk": "2.0.0-canary.24",- "@mercurjs/dashboard-shared": "2.0.0-canary.24",- "@mercurjs/admin": "2.0.0-canary.35",+ "@mercurjs/dashboard-sdk": "2.0.0-canary.36",+ "@mercurjs/dashboard-shared": "2.0.0-canary.36",+ "@mercurjs/admin": "2.0.0-canary.36","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.24",+ "@mercurjs/client": "2.0.0-canary.36","@acme/api": "*","@tanstack/react-table": "8.20.5","react-hook-form": "7.49.1",diff --git a/templates/basic/apps/vendor/package.json b/templates/basic/apps/vendor/package.jsonindex 2c9264d4f..b66abc856 100644--- a/templates/basic/apps/vendor/package.json+++ b/templates/basic/apps/vendor/package.json@@ -11,16 +11,16 @@},"dependencies": {"@medusajs/icons": "^2.13.3",- "@mercurjs/dashboard-sdk": "2.0.0-canary.24",- "@mercurjs/dashboard-shared": "2.0.0-canary.24",- "@mercurjs/vendor": "2.0.0-canary.24",+ "@mercurjs/dashboard-sdk": "2.0.0-canary.36",+ "@mercurjs/dashboard-shared": "2.0.0-canary.36",+ "@mercurjs/vendor": "2.0.0-canary.36","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.24",+ "@mercurjs/client": "2.0.0-canary.36","@acme/api": "*","@tanstack/react-table": "8.20.5","react-hook-form": "7.49.1",diff --git a/templates/basic/packages/api/package.json b/templates/basic/packages/api/package.jsonindex 0b301afa3..f57578dee 100644--- a/templates/basic/packages/api/package.json+++ b/templates/basic/packages/api/package.json@@ -36,8 +36,8 @@"@medusajs/admin-shared": "^2.13.3","@medusajs/medusa": "^2.13.3","@medusajs/draft-order": "2.13.3",- "@mercurjs/core-plugin": "2.0.0-canary.24",- "@mercurjs/types": "2.0.0-canary.24",+ "@mercurjs/core-plugin": "2.0.0-canary.36",+ "@mercurjs/types": "2.0.0-canary.36","zod": "3.25.76"},"devDependencies": {