resultar 4.0.0 → 4.0.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.
@@ -91,7 +91,7 @@ accept the same `ResultTaskRunOptions<R>` (`services`, `signal`, `clock`, `sched
91
91
  Deferred scope release errors join the runner's error type (`E | ScopeError<R>` internally).
92
92
  Every runner call starts another execution; there is no public `task.run()` method.
93
93
  See [API details](references/api.md).
94
- For DI, Hono and Fastify, read [services and HTTP scopes](references/services.md). Use
94
+ For DI, Hono, Fastify and NestJS, read [services and HTTP scopes](references/services.md). Use
95
95
  `ResultTask.service<T>()(name)` or DI `Service.require<T>()(name)` for inferred identifiers. Class
96
96
  services support optional `requires` with a factory returning a synchronous value or ResultTask
97
97
  (Promises and thenables are rejected); generator-only `make`
@@ -1,6 +1,6 @@
1
1
  # Typed services and HTTP scopes
2
2
 
3
- Read the installed `resultar-di/README.md`, `resultar-hono/README.md` and `resultar-fastify/README.md` for the exact companion
3
+ Read the installed `resultar-di/README.md`, `resultar-hono/README.md`, `resultar-fastify/README.md` and `resultar-nestjs/README.md` for the exact companion
4
4
  versions. The application DI helpers are `createModule`, `service`, `Service`, and `resource`.
5
5
  Named factory overloads and low-level adapter access use the same `resultar-di` entry point.
6
6
  The former `/advanced` subpath has been removed; migrate existing imports to `resultar-di`.
@@ -96,7 +96,7 @@ explicit callers/runners and cannot be substituted by a return-type annotation a
96
96
 
97
97
  ## Framework DI exports
98
98
 
99
- `resultar-fastify` and `resultar-hono` reexport the application DI helpers: `createModule`, `Service`,
99
+ `resultar-fastify`, `resultar-hono` and `resultar-nestjs` reexport the application DI helpers: `createModule`, `Service`,
100
100
  `service`, `resource`, plus `HttpApplication`, `ServiceClass`, `ServiceLifetime`, `ServiceModule`
101
101
  and `ServiceScope` types. In framework-specific code, import these from the adapter together
102
102
  with its integration helpers. Core APIs such as `ResultTask` still come from `resultar`.
@@ -106,10 +106,10 @@ with older versions.
106
106
 
107
107
  ## Runnable HTTP examples
108
108
 
109
- The maintained Fastify and Hono examples each contain their own `services.ts`, `routes.ts`
109
+ The maintained Fastify, Hono and NestJS examples each contain their own `services.ts`, `routes.ts`
110
110
  and `main.ts`. `services.ts` declares `Cache`, `UsersRepository` and `Users` classes,
111
111
  function-based `Health`, and the `createServices` module factory. `main.ts` omits
112
112
  `bindings` and owns framework typing and startup. The default request view includes all
113
113
  registered services, including the cache and repository. Do not introduce
114
114
  a shared package, separate `users.ts` or an extra `app.ts` for these small examples.
115
- Start either example with `pnpm dev` from its directory; `PORT` defaults to 3000.
115
+ Start any of these examples with `pnpm dev` from its directory; `PORT` defaults to 3000.
@@ -3,8 +3,9 @@
3
3
  "resultar-di": "1.0.0",
4
4
  "resultar-fastify": "1.0.0",
5
5
  "resultar-hono": "1.0.0",
6
+ "resultar-nestjs": "1.0.0",
6
7
  "resultar-request": "1.0.0",
7
8
  "resultar-request-typebox": "1.0.0",
8
9
  "resultar-request-zod": "1.0.0",
9
- "resultar": "4.0.0"
10
+ "resultar": "4.0.1"
10
11
  }
package/dist/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # Resultar 4.0.0
1
+ # Resultar 4.0.1
2
2
 
3
3
  Documentation bundled with this package version. Installed declarations remain authoritative.
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resultar",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Result pattern for TypeScript",
5
5
  "keywords": [
6
6
  "error-handling",