Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Node ESM build to RUT #6360

Merged
merged 2 commits into from
Jun 14, 2022
Merged

Add a Node ESM build to RUT #6360

merged 2 commits into from
Jun 14, 2022

Conversation

hsubox76
Copy link
Contributor

@hsubox76 hsubox76 commented Jun 14, 2022

Rules-unit-testing only had a CJS build for Node. This causes it to load the CJS build of Firestore, while the user may load methods from an Node ESM build of Firestore, if their project uses ES modules. This causes there to be two copies of Firestore instances that don't match.

Tested on repro: https://github.com/MarkDuckworth/firebase-js-sdk-issues-6080 and it fixes the issue.

Fixes #6080

@changeset-bot
Copy link

changeset-bot bot commented Jun 14, 2022

🦋 Changeset detected

Latest commit: 3968d08

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@firebase/rules-unit-testing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@hsubox76 hsubox76 requested a review from egilmorez as a code owner June 14, 2022 18:58
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 14, 2022

Copy link
Contributor

@dwyfrequency dwyfrequency left a comment

Choose a reason for hiding this comment

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

LGTM

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 14, 2022

@hsubox76 hsubox76 merged commit b091b02 into master Jun 14, 2022
@hsubox76 hsubox76 deleted the ch-rut-build branch June 14, 2022 22:48
@Jasperhino
Copy link

Thanks a lot for the fix!

@laurentpayot
Copy link

So my proposed diagnostic/solution was right? Thanks for the credit 😉

@google-oss-bot google-oss-bot mentioned this pull request Jun 21, 2022
@firebase firebase locked and limited conversation to collaborators Jul 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
7 participants