bcgov / onroutebc

Automated Commercial Vehicle Permitting System
Apache License 2.0
5 stars 1 forks source link

[Snyk] Upgrade cache-manager from 5.4.0 to 5.5.1 #1365

Closed bcgov-devops closed 2 months ago

bcgov-devops commented 2 months ago

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade cache-manager from 5.4.0 to 5.5.1.

:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
- The recommended version is **2 versions** ahead of your current version. - The recommended version was released **24 days ago**, on 2024-04-05.
Release notes
Package name: cache-manager
  • 5.5.1 - 2024-04-05
  • 5.5.0 - 2024-04-04

    Added Event Errors

    Cache Manager now does not throw errors by default. Instead, all errors are evented through the error event. Here is an example on how to use it:

    const memoryCache = await caching('memory', {
      max: 100,
      ttl: 10 * 1000 /*milliseconds*/,
    });
    memoryCache.on('error', (error) => {
      console.error('Cache error:', error);
    });

    What's Changed

    New Contributors

    Full Changelog: v5.4.0...v5.5.0

  • 5.4.0 - 2024-01-19

    Refresh cache keys in background

    Both the caching and multicaching modules support a mechanism to refresh expiring cache keys in background when using the wrap function.
    This is done by adding a refreshThreshold attribute while creating the caching store or passing it to the wrap function.

    If refreshThreshold is set and after retrieving a value from cache the TTL will be checked.
    If the remaining TTL is less than refreshThreshold, the system will update the value asynchronously,
    following same rules as standard fetching. In the meantime, the system will return the old value until expiration.

    What's Changed

    Full Changelog: v5.3.2...v5.4.0

from cache-manager GitHub release notes

**Note:** *You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.* For more information: 🧐 [View latest project report](https://app.snyk.io/org/bcgov/project/2f897ce3-6f01-4342-b5a5-c7c918e3e882?utm_source=github&utm_medium=referral&page=upgrade-pr) 🛠 [Adjust upgrade PR settings](https://app.snyk.io/org/bcgov/project/2f897ce3-6f01-4342-b5a5-c7c918e3e882/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr) 🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/bcgov/project/2f897ce3-6f01-4342-b5a5-c7c918e3e882/settings/integration?pkg=cache-manager&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades) --- Thanks for the PR! Deployments, as required, will be available below: - [Frontend](https://onroutebc-1365-frontend.apps.silver.devops.gov.bc.ca) - [Vehicles](https://onroutebc-1365-vehicles.apps.silver.devops.gov.bc.ca/api) - [Dops](https://onroutebc-1365-dops.apps.silver.devops.gov.bc.ca/api) - [TPS-Migration](https://onroutebc-1365-tps-migration.apps.silver.devops.gov.bc.ca/api) Please create PRs in draft mode. Mark as ready to enable: - [Analysis Workflow](https://github.com/bcgov/onroutebc/actions/workflows/analysis.yml) After merge, new images are promoted to: - [Merge Workflow](https://github.com/bcgov/onroutebc/actions/workflows/merge.yml)
sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed for 'onroutebc vehicles'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud