• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tsmx / mongoose-aes-encryption / 25018446235
98%
master: 100%

Build:
Build:
LAST BUILD BRANCH: searchable-fields
DEFAULT BRANCH: master
Ran 27 Apr 2026 08:42PM UTC
Jobs 3
Files 2
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Apr 2026 08:41PM UTC coverage: 97.802% (-0.7%) from 98.479%
25018446235

push

github

tsmx
Make searchable field queries fully transparent

Replace the explicit encryptForSearch()/__search_* query pattern with
automatic query rewriting via Mongoose pre-query middleware. Plain
equality conditions on searchable fields are now transparently rewritten
to their __search_<fieldname> shadow-field equivalents before any query
hits the database, covering find, findOne, findOneAndUpdate,
findOneAndDelete, countDocuments, deleteOne, deleteMany, updateOne and
updateMany.

Remove the encryptForSearch() public export — users no longer need to
know about shadow fields or hashes. Queries on searchable fields now
work identically to unencrypted fields from the caller's perspective.

Update tests and README accordingly.

137 of 142 branches covered (96.48%)

Branch coverage included in aggregate %.

11 of 11 new or added lines in 1 file covered. (100.0%)

130 of 131 relevant lines covered (99.24%)

468.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25018446235.1 27 Apr 2026 08:42PM UTC 4
98.29
GitHub Action Run
2 25018446235.2 27 Apr 2026 08:42PM UTC 4
98.29
GitHub Action Run
3 25018446235.3 27 Apr 2026 08:42PM UTC 4
98.29
GitHub Action Run
Source Files on build 25018446235
  • Tree
  • List 2
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25018446235
  • ee9ef496 on github
  • Prev Build on searchable-fields (#25018140595)
  • Next Build on searchable-fields (#25018592538)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc