Skip to content

Commit 0340d84

Browse files
authored
Fix typos (#12972)
Found via `codespell -S *.yaml,codegen,node_modules,patches,package-lock.json,CHANGELOG.md -L afterall,juli,anad,shepard`
1 parent bc3b16d commit 0340d84

Some content is hidden

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

44 files changed

+62
-62
lines changed

ROADMAP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ For up to date release notes, refer to the project's [Changelog](https://github.
3030
- New documentation
3131
- Subscription support
3232

33-
_These changes will take longer than anticipated due to prioritization of other libaries and integrations_
33+
_These changes will take longer than anticipated due to prioritization of other libraries and integrations_
3434

3535
### VSCode Extension
3636

VERSIONING_POLICY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ We reserve the right to update dependencies in minor releases of Apollo Client,
9090
### Peer dependencies
9191

9292
The rules stated above apply to peer dependencies as well. Peer dependencies can be updated in minor releases, just like regular dependencies.
93-
However, we do commit to not adding new peer depenencies during the lifetime of a major - but if an existing peer dependency is renamed, we might follow that rename in a minor release.
93+
However, we do commit to not adding new peer dependencies during the lifetime of a major - but if an existing peer dependency is renamed, we might follow that rename in a minor release.

docs/source/caching/cache-configuration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ This example shows a variety of `typePolicies` with different `keyFields`:
192192
```
193193
- The `AllProducts` type illustrates a special strategy for a **singleton** type. If the cache will only ever contain one `AllProducts` object and that object has _no_ identifying fields, you can provide an empty array for its `keyFields`.
194194
- The `Store` type provides an example of how you can [disable normalization](https://www.apollographql.com/docs/react/caching/cache-configuration/#disabling-normalization) by setting the keyFields to `false`
195-
- The `Location` type provides an example of using custom fuction given object and runtime context to calculate what fields should be used for the key field selection.
195+
- The `Location` type provides an example of using custom function given object and runtime context to calculate what fields should be used for the key field selection.
196196
- Keep in mind that the first argument here is a reference to the record that will be written. As such, it does NOT include subselected fields, only scalar fields, and it contains aliases from the operation. If you need to read the real type you can use `context.storeObject`. To read even more indepth about how this function can work the best source will be our own [test cases for the cache policies](https://github.com/apollographql/apollo-client/blob/8bc7d4d406402962bf5151cdd2c5c75c9398d10c/src/cache/inmemory/__tests__/policies.ts#L5543-L5622)
197197

198198
If an object has multiple `keyFields`, the cache ID always lists those fields in the same order to ensure uniqueness.

docs/source/data/fragments.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ We then import our shared fragment registry into our component file and register
244244
You need to register fragment definitions with the fragment registry before
245245
executing operations that use them. This can be problematic when lazy loading
246246
component files because the application might not register the fragment
247-
definition with the registery until after the query begins executing. Move the
247+
definition with the registry until after the query begins executing. Move the
248248
fragment definition to a shared file that isn't lazy-loaded.
249249
</Caution>
250250
@@ -1488,7 +1488,7 @@ npx jscodeshift ... --tag myGql
14881488
Comments in GraphQL documents may be lost after running the codemod because
14891489
the `graphql` library's `print` function used by the codemod doesn't retain
14901490
comments. Always check the output from changes made by the codemod before
1491-
comitting them.
1491+
committing them.
14921492
</Caution>
14931493
14941494
#### 2. Enable `dataMasking`

docs/source/data/persisted-queries.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ const client = new ApolloClient({
214214
});
215215
```
216216

217-
Thats it! By including the persisted queries link in your client instantiation, your client sends operation IDs instead of the full operation string. This results in improved network performance, but doesn't include the security benefits of operation safelisting that [persisted queries](#differences-between-persisted-queries-and-apq) provide.
217+
That's it! By including the persisted queries link in your client instantiation, your client sends operation IDs instead of the full operation string. This results in improved network performance, but doesn't include the security benefits of operation safelisting that [persisted queries](#differences-between-persisted-queries-and-apq) provide.
218218

219219
For more details on the options available to `PersistedQueryLink`, see its [API reference documentation](../api/link/persisted-queries).
220220

docs/source/integrations/react-native.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ A community plugin called [React Native Apollo devtools](https://github.com/razo
6565

6666
1. Install Flipper and open it.
6767
2. Go to add plugin and search for `react-native-apollo-devtools` and install it
68-
3. Add `react-native-flipper` and `react-native-apollo-devtools-client` as dev dependecy to react native app.
68+
3. Add `react-native-flipper` and `react-native-apollo-devtools-client` as dev dependency to react native app.
6969
4. Initialize the plugin with flipper on client side
7070

7171
```ts

docs/source/performance/server-side-rendering.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ prerenderStatic({
202202
).replace(/</g, "\\u003c")}`,
203203
bootstrapScripts: ["/client.js"],
204204
onShellReady() {
205-
// Start streaming the reponse to the browser
205+
// Start streaming the response to the browser
206206
res.setHeader("Content-Type", "text/html");
207207
res.statusCode = 200;
208208
pipe(res);

scripts/codemods/ac3-to-ac4/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ In the order they will be applied per default if you don't manually specify a co
1818

1919
- `legacyEntryPoints`: Moves imports from old legacy entry points like `@apollo/client/main.cjs` or `@apollo/client/react/react.cjs` to the new entry points like `@apollo/client` or `@apollo/client/react`.
2020
- `imports`: Moves imports that have been moved or renamed in Apollo Client 4. Also moves types into namespace imports where applicable.
21-
- `links`: Moves `split`, `from`, `concat` and `empty` onto the `ApolloLink` namespace, changes funtion link invocations like `createHttpLink(...)` to their class equivalents like (`new HttpLink(...)`).
21+
- `links`: Moves `split`, `from`, `concat` and `empty` onto the `ApolloLink` namespace, changes function link invocations like `createHttpLink(...)` to their class equivalents like (`new HttpLink(...)`).
2222
Does not change `setContext((operation, prevContext) => {})` to `new ContextLink((prevContext, operation) => {})` - this requires manual intervention, as the order of callback arguments is flipped and this is not reliable codemoddable.
2323
- `removals`: Points all imports of values or types that have been removed in Apollo Client 4 to the `@apollo/client/v4-migration` entry point. That entry point contains context for each removal, oftentimes with migration instructions.
2424
- `clientSetup`: Applies the following steps from the migration guide to your Apollo Client setup code
@@ -33,7 +33,7 @@ In the order they will be applied per default if you don't manually specify a co
3333

3434
### Usage against TypeScript/TSX
3535

36-
There is some syntax overlap between TypeScript and TypeScript-JSX files, so you might need to run the Codemod against both file extensions sepearately to avoid errors:
36+
There is some syntax overlap between TypeScript and TypeScript-JSX files, so you might need to run the Codemod against both file extensions separately to avoid errors:
3737

3838
```sh
3939
npx @apollo/client-codemod-migrate-3-to-4 --parser ts --ignore-pattern="*.{tsx,d.ts}" file1.ts file2.ts

scripts/codemods/ac3-to-ac4/src/__tests__/apolloClientInitialization.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export const dontTouchThis: ApolloClient<MyCacheShape> = new ApolloClient<MyCach
310310
});
311311
});
312312

313-
describe("http link intialization", () => {
313+
describe("http link initialization", () => {
314314
test("all options", () => {
315315
expect(
316316
transform("explicitLinkConstruction")`

scripts/codemods/ac3-to-ac4/src/__tests__/imports.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe("aliases if `legacyEntryPoints` transform was not applied", () => {
1717
`"import { somethingElse, useQuery } from "@apollo/client/react/react.cjs";"`
1818
);
1919
});
20-
test("if nonexistant, creates new modern entry points", () => {
20+
test("if nonexistent, creates new modern entry points", () => {
2121
expect(
2222
transform`
2323
import { useQuery } from "@apollo/client/index.js";

0 commit comments

Comments
 (0)