Skip to content

Update dependency @monque/core to ^1.7.0#287

Closed
renovate[bot] wants to merge 1 commit intomainfrom
renovate/monque-(non-major)
Closed

Update dependency @monque/core to ^1.7.0#287
renovate[bot] wants to merge 1 commit intomainfrom
renovate/monque-(non-major)

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 19, 2026

This PR contains the following updates:

Package Change Age Confidence
@monque/core (source) ^1.6.0^1.7.0 age confidence

Release Notes

ueberBrot/monque (@​monque/core)

v1.7.0

Compare Source

Minor Changes
  • #​249 2c7c079 Thanks @​ueberBrot! - Add deprecation console warning for defaultConcurrency and maxConcurrency options.

  • #​260 c11798b Thanks @​ueberBrot! - Parallelized job acquisition in the poll loop using Promise.allSettled to lower wall-clock acquisition latency / reduce serialized DB waits (fans out one findOneAndUpdate per free slot).

Patch Changes
  • #​269 cb707b9 Thanks @​ueberBrot! - Validate job names and unique keys at the public API boundary so invalid identifiers fail fast before reaching MongoDB operations.

  • #​266 9c75d1c Thanks @​ueberBrot! - Fix .then() to .finally() in executePollAndScheduleNext to ensure the next poll is always scheduled, even if scheduleNextPoll throws. This prevents silently swallowed rejections when the callback in .then() throws.

  • #​258 218d398 Thanks @​ueberBrot! - Replace getActiveJobs() array allocation with getActiveJobCount() in shutdown path. The previous implementation created a throw-away string[] on every call just to check .length. The new method returns a count directly using Map.size, avoiding unnecessary array allocations during shutdown polling.

  • #​259 b0babc4 Thanks @​ueberBrot! - Replace the O(workers) iteration in getTotalActiveJobs() with an O(1) counter that updates on job acquisition and completion.

  • #​263 a30186f Thanks @​ueberBrot! - Add compound index for job retention to avoid collection scan during cleanup

  • #​264 c2b046e Thanks @​ueberBrot! - Deduplicate new Date() calls in update operations. Instead of creating multiple new Date() instances milliseconds apart within the same logical operation, methods like cancelJob, retryJob, and completeJob now capture a single const now = new Date() and reuse it for all timestamp fields, ensuring consistent timestamps.

  • #​265 79300c0 Thanks @​ueberBrot! - Optimize cancelJob, retryJob, and rescheduleJob by removing redundant findOne pre-checks. These operations now use an optimistic findOneAndUpdate first, reducing database round-trips for the common happy paths.

  • #​262 1b6e29f Thanks @​ueberBrot! - Removed redundant $unset operations for heartbeatInterval on job completion/failure to improve performance and retain observability metadata.

  • #​257 d71049d Thanks @​ueberBrot! - Replace the setInterval(100) busy-loop in stop() with a reactive drain promise that resolves instantly when all active jobs finish.

  • #​267 965f8aa Thanks @​ueberBrot! - Set maxListeners to 20 on Monque EventEmitter to prevent memory leaks in long-running processes.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@changeset-bot
Copy link

changeset-bot bot commented Mar 19, 2026

⚠️ No Changeset found

Latest commit: 653d794

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link

codecov bot commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@8b46884). Learn more about missing BASE report.
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #287   +/-   ##
=======================================
  Coverage        ?   99.54%           
=======================================
  Files           ?       12           
  Lines           ?      220           
  Branches        ?       54           
=======================================
  Hits            ?      219           
  Misses          ?        1           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot force-pushed the renovate/monque-(non-major) branch from db48db4 to 653d794 Compare March 20, 2026 21:11
@ueberBrot ueberBrot closed this Mar 20, 2026
@ueberBrot ueberBrot deleted the renovate/monque-(non-major) branch March 20, 2026 21:11
@renovate
Copy link
Contributor Author

renovate bot commented Mar 20, 2026

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (^1.7.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant