@classytic/mongokit 3.43.0 → 3.43.1

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,12 +1,2 @@
1
- import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
2
- import { S as create_exports, i as update_exports, m as aggregate_exports, p as delete_exports, u as read_exports } from "../update-WgeAUJ_I.mjs";
3
- //#region src/actions/index.ts
4
- var actions_exports = /* @__PURE__ */ __exportAll({
5
- aggregate: () => aggregate_exports,
6
- create: () => create_exports,
7
- deleteActions: () => delete_exports,
8
- read: () => read_exports,
9
- update: () => update_exports
10
- });
11
- //#endregion
12
- export { aggregate_exports as aggregate, create_exports as create, delete_exports as deleteActions, read_exports as read, actions_exports as t, update_exports as update };
1
+ export { m as aggregate, S as create, p as deleteActions, u as read, i as update } from "../update-WgeAUJ_I.mjs";
2
+ import "../actions-ChYfkPYP.mjs";
@@ -0,0 +1,12 @@
1
+ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
+ import { S as create_exports, i as update_exports, m as aggregate_exports, p as delete_exports, u as read_exports } from "./update-WgeAUJ_I.mjs";
3
+ //#region src/actions/index.ts
4
+ var actions_exports = /* @__PURE__ */ __exportAll({
5
+ aggregate: () => aggregate_exports,
6
+ create: () => create_exports,
7
+ deleteActions: () => delete_exports,
8
+ read: () => read_exports,
9
+ update: () => update_exports
10
+ });
11
+ //#endregion
12
+ export { actions_exports as t };
@@ -1,2 +1 @@
1
- import { n as createMongooseAdapter, r as isMongooseModel, t as MongooseAdapter } from "../adapter-CkMoMF83.mjs";
2
- export { MongooseAdapter, createMongooseAdapter, isMongooseModel };
1
+ export { t as MongooseAdapter, n as createMongooseAdapter, r as isMongooseModel } from "../adapter-CkMoMF83.mjs";
@@ -35,19 +35,7 @@ interface BetterAuthInstance {
35
35
  }
36
36
  interface BATableConfig {
37
37
  modelName: string;
38
- fields: Record<string, BAFieldAttribute>;
39
- }
40
- interface BAFieldAttribute {
41
- type: 'string' | 'number' | 'boolean' | 'date' | 'string[]' | 'number[]';
42
- required?: boolean;
43
- unique?: boolean;
44
- fieldName?: string;
45
- references?: {
46
- model: string;
47
- field: string;
48
- onDelete?: string;
49
- };
50
- defaultValue?: unknown;
38
+ fields?: unknown;
51
39
  }
52
40
  /**
53
41
  * How Better Auth's `_id` values are stored, so mongoose casts queries the same way.
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import { C as isCreateManyPartialError, g as LookupBuilder, v as compileFilterTo
4
4
  import { n as warn, t as configureLogger } from "./logger-K7dPmu2U.mjs";
5
5
  import { n as isDuplicateKeyError, r as parseDuplicateKeyError, t as createError } from "./error-BuByZwKU.mjs";
6
6
  import { a as assertQueryDefaultsConfigured, c as getQueryDefaults, l as resetQueryDefaults, o as configureAggregateDefaults, s as configureQueryDefaults, t as QUERY_DEFAULTS_ERROR_CODES, u as resolveQueryOptions } from "./query-defaults-BxUcSOoF.mjs";
7
- import { t as actions_exports } from "./actions/index.mjs";
7
+ import { t as actions_exports } from "./actions-ChYfkPYP.mjs";
8
8
  import { a as supportsTransactions, c as MONGOKIT_CAPABILITIES, d as probeMongoCapabilities, f as resetCapabilityProbeCache, h as transactionResolutionOf, i as runTransaction, l as capabilitiesForSupport, m as resolveTransactionSupport, n as batchTransaction, o as withTransaction, p as resolveMongoCapabilities, r as isTransactionUnsupported, t as TRANSACTION_ERROR_CODES, u as classifyHelloReply } from "./transaction-DmiB4k2P.mjs";
9
9
  import { _ as AuditTrailQuery, a as declareTenantContextKey, b as auditLogPlugin, c as tenantContextKeysOf, d as ensureSequenceAtLeast, f as getNextSequence, g as cachePlugin, h as sequentialId, i as multiTenantPlugin, l as customIdPlugin, m as readSequence, n as softDeletePlugin, o as forwardScope, p as prefixedId, r as adminBypass, s as isScopeKey, t as timestampPlugin, u as dateSequentialId, v as auditTrailPlugin, y as ensureAuditTrailReady } from "./timestamp.plugin-DpOWavVI.mjs";
10
10
  import { n as batchOperationsPlugin, t as methodRegistryPlugin } from "./method-registry.plugin-C63pGn1d.mjs";
@@ -1,2 +1 @@
1
- import { t as PaginationEngine } from "../PaginationEngine-DZnkbSrr.mjs";
2
- export { PaginationEngine };
1
+ export { t as PaginationEngine } from "../PaginationEngine-DZnkbSrr.mjs";
@@ -1,2 +1 @@
1
- import { _ as tokenizeSearchText, d as buildSearchKeys, f as prefixSearchFilter, g as normalizeSearchText, h as findSearchMatches, l as DEFAULT_SEARCH_KEYS_FIELD, m as searchKeysPath, n as SearchKeysWriteError, p as searchKeysIndex, t as SEARCH_KEYS_ERROR_CODES, u as MAX_PREFIX_SEARCH_TERMS } from "../derive-DRBiegRH.mjs";
2
- export { DEFAULT_SEARCH_KEYS_FIELD, MAX_PREFIX_SEARCH_TERMS, SEARCH_KEYS_ERROR_CODES, SearchKeysWriteError, buildSearchKeys, findSearchMatches, normalizeSearchText, prefixSearchFilter, searchKeysIndex, searchKeysPath, tokenizeSearchText };
1
+ export { l as DEFAULT_SEARCH_KEYS_FIELD, u as MAX_PREFIX_SEARCH_TERMS, t as SEARCH_KEYS_ERROR_CODES, n as SearchKeysWriteError, d as buildSearchKeys, h as findSearchMatches, g as normalizeSearchText, f as prefixSearchFilter, p as searchKeysIndex, m as searchKeysPath, _ as tokenizeSearchText } from "../derive-DRBiegRH.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classytic/mongokit",
3
- "version": "3.43.0",
3
+ "version": "3.43.1",
4
4
  "description": "Production-grade MongoDB repositories - smart pagination, events, and plugins. Built on @classytic/repo-core.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -150,9 +150,9 @@
150
150
  },
151
151
  "homepage": "https://github.com/classytic/mongokit#readme",
152
152
  "peerDependencies": {
153
- "@classytic/repo-core": ">=0.31.0",
153
+ "@classytic/repo-core": ">=0.31.1",
154
154
  "mongodb-memory-server": ">=10.4.3",
155
- "mongoose": ">=9.11.0"
155
+ "mongoose": ">=9.11.2"
156
156
  },
157
157
  "peerDependenciesMeta": {
158
158
  "mongodb-memory-server": {
@@ -214,7 +214,7 @@
214
214
  "knip": "^6.32.2",
215
215
  "mongodb": "^7.5.0",
216
216
  "mongodb-memory-server": "^11.2.0",
217
- "mongoose": "^9.11.1",
217
+ "mongoose": "^9.11.2",
218
218
  "publint": "^0.3.23",
219
219
  "tsdown": "^0.22.14",
220
220
  "typescript": "~5.9.3",