Skip to content

Address negative zero lint validation #3820

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

Merged
merged 2 commits into from
Sep 21, 2020
Merged

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Sep 21, 2020

It should not matter whether we check for "value === 0.0" or "value === -0.0" since JS treats them equal. This change should silence a lint error that is blocking one of our customers.

Fixes #3814

@changeset-bot
Copy link

changeset-bot bot commented Sep 21, 2020

🦋 Changeset is good to go

Latest commit: c1c3ae3

We got this.

This PR includes changesets to release 8 packages
Name Type
@firebase/firestore Patch
firebase Patch
firebase-exp Patch
firebase-firestore-integration-test Patch
@firebase/rules-unit-testing Patch
@firebase/testing Patch
firebase-namespace-integration-test Patch
firebase-messaging-integration-test 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

@schmidt-sebastian schmidt-sebastian changed the title Addess negative zero ESLint validation Addess negative zero lint validation Sep 21, 2020
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 21, 2020

Binary Size Report

Affected SDKs

  • @firebase/firestore

    Type Base (7bf7379) Head (93b7394) Diff
    main 483 kB 483 kB -1 B (-0.0%)
  • @firebase/firestore/exp

    Type Base (7bf7379) Head (93b7394) Diff
    main 478 kB 478 kB -1 B (-0.0%)
  • @firebase/firestore/lite

    Type Base (7bf7379) Head (93b7394) Diff
    main 141 kB 141 kB -1 B (-0.0%)
  • @firebase/firestore/memory

    Type Base (7bf7379) Head (93b7394) Diff
    main 356 kB 356 kB -1 B (-0.0%)

Test Logs

@schmidt-sebastian schmidt-sebastian changed the title Addess negative zero lint validation Address negative zero lint validation Sep 21, 2020
@schmidt-sebastian schmidt-sebastian merged commit 16c6ba9 into master Sep 21, 2020
@google-oss-bot google-oss-bot mentioned this pull request Sep 22, 2020
@firebase firebase locked and limited conversation to collaborators Oct 22, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/negativezero branch November 9, 2020 22:38
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.

esbuild gives comparison to -0 compiling firestore
3 participants