@andrew_l/mongo-transaction 0.2.16 → 0.2.17

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 (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # Mongo Transaction Toolkit <!-- omit in toc -->
1
+ # Mongo Transaction Toolkit
2
2
 
3
- ![license](https://img.shields.io/npm/l/%40andrew_l%2Fmongo-transaction) <!-- omit in toc -->
4
- ![npm version](https://img.shields.io/npm/v/%40andrew_l%2Fmongo-transaction) <!-- omit in toc -->
5
- ![npm bundle size](https://img.shields.io/bundlephobia/minzip/%40andrew_l%2Fmongo-transaction) <!-- omit in toc -->
3
+ ![license](https://img.shields.io/npm/l/%40andrew_l%2Fmongo-transaction)
4
+ ![npm version](https://img.shields.io/npm/v/%40andrew_l%2Fmongo-transaction)
5
+ ![npm bundle size](https://img.shields.io/bundlephobia/minzip/%40andrew_l%2Fmongo-transaction)
6
6
 
7
7
  This package solves a common issue with MongoDB's `session.withTransaction`, where the provided function might be executed multiple times due to retries. This can create challenges for managing side effects that need to be rolled back consistently during transaction retries or failures.
8
8
 
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@andrew_l/mongo-transaction",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
+ "description": "Manages side effects in MongoDB transactions, rollback on failure and preventing duplicates on retries.",
4
5
  "license": "MIT",
5
6
  "type": "module",
6
7
  "keywords": [
@@ -37,8 +38,8 @@
37
38
  "vitest": "^2.1.3"
38
39
  },
39
40
  "dependencies": {
40
- "@andrew_l/context": "0.2.16",
41
- "@andrew_l/toolkit": "0.2.16"
41
+ "@andrew_l/context": "0.2.17",
42
+ "@andrew_l/toolkit": "0.2.17"
42
43
  },
43
44
  "peerDependencies": {
44
45
  "mongodb": "^5 || ^6"