Repository navigation
๐ฆ NPM @5.3.1
โ๏ธ Packosphere @5.3.1
Major changes
none
Other Changes
Added
- โจ
mail-time/presetsandmail-time/adapters/{mongo,redis,postgres}gained arequirecondition, so CJS consumers and TypeScript projects without"type": "module"resolve the subpaths.
Fixed
- ๐ซ Standalone Redis:
push()runs behind the same per-client serialization asupdate(),cancel()andremove(). Two servers could claim and send the same row twice. - ๐ซ Standalone Redis:
remove()deletes theconcatletterpointer only while it names the removed row. LaterconcatEmailscalls append instead of creating new rows. - ๐ซ Standalone Redis: a
WatchErrorfromexec()returnsfalsewithout an[ERROR]log line. - ๐ซ Redis with
useHashTags: true:cancel()retries up to three times when the row changes between read and Lua script. Before, it returnedfalse. - ๐ PostgreSQL with a
pg.Pool: setup holds one connection forpg_advisory_lock, the DDL andpg_advisory_unlock. Before, the unlock could run on another connection and block peers with the sameprefixat startup. - ๐ PostgreSQL: a failed setup no longer blocks later calls. The next
ready()retries it. - ๐ PostgreSQL: pool detection accepts a constructor name ending in
Pool(BoundPool). - ๐ง
strategy: 'backup': the scheduler re-probes a quarantined primary once its backoff elapses. Before, no row selected it, so sends stayed on the backup after the primary recovered. - ๐ง Transport verification: a background re-probe that reaches
verifyTimeoutreleases its slot and counts as a failed attempt. Before, averify()that never settled kept the transport quarantined for the process lifetime. - ๐ง
recipientPolicies:sendMail()accepts group-syntaxto,ccandbccwhenenvelope.tois explicit, as 5.2.1 did. - ๐ง
recipientPolicies: aserverconstructor validatestransport.options.mailOptions.fromandtransport._options.mailOptions.from. Before, these failed every letter at send time. - ๐ง
adapters/blank-example.js: removed a call to the undefined__ensurePrefixhelper. - ๐ง Types:
RedisQueueOption.clientaccepts a standalonecreateClient()instance.MongoQueueOption.dbaccepts themongodbDbwithout a cast.PostgresClientdeclaresconnectandtotalCount.
Docs
- ๐ New
docs/transport-verification.mdand a "Completion writes and drain" section indocs/tuning.md. - ๐ Shutdown recipe uses
destroy({ drain: true }). The olddestroy()followed bydrain()aborted completion writes and re-sent in-flight rows. - ๐ Corrected index names, the
sendMail()rejection list andonErrorargument names.docs/queue-api.mddocumentsInfinityas batchopts.limit.