Commit b32c6e4
committed
feat: quality pass — logger, RPC retries, asyncapi resilience, docs
Core:
- Pluggable MqttLogger replaces internal console.* (drain timeout,
validation, metric/error handler crashes); consoleLogger default,
noopLogger for silence, app.getLogger() for plugins.
- app.request() gains retries / retryDelay; only retries on
RpcTimeoutError so non-idempotent commands aren't multiplied.
- parseSharedSubscription() rejects NUL bytes, empty group, all-slash
filter, and misplaced + / # wildcards.
- Export MqttPacket type alias with usage notes.
AsyncAPI:
- listen() errors wrap host:port; long-lived error listener attached
after startup; startup log routed through app.getLogger().
- New test suites: builder, handlers, plugin, yaml.
zod:
- peerDependencies now declares @mqttkit/core (closes silent
cross-version installs).
tsconfig:
- noImplicitOverride enabled.
Docs:
- New Logger guide (en + zh) under Production sidebar section.
- RPC page rewritten — documents retries/retryDelay, RpcTimeoutError,
idempotency caveat, and the deliberate choice not to bundle p-retry.
- New custom-logger example + docs page.
- RPC example gains a flaky-downstream retry demo.
- Inlined CHANGELOG body into docs/changelog.md (drops root CHANGELOG).
Release tooling:
- scripts/publish.mjs now diffs local vs npm version per package,
auto-skips in-sync packages, refuses to publish when local < npm,
and adds --check / --force flags. New publish:status npm script
(avoids bun's prepublish:check lifecycle clash).
Versions: @mqttkit/core 0.2.1 → 0.2.2, @mqttkit/asyncapi 0.2.0 → 0.2.1,
@mqttkit/zod 0.1.0 → 0.1.1. aedes and typebox unchanged.1 parent 82e9ce2 commit b32c6e4
42 files changed
Lines changed: 1885 additions & 213 deletions
File tree
- docs
- .vitepress
- examples
- zh
- examples
- examples
- custom-logger
- src
- rpc/src
- packages
- asyncapi
- src
- core
- src
- zod
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
63 | 123 | | |
64 | 124 | | |
65 | 125 | | |
| |||
89 | 149 | | |
90 | 150 | | |
91 | 151 | | |
92 | | - | |
| 152 | + | |
93 | 153 | | |
94 | 154 | | |
95 | 155 | | |
| |||
103 | 163 | | |
104 | 164 | | |
105 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
63 | 122 | | |
64 | 123 | | |
65 | 124 | | |
| |||
89 | 148 | | |
90 | 149 | | |
91 | 150 | | |
92 | | - | |
| 151 | + | |
93 | 152 | | |
94 | 153 | | |
95 | 154 | | |
| |||
103 | 162 | | |
104 | 163 | | |
105 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments