@event-driven-io/emmett-mongodb 0.34.0 → 0.35.0-alpha.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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // ../emmett/dist/chunk-4E7QLAH5.js
1
+ // ../emmett/dist/chunk-BQYVGGNE.js
2
2
  var isNumber = (val) => typeof val === "number" && val === val;
3
3
  var isString = (val) => typeof val === "string";
4
4
  var isErrorConstructor = (expect) => {
@@ -34,6 +34,7 @@ import { v4 as uuid2 } from "uuid";
34
34
  import { v4 as uuid } from "uuid";
35
35
  import { TransformStream as TransformStream2 } from "web-streams-polyfill";
36
36
  import retry from "async-retry";
37
+ import { v7 as uuid4 } from "uuid";
37
38
  import { ReadableStream } from "web-streams-polyfill";
38
39
  import "web-streams-polyfill";
39
40
  import { TransformStream as TransformStream3 } from "web-streams-polyfill";
@@ -417,7 +418,7 @@ function assertOk(obj, message2) {
417
418
  import {
418
419
  MongoClient as MongoClient2
419
420
  } from "mongodb";
420
- import { v4 as uuid4 } from "uuid";
421
+ import { v4 as uuid5 } from "uuid";
421
422
 
422
423
  // src/eventStore/projections/mongoDBInlineProjection.ts
423
424
  var MongoDBDefaultInlineProjectionName = "_default";
@@ -776,7 +777,7 @@ var MongoDBEventStoreImplementation = class {
776
777
  let streamOffset = currentStreamVersion;
777
778
  const eventsToAppend = events.map((event) => {
778
779
  const metadata = {
779
- messageId: uuid4(),
780
+ messageId: uuid5(),
780
781
  streamName,
781
782
  streamPosition: ++streamOffset
782
783
  };