Skip to content

Replace konecty:mongo-counter with inline implementation#6174

Merged
xet7 merged 1 commit intowekan:mainfrom
harryadel:replace-mongo-counter-package
Mar 5, 2026
Merged

Replace konecty:mongo-counter with inline implementation#6174
xet7 merged 1 commit intowekan:mainfrom
harryadel:replace-mongo-counter-package

Conversation

@harryadel
Copy link
Contributor

Summary

  • Removes the konecty:mongo-counter Meteor package dependency
  • Replaces it with a minimal inline incrementCounter function in models/counters.js using raw MongoDB findOneAndUpdate with $inc and upsert
  • Also exports an incrementCounterAsync version to ease future Meteor 3.0 migration (where Fibers/wrapAsync are dropped)
  • No data migration needed — uses the same next_val field in the counters collection

Remove the konecty:mongo-counter Meteor package dependency and replace
it with a minimal inline incrementCounter function using raw MongoDB
findOneAndUpdate. Also exports an async version for future Meteor 3.0
migration. No data migration needed — uses the same next_val field.
@xet7 xet7 merged commit e9507d3 into wekan:main Mar 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants