diff --git a/samples/webApi/expressjs-with-esdb/package-lock.json b/samples/webApi/expressjs-with-esdb/package-lock.json index 44af6e09..e9954183 100644 --- a/samples/webApi/expressjs-with-esdb/package-lock.json +++ b/samples/webApi/expressjs-with-esdb/package-lock.json @@ -9,10 +9,10 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@event-driven-io/emmett": "0.23.0-alpha.10", - "@event-driven-io/emmett-esdb": "0.23.0-alpha.10", - "@event-driven-io/emmett-expressjs": "0.23.0-alpha.10", - "@event-driven-io/emmett-testcontainers": "0.23.0-alpha.10" + "@event-driven-io/emmett": "0.23.0-alpha.12", + "@event-driven-io/emmett-esdb": "0.23.0-alpha.12", + "@event-driven-io/emmett-expressjs": "0.23.0-alpha.12", + "@event-driven-io/emmett-testcontainers": "0.23.0-alpha.12" }, "devDependencies": { "@types/node": "20.11.30", @@ -513,9 +513,9 @@ } }, "node_modules/@event-driven-io/emmett": { - "version": "0.23.0-alpha.10", - "resolved": "https://registry.npmjs.org/@event-driven-io/emmett/-/emmett-0.23.0-alpha.10.tgz", - "integrity": "sha512-N3FdRsMcTe8RqqAhtFemjkk4gxow6EewLaLhoXkf0HKtl4jb+7qN0FtgzAiYJYx9A8GsrbpKfAdbc+P2lJJLbA==", + "version": "0.23.0-alpha.12", + "resolved": "https://registry.npmjs.org/@event-driven-io/emmett/-/emmett-0.23.0-alpha.12.tgz", + "integrity": "sha512-P31Rm9QGE+uxWKoXEQ8y0TtKTLwvCUioQr6HckFmUxb0RF7aN/Zw5/SUVXWdT1qPLU1t3suD/+lzeU3S+HeT6A==", "bin": { "emmett": "dist/cli.js" }, @@ -530,20 +530,20 @@ } }, "node_modules/@event-driven-io/emmett-esdb": { - "version": "0.23.0-alpha.10", - "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-esdb/-/emmett-esdb-0.23.0-alpha.10.tgz", - "integrity": "sha512-wvxdpZjqg/0WGs9wqfip3VtS9UHaxXP5ljS/FgBFPI3igRryLE8vHFCnL1pMvX6orAbtbzWtPakaWEikg54D/A==", + "version": "0.23.0-alpha.12", + "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-esdb/-/emmett-esdb-0.23.0-alpha.12.tgz", + "integrity": "sha512-jzKXoWPvu3tAbyQe7Al5bYFqjlgN7PmaBBHKUzD2NcMP8hk0DjWugi1brDKHfj5H+/yGdGqdYRw3s0AsMfePEw==", "peerDependencies": { - "@event-driven-io/emmett": "0.23.0-alpha.10", + "@event-driven-io/emmett": "0.23.0-alpha.12", "@eventstore/db-client": "^6.2.1" } }, "node_modules/@event-driven-io/emmett-expressjs": { - "version": "0.23.0-alpha.10", - "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-expressjs/-/emmett-expressjs-0.23.0-alpha.10.tgz", - "integrity": "sha512-XPmUJh5vrShmYLjUxr2F8TNipkrdeDVywxV1UUrBB9RmJ515RJ0awD6O4hsphi3t4CQTNh4OQGvqELpSm90d1w==", + "version": "0.23.0-alpha.12", + "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-expressjs/-/emmett-expressjs-0.23.0-alpha.12.tgz", + "integrity": "sha512-czraNb7l2CmjPH1bpGxV9TfAfRo0JFpflabWECv9V6HAFOL96GVbdAJB+XvEvfQZcxElJyi8mQSUYwQRVhjWZA==", "peerDependencies": { - "@event-driven-io/emmett": "0.23.0-alpha.10", + "@event-driven-io/emmett": "0.23.0-alpha.12", "@types/express": "^4.17.21", "@types/supertest": "^6.0.2", "express": "^4.19.2", @@ -553,11 +553,11 @@ } }, "node_modules/@event-driven-io/emmett-testcontainers": { - "version": "0.23.0-alpha.10", - "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-testcontainers/-/emmett-testcontainers-0.23.0-alpha.10.tgz", - "integrity": "sha512-uhpUQZLaY4+NEVPnUrUbLdF+LNyx6bJhcecQr4CBjh1j00Y6IGYMJpQ7lmKqqm0hfylo5BQd+oTiCtV3oLjKCw==", + "version": "0.23.0-alpha.12", + "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-testcontainers/-/emmett-testcontainers-0.23.0-alpha.12.tgz", + "integrity": "sha512-m9QflY4Q6/rW4NsjutWiqnj2SzOm9VwGfNRnqBJrD0/wX1EigG/ayeDWilj+Mq4/DMWvRV1yXrc/HYP8J/KryQ==", "dependencies": { - "@event-driven-io/emmett": "0.23.0-alpha.10", + "@event-driven-io/emmett": "0.23.0-alpha.12", "testcontainers": "^10.12.0" } }, diff --git a/samples/webApi/expressjs-with-esdb/package.json b/samples/webApi/expressjs-with-esdb/package.json index 21289f52..b8e1f257 100644 --- a/samples/webApi/expressjs-with-esdb/package.json +++ b/samples/webApi/expressjs-with-esdb/package.json @@ -38,10 +38,10 @@ }, "homepage": "https://github.com/event-driven-io/emmett#readme", "dependencies": { - "@event-driven-io/emmett": "0.23.0-alpha.10", - "@event-driven-io/emmett-esdb": "0.23.0-alpha.10", - "@event-driven-io/emmett-expressjs": "0.23.0-alpha.10", - "@event-driven-io/emmett-testcontainers": "0.23.0-alpha.10" + "@event-driven-io/emmett": "0.23.0-alpha.12", + "@event-driven-io/emmett-esdb": "0.23.0-alpha.12", + "@event-driven-io/emmett-expressjs": "0.23.0-alpha.12", + "@event-driven-io/emmett-testcontainers": "0.23.0-alpha.12" }, "devDependencies": { "@types/node": "20.11.30", diff --git a/samples/webApi/expressjs-with-mongodb/package-lock.json b/samples/webApi/expressjs-with-mongodb/package-lock.json index f1a785d7..6119cc7a 100644 --- a/samples/webApi/expressjs-with-mongodb/package-lock.json +++ b/samples/webApi/expressjs-with-mongodb/package-lock.json @@ -9,9 +9,9 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@event-driven-io/emmett": "0.23.0-alpha.10", - "@event-driven-io/emmett-expressjs": "0.23.0-alpha.10", - "@event-driven-io/emmett-mongodb": "0.23.0-alpha.10" + "@event-driven-io/emmett": "0.23.0-alpha.12", + "@event-driven-io/emmett-expressjs": "0.23.0-alpha.12", + "@event-driven-io/emmett-mongodb": "0.23.0-alpha.12" }, "devDependencies": { "@testcontainers/mongodb": "^10.10.3", @@ -506,9 +506,9 @@ } }, "node_modules/@event-driven-io/emmett": { - "version": "0.23.0-alpha.10", - "resolved": "https://registry.npmjs.org/@event-driven-io/emmett/-/emmett-0.23.0-alpha.10.tgz", - "integrity": "sha512-N3FdRsMcTe8RqqAhtFemjkk4gxow6EewLaLhoXkf0HKtl4jb+7qN0FtgzAiYJYx9A8GsrbpKfAdbc+P2lJJLbA==", + "version": "0.23.0-alpha.12", + "resolved": "https://registry.npmjs.org/@event-driven-io/emmett/-/emmett-0.23.0-alpha.12.tgz", + "integrity": "sha512-P31Rm9QGE+uxWKoXEQ8y0TtKTLwvCUioQr6HckFmUxb0RF7aN/Zw5/SUVXWdT1qPLU1t3suD/+lzeU3S+HeT6A==", "bin": { "emmett": "dist/cli.js" }, @@ -523,11 +523,11 @@ } }, "node_modules/@event-driven-io/emmett-expressjs": { - "version": "0.23.0-alpha.10", - "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-expressjs/-/emmett-expressjs-0.23.0-alpha.10.tgz", - "integrity": "sha512-XPmUJh5vrShmYLjUxr2F8TNipkrdeDVywxV1UUrBB9RmJ515RJ0awD6O4hsphi3t4CQTNh4OQGvqELpSm90d1w==", + "version": "0.23.0-alpha.12", + "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-expressjs/-/emmett-expressjs-0.23.0-alpha.12.tgz", + "integrity": "sha512-czraNb7l2CmjPH1bpGxV9TfAfRo0JFpflabWECv9V6HAFOL96GVbdAJB+XvEvfQZcxElJyi8mQSUYwQRVhjWZA==", "peerDependencies": { - "@event-driven-io/emmett": "0.23.0-alpha.10", + "@event-driven-io/emmett": "0.23.0-alpha.12", "@types/express": "^4.17.21", "@types/supertest": "^6.0.2", "express": "^4.19.2", @@ -537,11 +537,11 @@ } }, "node_modules/@event-driven-io/emmett-mongodb": { - "version": "0.23.0-alpha.10", - "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-mongodb/-/emmett-mongodb-0.23.0-alpha.10.tgz", - "integrity": "sha512-Cf5wbYc7ByMHIyxRmZScpxPjHOKye+CfHykOnr0hPTNmWDWJlZqTyQAuU70GlYNyedH7pENdBSv5KS+MrosAUw==", + "version": "0.23.0-alpha.12", + "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-mongodb/-/emmett-mongodb-0.23.0-alpha.12.tgz", + "integrity": "sha512-XXKPWl8ZamD+HEJF8NQmRuRDUTUccO/XdfR2u95dQt0z9IKrPpX6q1C4Vg8uZH65cUjtrWN2poA6HS5UbX2qvw==", "peerDependencies": { - "@event-driven-io/emmett": "0.23.0-alpha.10", + "@event-driven-io/emmett": "0.23.0-alpha.12", "mongodb": "^6.10.0" } }, diff --git a/samples/webApi/expressjs-with-mongodb/package.json b/samples/webApi/expressjs-with-mongodb/package.json index 3bb333cd..2d409a4a 100644 --- a/samples/webApi/expressjs-with-mongodb/package.json +++ b/samples/webApi/expressjs-with-mongodb/package.json @@ -38,9 +38,9 @@ }, "homepage": "https://github.com/event-driven-io/emmett#readme", "dependencies": { - "@event-driven-io/emmett": "0.23.0-alpha.10", - "@event-driven-io/emmett-expressjs": "0.23.0-alpha.10", - "@event-driven-io/emmett-mongodb": "0.23.0-alpha.10" + "@event-driven-io/emmett": "0.23.0-alpha.12", + "@event-driven-io/emmett-expressjs": "0.23.0-alpha.12", + "@event-driven-io/emmett-mongodb": "0.23.0-alpha.12" }, "devDependencies": { "@testcontainers/mongodb": "^10.10.3", diff --git a/samples/webApi/expressjs-with-mongodb/src/shoppingCarts/businessLogic.ts b/samples/webApi/expressjs-with-mongodb/src/shoppingCarts/businessLogic.ts index 1fe770ca..ce5bc278 100644 --- a/samples/webApi/expressjs-with-mongodb/src/shoppingCarts/businessLogic.ts +++ b/samples/webApi/expressjs-with-mongodb/src/shoppingCarts/businessLogic.ts @@ -89,9 +89,9 @@ export const addProductItem = ( shoppingCartId, clientId, productItem, - addedAt: metadata?.now ?? new Date(), + addedAt: metadata.now, }, - metadata: { clientId: metadata!.clientId }, + metadata: { clientId: metadata.clientId }, }; }; @@ -117,9 +117,9 @@ export const removeProductItem = ( data: { shoppingCartId, productItem, - removedAt: metadata?.now ?? new Date(), + removedAt: metadata.now, }, - metadata: { clientId: metadata!.clientId }, + metadata: { clientId: metadata.clientId }, }; }; @@ -144,9 +144,9 @@ export const confirm = ( type: 'ShoppingCartConfirmed', data: { shoppingCartId, - confirmedAt: metadata?.now ?? new Date(), + confirmedAt: metadata.now, }, - metadata: { clientId: metadata!.clientId }, + metadata: { clientId: metadata.clientId }, }; }; @@ -166,9 +166,9 @@ export const cancel = ( type: 'ShoppingCartCancelled', data: { shoppingCartId, - cancelledAt: metadata?.now ?? new Date(), + cancelledAt: metadata.now, }, - metadata: { clientId: metadata!.clientId }, + metadata: { clientId: metadata.clientId }, }; }; diff --git a/samples/webApi/expressjs-with-postgresql/package-lock.json b/samples/webApi/expressjs-with-postgresql/package-lock.json index 9ee7da88..03c8b4fb 100644 --- a/samples/webApi/expressjs-with-postgresql/package-lock.json +++ b/samples/webApi/expressjs-with-postgresql/package-lock.json @@ -9,9 +9,9 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@event-driven-io/emmett": "0.23.0-alpha.10", - "@event-driven-io/emmett-expressjs": "0.23.0-alpha.10", - "@event-driven-io/emmett-postgresql": "0.23.0-alpha.10" + "@event-driven-io/emmett": "0.23.0-alpha.12", + "@event-driven-io/emmett-expressjs": "0.23.0-alpha.12", + "@event-driven-io/emmett-postgresql": "0.23.0-alpha.12" }, "devDependencies": { "@testcontainers/postgresql": "^10.10.3", @@ -528,9 +528,9 @@ } }, "node_modules/@event-driven-io/emmett": { - "version": "0.23.0-alpha.10", - "resolved": "https://registry.npmjs.org/@event-driven-io/emmett/-/emmett-0.23.0-alpha.10.tgz", - "integrity": "sha512-N3FdRsMcTe8RqqAhtFemjkk4gxow6EewLaLhoXkf0HKtl4jb+7qN0FtgzAiYJYx9A8GsrbpKfAdbc+P2lJJLbA==", + "version": "0.23.0-alpha.12", + "resolved": "https://registry.npmjs.org/@event-driven-io/emmett/-/emmett-0.23.0-alpha.12.tgz", + "integrity": "sha512-P31Rm9QGE+uxWKoXEQ8y0TtKTLwvCUioQr6HckFmUxb0RF7aN/Zw5/SUVXWdT1qPLU1t3suD/+lzeU3S+HeT6A==", "bin": { "emmett": "dist/cli.js" }, @@ -545,11 +545,11 @@ } }, "node_modules/@event-driven-io/emmett-expressjs": { - "version": "0.23.0-alpha.10", - "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-expressjs/-/emmett-expressjs-0.23.0-alpha.10.tgz", - "integrity": "sha512-XPmUJh5vrShmYLjUxr2F8TNipkrdeDVywxV1UUrBB9RmJ515RJ0awD6O4hsphi3t4CQTNh4OQGvqELpSm90d1w==", + "version": "0.23.0-alpha.12", + "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-expressjs/-/emmett-expressjs-0.23.0-alpha.12.tgz", + "integrity": "sha512-czraNb7l2CmjPH1bpGxV9TfAfRo0JFpflabWECv9V6HAFOL96GVbdAJB+XvEvfQZcxElJyi8mQSUYwQRVhjWZA==", "peerDependencies": { - "@event-driven-io/emmett": "0.23.0-alpha.10", + "@event-driven-io/emmett": "0.23.0-alpha.12", "@types/express": "^4.17.21", "@types/supertest": "^6.0.2", "express": "^4.19.2", @@ -559,11 +559,11 @@ } }, "node_modules/@event-driven-io/emmett-postgresql": { - "version": "0.23.0-alpha.10", - "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-postgresql/-/emmett-postgresql-0.23.0-alpha.10.tgz", - "integrity": "sha512-cU0QmptGb65cY90oNwccR+9RbmZB13Fg/dRvjO+MOx9PXJZdRYXJmH0A2/czbebhD+NAw8KGWbWVNscWxg5NpA==", + "version": "0.23.0-alpha.12", + "resolved": "https://registry.npmjs.org/@event-driven-io/emmett-postgresql/-/emmett-postgresql-0.23.0-alpha.12.tgz", + "integrity": "sha512-mZbYPf3jJd/XQ8PsrlTZ0pU+zq4CN3ORaXggqcY8HvynM9FRcdthALiDRi8oKHpaREqftv/ynAvc4AygkZfaag==", "peerDependencies": { - "@event-driven-io/emmett": "0.23.0-alpha.10", + "@event-driven-io/emmett": "0.23.0-alpha.12", "@event-driven-io/pongo": "0.16.4" } }, diff --git a/samples/webApi/expressjs-with-postgresql/package.json b/samples/webApi/expressjs-with-postgresql/package.json index 79565cd6..fbf2ad7d 100644 --- a/samples/webApi/expressjs-with-postgresql/package.json +++ b/samples/webApi/expressjs-with-postgresql/package.json @@ -38,9 +38,9 @@ }, "homepage": "https://github.com/event-driven-io/emmett#readme", "dependencies": { - "@event-driven-io/emmett": "0.23.0-alpha.10", - "@event-driven-io/emmett-expressjs": "0.23.0-alpha.10", - "@event-driven-io/emmett-postgresql": "0.23.0-alpha.10" + "@event-driven-io/emmett": "0.23.0-alpha.12", + "@event-driven-io/emmett-expressjs": "0.23.0-alpha.12", + "@event-driven-io/emmett-postgresql": "0.23.0-alpha.12" }, "devDependencies": { "@testcontainers/postgresql": "^10.10.3", diff --git a/samples/webApi/expressjs-with-postgresql/src/shoppingCarts/businessLogic.ts b/samples/webApi/expressjs-with-postgresql/src/shoppingCarts/businessLogic.ts index 1fe770ca..ce5bc278 100644 --- a/samples/webApi/expressjs-with-postgresql/src/shoppingCarts/businessLogic.ts +++ b/samples/webApi/expressjs-with-postgresql/src/shoppingCarts/businessLogic.ts @@ -89,9 +89,9 @@ export const addProductItem = ( shoppingCartId, clientId, productItem, - addedAt: metadata?.now ?? new Date(), + addedAt: metadata.now, }, - metadata: { clientId: metadata!.clientId }, + metadata: { clientId: metadata.clientId }, }; }; @@ -117,9 +117,9 @@ export const removeProductItem = ( data: { shoppingCartId, productItem, - removedAt: metadata?.now ?? new Date(), + removedAt: metadata.now, }, - metadata: { clientId: metadata!.clientId }, + metadata: { clientId: metadata.clientId }, }; }; @@ -144,9 +144,9 @@ export const confirm = ( type: 'ShoppingCartConfirmed', data: { shoppingCartId, - confirmedAt: metadata?.now ?? new Date(), + confirmedAt: metadata.now, }, - metadata: { clientId: metadata!.clientId }, + metadata: { clientId: metadata.clientId }, }; }; @@ -166,9 +166,9 @@ export const cancel = ( type: 'ShoppingCartCancelled', data: { shoppingCartId, - cancelledAt: metadata?.now ?? new Date(), + cancelledAt: metadata.now, }, - metadata: { clientId: metadata!.clientId }, + metadata: { clientId: metadata.clientId }, }; };