Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: firebase/firebase-functions
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: firebase/firebase-functions
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feat/stdio-discovery-backup
Choose a head ref
  • 13 commits
  • 4 files changed
  • 3 contributors

Commits on Jul 11, 2025

  1. feat: add stdio-based function discovery mode

    Adds an alternative discovery mechanism that outputs function manifests via stderr
    instead of starting an HTTP server. This improves reliability by avoiding issues
    where module loading blocks the HTTP endpoint from becoming available.
    
    When FUNCTIONS_DISCOVERY_MODE=stdio is set:
    - Outputs base64-encoded manifest to stderr with __FIREBASE_FUNCTIONS_MANIFEST__: prefix
    - Outputs errors to stderr with __FIREBASE_FUNCTIONS_MANIFEST_ERROR__: prefix
    - Exits immediately without starting HTTP server
    - Maintains backward compatibility (HTTP remains default)
    
    Includes comprehensive tests that verify both HTTP and stdio discovery work
    correctly for all test cases (commonjs, esm, various configurations).
    taeold committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    e0d6028 View commit details
    Browse the repository at this point in the history
  2. test: add comprehensive tests for stdio discovery

    - Add test fixture for broken syntax error handling
    - Refactor tests to use unified DiscoveryResult interface
    - Parameterize tests with nested loops to test all cases with both discovery methods
    - Add error handling tests for both HTTP and stdio discovery
    - All stdio discovery tests passing (16/16)
    taeold committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    62e37ba View commit details
    Browse the repository at this point in the history
  3. fix: resolve linting errors in firebase-functions.ts

    - Mark runStdioDiscovery() promise with void operator
    - Move handleQuitquitquit function to program root
    - Fix TypeScript warnings for error handling
    - Add eslint-disable comment for Express async handler
    taeold committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    0c2da1f View commit details
    Browse the repository at this point in the history
  4. fix: address PR review comments for stdio discovery

    - Add proper error handling for non-Error objects
    - Define MANIFEST_PREFIX and MANIFEST_ERROR_PREFIX constants
    - Fix HTTP discovery retry logic regression in tests
    - Make regex patterns multiline-safe for manifest and error parsing
    - Add timeout handling for stdio discovery in tests
    taeold committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    a5f0b05 View commit details
    Browse the repository at this point in the history
  5. fix: resolve linting errors

    taeold committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    08aca82 View commit details
    Browse the repository at this point in the history
  6. fix: clean up broken-syntax fixture to match other fixtures

    - Remove unnecessary dependencies from package.json
    - Remove package-lock.json
    - The npm link is handled by run.sh script
    taeold committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    0222d2f View commit details
    Browse the repository at this point in the history
  7. fix: address additional PR review comments

    - Use process.exitCode instead of process.exit() to prevent race conditions with stderr buffer flushing
    - Refactor test to define discoveryMethods array once to reduce code duplication
    taeold committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    900d316 View commit details
    Browse the repository at this point in the history
  8. remove extraneous comments

    taeold committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    d48b3a2 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    088534a View commit details
    Browse the repository at this point in the history
  10. refactor: use XML-style tags for stdio discovery output

    - Replace magic string prefixes with self-documenting XML tags
    - Add explicit start/end markers to handle OS buffering edge cases
    - Make regex parsing more robust and less greedy
    - Addresses review comment about regex being too greedy
    taeold committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    d384aaf View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ebebfa0 View commit details
    Browse the repository at this point in the history
  12. Update src/bin/firebase-functions.ts

    Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
    taeold and gemini-code-assist[bot] authored Jul 11, 2025
    Configuration menu
    Copy the full SHA
    74e3275 View commit details
    Browse the repository at this point in the history
  13. linter.

    taeold committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    478b8c2 View commit details
    Browse the repository at this point in the history
Loading