Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into release-3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Nov 12, 2024
2 parents 8ae6e4e + 9d6c306 commit 3b6b6cc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .size-limits.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"dist/apollo-client.min.cjs": 41516,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 34296
"dist/apollo-client.min.cjs": 41520,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 34303
}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
}
```

## 3.11.10

### Patch Changes

- [#12093](https://github.com/apollographql/apollo-client/pull/12093) [`1765668`](https://github.com/apollographql/apollo-client/commit/1765668b7d495ef8a581f697bf9e4b7460455f13) Thanks [@mgmolisani](https://github.com/mgmolisani)! - Fixed a bug when evaluating the devtools flag with the new syntax `devtools.enabled` that could result to `true` when explicitly set to `false`.

## 3.11.9

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/core/ApolloClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export class ApolloClient<TCacheShape> implements DataProxy {
this.typeDefs = typeDefs;
this.devtoolsConfig = {
...devtools,
enabled: devtools?.enabled || connectToDevTools,
enabled: devtools?.enabled ?? connectToDevTools,
};

if (this.devtoolsConfig.enabled === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion src/link/persisted-queries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const createPersistedQueryLink = (
defaultCacheSizes["PersistedQueryLink.persistedQueryHashes"]
);
}
let hash = hashesByQuery.get(query)!;
let hash = hashesByQuery.get(query);
if (!hash) hashesByQuery.set(query, (hash = getHashPromise(query)));
return hash;
}
Expand Down

0 comments on commit 3b6b6cc

Please sign in to comment.