@bymax-one/nest-queue 1.2.5 → 1.2.6
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/CHANGELOG.md +26 -1
- package/README.md +6 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,30 @@ versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
+
## [1.2.6] — 2026-10-31
|
|
15
|
+
|
|
16
|
+
No action required: behaviour, the public API, the types and the peer ranges are unchanged.
|
|
17
|
+
Measured with `diff -r` of a fresh build against the unpacked 1.2.5 tarball, `dist/` is identical;
|
|
18
|
+
the package otherwise changes in `README.md`, this file and the version in `package.json`.
|
|
19
|
+
|
|
20
|
+
### Documentation
|
|
21
|
+
|
|
22
|
+
- **The README Quick Start now shows where `EmailService` and the processor are registered.** The
|
|
23
|
+
`AppModule` snippet imports an `EmailModule` that lists both as providers, so a reader who copies
|
|
24
|
+
the snippets in order ends with a module graph that resolves, instead of a service no module provides
|
|
25
|
+
and a processor module the root never imports.
|
|
26
|
+
|
|
27
|
+
### Tests
|
|
28
|
+
|
|
29
|
+
- **The README Quick Start now runs.** A spec boots a Nest application context from the module
|
|
30
|
+
options, the `QueueService` enqueue and the `@Processor` / `@Process` handler copied from the
|
|
31
|
+
README (handler body aside), with BullMQ and ioredis replaced by in-memory doubles, and asserts
|
|
32
|
+
the job the service enqueues is the job the decorated handler receives. The snippet gate only
|
|
33
|
+
compiles the README; this executes it, so a wrong argument shape or an unresolved dependency fails
|
|
34
|
+
a test.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
14
38
|
## [1.2.5] — 2026-10-31
|
|
15
39
|
|
|
16
40
|
No action required: behaviour, the public API, the types and the peer ranges are unchanged.
|
|
@@ -678,7 +702,8 @@ v6 peer range.
|
|
|
678
702
|
|
|
679
703
|
---
|
|
680
704
|
|
|
681
|
-
[Unreleased]: https://github.com/bymaxone/nest-queue/compare/v1.2.
|
|
705
|
+
[Unreleased]: https://github.com/bymaxone/nest-queue/compare/v1.2.6...HEAD
|
|
706
|
+
[1.2.6]: https://github.com/bymaxone/nest-queue/compare/v1.2.5...v1.2.6
|
|
682
707
|
[1.2.5]: https://github.com/bymaxone/nest-queue/compare/v1.2.4...v1.2.5
|
|
683
708
|
[1.2.4]: https://github.com/bymaxone/nest-queue/compare/v1.2.3...v1.2.4
|
|
684
709
|
[1.2.3]: https://github.com/bymaxone/nest-queue/compare/v1.2.2...v1.2.3
|
package/README.md
CHANGED
|
@@ -168,6 +168,7 @@ Wire the module in your root `AppModule`:
|
|
|
168
168
|
```typescript
|
|
169
169
|
import { Module } from '@nestjs/common'
|
|
170
170
|
import { BymaxQueueModule } from '@bymax-one/nest-queue'
|
|
171
|
+
import { EmailModule } from './email.module'
|
|
171
172
|
|
|
172
173
|
@Module({
|
|
173
174
|
imports: [
|
|
@@ -175,6 +176,7 @@ import { BymaxQueueModule } from '@bymax-one/nest-queue'
|
|
|
175
176
|
connection: { url: process.env.REDIS_URL ?? 'redis://localhost:6379' },
|
|
176
177
|
isGlobal: true,
|
|
177
178
|
}),
|
|
179
|
+
EmailModule,
|
|
178
180
|
],
|
|
179
181
|
})
|
|
180
182
|
export class AppModule {}
|
|
@@ -213,14 +215,16 @@ export class EmailProcessor {
|
|
|
213
215
|
}
|
|
214
216
|
```
|
|
215
217
|
|
|
216
|
-
Register the processor in
|
|
218
|
+
Register the service and the processor in a feature module that `AppModule` imports, like the `EmailModule`
|
|
219
|
+
imported above. `isGlobal: true` above makes `QueueService` injectable there without importing `BymaxQueueModule` again:
|
|
217
220
|
|
|
218
221
|
```typescript
|
|
219
222
|
import { Module } from '@nestjs/common'
|
|
220
223
|
import { EmailProcessor } from './email.processor'
|
|
224
|
+
import { EmailService } from './email.service'
|
|
221
225
|
|
|
222
226
|
@Module({
|
|
223
|
-
providers: [EmailProcessor],
|
|
227
|
+
providers: [EmailService, EmailProcessor],
|
|
224
228
|
})
|
|
225
229
|
export class EmailModule {}
|
|
226
230
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bymax-one/nest-queue",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "NestJS dynamic module wrapping BullMQ — typed jobs, flows, job schedulers, deduplication, OpenTelemetry, graceful shutdown",
|
|
5
5
|
"author": "Bymax One <support@bymax.one>",
|
|
6
6
|
"license": "MIT",
|