Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github May 27, 2025

Bumps tiny-essentials from 1.8.5 to 1.10.0.

Release notes

Sourced from tiny-essentials's releases.

1.10.0

🆕 TinyRateLimiter Updates in v1.10.0 🎯

This version brings a bunch of internal improvements and cleanup to TinyRateLimiter, making it faster, cleaner, and more memory-friendly. Here’s what’s new:

  • 📦 New memory optimization logic: The limiter can now keep only the latest N entries per group (#maxMemory) to reduce memory usage. Automatically calls onMemoryExceeded(groupId) if defined.

  • 🧪 Improved rate limit check: The isRateLimited() method is now faster and more consistent, even when interval is disabled.

  • 🧼 Better cleanup system: Groups now use either their own TTL or fallback to maxIdle, and the internal _cleanup() handles expiration gracefully.

  • 📊 New metrics method: getMetrics(groupId) now returns hit count, last hit, spacing average, and time since last hit in one call!

  • 🔍 New helpers:

    • getAllUserMappings() – returns user → group map as plain object 📄
    • getAverageHitSpacing() – computes average time between hits
    • getTimeSinceLastHit() – useful for time-based triggers
  • ⚠️ Deprecated: reset(userId) is now deprecated — use resetUserGroup(userId) instead.

  • 🚀 Fully isolated internals: All core options (interval, maxHits, maxIdle) now throw if misconfigured. Stronger encapsulation and clearer API.

This release keeps the class drop-in compatible with previous versions but brings real performance and control benefits under scale. Enjoy! 🧩💡

Full Changelog: Tiny-Essentials/Tiny-Essentials@1.9.2...1.10.0

1.9.2

🛠️ extendObjType Function – Release Update

Version: 1.9.2 Date: 2025-05-23

✨ Enhancements

  • Flexible Input Support: The extendObjType function now supports multiple input formats for adding new type validators, greatly improving developer ergonomics:

    • Traditional object syntax: { key: fn }
    • Array of key/function pairs: [ ['key', fn], ... ]

📚 Example Usage

extendObjType({
  htmlElement2: val => typeof HTMLElement !== 'undefined' && val instanceof HTMLElement
});
extendObjType([
[ 'alpha', val => typeof val === 'string' ],
[ 'beta', val => Array.isArray(val) ]
]);

Full Changelog: Tiny-Essentials/Tiny-Essentials@1.9.1...1.9.2

... (truncated)

Commits
  • 028e777 TinyRateLimiter --> isRateLimited updated and new functions (getActiveGroups,...
  • 8c4a023 TinyRateLimiter --> tester script updated.
  • 058dac6 TinyRateLimiter --> resetUser is resetUserGroup now.
  • e1f2946 version
  • 394575a TinyRateLimiter.md --> maxMemory value info added.
  • 5f40245 TinyRateLimiter.md updated.
  • ba545b1 TinyRateLimiter --> resetUser is to reset user only now.
  • 582388f TinyRateLimiter --> tiny fix in resetGroup
  • 112ce0f TinyRateLimiter --> test script fixed.
  • ad9b73a TinyRateLimiter --> test script updated.
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [tiny-essentials](https://github.com/JasminDreasond/Tiny-Essentials) from 1.8.5 to 1.10.0.
- [Release notes](https://github.com/JasminDreasond/Tiny-Essentials/releases)
- [Commits](Tiny-Essentials/Tiny-Essentials@1.8.5...1.10.0)

---
updated-dependencies:
- dependency-name: tiny-essentials
  dependency-version: 1.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 27, 2025
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github May 29, 2025

Looks like tiny-essentials is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this May 29, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/tiny-essentials-1.10.0 branch May 29, 2025 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant