arkormx 2.0.0-next.24 → 2.0.0-next.26

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.
package/dist/cli.mjs CHANGED
@@ -1991,6 +1991,7 @@ let runtimePaginationURLDriverFactory;
1991
1991
  let runtimePaginationCurrentPageResolver;
1992
1992
  let runtimeDebugHandler;
1993
1993
  const transactionClientStorage = new AsyncLocalStorage();
1994
+ const transactionAdapterStorage = new AsyncLocalStorage();
1994
1995
  const defaultDebugHandler = (event) => {
1995
1996
  const prefix = `[arkorm:${event.adapter}] ${event.operation}${event.target ? ` [${event.target}]` : ""}`;
1996
1997
  const payload = {
@@ -2048,11 +2049,10 @@ const getUserConfig = (key) => {
2048
2049
  return userConfig;
2049
2050
  };
2050
2051
  /**
2051
- * Configure the ArkORM runtime with the provided Prisma client resolver and
2052
- * delegate mapping resolver.
2052
+ * Configure the ArkORM runtime with the provided runtime client resolver and
2053
+ * adapter-first options.
2053
2054
  *
2054
2055
  * @param prisma
2055
- * @param mapping
2056
2056
  */
2057
2057
  const configureArkormRuntime = (prisma, options = {}) => {
2058
2058
  const nextConfig = {
@@ -2078,7 +2078,7 @@ const configureArkormRuntime = (prisma, options = {}) => {
2078
2078
  });
2079
2079
  };
2080
2080
  /**
2081
- * Resolve a Prisma client instance from the provided resolver, which can be either
2081
+ * Resolve a runtime client instance from the provided resolver, which can be either
2082
2082
  * a direct client instance or a function that returns a client instance.
2083
2083
  *
2084
2084
  * @param resolver
@@ -2171,13 +2171,13 @@ const emitRuntimeDebugEvent = (event) => {
2171
2171
  getRuntimeDebugHandler()?.(event);
2172
2172
  };
2173
2173
  /**
2174
- * Check if a given value is a Prisma delegate-like object
2174
+ * Check if a given value matches Arkorm's query-schema contract
2175
2175
  * by verifying the presence of common delegate methods.
2176
2176
  *
2177
2177
  * @param value The value to check.
2178
- * @returns True if the value is a Prisma delegate-like object, false otherwise.
2178
+ * @returns True if the value matches the query-schema contract, false otherwise.
2179
2179
  */
2180
- const isDelegateLike = (value) => {
2180
+ const isQuerySchemaLike = (value) => {
2181
2181
  if (!value || typeof value !== "object") return false;
2182
2182
  const candidate = value;
2183
2183
  return [
@@ -2189,6 +2189,10 @@ const isDelegateLike = (value) => {
2189
2189
  "count"
2190
2190
  ].every((method) => typeof candidate[method] === "function");
2191
2191
  };
2192
+ /**
2193
+ * @deprecated Use isQuerySchemaLike instead.
2194
+ */
2195
+ const isDelegateLike = isQuerySchemaLike;
2192
2196
  loadArkormConfig();
2193
2197
 
2194
2198
  //#endregion