@andrew_l/service-actor 0.2.18 → 0.2.19

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 +8 -3
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Service Actor Toolkit
2
2
 
3
- ![license](https://img.shields.io/npm/l/%40andrew_l%2Fservice-actor)
4
- ![npm version](https://img.shields.io/npm/v/%40andrew_l%2Fservice-actor)
5
- ![npm bundle size](https://img.shields.io/bundlephobia/minzip/%40andrew_l%2Fservice-actor)
3
+ [![npm version][npm-version-src]][npm-version-href]
4
+ ![license][license-src]
6
5
 
7
6
  The package is designed to help manage contextual data, such as trace IDs, across functions without explicitly passing them around. This allows you to easily track and manage contexts (like user actions or requests) while keeping your code clean and decoupled from context-passing logic.
8
7
 
@@ -79,3 +78,9 @@ In this example, the `UserService.updateById` method retrieves the `actor` objec
79
78
  2. **Cleaner Code:** Avoids cluttering your function signatures with unnecessary context arguments.
80
79
  3. **Flexible and Extendable:** Actor objects can be extended with custom methods to suit your application's needs without interfering with the data.
81
80
  4. **Database Safe:** Since the actor is just a plain object, it can be safely stored and used in database queries.
81
+
82
+ <!-- Badges -->
83
+
84
+ [npm-version-src]: https://img.shields.io/npm/v/@andrew_l/service-actor?style=flat
85
+ [npm-version-href]: https://npmjs.com/package/@andrew_l/service-actor
86
+ [license-src]: https://img.shields.io/npm/l/@andrew_l/service-actor?style=flat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrew_l/service-actor",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "Forget about passing data like trace IDs between functions.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -34,8 +34,8 @@
34
34
  "vitest": "^2.1.3"
35
35
  },
36
36
  "dependencies": {
37
- "@andrew_l/context": "0.2.18",
38
- "@andrew_l/toolkit": "0.2.18"
37
+ "@andrew_l/context": "0.2.19",
38
+ "@andrew_l/toolkit": "0.2.19"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "unbuild",