Skip to content

chore(firestore-bigquery-change-tracker): bump to 2.0.1-rc.0 and include nested build artifacts#2693

Merged
dackers86 merged 2 commits intofirebase:nextfrom
andyma-star:fix/change-tracker-packaging-2.0.1-rc.0
Mar 20, 2026
Merged

chore(firestore-bigquery-change-tracker): bump to 2.0.1-rc.0 and include nested build artifacts#2693
dackers86 merged 2 commits intofirebase:nextfrom
andyma-star:fix/change-tracker-packaging-2.0.1-rc.0

Conversation

@andyma-star
Copy link
Contributor

Summary

  • bump @firebaseextensions/firestore-bigquery-change-tracker to 2.0.1-rc.0 for testing
  • fix npm package contents to include nested compiled files under lib/**
  • ensure lib/bigquery/partitioning/* files are published so runtime imports resolve in downstream consumers

Why

2.0.0 can fail at runtime with:
Cannot find module './partitioning'
because the package files globs only included one level under lib/bigquery/*, excluding nested partitioning modules.

Changes

  • firestore-bigquery-export/firestore-bigquery-change-tracker/package.json
    • version: 2.0.0 -> 2.0.1-rc.0
    • files:
      • from:
        • lib/*.js
        • lib/bigquery/*.js
        • lib/*.d.ts
        • lib/bigquery/*.d.ts
      • to:
        • lib/**/*.js
        • lib/**/*.d.ts
  • firestore-bigquery-export/firestore-bigquery-change-tracker/package-lock.json
    • update package version metadata to 2.0.1-rc.0

Test plan

  • Run npm run build in firestore-bigquery-export/firestore-bigquery-change-tracker
  • Run npm pack --dry-run
  • Verify tarball includes:
    • lib/bigquery/partitioning/index.js
    • lib/bigquery/partitioning/config.js
  • Run Kokoro
  • Publish 2.0.1-rc.0 and validate downstream BigQuery extension install/test flow

…packed files

Publish nested partitioning files in the package tarball so BigQuery export can resolve runtime imports when testing this RC.

Made-with: Cursor
@andyma-star andyma-star requested a review from a team as a code owner March 20, 2026 15:39
@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a critical packaging issue in the firestore-bigquery-change-tracker library that caused runtime failures due to missing nested compiled files. By updating the package version and adjusting the files glob patterns in package.json, it ensures that all necessary modules are included in the published package, thereby resolving import errors for downstream consumers.

Highlights

  • Version Bump: The @firebaseextensions/firestore-bigquery-change-tracker package has been bumped to version 2.0.1-rc.0 for testing purposes.
  • Package Content Fix: The package.json files configuration was updated to correctly include nested compiled files under lib/**, resolving issues where runtime imports for lib/bigquery/partitioning/* failed.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@andyma-star andyma-star requested a review from dackers86 March 20, 2026 15:40
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly addresses an issue where nested files were not being included in the published npm package by updating the files glob in package.json. The version is also bumped to 2.0.1-rc.0. The change is sound, and I've added one suggestion to further simplify the files configuration for improved maintainability.

Comment on lines 19 to 22
"files": [
"lib/*.js",
"lib/bigquery/*.js",
"lib/*.d.ts",
"lib/bigquery/*.d.ts"
"lib/**/*.js",
"lib/**/*.d.ts"
],

Choose a reason for hiding this comment

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

medium

For better maintainability, you can simplify the files array. Instead of listing glob patterns for specific file types, you can just include the entire lib directory. Since lib is a build output directory that is cleaned before each build, this is safe and more robust. It will automatically include any new file types that might be added to the build output in the future, such as source maps.

  "files": [
    "lib"
  ],

… test linking

The prerelease version 2.0.1-rc.0 does not satisfy downstream ^2.0.0 ranges, which can make CI resolve the published 2.0.0 package instead of the local workspace package.

Made-with: Cursor
@dackers86 dackers86 merged commit f87466c into firebase:next Mar 20, 2026
4 checks passed
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.

3 participants