Skip to content

Add comment warning about indexed DB atomicity #3826

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

Open
wants to merge 102 commits into
base: auth-next
Choose a base branch
from

Conversation

sam-gc
Copy link
Contributor

@sam-gc sam-gc commented Sep 22, 2020


sam-gc and others added 30 commits September 1, 2020 09:49
Initial package structure--copied from packages/template, but with tests working
Add mock fetch library for tests
* Add core types & error map

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* User should be an interface for now

we can make an implementation class later
* User should be an interface for now

we can make an implementation class later

* Add API call to signUp

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* Update tests to test a little more

* [AUTOMATED]: Prettier Code Styling
* Initial user object implementation
* Consolidate mock auth / add user test helper

* [AUTOMATED]: Prettier Code Styling

* Fix tests
* User should be an interface for now

we can make an implementation class later

* Add API call to signUp

* [AUTOMATED]: Prettier Code Styling

* Update tests to test a little more

* Add remaining API methods to auth-next

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* Add more tests to account API methods

* Pass in SDK version & correctly send GET request params

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: Prettier Code Styling

* Fix import ordering

* Minor formatting change

* [AUTOMATED]: Prettier Code Styling
* Add support for API timeouts to auth-next

* PR feedback

* [AUTOMATED]: Prettier Code Styling
* Add version helper to auth-next

* [AUTOMATED]: Prettier Code Styling

* PR feedback
* Add fetchSignInMethodsForEmail to auth-next

* [AUTOMATED]: Prettier Code Styling

* PR Feedback

* [AUTOMATED]: Prettier Code Styling
* Add sendEmailVerification to auth-next

* [AUTOMATED]: Prettier Code Styling

* Add missing test

* Remove GetOobCodeRequestType in favor of Operation
* Add sendEmailVerification to auth-next

* [AUTOMATED]: Prettier Code Styling

* Remove GetOobCodeRequestType in favor of Operation

* Add password reset methods to auth-next

* [AUTOMATED]: Prettier Code Styling

* PR Feedback

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: Prettier Code Styling

* Resolve merge conflicts

* [AUTOMATED]: Prettier Code Styling
* Use queryString from firebase/util instead of homebrew one

* [AUTOMATED]: Prettier Code Styling

* PR Feedback

* [AUTOMATED]: Prettier Code Styling
* Add conditional delays to auth-next

* [AUTOMATED]: Prettier Code Styling

* Use typescript asserts keyword for typesafe assertions

* [AUTOMATED]: Prettier Code Styling

* Rebase conflicts & PR feedback

* More PR Feedback

* Strip debug asserts from prod builds

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: API Reports

* Fix logic in assertion

* Revert merge artifacts

* PR Feedback
* Add sendSignInWithEmail links

* [AUTOMATED]: Prettier Code Styling

* PR Feedback

* PR Feedback
* Standardize auth-next style

- prefix directory for test blocks
- use kebab style for test values to make them visually distinct from
keys
- use '#' to prefix instance methods and '.' for class methods
- prefix all private exported methods with '_'

* [AUTOMATED]: Prettier Code Styling

* Two more cases I missed
Added React Native persistence class
* Update internal types to work with external types

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* PR feedback

* [AUTOMATED]: Prettier Code Styling
…#3078)

* Further refactoring of auth types. Add public exports to src/index.ts

* Add app-exp to devDependencies

* PR feedback
* user.delete() implementation

* [AUTOMATED]: Prettier Code Styling

* PR feedback

* PR feedback
* Add signInWithCredential to auth-next

* [AUTOMATED]: Prettier Code Styling

* Add conditional delays to auth-next (#2934)

* Add conditional delays to auth-next

* [AUTOMATED]: Prettier Code Styling

* Use typescript asserts keyword for typesafe assertions

* [AUTOMATED]: Prettier Code Styling

* Rebase conflicts & PR feedback

* More PR Feedback

* Strip debug asserts from prod builds

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: API Reports

* Fix logic in assertion

* Revert merge artifacts

* PR Feedback

* Cleanup & PR Feedback

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* Add more tests

* [AUTOMATED]: Prettier Code Styling

* Rebase conflicts

* Cleanup type exports

* PR feedback

* Declare abstract class abstractly
sam-gc and others added 15 commits September 1, 2020 09:54
* Proactive refresh and internal SDK

* Fix tests for node

* Formatting

* Remove unused file

* PR feedback

* Formatting
* Implement cross-window browser events for auth-next

* Split out local & session storage

* Add persistence events to indexed DB

* Add some tests & fix a couple issues with local storage events

* Add tests for AuthImpl._onStorageEvent and fix getIdToken to trigger
correctly

* Merge conflicts

* PR feedback
* update package.json

* make internal and main share code

* remove unused deps and files

* point to the right typing file for internal

* cast internal Auth to public Auth to make TS happy
* Fix the broken build

* Formatting

* Fix compat build

* Re-add demo

* Fix build errors

* Formatting

* Fix linting for auth-compat-exp
* Add hooks into emulator for auth-next

* Formatting

* PR feedback

* Fix broken tests

* Formatting
* Add assertion for the oauthprovider type in popup/redirect

* Formatting
* Fix circular dependency issue

* Formatting
* Add origin validation to the popup/redirect flows

* Formatting

* Cache the origin validation promise

* Formatting

* PR feedback

* Formatting
* Add some guardrails for recaptcha host language param

* Formatting
* suppress eslint error

* fix type error

* make auth-compat depend on app-compat

* add release build for auth-exp

* revert auth-compat to depend on app

* test

* don't abort on error for release builds

* apply release build to web worker build

* Revert "test"

This reverts commit 8be511c.

* fix lint error
* Finish emulator implementation

* Formatting

* Add appVerificationDisabledForTesting setting and the type to auth-types-exp

* Formatting
* Add network timeout cancellation to core network code

* Formatting

* Fix broken test on CI

* Formatting
* Fix the auth compat 'tests'

* Formatting

* Fix integration test

* Formatting
@changeset-bot
Copy link

changeset-bot bot commented Sep 22, 2020

💥 No Changeset

Latest commit: 7f275fd

Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂

If these changes should be published to npm, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@google-oss-bot
Copy link
Contributor

Size Analysis Report

Affected Products

No changes between base commit (0579912) and head commit (ca59c3a).

Test Logs

@schmidt-sebastian
Copy link
Contributor

Approved for 7f275fd

@schmidt-sebastian schmidt-sebastian removed their assignment Oct 19, 2020
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.

6 participants