Skip to content
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

Release 3.11 #11922

Merged
merged 69 commits into from
Jul 22, 2024
Merged

Release 3.11 #11922

merged 69 commits into from
Jul 22, 2024

Conversation

jerelmiller
Copy link
Member

This PR will be used to create prereleases for changes we intend to release as a part of @apollo/[email protected].

phryneas and others added 30 commits April 24, 2024 12:38
phryneas and others added 24 commits July 8, 2024 11:26
…etchPolicy` option specified. (#11626)

* Call `nextFetchPolicy` with "variables-changed" even if there is a `fetchPolicy` specified.
fixes #11365

* update size-limits

* remove `.only`

* Clean up Prettier, Size-limit, and Api-Extractor

* use `mockFetchQuery` helper in test

* fix detail in test-tsconfig.json

---------

Co-authored-by: phryneas <[email protected]>
* syntax adjustment for compiler

* Add `restart` function to `useSubscription`.

* add tests

* adjust test timing to accomodate for React 17

* Apply suggestions from code review

Co-authored-by: Jerel Miller <[email protected]>

* Clean up Prettier, Size-limit, and Api-Extractor

---------

Co-authored-by: Jerel Miller <[email protected]>
Co-authored-by: phryneas <[email protected]>
* add `ignoreResults` option to `useSubscription`

* more tests

* changeset

* restore type, add deprecation, tweak tag

* Update src/react/hooks/useSubscription.ts

* reflect code change in comment

* review feedback

* Update src/react/types/types.documentation.ts

Co-authored-by: Jerel Miller <[email protected]>

* add clarification about resetting the return value when switching on `ignoreResults` later

* test fixup

---------

Co-authored-by: Jerel Miller <[email protected]>
* also wrap `createQueryPreloader`

* changeset

* Clean up Prettier, Size-limit, and Api-Extractor

---------

Co-authored-by: phryneas <[email protected]>
* forward `errorPolicy` option from `useSubscription`

* more work

* add test

* ensure errors are instanceOf `ApolloError`

* test with more realistic errors

* Clean up Prettier, Size-limit, and Api-Extractor

---------

Co-authored-by: phryneas <[email protected]>
…11789)

* post-process errors received from responses into GraphQLError instances

* adjust types, add test

* fixing more types

* Clean up Prettier, Size-limit, and Api-Extractor

* remove runtime components

* add eslint rule

* Clean up Prettier, Size-limit, and Api-Extractor

* adjust some more

* adjustments

* change patch level

---------

Co-authored-by: phryneas <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* `watchFragment`: forward additional options to `diffOptions`
fixes #11924

* chore: bump .size-limits.json

* chore: bump .size-limits.json

* Clean up Prettier, Size-limit, and Api-Extractor

---------

Co-authored-by: Alessia Bellisario <[email protected]>
Co-authored-by: alessbell <[email protected]>
* fix: remove deprecated watchFragment option canonizeResults

* chore: add changeset

* chore: update api-reports
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* correctly test for error equality on jest

* adjust tests, change schemafetch error

* linting

* enforce matching `ApolloError` instances in tests everywhere

* size

* also always enforce stricter checks for `GraphQLError`
* fix(types): explicitly return `IgnoreModifier` from `optimisticResponse` function

* Add changeset

* Add test that allows returning `IgnoreModifier` when inferring from a generic TypedDocumentNode mutation

---------

Co-authored-by: Lenz Weber-Tronic <[email protected]>
* add React 19 RC to `peerDependencies`

* changeset

* update react RC dep for tests
* remove unused code path

Coverage shows that this code path was never hit - in the case of a `standby` fetchPolicy, `resultData.current` would already have been reset in `useResubscribeIfNecessary`

* move code from `toQueryResult` to `setResult`

While there are three code paths to `toQueryResult`, the other two are guaranteed to never have an `errors` property

* add undocumented `errors` field to types and deprecate it

* remove `useHandleSkip`

instead, we calculate and memoize an "override result" in `useObservableSubscriptionResult`

* remove now-obsolete `originalResult` symbol property

* fix typo, chores

* adjustment for compiler compat

* review feedback

* changeset

* api-report
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@jerelmiller jerelmiller merged commit 7b8028e into main Jul 22, 2024
42 of 43 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants