@routier/core 0.1.0-rc.2 → 0.2.0

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.
Files changed (38) hide show
  1. package/dist/assertions/index.js +4 -15
  2. package/dist/assertions/index.js.map +1 -1
  3. package/dist/capabilities/index.js +58 -97
  4. package/dist/capabilities/index.js.map +1 -1
  5. package/dist/codegen/index.js +21 -36
  6. package/dist/codegen/index.js.map +1 -1
  7. package/dist/collections/index.js +49 -92
  8. package/dist/collections/index.js.map +1 -1
  9. package/dist/errors/index.js +4 -15
  10. package/dist/errors/index.js.map +1 -1
  11. package/dist/expressions/index.js +62 -93
  12. package/dist/expressions/index.js.map +1 -1
  13. package/dist/index.js +1683 -2302
  14. package/dist/index.js.map +1 -1
  15. package/dist/performance/index.js +4 -15
  16. package/dist/performance/index.js.map +1 -1
  17. package/dist/pipeline/index.js +30 -53
  18. package/dist/pipeline/index.js.map +1 -1
  19. package/dist/plugins/index.js +260 -361
  20. package/dist/plugins/index.js.map +1 -1
  21. package/dist/plugins/replication/OptimisticReplicationDbPlugin.d.ts +6 -5
  22. package/dist/plugins/replication/ReplicationDbPlugin.d.ts +5 -5
  23. package/dist/plugins/replication/types.d.ts +1 -0
  24. package/dist/plugins/types.d.ts +1 -1
  25. package/dist/results/index.js +11 -26
  26. package/dist/results/index.js.map +1 -1
  27. package/dist/schema/SchemaDefinition.d.ts +7 -6
  28. package/dist/schema/index.js +1073 -1490
  29. package/dist/schema/index.js.map +1 -1
  30. package/dist/schema/testSchemas.test.d.ts +14 -14
  31. package/dist/schema/types.d.ts +5 -3
  32. package/dist/types/index.js +0 -6
  33. package/dist/types/index.js.map +1 -1
  34. package/dist/utilities/index.js +61 -124
  35. package/dist/utilities/index.js.map +1 -1
  36. package/dist/utilities/types.d.ts +17 -2
  37. package/package.json +1 -1
  38. package/readme.md +1 -1
@@ -12,7 +12,7 @@ export declare const optionalObjectSchemaFactory: () => import("./types").Compil
12
12
  createdAt: import(".").SchemaDeserialize<Date, "default" | "deserialize">;
13
13
  }>;
14
14
  export declare const usersSchemaOneFactory: () => import("./types").CompiledSchema<{
15
- documentType: import(".").SchemaTracked<string, "computed">;
15
+ documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
16
16
  } & {
17
17
  id: import(".").SchemaDefault<UUID, {
18
18
  uuid: () => string;
@@ -29,7 +29,7 @@ export declare const usersSchemaOneFactory: () => import("./types").CompiledSche
29
29
  }, never>;
30
30
  }>;
31
31
  export declare const usersSchemaTwoFactory: () => import("./types").CompiledSchema<{
32
- documentType: import(".").SchemaTracked<string, "computed">;
32
+ documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
33
33
  } & {
34
34
  id: import(".").SchemaDefault<string, {
35
35
  uuid: () => string;
@@ -50,7 +50,7 @@ export declare const usersSchemaTwoFactory: () => import("./types").CompiledSche
50
50
  }, never>;
51
51
  }>;
52
52
  export declare const oneComputedPropertySchemaFactory: () => import("./types").CompiledSchema<{
53
- documentType: import(".").SchemaTracked<string, "computed">;
53
+ documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
54
54
  } & {
55
55
  id: import(".").SchemaIdentity<string, "key" | "identity">;
56
56
  title: import(".").SchemaString<string, never>;
@@ -97,7 +97,7 @@ export declare const remap: () => import("./types").CompiledSchema<{
97
97
  isOnline: import(".").SchemaBoolean<boolean, never>;
98
98
  }>;
99
99
  export declare const computedId: () => import("./types").CompiledSchema<{
100
- id: import(".").SchemaKey<string, "key" | "computed">;
100
+ id: import(".").SchemaKey<import("./types").CollectionName, "key" | "computed">;
101
101
  } & {
102
102
  name: import(".").SchemaDefault<string, {
103
103
  name: string;
@@ -122,7 +122,7 @@ export declare const computedAndFunctionPropertiesSchemaFactory: () => import(".
122
122
  discontinued: import(".").SchemaBoolean<boolean, never>;
123
123
  }>;
124
124
  export declare const deeplyNestedSchemaFactory: () => import("./types").CompiledSchema<{
125
- documentType: import(".").SchemaTracked<string, "computed">;
125
+ documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
126
126
  } & {
127
127
  id: import(".").SchemaDefault<string, {
128
128
  uuid: () => string;
@@ -143,7 +143,7 @@ export declare const deeplyNestedSchemaFactory: () => import("./types").Compiled
143
143
  }, never>;
144
144
  }>;
145
145
  export declare const complexOneSchemaFactory: () => import("./types").CompiledSchema<{
146
- documentType: import(".").SchemaTracked<string, "computed">;
146
+ documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
147
147
  } & {
148
148
  id: import(".").SchemaDefault<string, {
149
149
  uuid: () => string;
@@ -160,14 +160,14 @@ export declare const complexOneSchemaFactory: () => import("./types").CompiledSc
160
160
  }, never>;
161
161
  }>;
162
162
  export declare const complexTwoSchemaFactory: () => import("./types").CompiledSchema<{
163
- documentType: import(".").SchemaTracked<string, "computed">;
163
+ documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
164
164
  } & {
165
165
  fullName: import("./table").SchemaComputed<string, never, "unmapped" | "computed">;
166
166
  age: import("./table").SchemaComputed<number, never, "unmapped" | "computed">;
167
167
  formattedAddress: import("./table").SchemaComputed<string, never, "unmapped" | "computed">;
168
168
  isActive: import("./table").SchemaComputed<boolean, never, "unmapped" | "computed">;
169
169
  getDisplayName: import("./table").SchemaFunction<(format: "short" | "full") => string, never, "unmapped">;
170
- documentType: import(".").SchemaTracked<string, "computed">;
170
+ documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
171
171
  } & {
172
172
  _id: import(".").SchemaIdentity<string, "key" | "identity">;
173
173
  _rev: import(".").SchemaIdentity<string, "identity" | "readonly">;
@@ -191,7 +191,7 @@ export declare const complexTwoSchemaFactory: () => import("./types").CompiledSc
191
191
  createdAt: import(".").SchemaDefault<Date, never, "default">;
192
192
  }>;
193
193
  export declare const factories: ((() => import("./types").CompiledSchema<{
194
- documentType: import(".").SchemaTracked<string, "computed">;
194
+ documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
195
195
  } & {
196
196
  id: import(".").SchemaDefault<UUID, {
197
197
  uuid: () => string;
@@ -207,7 +207,7 @@ export declare const factories: ((() => import("./types").CompiledSchema<{
207
207
  zip: import(".").SchemaString<string, never>;
208
208
  }, never>;
209
209
  }>) | (() => import("./types").CompiledSchema<{
210
- documentType: import(".").SchemaTracked<string, "computed">;
210
+ documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
211
211
  } & {
212
212
  id: import(".").SchemaIdentity<string, "key" | "identity">;
213
213
  title: import(".").SchemaString<string, never>;
@@ -245,7 +245,7 @@ export declare const factories: ((() => import("./types").CompiledSchema<{
245
245
  restockDate: import(".").SchemaOptional<Date, "optional">;
246
246
  discontinued: import(".").SchemaBoolean<boolean, never>;
247
247
  }>) | (() => import("./types").CompiledSchema<{
248
- documentType: import(".").SchemaTracked<string, "computed">;
248
+ documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
249
249
  } & {
250
250
  id: import(".").SchemaDefault<string, {
251
251
  uuid: () => string;
@@ -265,7 +265,7 @@ export declare const factories: ((() => import("./types").CompiledSchema<{
265
265
  zip: import(".").SchemaString<string, never>;
266
266
  }, never>;
267
267
  }>) | (() => import("./types").CompiledSchema<{
268
- documentType: import(".").SchemaTracked<string, "computed">;
268
+ documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
269
269
  } & {
270
270
  id: import(".").SchemaDefault<string, {
271
271
  uuid: () => string;
@@ -281,14 +281,14 @@ export declare const factories: ((() => import("./types").CompiledSchema<{
281
281
  zip: import(".").SchemaString<string, never>;
282
282
  }, never>;
283
283
  }>) | (() => import("./types").CompiledSchema<{
284
- documentType: import(".").SchemaTracked<string, "computed">;
284
+ documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
285
285
  } & {
286
286
  fullName: import("./table").SchemaComputed<string, never, "unmapped" | "computed">;
287
287
  age: import("./table").SchemaComputed<number, never, "unmapped" | "computed">;
288
288
  formattedAddress: import("./table").SchemaComputed<string, never, "unmapped" | "computed">;
289
289
  isActive: import("./table").SchemaComputed<boolean, never, "unmapped" | "computed">;
290
290
  getDisplayName: import("./table").SchemaFunction<(format: "short" | "full") => string, never, "unmapped">;
291
- documentType: import(".").SchemaTracked<string, "computed">;
291
+ documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
292
292
  } & {
293
293
  _id: import(".").SchemaIdentity<string, "key" | "identity">;
294
294
  _rev: import(".").SchemaIdentity<string, "identity" | "readonly">;
@@ -6,8 +6,9 @@ import { PropertyInfo } from "./PropertyInfo";
6
6
  import { DeepPartial } from "../types";
7
7
  import { SchemaFunction } from "./table";
8
8
  import { SchemaOptional } from "./property/modifiers";
9
+ import { Branded } from "../utilities/types";
9
10
  export type DefaultValue<T, I = never> = T | ((injected: I) => T);
10
- export type FunctionBody<TEntity, TResult> = (entity: TEntity, collectionName: string) => TResult;
11
+ export type FunctionBody<TEntity, TResult> = (entity: TEntity, collectionName: CollectionName) => TResult;
11
12
  export type IdType = string | number;
12
13
  export declare enum SchemaTypes {
13
14
  Array = "Array",
@@ -138,7 +139,7 @@ export type CompiledSchema<TEntity extends {}> = {
138
139
  /** Unique id for the schema. */
139
140
  id: SchemaId;
140
141
  /** The name of the collection for this schema. */
141
- collectionName: string;
142
+ collectionName: CollectionName;
142
143
  /** Returns all IDs for the given entity (usually a single-element tuple). */
143
144
  getIds: (entity: InferType<TEntity>) => [IdType];
144
145
  /** Enriches the entity with change tracking or other metadata. */
@@ -158,7 +159,8 @@ export type CompiledSchema<TEntity extends {}> = {
158
159
  };
159
160
  export type PropertySerializer<T extends any> = (value: T) => string | number;
160
161
  export type PropertyDeserializer<T extends any> = (value: string | number) => T;
161
- export type SchemaId = number;
162
+ export type SchemaId = Branded<number, "SchemaId">;
163
+ export type CollectionName = Branded<string, "CollectionName">;
162
164
  export type SchemaModifiers = "default" | "deserialize" | "identity" | "key" | "nullable" | "optional" | "readonly" | "serialize" | "unmapped" | "computed" | "distinct";
163
165
  type InferPrimitive<T> = T extends SchemaOptional<infer C, infer __> ? C extends (string | number | Date) ? C : {
164
166
  [K in keyof C]: InferPrimitive<C[K]>;
@@ -1,7 +1,6 @@
1
1
  // The require scope
2
2
  var __webpack_require__ = {};
3
3
 
4
- /************************************************************************/
5
4
  // webpack/runtime/make_namespace_object
6
5
  (() => {
7
6
  // define __esModule on exports
@@ -12,12 +11,7 @@ __webpack_require__.r = (exports) => {
12
11
  Object.defineProperty(exports, '__esModule', { value: true });
13
12
  };
14
13
  })();
15
- /************************************************************************/
16
14
  var __webpack_exports__ = {};
17
-
18
- /*!****************************!*\
19
- !*** ./src/types/index.ts ***!
20
- \****************************/
21
15
  __webpack_require__.r(__webpack_exports__);
22
16
 
23
17
 
@@ -1 +1 @@
1
- {"version":3,"file":"types/index.js","sources":["webpack://@routier/core/webpack/runtime/make_namespace_object","webpack://@routier/core/./src/types/index.ts"],"sourcesContent":["// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export type DeepPartial<T> = T extends object ? {\n [P in keyof T]?: DeepPartial<T[P]>;\n} : T;\n\nexport type GenericFunction<T, R> = (value: T) => R;"],"names":[],"mappings":";;;;;;AAAA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA,gDAAgD,aAAa;AAC7D"}
1
+ {"version":3,"file":"types/index.js","sources":["webpack://@routier/core/webpack/runtime/make_namespace_object","webpack://@routier/core/./src/types/index.ts"],"sourcesContent":["// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export type DeepPartial<T> = T extends object ? {\n [P in keyof T]?: DeepPartial<T[P]>;\n} : T;\n\nexport type GenericFunction<T, R> = (value: T) => R;"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA,gDAAgD,aAAa;AAC7D,E"}
@@ -1,9 +1,5 @@
1
1
  var __webpack_modules__ = ({
2
- "./src/expressions/utils.ts":
3
- /*!**********************************!*\
4
- !*** ./src/expressions/utils.ts ***!
5
- \**********************************/
6
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2
+ "./src/expressions/utils.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
7
3
  __webpack_require__.r(__webpack_exports__);
8
4
  __webpack_require__.d(__webpack_exports__, {
9
5
  forEach: () => (forEach),
@@ -60,17 +56,13 @@ function forEach(expression, callback) {
60
56
  }
61
57
 
62
58
 
63
- }),
64
- "./src/plugins/query/QueryOptionsCollection.ts":
65
- /*!*****************************************************!*\
66
- !*** ./src/plugins/query/QueryOptionsCollection.ts ***!
67
- \*****************************************************/
68
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
59
+ },
60
+ "./src/plugins/query/QueryOptionsCollection.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
69
61
  __webpack_require__.r(__webpack_exports__);
70
62
  __webpack_require__.d(__webpack_exports__, {
71
63
  QueryOptionsCollection: () => (QueryOptionsCollection)
72
64
  });
73
- /* ESM import */var _expressions_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../expressions/utils */ "./src/expressions/utils.ts");
65
+ /* import */ var _expressions_utils__rspack_import_0 = __webpack_require__("./src/expressions/utils.ts");
74
66
 
75
67
  class QueryOptionsCollection {
76
68
  options = new Map();
@@ -107,8 +99,8 @@ class QueryOptionsCollection {
107
99
  this.nextExecutionTarget = "memory";
108
100
  }
109
101
  else {
110
- (0,_expressions_utils__WEBPACK_IMPORTED_MODULE_0__.forEach)(filterValue.expression, (expression) => {
111
- if ((0,_expressions_utils__WEBPACK_IMPORTED_MODULE_0__.isPropertyExpression)(expression) && expression.property.isUnmapped) {
102
+ (0,_expressions_utils__rspack_import_0.forEach)(filterValue.expression, (expression) => {
103
+ if ((0,_expressions_utils__rspack_import_0.isPropertyExpression)(expression) && expression.property.isUnmapped) {
112
104
  // Cut over to memory execution, unmapped properties are not in the database and
113
105
  // cannot be queried
114
106
  this.nextExecutionTarget = "memory";
@@ -188,12 +180,8 @@ class QueryOptionsCollection {
188
180
  }
189
181
 
190
182
 
191
- }),
192
- "./src/utilities/arrays.ts":
193
- /*!*********************************!*\
194
- !*** ./src/utilities/arrays.ts ***!
195
- \*********************************/
196
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
183
+ },
184
+ "./src/utilities/arrays.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
197
185
  __webpack_require__.r(__webpack_exports__);
198
186
  __webpack_require__.d(__webpack_exports__, {
199
187
  toMap: () => (toMap)
@@ -209,12 +197,8 @@ const toMap = (data, keySelector) => {
209
197
  };
210
198
 
211
199
 
212
- }),
213
- "./src/utilities/dates.ts":
214
- /*!********************************!*\
215
- !*** ./src/utilities/dates.ts ***!
216
- \********************************/
217
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
200
+ },
201
+ "./src/utilities/dates.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
218
202
  __webpack_require__.r(__webpack_exports__);
219
203
  __webpack_require__.d(__webpack_exports__, {
220
204
  isDate: () => (isDate)
@@ -230,12 +214,8 @@ const isDate = (data) => {
230
214
  };
231
215
 
232
216
 
233
- }),
234
- "./src/utilities/dbPluginEventUtils.ts":
235
- /*!*********************************************!*\
236
- !*** ./src/utilities/dbPluginEventUtils.ts ***!
237
- \*********************************************/
238
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
217
+ },
218
+ "./src/utilities/dbPluginEventUtils.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
239
219
  __webpack_require__.r(__webpack_exports__);
240
220
  __webpack_require__.d(__webpack_exports__, {
241
221
  toEventArray: () => (toEventArray)
@@ -266,12 +246,8 @@ const toEventArray = (event) => {
266
246
  };
267
247
 
268
248
 
269
- }),
270
- "./src/utilities/functions.ts":
271
- /*!************************************!*\
272
- !*** ./src/utilities/functions.ts ***!
273
- \************************************/
274
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
249
+ },
250
+ "./src/utilities/functions.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
275
251
  __webpack_require__.r(__webpack_exports__);
276
252
  __webpack_require__.d(__webpack_exports__, {
277
253
  noop: () => (noop)
@@ -279,12 +255,8 @@ __webpack_require__.d(__webpack_exports__, {
279
255
  const noop = (...args) => { };
280
256
 
281
257
 
282
- }),
283
- "./src/utilities/logger.ts":
284
- /*!*********************************!*\
285
- !*** ./src/utilities/logger.ts ***!
286
- \*********************************/
287
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
258
+ },
259
+ "./src/utilities/logger.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
288
260
  __webpack_require__.r(__webpack_exports__);
289
261
  __webpack_require__.d(__webpack_exports__, {
290
262
  logger: () => (logger)
@@ -324,12 +296,8 @@ const logger = {
324
296
  };
325
297
 
326
298
 
327
- }),
328
- "./src/utilities/objects.ts":
329
- /*!**********************************!*\
330
- !*** ./src/utilities/objects.ts ***!
331
- \**********************************/
332
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
299
+ },
300
+ "./src/utilities/objects.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
333
301
  __webpack_require__.r(__webpack_exports__);
334
302
  __webpack_require__.d(__webpack_exports__, {
335
303
  cast: () => (cast),
@@ -343,20 +311,16 @@ function clone(data) {
343
311
  }
344
312
 
345
313
 
346
- }),
347
- "./src/utilities/queryOptionsCollection.ts":
348
- /*!*************************************************!*\
349
- !*** ./src/utilities/queryOptionsCollection.ts ***!
350
- \*************************************************/
351
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
314
+ },
315
+ "./src/utilities/queryOptionsCollection.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
352
316
  __webpack_require__.r(__webpack_exports__);
353
317
  __webpack_require__.d(__webpack_exports__, {
354
318
  combineQueryOptionsCollections: () => (combineQueryOptionsCollections)
355
319
  });
356
- /* ESM import */var _plugins_query__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../plugins/query */ "./src/plugins/query/QueryOptionsCollection.ts");
320
+ /* import */ var _plugins_query__rspack_import_0 = __webpack_require__("./src/plugins/query/QueryOptionsCollection.ts");
357
321
 
358
322
  const combineQueryOptionsCollections = (...collections) => {
359
- const result = new _plugins_query__WEBPACK_IMPORTED_MODULE_0__.QueryOptionsCollection();
323
+ const result = new _plugins_query__rspack_import_0.QueryOptionsCollection();
360
324
  for (let i = 0, length = collections.length; i < length; i++) {
361
325
  const collection = collections[i];
362
326
  // Add scoped items first
@@ -368,12 +332,8 @@ const combineQueryOptionsCollections = (...collections) => {
368
332
  };
369
333
 
370
334
 
371
- }),
372
- "./src/utilities/replication.ts":
373
- /*!**************************************!*\
374
- !*** ./src/utilities/replication.ts ***!
375
- \**************************************/
376
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
335
+ },
336
+ "./src/utilities/replication.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
377
337
  __webpack_require__.r(__webpack_exports__);
378
338
  __webpack_require__.d(__webpack_exports__, {
379
339
  resolveBulkPersistChanges: () => (resolveBulkPersistChanges)
@@ -396,12 +356,8 @@ const resolveBulkPersistChanges = (event, result, bulkPersistChanges) => {
396
356
  };
397
357
 
398
358
 
399
- }),
400
- "./src/utilities/runtime.ts":
401
- /*!**********************************!*\
402
- !*** ./src/utilities/runtime.ts ***!
403
- \**********************************/
404
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
359
+ },
360
+ "./src/utilities/runtime.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
405
361
  __webpack_require__.r(__webpack_exports__);
406
362
  __webpack_require__.d(__webpack_exports__, {
407
363
  isNodeRuntime: () => (isNodeRuntime)
@@ -411,12 +367,8 @@ const isNodeRuntime = () => typeof process !== 'undefined' &&
411
367
  process.versions.node != null;
412
368
 
413
369
 
414
- }),
415
- "./src/utilities/strings.ts":
416
- /*!**********************************!*\
417
- !*** ./src/utilities/strings.ts ***!
418
- \**********************************/
419
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
370
+ },
371
+ "./src/utilities/strings.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
420
372
  __webpack_require__.r(__webpack_exports__);
421
373
  __webpack_require__.d(__webpack_exports__, {
422
374
  fastHash: () => (fastHash),
@@ -577,12 +529,8 @@ function stringifyPlainObject(obj, maxDepth, currentDepth) {
577
529
  }
578
530
 
579
531
 
580
- }),
581
- "./src/utilities/unsafeCast.ts":
582
- /*!*************************************!*\
583
- !*** ./src/utilities/unsafeCast.ts ***!
584
- \*************************************/
585
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
532
+ },
533
+ "./src/utilities/unsafeCast.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
586
534
  __webpack_require__.r(__webpack_exports__);
587
535
  __webpack_require__.d(__webpack_exports__, {
588
536
  unsafeCast: () => (unsafeCast)
@@ -592,12 +540,8 @@ const unsafeCast = (value) => {
592
540
  };
593
541
 
594
542
 
595
- }),
596
- "./src/utilities/uuid.ts":
597
- /*!*******************************!*\
598
- !*** ./src/utilities/uuid.ts ***!
599
- \*******************************/
600
- (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
543
+ },
544
+ "./src/utilities/uuid.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
601
545
  __webpack_require__.r(__webpack_exports__);
602
546
  __webpack_require__.d(__webpack_exports__, {
603
547
  uuid: () => (uuid),
@@ -654,10 +598,9 @@ const uuidv4 = () => {
654
598
  };
655
599
 
656
600
 
657
- }),
601
+ },
658
602
 
659
603
  });
660
- /************************************************************************/
661
604
  // The module cache
662
605
  var __webpack_module_cache__ = {};
663
606
 
@@ -681,7 +624,6 @@ return module.exports;
681
624
 
682
625
  }
683
626
 
684
- /************************************************************************/
685
627
  // webpack/runtime/define_property_getters
686
628
  (() => {
687
629
  __webpack_require__.d = (exports, definition) => {
@@ -706,45 +648,40 @@ __webpack_require__.r = (exports) => {
706
648
  Object.defineProperty(exports, '__esModule', { value: true });
707
649
  };
708
650
  })();
709
- /************************************************************************/
710
651
  var __webpack_exports__ = {};
711
652
  // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
712
653
  (() => {
713
-
714
- /*!********************************!*\
715
- !*** ./src/utilities/index.ts ***!
716
- \********************************/
717
654
  __webpack_require__.r(__webpack_exports__);
718
655
  __webpack_require__.d(__webpack_exports__, {
719
- cast: () => (/* reexport safe */ _objects__WEBPACK_IMPORTED_MODULE_3__.cast),
720
- clone: () => (/* reexport safe */ _objects__WEBPACK_IMPORTED_MODULE_3__.clone),
721
- combineQueryOptionsCollections: () => (/* reexport safe */ _queryOptionsCollection__WEBPACK_IMPORTED_MODULE_7__.combineQueryOptionsCollections),
722
- fastHash: () => (/* reexport safe */ _strings__WEBPACK_IMPORTED_MODULE_1__.fastHash),
723
- hash: () => (/* reexport safe */ _strings__WEBPACK_IMPORTED_MODULE_1__.hash),
724
- isDate: () => (/* reexport safe */ _dates__WEBPACK_IMPORTED_MODULE_2__.isDate),
725
- isNodeRuntime: () => (/* reexport safe */ _runtime__WEBPACK_IMPORTED_MODULE_4__.isNodeRuntime),
726
- logger: () => (/* reexport safe */ _logger__WEBPACK_IMPORTED_MODULE_11__.logger),
727
- noop: () => (/* reexport safe */ _functions__WEBPACK_IMPORTED_MODULE_9__.noop),
728
- resolveBulkPersistChanges: () => (/* reexport safe */ _replication__WEBPACK_IMPORTED_MODULE_6__.resolveBulkPersistChanges),
729
- stringifyObject: () => (/* reexport safe */ _strings__WEBPACK_IMPORTED_MODULE_1__.stringifyObject),
730
- toEventArray: () => (/* reexport safe */ _dbPluginEventUtils__WEBPACK_IMPORTED_MODULE_8__.toEventArray),
731
- toMap: () => (/* reexport safe */ _arrays__WEBPACK_IMPORTED_MODULE_0__.toMap),
732
- unsafeCast: () => (/* reexport safe */ _unsafeCast__WEBPACK_IMPORTED_MODULE_10__.unsafeCast),
733
- uuid: () => (/* reexport safe */ _uuid__WEBPACK_IMPORTED_MODULE_5__.uuid),
734
- uuidv4: () => (/* reexport safe */ _uuid__WEBPACK_IMPORTED_MODULE_5__.uuidv4)
656
+ cast: () => (/* reexport safe */ _objects__rspack_import_3.cast),
657
+ clone: () => (/* reexport safe */ _objects__rspack_import_3.clone),
658
+ combineQueryOptionsCollections: () => (/* reexport safe */ _queryOptionsCollection__rspack_import_7.combineQueryOptionsCollections),
659
+ fastHash: () => (/* reexport safe */ _strings__rspack_import_1.fastHash),
660
+ hash: () => (/* reexport safe */ _strings__rspack_import_1.hash),
661
+ isDate: () => (/* reexport safe */ _dates__rspack_import_2.isDate),
662
+ isNodeRuntime: () => (/* reexport safe */ _runtime__rspack_import_4.isNodeRuntime),
663
+ logger: () => (/* reexport safe */ _logger__rspack_import_11.logger),
664
+ noop: () => (/* reexport safe */ _functions__rspack_import_9.noop),
665
+ resolveBulkPersistChanges: () => (/* reexport safe */ _replication__rspack_import_6.resolveBulkPersistChanges),
666
+ stringifyObject: () => (/* reexport safe */ _strings__rspack_import_1.stringifyObject),
667
+ toEventArray: () => (/* reexport safe */ _dbPluginEventUtils__rspack_import_8.toEventArray),
668
+ toMap: () => (/* reexport safe */ _arrays__rspack_import_0.toMap),
669
+ unsafeCast: () => (/* reexport safe */ _unsafeCast__rspack_import_10.unsafeCast),
670
+ uuid: () => (/* reexport safe */ _uuid__rspack_import_5.uuid),
671
+ uuidv4: () => (/* reexport safe */ _uuid__rspack_import_5.uuidv4)
735
672
  });
736
- /* ESM import */var _arrays__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrays */ "./src/utilities/arrays.ts");
737
- /* ESM import */var _strings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./strings */ "./src/utilities/strings.ts");
738
- /* ESM import */var _dates__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dates */ "./src/utilities/dates.ts");
739
- /* ESM import */var _objects__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./objects */ "./src/utilities/objects.ts");
740
- /* ESM import */var _runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./runtime */ "./src/utilities/runtime.ts");
741
- /* ESM import */var _uuid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./uuid */ "./src/utilities/uuid.ts");
742
- /* ESM import */var _replication__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./replication */ "./src/utilities/replication.ts");
743
- /* ESM import */var _queryOptionsCollection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./queryOptionsCollection */ "./src/utilities/queryOptionsCollection.ts");
744
- /* ESM import */var _dbPluginEventUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./dbPluginEventUtils */ "./src/utilities/dbPluginEventUtils.ts");
745
- /* ESM import */var _functions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./functions */ "./src/utilities/functions.ts");
746
- /* ESM import */var _unsafeCast__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./unsafeCast */ "./src/utilities/unsafeCast.ts");
747
- /* ESM import */var _logger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./logger */ "./src/utilities/logger.ts");
673
+ /* import */ var _arrays__rspack_import_0 = __webpack_require__("./src/utilities/arrays.ts");
674
+ /* import */ var _strings__rspack_import_1 = __webpack_require__("./src/utilities/strings.ts");
675
+ /* import */ var _dates__rspack_import_2 = __webpack_require__("./src/utilities/dates.ts");
676
+ /* import */ var _objects__rspack_import_3 = __webpack_require__("./src/utilities/objects.ts");
677
+ /* import */ var _runtime__rspack_import_4 = __webpack_require__("./src/utilities/runtime.ts");
678
+ /* import */ var _uuid__rspack_import_5 = __webpack_require__("./src/utilities/uuid.ts");
679
+ /* import */ var _replication__rspack_import_6 = __webpack_require__("./src/utilities/replication.ts");
680
+ /* import */ var _queryOptionsCollection__rspack_import_7 = __webpack_require__("./src/utilities/queryOptionsCollection.ts");
681
+ /* import */ var _dbPluginEventUtils__rspack_import_8 = __webpack_require__("./src/utilities/dbPluginEventUtils.ts");
682
+ /* import */ var _functions__rspack_import_9 = __webpack_require__("./src/utilities/functions.ts");
683
+ /* import */ var _unsafeCast__rspack_import_10 = __webpack_require__("./src/utilities/unsafeCast.ts");
684
+ /* import */ var _logger__rspack_import_11 = __webpack_require__("./src/utilities/logger.ts");
748
685
 
749
686
 
750
687