Skip to content

Commit 025f2a1

Browse files
authored
Spelling (#8280)
Numerous fixes to spelling across the SDK.
1 parent fd8bd4b commit 025f2a1

File tree

223 files changed

+426
-418
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+426
-418
lines changed

.changeset/late-humans-tan.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@firebase/firestore-compat': patch
3+
'@firebase/database-compat': patch
4+
'@firebase/auth-compat': patch
5+
'@firebase/app-compat': patch
6+
'@firebase/firestore': patch
7+
'@firebase/database': patch
8+
'firebase': patch
9+
'@firebase/auth': patch

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ root = true
1111
end_of_line = lf
1212
insert_final_newline = true
1313

14-
# Javascript and Typescript look like Google-style
14+
# JavaScript and TypeScript look like Google-style
1515
[*.{js,json,ts}]
1616
charset = utf-8
1717
indent_style = space

.github/ISSUE_TEMPLATE/bug_report_v2.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ body:
2222
attributes:
2323
value: |
2424
*[READ THIS]:* to evaluate if you are in the right place?
25-
- For issues or feature requests related to __the code in this repository__, file a Github issue.
25+
- For issues or feature requests related to __the code in this repository__, file a GitHub issue.
2626
- If this is a __feature request__, make sure the issue title starts with "FR:".
2727
- For general technical questions, post a question on [StackOverflow](http://stackoverflow.com/) with the firebase tag.
2828
- For general Firebase discussion, use the [firebase-talk](https://groups.google.com/forum/#!forum/firebase-talk) google group.

.github/workflows/release-prod.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
curl -X POST -H "Content-Type:application/json" \
121121
-d "{\"version\":\"$BASE_VERSION\",\"date\":\"$DATE\"}" \
122122
$RELEASE_TRACKER_URL/logProduction
123-
- name: Create Github release
123+
- name: Create GitHub release
124124
env:
125125
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126126
run: |

.github/workflows/test-all.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
# make chromedriver detect installed Chrome version and download the corresponding driver
2121
DETECT_CHROMEDRIVER_VERSION: true
2222
# The default behavior of chromedriver uses the older Chrome download URLs. We need to override
23-
# the beahvior to use the new URLs.
23+
# the behavior to use the new URLs.
2424
CHROMEDRIVER_CDNURL: https://googlechromelabs.github.io/
2525
CHROMEDRIVER_CDNBINARIESURL: https://storage.googleapis.com/chrome-for-testing-public
2626
CHROME_VALIDATED_VERSION: linux-120.0.6099.71

.github/workflows/test-changed-auth.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
# make chromedriver detect installed Chrome version and download the corresponding driver
2121
DETECT_CHROMEDRIVER_VERSION: true
2222
# The default behavior of chromedriver uses the older Chrome download URLs. We need to override
23-
# the beahvior to use the new URLs.
23+
# the behavior to use the new URLs.
2424
CHROMEDRIVER_CDNURL: https://googlechromelabs.github.io/
2525
CHROMEDRIVER_CDNBINARIESURL: https://storage.googleapis.com/chrome-for-testing-public
2626
CHROME_VALIDATED_VERSION: linux-120.0.6099.71

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Firebase Javascript SDK
1+
# Firebase JavaScript SDK
22

33
<!-- BADGES -->
44
![Build Status](https://img.shields.io/github/actions/workflow/status/firebase/firebase-js-sdk/test-all.yml)

config/api-extractor.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
289289
*/
290290
"default": {
291291
/**
292-
* Specifies whether the message should be written to the the tool's output log. Note that
292+
* Specifies whether the message should be written to the tool's output log. Note that
293293
* the "addToApiReportFile" property may supersede this option.
294294
*
295295
* Possible values: "error", "warning", "none"

config/karma.saucelabs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function getPackageLabels() {
105105

106106
/**
107107
* Gets a list of file patterns for test, defined individually
108-
* in karma.conf.js in each package under worksapce packages or
108+
* in karma.conf.js in each package under workspace packages or
109109
* integration.
110110
*/
111111
function getTestFiles() {

docs-devsite/auth.githubauthprovider.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export declare class GithubAuthProvider extends BaseOAuthProvider
3838
3939
| Method | Modifiers | Description |
4040
| --- | --- | --- |
41-
| [credential(accessToken)](./auth.githubauthprovider.md#githubauthprovidercredential) | <code>static</code> | Creates a credential for Github. |
41+
| [credential(accessToken)](./auth.githubauthprovider.md#githubauthprovidercredential) | <code>static</code> | Creates a credential for GitHub. |
4242
| [credentialFromError(error)](./auth.githubauthprovider.md#githubauthprovidercredentialfromerror) | <code>static</code> | Used to extract the underlying [OAuthCredential](./auth.oauthcredential.md#oauthcredential_class) from a [AuthError](./auth.autherror.md#autherror_interface) which was thrown during a sign-in, link, or reauthenticate operation. |
4343
| [credentialFromResult(userCredential)](./auth.githubauthprovider.md#githubauthprovidercredentialfromresult) | <code>static</code> | Used to extract the underlying [OAuthCredential](./auth.oauthcredential.md#oauthcredential_class) from a [UserCredential](./auth.usercredential.md#usercredential_interface)<!-- -->. |
4444
@@ -74,7 +74,7 @@ static readonly PROVIDER_ID: 'github.com';
7474
7575
## GithubAuthProvider.credential()
7676
77-
Creates a credential for Github.
77+
Creates a credential for GitHub.
7878
7979
<b>Signature:</b>
8080
@@ -86,7 +86,7 @@ static credential(accessToken: string): OAuthCredential;
8686
8787
| Parameter | Type | Description |
8888
| --- | --- | --- |
89-
| accessToken | string | Github access token. |
89+
| accessToken | string | GitHub access token. |
9090
9191
<b>Returns:</b>
9292
@@ -148,7 +148,7 @@ const result = await getRedirectResult(auth);
148148
if (result) {
149149
// This is the signed-in user
150150
const user = result.user;
151-
// This gives you a Github Access Token.
151+
// This gives you a GitHub Access Token.
152152
const credential = GithubAuthProvider.credentialFromResult(result);
153153
const token = credential.accessToken;
154154
}
@@ -166,7 +166,7 @@ const result = await signInWithPopup(auth, provider);
166166

167167
// The signed-in user info.
168168
const user = result.user;
169-
// This gives you a Github Access Token.
169+
// This gives you a GitHub Access Token.
170170
const credential = GithubAuthProvider.credentialFromResult(result);
171171
const token = credential.accessToken;
172172

docs-devsite/database.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Firebase Realtime Database
1717
| Function | Description |
1818
| --- | --- |
1919
| <b>function(app, ...)</b> |
20-
| [getDatabase(app, url)](./database.md#getdatabase_d9cea01) | Returns the instance of the Realtime Database SDK that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!-- -->. Initializes a new instance with with default settings if no instance exists or if the existing instance uses a custom database URL. |
20+
| [getDatabase(app, url)](./database.md#getdatabase_d9cea01) | Returns the instance of the Realtime Database SDK that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!-- -->. Initializes a new instance with default settings if no instance exists or if the existing instance uses a custom database URL. |
2121
| <b>function(db, ...)</b> |
2222
| [connectDatabaseEmulator(db, host, port, options)](./database.md#connectdatabaseemulator_27b9e93) | Modify the provided instance to communicate with the Realtime Database emulator.<p>Note: This method must be called before performing any other operation. |
2323
| [goOffline(db)](./database.md#gooffline_732b338) | Disconnects from the server (all Database operations will be completed offline).<!-- -->The client automatically maintains a persistent connection to the Database server, which will remain active indefinitely and reconnect when disconnected. However, the <code>goOffline()</code> and <code>goOnline()</code> methods may be used to control the client connection in cases where a persistent connection is undesirable.<!-- -->While offline, the client will no longer receive data updates from the Database. However, all Database operations performed locally will continue to immediately fire events, allowing your application to continue behaving normally. Additionally, each operation performed locally will automatically be queued and retried upon reconnection to the Database server.<!-- -->To reconnect to the Database and begin receiving remote events, see <code>goOnline()</code>. |
@@ -112,7 +112,7 @@ Firebase Realtime Database
112112

113113
### getDatabase(app, url) {:#getdatabase_d9cea01}
114114

115-
Returns the instance of the Realtime Database SDK that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!-- -->. Initializes a new instance with with default settings if no instance exists or if the existing instance uses a custom database URL.
115+
Returns the instance of the Realtime Database SDK that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!-- -->. Initializes a new instance with default settings if no instance exists or if the existing instance uses a custom database URL.
116116

117117
<b>Signature:</b>
118118

docs-devsite/firestore_.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ https://github.com/firebase/firebase-js-sdk
9898
| [or(queryConstraints)](./firestore_.md#or_e72c712) | Creates a new [QueryCompositeFilterConstraint](./firestore_.querycompositefilterconstraint.md#querycompositefilterconstraint_class) that is a disjunction of the given filter constraints. A disjunction filter includes a document if it satisfies any of the given filters. |
9999
| <b>function(reference, ...)</b> |
100100
| [addDoc(reference, data)](./firestore_.md#adddoc_6e783ff) | Add a new document to specified <code>CollectionReference</code> with the given data, assigning it a document ID automatically. |
101-
| [collection(reference, path, pathSegments)](./firestore_.md#collection_568f98d) | Gets a <code>CollectionReference</code> instance that refers to a subcollection of <code>reference</code> at the the specified relative path. |
102-
| [collection(reference, path, pathSegments)](./firestore_.md#collection_70b4396) | Gets a <code>CollectionReference</code> instance that refers to a subcollection of <code>reference</code> at the the specified relative path. |
101+
| [collection(reference, path, pathSegments)](./firestore_.md#collection_568f98d) | Gets a <code>CollectionReference</code> instance that refers to a subcollection of <code>reference</code> at the specified relative path. |
102+
| [collection(reference, path, pathSegments)](./firestore_.md#collection_70b4396) | Gets a <code>CollectionReference</code> instance that refers to a subcollection of <code>reference</code> at the specified relative path. |
103103
| [deleteDoc(reference)](./firestore_.md#deletedoc_4569087) | Deletes the document referred to by the specified <code>DocumentReference</code>. |
104104
| [doc(reference, path, pathSegments)](./firestore_.md#doc_568f98d) | Gets a <code>DocumentReference</code> instance that refers to a document within <code>reference</code> at the specified relative path. If no path is specified, an automatically-generated unique ID will be used for the returned <code>DocumentReference</code>. |
105105
| [doc(reference, path, pathSegments)](./firestore_.md#doc_70b4396) | Gets a <code>DocumentReference</code> instance that refers to a document within <code>reference</code> at the specified relative path. |
@@ -179,7 +179,7 @@ https://github.com/firebase/firebase-js-sdk
179179
| [PersistentCacheSettings](./firestore_.persistentcachesettings.md#persistentcachesettings_interface) | An settings object to configure an <code>PersistentLocalCache</code> instance.<!-- -->Persistent cache cannot be used in a Node.js environment. |
180180
| [PersistentLocalCache](./firestore_.persistentlocalcache.md#persistentlocalcache_interface) | Provides a persistent cache backed by IndexedDb to the SDK.<!-- -->To use, create an instance using the factory function , then set the instance to <code>FirestoreSettings.cache</code> and call <code>initializeFirestore</code> using the settings object. |
181181
| [PersistentMultipleTabManager](./firestore_.persistentmultipletabmanager.md#persistentmultipletabmanager_interface) | A tab manager supporting multiple tabs. SDK will synchronize queries and mutations done across all tabs using the SDK. |
182-
| [PersistentSingleTabManager](./firestore_.persistentsingletabmanager.md#persistentsingletabmanager_interface) | A tab manager supportting only one tab, no synchronization will be performed across tabs. |
182+
| [PersistentSingleTabManager](./firestore_.persistentsingletabmanager.md#persistentsingletabmanager_interface) | A tab manager supporting only one tab, no synchronization will be performed across tabs. |
183183
| [PersistentSingleTabManagerSettings](./firestore_.persistentsingletabmanagersettings.md#persistentsingletabmanagersettings_interface) | Type to configure an <code>PersistentSingleTabManager</code> instance. |
184184
| [SnapshotListenOptions](./firestore_.snapshotlistenoptions.md#snapshotlistenoptions_interface) | An options object that can be passed to [onSnapshot()](./firestore_.md#onsnapshot_0312fd7) and [QuerySnapshot.docChanges()](./firestore_.querysnapshot.md#querysnapshotdocchanges) to control which types of changes to include in the result set. |
185185
| [SnapshotOptions](./firestore_.snapshotoptions.md#snapshotoptions_interface) | Options that configure how data is retrieved from a <code>DocumentSnapshot</code> (for example the desired behavior for server timestamps that have not yet been set to their final value). |
@@ -205,10 +205,10 @@ https://github.com/firebase/firebase-js-sdk
205205
| [FirestoreErrorCode](./firestore_.md#firestoreerrorcode) | The set of Firestore status codes. The codes are the same at the ones exposed by gRPC here: https://github.com/grpc/grpc/blob/master/doc/statuscodes.md<!-- -->Possible values: - 'cancelled': The operation was cancelled (typically by the caller). - 'unknown': Unknown error or an error from a different error domain. - 'invalid-argument': Client specified an invalid argument. Note that this differs from 'failed-precondition'. 'invalid-argument' indicates arguments that are problematic regardless of the state of the system (e.g. an invalid field name). - 'deadline-exceeded': Deadline expired before operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. - 'not-found': Some requested document was not found. - 'already-exists': Some document that we attempted to create already exists. - 'permission-denied': The caller does not have permission to execute the specified operation. - 'resource-exhausted': Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. - 'failed-precondition': Operation was rejected because the system is not in a state required for the operation's execution. - 'aborted': The operation was aborted, typically due to a concurrency issue like transaction aborts, etc. - 'out-of-range': Operation was attempted past the valid range. - 'unimplemented': Operation is not implemented or not supported/enabled. - 'internal': Internal errors. Means some invariants expected by underlying system has been broken. If you see one of these errors, something is very broken. - 'unavailable': The service is currently unavailable. This is most likely a transient condition and may be corrected by retrying with a backoff. - 'data-loss': Unrecoverable data loss or corruption. - 'unauthenticated': The request does not have valid authentication credentials for the operation. |
206206
| [FirestoreLocalCache](./firestore_.md#firestorelocalcache) | Union type from all supported SDK cache layer. |
207207
| [ListenSource](./firestore_.md#listensource) | Describe the source a query listens to.<!-- -->Set to <code>default</code> to listen to both cache and server changes. Set to <code>cache</code> to listen to changes in cache only. |
208-
| [MemoryGarbageCollector](./firestore_.md#memorygarbagecollector) | Union type from all support gabage collectors for memory local cache. |
208+
| [MemoryGarbageCollector](./firestore_.md#memorygarbagecollector) | Union type from all support garbage collectors for memory local cache. |
209209
| [NestedUpdateFields](./firestore_.md#nestedupdatefields) | For each field (e.g. 'bar'), find all nested keys (e.g. {<!-- -->'bar.baz': T1, 'bar.qux': T2<!-- -->}<!-- -->). Intersect them together to make a single map containing all possible keys that are all marked as optional |
210210
| [OrderByDirection](./firestore_.md#orderbydirection) | The direction of a [orderBy()](./firestore_.md#orderby_006d61f) clause is specified as 'desc' or 'asc' (descending or ascending). |
211-
| [PartialWithFieldValue](./firestore_.md#partialwithfieldvalue) | Similar to Typescript's <code>Partial&lt;T&gt;</code>, but allows nested fields to be omitted and FieldValues to be passed in as property values. |
211+
| [PartialWithFieldValue](./firestore_.md#partialwithfieldvalue) | Similar to TypeScript's <code>Partial&lt;T&gt;</code>, but allows nested fields to be omitted and FieldValues to be passed in as property values. |
212212
| [PersistentTabManager](./firestore_.md#persistenttabmanager) | A union of all available tab managers. |
213213
| [Primitive](./firestore_.md#primitive) | Primitive types. |
214214
| [QueryConstraintType](./firestore_.md#queryconstrainttype) | Describes the different query constraints available in this SDK. |
@@ -1863,7 +1863,7 @@ A `Promise` resolved with a `DocumentReference` pointing to the newly created do
18631863

18641864
### collection(reference, path, pathSegments) {:#collection_568f98d}
18651865

1866-
Gets a `CollectionReference` instance that refers to a subcollection of `reference` at the the specified relative path.
1866+
Gets a `CollectionReference` instance that refers to a subcollection of `reference` at the specified relative path.
18671867

18681868
<b>Signature:</b>
18691869

@@ -1891,7 +1891,7 @@ If the final path has an even number of segments and does not point to a collect
18911891

18921892
### collection(reference, path, pathSegments) {:#collection_70b4396}
18931893

1894-
Gets a `CollectionReference` instance that refers to a subcollection of `reference` at the the specified relative path.
1894+
Gets a `CollectionReference` instance that refers to a subcollection of `reference` at the specified relative path.
18951895

18961896
<b>Signature:</b>
18971897

@@ -1954,7 +1954,7 @@ export declare function doc<AppModelType, DbModelType extends DocumentData>(refe
19541954
| Parameter | Type | Description |
19551955
| --- | --- | --- |
19561956
| reference | [CollectionReference](./firestore_.collectionreference.md#collectionreference_class)<!-- -->&lt;AppModelType, DbModelType&gt; | A reference to a collection. |
1957-
| path | string | A slash-separated path to a document. Has to be omitted to use auto-genrated IDs. |
1957+
| path | string | A slash-separated path to a document. Has to be omitted to use auto-generated IDs. |
19581958
| pathSegments | string\[\] | Additional path segments that will be applied relative to the first argument. |
19591959

19601960
<b>Returns:</b>
@@ -2566,7 +2566,7 @@ export declare type ListenSource = 'default' | 'cache';
25662566

25672567
## MemoryGarbageCollector
25682568

2569-
Union type from all support gabage collectors for memory local cache.
2569+
Union type from all support garbage collectors for memory local cache.
25702570

25712571
<b>Signature:</b>
25722572

@@ -2598,7 +2598,7 @@ export declare type OrderByDirection = 'desc' | 'asc';
25982598

25992599
## PartialWithFieldValue
26002600

2601-
Similar to Typescript's `Partial<T>`<!-- -->, but allows nested fields to be omitted and FieldValues to be passed in as property values.
2601+
Similar to TypeScript's `Partial<T>`<!-- -->, but allows nested fields to be omitted and FieldValues to be passed in as property values.
26022602

26032603
<b>Signature:</b>
26042604

docs-devsite/firestore_.persistentsingletabmanager.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
1010
{% endcomment %}
1111

1212
# PersistentSingleTabManager interface
13-
A tab manager supportting only one tab, no synchronization will be performed across tabs.
13+
A tab manager supporting only one tab, no synchronization will be performed across tabs.
1414

1515
<b>Signature:</b>
1616

0 commit comments

Comments
 (0)