Skip to content

Conversation

X-oss-byte
Copy link
Owner

@X-oss-byte X-oss-byte commented Feb 2, 2025

snyk-top-banner

Snyk has created this PR to upgrade firebase-functions from 4.4.1 to 4.9.0.

ℹ️ 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 7 versions ahead of your current version.

  • The recommended version was released 10 months ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Improper Handling of Exceptional Conditions
SNYK-JS-PROBOT-6129524
624 No Known Exploit
high severity Improper Handling of Exceptional Conditions
SNYK-JS-OCTOKITWEBHOOKS-6129527
624 No Known Exploit
Release notes
Package name: firebase-functions
  • 4.9.0 - 2024-04-04
    • Add new 2nd gen Firestore auth context triggers. (#1519)
  • 4.8.2 - 2024-03-29

    Fix bug with CORS options for an array of one string (#1544)

  • 4.8.1 - 2024-03-19

    Fix bug where 1st gen functions eventually fail with stack too deep (#1540)
    Make simple CORS options static for improved debugability (#1536)

  • 4.8.0 - 2024-03-08

    Add onInit callback function for global variable initialization (#1531)

  • 4.7.0 - 2024-02-07
    • Fixes access on deeply nested, nonexistent property. (#1432)
    • Add IteratedDataSnapshot interface to match with firebase admin v12 (#1517).
    • Make bucket parameterizeable in storage functions (#1518)
    • Introduce helper library for select and multi-select input (#1518)
  • 4.6.0 - 2024-01-03
    • Wrap 2nd gen onCall functions with trace context. (#1491)
    • Bump peer depdencies for firebase-admin to support 12.0.0. (#1509)
  • 4.5.0 - 2023-11-02
    • Remove HTTP server shutdown message. (#1457)
    • Add features to task queue functions. (#1423)
    • Add traces to V2 Firestore trigger logs. (#1440)
    • Fix incorrectly parsed timestamps in auth blocking functions. (#1472)
    • Add recaptcha verdict support for auth blocking functions (#1458)
  • 4.4.1 - 2023-06-12
    • Update list of supported regions for 2nd Gen Functions. (#1402)
    • Fix bug where log message on structured log was being overwritten (#1416)
    • Fix bug where exists() should return true for falsy values like 0, "" (#1410)
from firebase-functions GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

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:

Summary by Sourcery

Upgrade firebase-functions from 4.4.1 to 4.9.0 to address vulnerabilities and incorporate new features and bug fixes.

New Features:

  • Introduce new 2nd gen Firestore auth context triggers.
  • Add an onInit callback function for global variable initialization.
  • Add features to task queue functions.
  • Introduce a helper library for select and multi-select input.
  • Add recaptcha verdict support for auth blocking functions.
  • Wrap 2nd gen onCall functions with trace context.
  • Add traces to V2 Firestore trigger logs.
  • Make the bucket parameterizable in storage functions

Bug Fixes:

  • Resolve issues related to CORS options, stack too deep errors, and incorrect timestamp parsing in auth blocking functions.
  • Fix a bug where the log message on a structured log was being overwritten.
  • Address a bug where exists() should return true for falsy values like 0 or empty strings

Snyk has created this PR to upgrade firebase-functions from 4.4.1 to 4.9.0.

See this package in npm:
firebase-functions

See this project in Snyk:
https://app.snyk.io/org/sammytezzy/project/d724f0e8-b70d-4018-a22f-dde68861923e?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

vercel bot commented Feb 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
defend ❌ Failed (Inspect) Feb 2, 2025 2:10pm

Copy link

sourcery-ai bot commented Feb 2, 2025

Reviewer's Guide by Sourcery

This pull request upgrades the firebase-functions dependency from version 4.4.1 to 4.9.0. This update includes several bug fixes and new features, as detailed in the release notes.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Upgraded the firebase-functions dependency.
  • Updated firebase-functions version from 4.4.1 to 4.9.0 in package.json.
  • Updated firebase-functions version in package-lock.json.
functions/package.json
functions/package-lock.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

changeset-bot bot commented Feb 2, 2025

⚠️ No Changeset found

Latest commit: 21bdca9

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.

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

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!

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