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

Move newTextEncoder() and newTextDecoder() to their own file: text_serializer.ts #7018

Merged
merged 3 commits into from
Feb 10, 2023

Conversation

dconeybe
Copy link
Contributor

@dconeybe dconeybe commented Feb 9, 2023

These two functions were previously defined in serializer.ts, along with the newSerializer() function. This will cause a circular dependency in a future PR; therefore, this PR proactively refactors the two text serialization functions into their own dedicated file to break the circular dependency and reduce noise in that future PR.

Credit for this PR goes to @milaGGL from #6897. I'm merely merging a small component of that PR into the master branch to reduce the diff when her PR ultimately gets merged.

@dconeybe dconeybe self-assigned this Feb 9, 2023
@changeset-bot
Copy link

changeset-bot bot commented Feb 9, 2023

🦋 Changeset detected

Latest commit: f4eae6e

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

This PR includes changesets to release 3 packages
Name Type
@firebase/firestore Patch
firebase Patch
@firebase/firestore-compat 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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Feb 9, 2023

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Feb 9, 2023

@dconeybe dconeybe requested a review from milaGGL February 9, 2023 20:17
Copy link
Contributor

@milaGGL milaGGL left a comment

Choose a reason for hiding this comment

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

LGTM

@dconeybe dconeybe merged commit b5f86b1 into master Feb 10, 2023
@dconeybe dconeybe deleted the dconeybe/PlatformTextEncoderRefactor branch February 10, 2023 14:11
NhienLam pushed a commit that referenced this pull request Feb 14, 2023
@google-oss-bot google-oss-bot mentioned this pull request Mar 1, 2023
@firebase firebase locked and limited conversation to collaborators Mar 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants