@apollo/client 4.0.0-alpha.14 → 4.0.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +97 -0
- package/__cjs/cache/core/cache.cjs.map +1 -1
- package/__cjs/cache/core/cache.d.cts +2 -2
- package/__cjs/cache/core/types/DataProxy.d.cts +1 -2
- package/__cjs/cache/core/types/common.cjs.map +1 -1
- package/__cjs/cache/core/types/common.d.cts +1 -2
- package/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
- package/__cjs/cache/inmemory/inMemoryCache.d.cts +1 -2
- package/__cjs/core/ObservableQuery.cjs +6 -0
- package/__cjs/core/ObservableQuery.cjs.map +1 -1
- package/__cjs/core/QueryManager.cjs +2 -4
- package/__cjs/core/QueryManager.cjs.map +1 -1
- package/__cjs/core/watchQueryOptions.d.cts +2 -1
- package/__cjs/errors/ServerError.cjs +3 -4
- package/__cjs/errors/ServerError.cjs.map +1 -1
- package/__cjs/errors/ServerError.d.cts +8 -8
- package/__cjs/link/batch-http/batchHttpLink.cjs +0 -35
- package/__cjs/link/batch-http/batchHttpLink.cjs.map +1 -1
- package/__cjs/link/http/createHttpLink.cjs +1 -1
- package/__cjs/link/http/createHttpLink.cjs.map +1 -1
- package/__cjs/link/http/parseAndCheckHttpResponse.cjs +20 -55
- package/__cjs/link/http/parseAndCheckHttpResponse.cjs.map +1 -1
- package/__cjs/link/http/parseAndCheckHttpResponse.d.cts +0 -2
- package/__cjs/link/http/selectHttpOptionsAndBody.cjs +1 -1
- package/__cjs/link/http/selectHttpOptionsAndBody.cjs.map +1 -1
- package/__cjs/link/persisted-queries/index.cjs +12 -10
- package/__cjs/link/persisted-queries/index.cjs.map +1 -1
- package/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useBackgroundQuery.d.cts +2 -1
- package/__cjs/react/hooks/useFragment.cjs.map +1 -1
- package/__cjs/react/hooks/useFragment.d.cts +2 -1
- package/__cjs/react/hooks/useLoadableQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useLoadableQuery.d.cts +1 -1
- package/__cjs/react/hooks/useQuery.cjs +10 -25
- package/__cjs/react/hooks/useQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useQuery.d.cts +0 -1
- package/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useSuspenseQuery.d.cts +2 -1
- package/__cjs/react/query-preloader/createQueryPreloader.cjs.map +1 -1
- package/__cjs/react/query-preloader/createQueryPreloader.d.cts +2 -1
- package/__cjs/react/ssr/useSSRQuery.cjs +11 -2
- package/__cjs/react/ssr/useSSRQuery.cjs.map +1 -1
- package/__cjs/testing/core/mocking/mockLink.cjs +0 -6
- package/__cjs/testing/core/mocking/mockLink.cjs.map +1 -1
- package/__cjs/testing/core/mocking/mockLink.d.cts +19 -20
- package/__cjs/testing/core/mocking/mockSubscriptionLink.cjs +0 -4
- package/__cjs/testing/core/mocking/mockSubscriptionLink.cjs.map +1 -1
- package/__cjs/testing/core/mocking/mockSubscriptionLink.d.cts +7 -6
- package/__cjs/testing/core/types/deprecated.cjs +3 -0
- package/__cjs/testing/core/types/deprecated.cjs.map +1 -0
- package/__cjs/testing/core/types/deprecated.d.cts +10 -0
- package/__cjs/testing/index.cjs +6 -13
- package/__cjs/testing/index.cjs.map +1 -1
- package/__cjs/testing/index.d.cts +3 -2
- package/__cjs/testing/react/MockedProvider.cjs +2 -2
- package/__cjs/testing/react/MockedProvider.cjs.map +1 -1
- package/__cjs/testing/react/MockedProvider.d.cts +2 -3
- package/__cjs/utilities/DeepPartial.cjs.map +1 -0
- package/__cjs/utilities/{internal/types/DeepPartial.d.cts → DeepPartial.d.cts} +3 -5
- package/__cjs/utilities/index.cjs.map +1 -1
- package/__cjs/utilities/index.d.cts +1 -0
- package/__cjs/utilities/internal/index.cjs.map +1 -1
- package/__cjs/utilities/internal/index.d.cts +0 -1
- package/__cjs/utilities/subscriptions/relay/index.cjs +1 -1
- package/__cjs/utilities/subscriptions/relay/index.cjs.map +1 -1
- package/__cjs/version.cjs +1 -1
- package/cache/core/cache.d.ts +2 -2
- package/cache/core/cache.js.map +1 -1
- package/cache/core/types/DataProxy.d.ts +1 -2
- package/cache/core/types/common.d.ts +1 -2
- package/cache/core/types/common.js.map +1 -1
- package/cache/inmemory/inMemoryCache.d.ts +1 -2
- package/cache/inmemory/inMemoryCache.js.map +1 -1
- package/core/ObservableQuery.js +6 -0
- package/core/ObservableQuery.js.map +1 -1
- package/core/QueryManager.js +1 -3
- package/core/QueryManager.js.map +1 -1
- package/core/watchQueryOptions.d.ts +2 -1
- package/errors/ServerError.d.ts +8 -8
- package/errors/ServerError.js +3 -4
- package/errors/ServerError.js.map +1 -1
- package/link/batch-http/batchHttpLink.js +0 -35
- package/link/batch-http/batchHttpLink.js.map +1 -1
- package/link/http/createHttpLink.js +2 -2
- package/link/http/createHttpLink.js.map +1 -1
- package/link/http/parseAndCheckHttpResponse.d.ts +0 -2
- package/link/http/parseAndCheckHttpResponse.js +20 -54
- package/link/http/parseAndCheckHttpResponse.js.map +1 -1
- package/link/http/selectHttpOptionsAndBody.js +1 -1
- package/link/http/selectHttpOptionsAndBody.js.map +1 -1
- package/link/persisted-queries/index.js +12 -10
- package/link/persisted-queries/index.js.map +1 -1
- package/package.json +5 -165
- package/react/hooks/useBackgroundQuery.d.ts +2 -1
- package/react/hooks/useBackgroundQuery.js.map +1 -1
- package/react/hooks/useFragment.d.ts +2 -1
- package/react/hooks/useFragment.js.map +1 -1
- package/react/hooks/useLoadableQuery.d.ts +1 -1
- package/react/hooks/useLoadableQuery.js.map +1 -1
- package/react/hooks/useQuery.d.ts +0 -1
- package/react/hooks/useQuery.js +10 -25
- package/react/hooks/useQuery.js.map +1 -1
- package/react/hooks/useSuspenseQuery.d.ts +2 -1
- package/react/hooks/useSuspenseQuery.js.map +1 -1
- package/react/query-preloader/createQueryPreloader.d.ts +2 -1
- package/react/query-preloader/createQueryPreloader.js.map +1 -1
- package/react/ssr/useSSRQuery.js +11 -2
- package/react/ssr/useSSRQuery.js.map +1 -1
- package/testing/core/mocking/mockLink.d.ts +19 -20
- package/testing/core/mocking/mockLink.js +0 -5
- package/testing/core/mocking/mockLink.js.map +1 -1
- package/testing/core/mocking/mockSubscriptionLink.d.ts +7 -6
- package/testing/core/mocking/mockSubscriptionLink.js +0 -3
- package/testing/core/mocking/mockSubscriptionLink.js.map +1 -1
- package/testing/core/types/deprecated.d.ts +10 -0
- package/testing/core/types/deprecated.js +2 -0
- package/testing/core/types/deprecated.js.map +1 -0
- package/testing/index.d.ts +3 -2
- package/testing/index.js +2 -1
- package/testing/index.js.map +1 -1
- package/testing/react/MockedProvider.d.ts +2 -3
- package/testing/react/MockedProvider.js +1 -1
- package/testing/react/MockedProvider.js.map +1 -1
- package/utilities/{internal/types/DeepPartial.d.ts → DeepPartial.d.ts} +3 -5
- package/utilities/DeepPartial.js.map +1 -0
- package/utilities/index.d.ts +1 -0
- package/utilities/index.js.map +1 -1
- package/utilities/internal/index.d.ts +0 -1
- package/utilities/internal/index.js.map +1 -1
- package/utilities/subscriptions/relay/index.js +2 -2
- package/utilities/subscriptions/relay/index.js.map +1 -1
- package/version.js +1 -1
- package/.changeset/README.md +0 -8
- package/.changeset/afraid-grapes-call.md +0 -5
- package/.changeset/afraid-moons-arrive.md +0 -5
- package/.changeset/beige-mirrors-talk.md +0 -15
- package/.changeset/brave-moons-juggle.md +0 -5
- package/.changeset/brave-radios-wait.md +0 -5
- package/.changeset/bright-ads-share.md +0 -5
- package/.changeset/calm-frogs-remain.md +0 -7
- package/.changeset/calm-seals-relate.md +0 -5
- package/.changeset/chatty-planes-grin.md +0 -5
- package/.changeset/clean-sheep-hide.md +0 -6
- package/.changeset/clever-zebras-mate.md +0 -5
- package/.changeset/config.json +0 -14
- package/.changeset/cool-bikes-shake.md +0 -12
- package/.changeset/cool-kiwis-hunt.md +0 -15
- package/.changeset/cuddly-spiders-tie.md +0 -5
- package/.changeset/curvy-flies-accept.md +0 -5
- package/.changeset/curvy-pianos-count.md +0 -5
- package/.changeset/dirty-cobras-change.md +0 -7
- package/.changeset/dirty-eagles-poke.md +0 -5
- package/.changeset/dirty-trees-pump.md +0 -5
- package/.changeset/early-eggs-develop.md +0 -22
- package/.changeset/eighty-squids-fix.md +0 -15
- package/.changeset/eleven-kangaroos-jump.md +0 -5
- package/.changeset/empty-rabbits-move.md +0 -5
- package/.changeset/few-crabs-move.md +0 -6
- package/.changeset/fluffy-shoes-applaud.md +0 -5
- package/.changeset/forty-hairs-occur.md +0 -5
- package/.changeset/forty-shrimps-fry.md +0 -5
- package/.changeset/forty-tomatoes-punch.md +0 -5
- package/.changeset/four-countries-clean.md +0 -24
- package/.changeset/four-ghosts-watch.md +0 -5
- package/.changeset/fresh-moose-hope.md +0 -5
- package/.changeset/friendly-olives-refuse.md +0 -5
- package/.changeset/funny-boats-wink.md +0 -35
- package/.changeset/funny-jeans-invent.md +0 -16
- package/.changeset/funny-terms-deny.md +0 -5
- package/.changeset/fuzzy-seahorses-hunt.md +0 -5
- package/.changeset/fuzzy-tips-sit.md +0 -5
- package/.changeset/gentle-badgers-train.md +0 -5
- package/.changeset/gentle-waves-cough.md +0 -5
- package/.changeset/giant-apes-thank.md +0 -5
- package/.changeset/giant-bags-share.md +0 -5
- package/.changeset/gold-oranges-double.md +0 -5
- package/.changeset/good-dolphins-peel.md +0 -113
- package/.changeset/gorgeous-chefs-tap.md +0 -5
- package/.changeset/great-roses-jog.md +0 -15
- package/.changeset/grumpy-vans-type.md +0 -5
- package/.changeset/healthy-apes-sneeze.md +0 -5
- package/.changeset/hip-vans-act.md +0 -5
- package/.changeset/hot-cycles-notice.md +0 -5
- package/.changeset/hungry-bikes-cough.md +0 -5
- package/.changeset/itchy-chefs-run.md +0 -23
- package/.changeset/itchy-drinks-refuse.md +0 -5
- package/.changeset/itchy-roses-accept.md +0 -5
- package/.changeset/khaki-keys-deliver.md +0 -5
- package/.changeset/khaki-spies-work.md +0 -11
- package/.changeset/kind-fishes-develop.md +0 -17
- package/.changeset/large-plants-know.md +0 -5
- package/.changeset/late-trainers-peel.md +0 -7
- package/.changeset/light-apes-rescue.md +0 -5
- package/.changeset/light-dolphins-taste.md +0 -5
- package/.changeset/light-sloths-end.md +0 -16
- package/.changeset/little-parrots-bow.md +0 -14
- package/.changeset/little-spoons-kick.md +0 -7
- package/.changeset/loud-cows-raise.md +0 -7
- package/.changeset/lucky-hats-push.md +0 -7
- package/.changeset/lucky-sheep-explain.md +0 -34
- package/.changeset/many-buses-allow.md +0 -5
- package/.changeset/many-papayas-hide.md +0 -5
- package/.changeset/mean-lizards-think.md +0 -5
- package/.changeset/metal-needles-search.md +0 -5
- package/.changeset/mighty-penguins-wink.md +0 -16
- package/.changeset/modern-feet-do.md +0 -5
- package/.changeset/moody-lobsters-listen.md +0 -7
- package/.changeset/nervous-fireants-bow.md +0 -5
- package/.changeset/nervous-goats-allow.md +0 -5
- package/.changeset/nice-donkeys-reflect.md +0 -5
- package/.changeset/nice-dots-matter.md +0 -5
- package/.changeset/nice-waves-work.md +0 -7
- package/.changeset/ninety-bags-bake.md +0 -17
- package/.changeset/odd-chicken-hide.md +0 -17
- package/.changeset/odd-lemons-relax.md +0 -5
- package/.changeset/olive-cougars-ring.md +0 -9
- package/.changeset/orange-suits-laugh.md +0 -5
- package/.changeset/perfect-ducks-reflect.md +0 -12
- package/.changeset/perfect-vans-give.md +0 -7
- package/.changeset/polite-bees-care.md +0 -26
- package/.changeset/poor-eels-punch.md +0 -5
- package/.changeset/popular-games-sleep.md +0 -5
- package/.changeset/pre.json +0 -161
- package/.changeset/purple-bears-flash.md +0 -5
- package/.changeset/purple-lions-cough.md +0 -5
- package/.changeset/rare-houses-prove.md +0 -5
- package/.changeset/real-gorillas-move.md +0 -21
- package/.changeset/real-teachers-peel.md +0 -5
- package/.changeset/rich-eagles-cross.md +0 -5
- package/.changeset/rich-kids-carry.md +0 -9
- package/.changeset/rude-fans-study.md +0 -5
- package/.changeset/serious-items-develop.md +0 -17
- package/.changeset/serious-moons-juggle.md +0 -5
- package/.changeset/seven-dragons-repair.md +0 -14
- package/.changeset/seven-foxes-melt.md +0 -5
- package/.changeset/seven-schools-carry.md +0 -5
- package/.changeset/shaggy-pugs-add.md +0 -52
- package/.changeset/shiny-carrots-invent.md +0 -5
- package/.changeset/short-jokes-jam.md +0 -27
- package/.changeset/short-months-complain.md +0 -5
- package/.changeset/short-tomatoes-attend.md +0 -5
- package/.changeset/silly-knives-exist.md +0 -5
- package/.changeset/silly-seas-confess.md +0 -5
- package/.changeset/sixty-bats-cry.md +0 -6
- package/.changeset/slimy-chicken-melt.md +0 -5
- package/.changeset/slimy-maps-press.md +0 -5
- package/.changeset/slow-ravens-explain.md +0 -19
- package/.changeset/small-buttons-rhyme.md +0 -5
- package/.changeset/small-cycles-rescue.md +0 -5
- package/.changeset/small-kids-film.md +0 -14
- package/.changeset/small-poems-rest.md +0 -5
- package/.changeset/smart-rats-explode.md +0 -5
- package/.changeset/smooth-coins-collect.md +0 -5
- package/.changeset/smooth-pens-reply.md +0 -7
- package/.changeset/soft-mails-clean.md +0 -5
- package/.changeset/sour-kids-deliver.md +0 -5
- package/.changeset/sour-pillows-guess.md +0 -7
- package/.changeset/spotty-mugs-poke.md +0 -5
- package/.changeset/strange-seahorses-impress.md +0 -17
- package/.changeset/strong-rivers-fry.md +0 -34
- package/.changeset/stupid-pumpkins-travel.md +0 -13
- package/.changeset/swift-rivers-share.md +0 -13
- package/.changeset/tall-bikes-develop.md +0 -5
- package/.changeset/tall-cups-suffer.md +0 -13
- package/.changeset/tame-doors-shop.md +0 -14
- package/.changeset/tame-points-work.md +0 -11
- package/.changeset/tender-swans-flash.md +0 -16
- package/.changeset/thick-books-grin.md +0 -5
- package/.changeset/thin-peas-hear.md +0 -16
- package/.changeset/thirty-pens-jump.md +0 -5
- package/.changeset/tidy-pandas-punch.md +0 -5
- package/.changeset/tidy-squids-poke.md +0 -12
- package/.changeset/tough-rockets-allow.md +0 -5
- package/.changeset/tough-taxis-smoke.md +0 -7
- package/.changeset/tough-tips-drop.md +0 -15
- package/.changeset/tricky-tables-shave.md +0 -5
- package/.changeset/twenty-snakes-sort.md +0 -7
- package/.changeset/unlucky-kiwis-sell.md +0 -5
- package/.changeset/unlucky-sheep-change.md +0 -5
- package/.changeset/warm-ties-sit.md +0 -7
- package/.changeset/wicked-forks-double.md +0 -33
- package/.changeset/wicked-kiwis-buy.md +0 -5
- package/.changeset/witty-paws-marry.md +0 -26
- package/.changeset/yellow-cats-judge.md +0 -13
- package/.changeset/young-phones-fold.md +0 -5
- package/.changeset/young-snails-grin.md +0 -5
- package/.changeset/young-turtles-explode.md +0 -5
- package/__cjs/masking/__benches__/types.bench.cjs +0 -223
- package/__cjs/masking/__benches__/types.bench.cjs.map +0 -1
- package/__cjs/masking/__benches__/types.bench.d.cts +0 -2
- package/__cjs/testing/core/index.cjs +0 -20
- package/__cjs/testing/core/index.cjs.map +0 -1
- package/__cjs/testing/core/index.d.cts +0 -7
- package/__cjs/testing/core/mocking/mockClient.cjs +0 -17
- package/__cjs/testing/core/mocking/mockClient.cjs.map +0 -1
- package/__cjs/testing/core/mocking/mockClient.d.cts +0 -4
- package/__cjs/testing/core/wait.cjs +0 -11
- package/__cjs/testing/core/wait.cjs.map +0 -1
- package/__cjs/testing/core/wait.d.cts +0 -3
- package/__cjs/testing/core/withConsoleSpy.cjs +0 -33
- package/__cjs/testing/core/withConsoleSpy.cjs.map +0 -1
- package/__cjs/testing/core/withConsoleSpy.d.cts +0 -7
- package/__cjs/testing/internal/ObservableStream.cjs +0 -110
- package/__cjs/testing/internal/ObservableStream.cjs.map +0 -1
- package/__cjs/testing/internal/ObservableStream.d.cts +0 -39
- package/__cjs/testing/internal/disposables/enableFakeTimers.cjs +0 -19
- package/__cjs/testing/internal/disposables/enableFakeTimers.cjs.map +0 -1
- package/__cjs/testing/internal/disposables/enableFakeTimers.d.cts +0 -7
- package/__cjs/testing/internal/disposables/index.cjs +0 -12
- package/__cjs/testing/internal/disposables/index.cjs.map +0 -1
- package/__cjs/testing/internal/disposables/index.d.cts +0 -5
- package/__cjs/testing/internal/disposables/spyOnConsole.cjs +0 -24
- package/__cjs/testing/internal/disposables/spyOnConsole.cjs.map +0 -1
- package/__cjs/testing/internal/disposables/spyOnConsole.d.cts +0 -8
- package/__cjs/testing/internal/disposables/withCleanup.cjs +0 -22
- package/__cjs/testing/internal/disposables/withCleanup.cjs.map +0 -1
- package/__cjs/testing/internal/disposables/withCleanup.d.cts +0 -7
- package/__cjs/testing/internal/disposables/withProdMode.cjs +0 -17
- package/__cjs/testing/internal/disposables/withProdMode.cjs.map +0 -1
- package/__cjs/testing/internal/disposables/withProdMode.d.cts +0 -4
- package/__cjs/testing/internal/incremental.cjs +0 -124
- package/__cjs/testing/internal/incremental.cjs.map +0 -1
- package/__cjs/testing/internal/incremental.d.cts +0 -16
- package/__cjs/testing/internal/index.cjs +0 -34
- package/__cjs/testing/internal/index.cjs.map +0 -1
- package/__cjs/testing/internal/index.d.cts +0 -12
- package/__cjs/testing/internal/link.cjs +0 -22
- package/__cjs/testing/internal/link.cjs.map +0 -1
- package/__cjs/testing/internal/link.d.cts +0 -6
- package/__cjs/testing/internal/messageChannelPolyfill.cjs +0 -18
- package/__cjs/testing/internal/messageChannelPolyfill.cjs.map +0 -1
- package/__cjs/testing/internal/messageChannelPolyfill.d.cts +0 -2
- package/__cjs/testing/internal/renderHelpers.cjs +0 -21
- package/__cjs/testing/internal/renderHelpers.cjs.map +0 -1
- package/__cjs/testing/internal/renderHelpers.d.cts +0 -14
- package/__cjs/testing/internal/resetApolloContext.cjs +0 -24
- package/__cjs/testing/internal/resetApolloContext.cjs.map +0 -1
- package/__cjs/testing/internal/resetApolloContext.d.cts +0 -10
- package/__cjs/testing/internal/rtl/actAsync.cjs +0 -18
- package/__cjs/testing/internal/rtl/actAsync.cjs.map +0 -1
- package/__cjs/testing/internal/rtl/actAsync.d.cts +0 -2
- package/__cjs/testing/internal/rtl/renderAsync.cjs +0 -15
- package/__cjs/testing/internal/rtl/renderAsync.cjs.map +0 -1
- package/__cjs/testing/internal/rtl/renderAsync.d.cts +0 -9
- package/__cjs/testing/internal/rtl/renderHookAsync.cjs +0 -37
- package/__cjs/testing/internal/rtl/renderHookAsync.cjs.map +0 -1
- package/__cjs/testing/internal/rtl/renderHookAsync.d.cts +0 -8
- package/__cjs/testing/internal/scenarios/index.cjs +0 -104
- package/__cjs/testing/internal/scenarios/index.cjs.map +0 -1
- package/__cjs/testing/internal/scenarios/index.d.cts +0 -83
- package/__cjs/testing/matchers/arrayWithLength.cjs +0 -15
- package/__cjs/testing/matchers/arrayWithLength.cjs.map +0 -1
- package/__cjs/testing/matchers/arrayWithLength.d.cts +0 -3
- package/__cjs/testing/matchers/index.cjs +0 -31
- package/__cjs/testing/matchers/index.cjs.map +0 -1
- package/__cjs/testing/matchers/index.d.cts +0 -2
- package/__cjs/testing/matchers/isSameClient.cjs +0 -19
- package/__cjs/testing/matchers/isSameClient.cjs.map +0 -1
- package/__cjs/testing/matchers/isSameClient.d.cts +0 -3
- package/__cjs/testing/matchers/isSameObservableQuery.cjs +0 -19
- package/__cjs/testing/matchers/isSameObservableQuery.cjs.map +0 -1
- package/__cjs/testing/matchers/isSameObservableQuery.d.cts +0 -3
- package/__cjs/testing/matchers/toBeDisposed.cjs +0 -20
- package/__cjs/testing/matchers/toBeDisposed.cjs.map +0 -1
- package/__cjs/testing/matchers/toBeDisposed.d.cts +0 -3
- package/__cjs/testing/matchers/toBeGarbageCollected.cjs +0 -43
- package/__cjs/testing/matchers/toBeGarbageCollected.cjs.map +0 -1
- package/__cjs/testing/matchers/toBeGarbageCollected.d.cts +0 -8
- package/__cjs/testing/matchers/toComplete.cjs +0 -30
- package/__cjs/testing/matchers/toComplete.cjs.map +0 -1
- package/__cjs/testing/matchers/toComplete.d.cts +0 -4
- package/__cjs/testing/matchers/toEmitAnything.cjs +0 -33
- package/__cjs/testing/matchers/toEmitAnything.cjs.map +0 -1
- package/__cjs/testing/matchers/toEmitAnything.d.cts +0 -4
- package/__cjs/testing/matchers/toEmitError.cjs +0 -46
- package/__cjs/testing/matchers/toEmitError.cjs.map +0 -1
- package/__cjs/testing/matchers/toEmitError.d.cts +0 -7
- package/__cjs/testing/matchers/toEmitNext.cjs +0 -30
- package/__cjs/testing/matchers/toEmitNext.cjs.map +0 -1
- package/__cjs/testing/matchers/toEmitNext.d.cts +0 -4
- package/__cjs/testing/matchers/toEmitTypedValue.cjs +0 -42
- package/__cjs/testing/matchers/toEmitTypedValue.cjs.map +0 -1
- package/__cjs/testing/matchers/toEmitTypedValue.d.cts +0 -12
- package/__cjs/testing/matchers/toHaveSuspenseCacheEntryUsing.cjs +0 -26
- package/__cjs/testing/matchers/toHaveSuspenseCacheEntryUsing.cjs.map +0 -1
- package/__cjs/testing/matchers/toHaveSuspenseCacheEntryUsing.d.cts +0 -11
- package/__cjs/testing/matchers/toMatchDocument.cjs +0 -37
- package/__cjs/testing/matchers/toMatchDocument.cjs.map +0 -1
- package/__cjs/testing/matchers/toMatchDocument.d.cts +0 -4
- package/__cjs/testing/matchers/toRerenderWithSimilarSnapshot.cjs +0 -65
- package/__cjs/testing/matchers/toRerenderWithSimilarSnapshot.cjs.map +0 -1
- package/__cjs/testing/matchers/toRerenderWithSimilarSnapshot.d.cts +0 -20
- package/__cjs/testing/matchers/toStrictEqualTyped.cjs +0 -32
- package/__cjs/testing/matchers/toStrictEqualTyped.cjs.map +0 -1
- package/__cjs/testing/matchers/toStrictEqualTyped.d.cts +0 -12
- package/__cjs/testing/matchers/utils/getSerializableProperties.cjs +0 -36
- package/__cjs/testing/matchers/utils/getSerializableProperties.cjs.map +0 -1
- package/__cjs/testing/matchers/utils/getSerializableProperties.d.cts +0 -4
- package/__cjs/utilities/internal/types/DeepPartial.cjs.map +0 -1
- package/legacyEntryPoints/testing/core/core.cjs +0 -1
- package/legacyEntryPoints/testing/core/core.d.cts +0 -1
- package/legacyEntryPoints/testing/core/index.d.ts +0 -1
- package/legacyEntryPoints/testing/core/index.js +0 -1
- package/legacyEntryPoints/testing/internal/index.d.ts +0 -1
- package/legacyEntryPoints/testing/internal/index.js +0 -1
- package/legacyEntryPoints/testing/internal/internal.cjs +0 -1
- package/legacyEntryPoints/testing/internal/internal.d.cts +0 -1
- package/masking/__benches__/types.bench.d.ts +0 -2
- package/masking/__benches__/types.bench.js +0 -221
- package/masking/__benches__/types.bench.js.map +0 -1
- package/testing/core/index.d.ts +0 -7
- package/testing/core/index.js +0 -6
- package/testing/core/index.js.map +0 -1
- package/testing/core/mocking/mockClient.d.ts +0 -4
- package/testing/core/mocking/mockClient.js +0 -14
- package/testing/core/mocking/mockClient.js.map +0 -1
- package/testing/core/wait.d.ts +0 -3
- package/testing/core/wait.js +0 -7
- package/testing/core/wait.js.map +0 -1
- package/testing/core/withConsoleSpy.d.ts +0 -7
- package/testing/core/withConsoleSpy.js +0 -28
- package/testing/core/withConsoleSpy.js.map +0 -1
- package/testing/internal/ObservableStream.d.ts +0 -39
- package/testing/internal/ObservableStream.js +0 -105
- package/testing/internal/ObservableStream.js.map +0 -1
- package/testing/internal/disposables/enableFakeTimers.d.ts +0 -7
- package/testing/internal/disposables/enableFakeTimers.js +0 -16
- package/testing/internal/disposables/enableFakeTimers.js.map +0 -1
- package/testing/internal/disposables/index.d.ts +0 -5
- package/testing/internal/disposables/index.js +0 -5
- package/testing/internal/disposables/index.js.map +0 -1
- package/testing/internal/disposables/spyOnConsole.d.ts +0 -8
- package/testing/internal/disposables/spyOnConsole.js +0 -21
- package/testing/internal/disposables/spyOnConsole.js.map +0 -1
- package/testing/internal/disposables/withCleanup.d.ts +0 -7
- package/testing/internal/disposables/withCleanup.js +0 -19
- package/testing/internal/disposables/withCleanup.js.map +0 -1
- package/testing/internal/disposables/withProdMode.d.ts +0 -4
- package/testing/internal/disposables/withProdMode.js +0 -13
- package/testing/internal/disposables/withProdMode.js.map +0 -1
- package/testing/internal/incremental.d.ts +0 -16
- package/testing/internal/incremental.js +0 -120
- package/testing/internal/incremental.js.map +0 -1
- package/testing/internal/index.d.ts +0 -12
- package/testing/internal/index.js +0 -11
- package/testing/internal/index.js.map +0 -1
- package/testing/internal/link.d.ts +0 -6
- package/testing/internal/link.js +0 -18
- package/testing/internal/link.js.map +0 -1
- package/testing/internal/messageChannelPolyfill.d.ts +0 -2
- package/testing/internal/messageChannelPolyfill.js +0 -16
- package/testing/internal/messageChannelPolyfill.js.map +0 -1
- package/testing/internal/renderHelpers.d.ts +0 -14
- package/testing/internal/renderHelpers.js +0 -16
- package/testing/internal/renderHelpers.js.map +0 -1
- package/testing/internal/resetApolloContext.d.ts +0 -10
- package/testing/internal/resetApolloContext.js +0 -20
- package/testing/internal/resetApolloContext.js.map +0 -1
- package/testing/internal/rtl/actAsync.d.ts +0 -2
- package/testing/internal/rtl/actAsync.js +0 -14
- package/testing/internal/rtl/actAsync.js.map +0 -1
- package/testing/internal/rtl/renderAsync.d.ts +0 -9
- package/testing/internal/rtl/renderAsync.js +0 -12
- package/testing/internal/rtl/renderAsync.js.map +0 -1
- package/testing/internal/rtl/renderHookAsync.d.ts +0 -8
- package/testing/internal/rtl/renderHookAsync.js +0 -33
- package/testing/internal/rtl/renderHookAsync.js.map +0 -1
- package/testing/internal/scenarios/index.d.ts +0 -83
- package/testing/internal/scenarios/index.js +0 -97
- package/testing/internal/scenarios/index.js.map +0 -1
- package/testing/matchers/arrayWithLength.d.ts +0 -3
- package/testing/matchers/arrayWithLength.js +0 -11
- package/testing/matchers/arrayWithLength.js.map +0 -1
- package/testing/matchers/index.d.ts +0 -2
- package/testing/matchers/index.js +0 -29
- package/testing/matchers/index.js.map +0 -1
- package/testing/matchers/isSameClient.d.ts +0 -3
- package/testing/matchers/isSameClient.js +0 -15
- package/testing/matchers/isSameClient.js.map +0 -1
- package/testing/matchers/isSameObservableQuery.d.ts +0 -3
- package/testing/matchers/isSameObservableQuery.js +0 -15
- package/testing/matchers/isSameObservableQuery.js.map +0 -1
- package/testing/matchers/toBeDisposed.d.ts +0 -3
- package/testing/matchers/toBeDisposed.js +0 -16
- package/testing/matchers/toBeDisposed.js.map +0 -1
- package/testing/matchers/toBeGarbageCollected.d.ts +0 -8
- package/testing/matchers/toBeGarbageCollected.js +0 -39
- package/testing/matchers/toBeGarbageCollected.js.map +0 -1
- package/testing/matchers/toComplete.d.ts +0 -4
- package/testing/matchers/toComplete.js +0 -26
- package/testing/matchers/toComplete.js.map +0 -1
- package/testing/matchers/toEmitAnything.d.ts +0 -4
- package/testing/matchers/toEmitAnything.js +0 -29
- package/testing/matchers/toEmitAnything.js.map +0 -1
- package/testing/matchers/toEmitError.d.ts +0 -7
- package/testing/matchers/toEmitError.js +0 -42
- package/testing/matchers/toEmitError.js.map +0 -1
- package/testing/matchers/toEmitNext.d.ts +0 -4
- package/testing/matchers/toEmitNext.js +0 -26
- package/testing/matchers/toEmitNext.js.map +0 -1
- package/testing/matchers/toEmitTypedValue.d.ts +0 -12
- package/testing/matchers/toEmitTypedValue.js +0 -38
- package/testing/matchers/toEmitTypedValue.js.map +0 -1
- package/testing/matchers/toHaveSuspenseCacheEntryUsing.d.ts +0 -11
- package/testing/matchers/toHaveSuspenseCacheEntryUsing.js +0 -22
- package/testing/matchers/toHaveSuspenseCacheEntryUsing.js.map +0 -1
- package/testing/matchers/toMatchDocument.d.ts +0 -4
- package/testing/matchers/toMatchDocument.js +0 -33
- package/testing/matchers/toMatchDocument.js.map +0 -1
- package/testing/matchers/toRerenderWithSimilarSnapshot.d.ts +0 -20
- package/testing/matchers/toRerenderWithSimilarSnapshot.js +0 -62
- package/testing/matchers/toRerenderWithSimilarSnapshot.js.map +0 -1
- package/testing/matchers/toStrictEqualTyped.d.ts +0 -12
- package/testing/matchers/toStrictEqualTyped.js +0 -28
- package/testing/matchers/toStrictEqualTyped.js.map +0 -1
- package/testing/matchers/utils/getSerializableProperties.d.ts +0 -4
- package/testing/matchers/utils/getSerializableProperties.js +0 -33
- package/testing/matchers/utils/getSerializableProperties.js.map +0 -1
- package/utilities/internal/types/DeepPartial.js.map +0 -1
- /package/__cjs/utilities/{internal/types/DeepPartial.cjs → DeepPartial.cjs} +0 -0
- /package/utilities/{internal/types/DeepPartial.js → DeepPartial.js} +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Removes the `throwServerError` utility function. Now that `ServerError` is an
|
|
6
|
-
`Error` subclass, you can throw these errors directly:
|
|
7
|
-
|
|
8
|
-
```js
|
|
9
|
-
import { ServerError } from '@apollo/client';
|
|
10
|
-
|
|
11
|
-
// instead of
|
|
12
|
-
throwServerError(response, result, 'error message')
|
|
13
|
-
|
|
14
|
-
// Use
|
|
15
|
-
throw new ServerError('error message', { response, result })
|
|
16
|
-
```
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
The `Cache.DiffResult<T>` type is now a union type with better type safety for both complete and partial results. Checking `diff.complete` will now narrow the type of `result` depending on whether the value is `true` or `false`.
|
|
6
|
-
|
|
7
|
-
When `true`, `diff.result` will be a non-null value equal to the `T` generic type. When `false`, `diff.result` now reports `result` as `DeepPartial<T> | null` indicating that fields in the result may be missing (`DeepPartial<T>`) or empty entirely (`null`).
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
The result resolved from the promise returned from the execute function in `useLazyQuery` is now an `ApolloQueryResult` type and no longer includes all the fields returned from the `useLazyQuery` hook tuple.
|
|
6
|
-
|
|
7
|
-
If you need access to the additional properties such as `called`, `refetch`, etc. not included in `ApolloQueryResult`, read them from the hook instead.
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Mocked responses passed to `MockLink` now accept a callback for the `request.variables` option. This is used to determine if the mock should be matched for a set of request variables. With this change, the `variableMatcher` option has been removed in favor of passing a callback to `variables`. Update by moving the callback function from `variableMatcher` to `request.variables`.
|
|
6
|
-
|
|
7
|
-
```diff
|
|
8
|
-
new MockLink([
|
|
9
|
-
{
|
|
10
|
-
request: {
|
|
11
|
-
query,
|
|
12
|
-
+ variables: (requestVariables) => true
|
|
13
|
-
},
|
|
14
|
-
- variableMatcher: (requestVariables) => true
|
|
15
|
-
}
|
|
16
|
-
]);
|
|
17
|
-
```
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": minor
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Add the ability to detect if an error was an error was emitted from the link chain. This is useful if your application throws custom errors in other areas of the application and you'd like to differentiate them from errors emitted by the link chain itself.
|
|
6
|
-
|
|
7
|
-
To detect if an error was emitted from the link chain, use `LinkError.is`.
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
import { LinkError } from "@apollo/client";
|
|
11
|
-
|
|
12
|
-
client.query({ query }).catch((error) => {
|
|
13
|
-
if (LinkError.is(error)) {
|
|
14
|
-
// This error originated from the link chain
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
```
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": patch
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Rename all React hook result types and options. These types have all moved under a namespace that matches the hook name. For example, `useQuery` exports `useQuery.Options` and `useQuery.Result` types. As such, the old hook types have been deprecated and will be removed in v5.
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": patch
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Adjust `useMutation` types to better handle required variables. When required variables are missing, TypeScript will now complain if they are not provided either to the hook or the returned `mutate` function. Providing required variables to `useMutation` will make them optional in the returned `mutate` function.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
`ApolloLink.execute` now requires a third argument which provides the `client` that initiated the request to the link chain. If you use `execute` directly, add a third argument with a `client` property:
|
|
6
|
-
|
|
7
|
-
```ts
|
|
8
|
-
ApolloLink.execute(link, operation, { client });
|
|
9
|
-
|
|
10
|
-
// or if you import the `execute` function directly:
|
|
11
|
-
execute(link, operation, { client });
|
|
12
|
-
```
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
`useLazyQuery` will no longer rerender with the loading state when calling the execute function the first time unless the `notifyOnNetworkStatusChange` option is set to `true` (which is the new default).
|
|
6
|
-
|
|
7
|
-
If you prefer the behavior from 3.x, rerender the component with
|
|
8
|
-
`notifyOnNetworkStatusChange` set to `false` after the execute function is
|
|
9
|
-
called the first time.
|
|
10
|
-
|
|
11
|
-
```ts
|
|
12
|
-
function MyComponent() {
|
|
13
|
-
const [notifyOnNetworkStatusChange, setNotifyOnNetworkStatusChange] = useState(true);
|
|
14
|
-
const [execute] = useLazyQuery(query, { notifyOnNetworkStatusChange });
|
|
15
|
-
|
|
16
|
-
async function runExecute() {
|
|
17
|
-
await execute();
|
|
18
|
-
|
|
19
|
-
// Set to false after the initial fetch to stop receiving notifications
|
|
20
|
-
// about changes to the loading states.
|
|
21
|
-
setNotifyOnNetworkStatusChange(false);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// ...
|
|
25
|
-
}
|
|
26
|
-
```
|
package/.changeset/pre.json
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mode": "pre",
|
|
3
|
-
"tag": "alpha",
|
|
4
|
-
"initialVersions": {
|
|
5
|
-
"@apollo/client": "3.12.2"
|
|
6
|
-
},
|
|
7
|
-
"changesets": [
|
|
8
|
-
"afraid-grapes-call",
|
|
9
|
-
"afraid-moons-arrive",
|
|
10
|
-
"beige-mirrors-talk",
|
|
11
|
-
"brave-moons-juggle",
|
|
12
|
-
"brave-radios-wait",
|
|
13
|
-
"bright-ads-share",
|
|
14
|
-
"calm-frogs-remain",
|
|
15
|
-
"calm-seals-relate",
|
|
16
|
-
"chatty-planes-grin",
|
|
17
|
-
"clean-sheep-hide",
|
|
18
|
-
"clever-zebras-mate",
|
|
19
|
-
"cool-bikes-shake",
|
|
20
|
-
"cool-kiwis-hunt",
|
|
21
|
-
"cuddly-spiders-tie",
|
|
22
|
-
"curvy-flies-accept",
|
|
23
|
-
"curvy-pianos-count",
|
|
24
|
-
"dirty-cobras-change",
|
|
25
|
-
"dirty-eagles-poke",
|
|
26
|
-
"dirty-trees-pump",
|
|
27
|
-
"early-eggs-develop",
|
|
28
|
-
"eighty-squids-fix",
|
|
29
|
-
"eleven-kangaroos-jump",
|
|
30
|
-
"empty-rabbits-move",
|
|
31
|
-
"few-crabs-move",
|
|
32
|
-
"fluffy-shoes-applaud",
|
|
33
|
-
"forty-hairs-occur",
|
|
34
|
-
"forty-shrimps-fry",
|
|
35
|
-
"forty-tomatoes-punch",
|
|
36
|
-
"four-countries-clean",
|
|
37
|
-
"four-ghosts-watch",
|
|
38
|
-
"fresh-moose-hope",
|
|
39
|
-
"friendly-olives-refuse",
|
|
40
|
-
"funny-boats-wink",
|
|
41
|
-
"funny-jeans-invent",
|
|
42
|
-
"funny-terms-deny",
|
|
43
|
-
"fuzzy-seahorses-hunt",
|
|
44
|
-
"fuzzy-tips-sit",
|
|
45
|
-
"gentle-badgers-train",
|
|
46
|
-
"gentle-waves-cough",
|
|
47
|
-
"giant-apes-thank",
|
|
48
|
-
"giant-bags-share",
|
|
49
|
-
"gold-oranges-double",
|
|
50
|
-
"good-dolphins-peel",
|
|
51
|
-
"gorgeous-chefs-tap",
|
|
52
|
-
"great-roses-jog",
|
|
53
|
-
"grumpy-vans-type",
|
|
54
|
-
"healthy-apes-sneeze",
|
|
55
|
-
"hip-vans-act",
|
|
56
|
-
"hot-cycles-notice",
|
|
57
|
-
"hungry-bikes-cough",
|
|
58
|
-
"itchy-chefs-run",
|
|
59
|
-
"itchy-drinks-refuse",
|
|
60
|
-
"itchy-roses-accept",
|
|
61
|
-
"khaki-keys-deliver",
|
|
62
|
-
"khaki-spies-work",
|
|
63
|
-
"kind-fishes-develop",
|
|
64
|
-
"large-plants-know",
|
|
65
|
-
"late-trainers-peel",
|
|
66
|
-
"light-apes-rescue",
|
|
67
|
-
"light-dolphins-taste",
|
|
68
|
-
"light-sloths-end",
|
|
69
|
-
"little-parrots-bow",
|
|
70
|
-
"little-spoons-kick",
|
|
71
|
-
"loud-cows-raise",
|
|
72
|
-
"lucky-hats-push",
|
|
73
|
-
"lucky-sheep-explain",
|
|
74
|
-
"many-buses-allow",
|
|
75
|
-
"many-papayas-hide",
|
|
76
|
-
"mean-lizards-think",
|
|
77
|
-
"metal-needles-search",
|
|
78
|
-
"mighty-penguins-wink",
|
|
79
|
-
"modern-feet-do",
|
|
80
|
-
"moody-lobsters-listen",
|
|
81
|
-
"nervous-fireants-bow",
|
|
82
|
-
"nervous-goats-allow",
|
|
83
|
-
"nice-donkeys-reflect",
|
|
84
|
-
"nice-dots-matter",
|
|
85
|
-
"nice-waves-work",
|
|
86
|
-
"ninety-bags-bake",
|
|
87
|
-
"odd-chicken-hide",
|
|
88
|
-
"odd-lemons-relax",
|
|
89
|
-
"olive-cougars-ring",
|
|
90
|
-
"orange-suits-laugh",
|
|
91
|
-
"perfect-ducks-reflect",
|
|
92
|
-
"perfect-vans-give",
|
|
93
|
-
"polite-bees-care",
|
|
94
|
-
"poor-eels-punch",
|
|
95
|
-
"popular-games-sleep",
|
|
96
|
-
"purple-bears-flash",
|
|
97
|
-
"purple-lions-cough",
|
|
98
|
-
"rare-houses-prove",
|
|
99
|
-
"real-gorillas-move",
|
|
100
|
-
"real-teachers-peel",
|
|
101
|
-
"rich-eagles-cross",
|
|
102
|
-
"rich-kids-carry",
|
|
103
|
-
"rude-fans-study",
|
|
104
|
-
"serious-items-develop",
|
|
105
|
-
"serious-moons-juggle",
|
|
106
|
-
"seven-dragons-repair",
|
|
107
|
-
"seven-foxes-melt",
|
|
108
|
-
"seven-schools-carry",
|
|
109
|
-
"shaggy-pugs-add",
|
|
110
|
-
"shiny-carrots-invent",
|
|
111
|
-
"short-jokes-jam",
|
|
112
|
-
"short-months-complain",
|
|
113
|
-
"short-tomatoes-attend",
|
|
114
|
-
"silly-knives-exist",
|
|
115
|
-
"silly-seas-confess",
|
|
116
|
-
"sixty-bats-cry",
|
|
117
|
-
"slimy-chicken-melt",
|
|
118
|
-
"slimy-maps-press",
|
|
119
|
-
"slow-ravens-explain",
|
|
120
|
-
"small-buttons-rhyme",
|
|
121
|
-
"small-cycles-rescue",
|
|
122
|
-
"small-kids-film",
|
|
123
|
-
"small-poems-rest",
|
|
124
|
-
"smart-rats-explode",
|
|
125
|
-
"smooth-coins-collect",
|
|
126
|
-
"smooth-pens-reply",
|
|
127
|
-
"soft-mails-clean",
|
|
128
|
-
"sour-kids-deliver",
|
|
129
|
-
"sour-pillows-guess",
|
|
130
|
-
"spotty-mugs-poke",
|
|
131
|
-
"strange-seahorses-impress",
|
|
132
|
-
"strong-rivers-fry",
|
|
133
|
-
"stupid-pumpkins-travel",
|
|
134
|
-
"swift-rivers-share",
|
|
135
|
-
"tall-bikes-develop",
|
|
136
|
-
"tall-cups-suffer",
|
|
137
|
-
"tame-doors-shop",
|
|
138
|
-
"tame-points-work",
|
|
139
|
-
"tender-swans-flash",
|
|
140
|
-
"thick-books-grin",
|
|
141
|
-
"thin-peas-hear",
|
|
142
|
-
"thirty-pens-jump",
|
|
143
|
-
"tidy-pandas-punch",
|
|
144
|
-
"tidy-squids-poke",
|
|
145
|
-
"tough-rockets-allow",
|
|
146
|
-
"tough-taxis-smoke",
|
|
147
|
-
"tough-tips-drop",
|
|
148
|
-
"tricky-tables-shave",
|
|
149
|
-
"twenty-snakes-sort",
|
|
150
|
-
"unlucky-kiwis-sell",
|
|
151
|
-
"unlucky-sheep-change",
|
|
152
|
-
"warm-ties-sit",
|
|
153
|
-
"wicked-forks-double",
|
|
154
|
-
"wicked-kiwis-buy",
|
|
155
|
-
"witty-paws-marry",
|
|
156
|
-
"yellow-cats-judge",
|
|
157
|
-
"young-phones-fold",
|
|
158
|
-
"young-snails-grin",
|
|
159
|
-
"young-turtles-explode"
|
|
160
|
-
]
|
|
161
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Apollo Client now defaults to production mode, not development mode, if the
|
|
6
|
-
environment cannot be determined.
|
|
7
|
-
|
|
8
|
-
In modern bundlers, this should automatically be handled by the bundler loading
|
|
9
|
-
the bundler with the `development` export condition.
|
|
10
|
-
|
|
11
|
-
If neither the `production` nor the `development` export condition are
|
|
12
|
-
used by the bundler/runtime, Apollo Client will fall back to `globalThis.__DEV__`
|
|
13
|
-
to determine if it should run in production or development mode.
|
|
14
|
-
|
|
15
|
-
Unlike Apollo Client 3 though, if `globalThis.__DEV__` is not set to `true`,
|
|
16
|
-
Apollo Client will now default to `production`, not to `development`, behaviour.
|
|
17
|
-
|
|
18
|
-
This switch to *explicilty* requiring `true` also resolves a situation where
|
|
19
|
-
an HTML element with `id="__DEV__"` would create a global `__DEV__` variable
|
|
20
|
-
with a referent to the DOM element, which in the past was picked up as "truthy" and
|
|
21
|
-
would have triggered development mode.
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Unify error behavior on subscriptions for GraphQL errors and network errors by ensuring network errors are subject to the `errorPolicy`. Network errors that terminate the connection will now be emitted on the `error` property passed to the `next` callback followed by a call to the `complete` callback.
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Fix type of `data` property on `ApolloQueryResult`. Previously this field was non-optional, non-null `TData`, however at runtime this value could be set to `undefined`. This field is now reported as `TData | undefined`.
|
|
6
|
-
|
|
7
|
-
This will affect you in a handful of places:
|
|
8
|
-
- The `data` property emitted from the result passed to the `next` callback from `client.watchQuery`
|
|
9
|
-
- Fetch-based APIs that return an `ApolloQueryResult` type such as `observableQuery.refetch`, `observableQuery.fetchMore`, etc.
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": minor
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Deprecate the `partial` flag on `ApolloQueryResult` and make it a non-optional property. Previously `partial` was only set conditionally if the result emitted was partial. This value is now available with all results that return an `ApolloQueryResult`.
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Third-party caches must now implement the `fragmentMatches` API. Additionally `fragmentMatches` must be able to handle both `InlineFragmentNode` and `FragmentDefinitionNode` nodes.
|
|
6
|
-
|
|
7
|
-
```ts
|
|
8
|
-
class MyCache extends ApolloCache {
|
|
9
|
-
// This is now required
|
|
10
|
-
public fragmentMatches(
|
|
11
|
-
fragment: InlineFragmentNode | FragmentDefinitionNode,
|
|
12
|
-
typename: string
|
|
13
|
-
): boolean {
|
|
14
|
-
return // ... logic to determine if typename matches fragment
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
```
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": patch
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Update format of the error message for `CombinedGraphQLErrors` and `CombinedProtocolErrors` to be more like v3.x.
|
|
6
|
-
|
|
7
|
-
```diff
|
|
8
|
-
console.log(error.message);
|
|
9
|
-
- `The GraphQL server returned with errors:
|
|
10
|
-
- - Email not found
|
|
11
|
-
- - Username already in use`
|
|
12
|
-
+ `Email not found
|
|
13
|
-
+ Username already in use`
|
|
14
|
-
```
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": minor
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Add ability to specify a default `delay` for all mocked responses passed to `MockLink`. This `delay` can be configured globally (all instances of `MockLink` will use the global defaults), or per-instance (all mocks in a single instance will use the defaults). A `delay` defined on a single mock will supercede all default delays. Per-instance defaults supercede global defaults.
|
|
6
|
-
|
|
7
|
-
**Global defaults**
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
MockLink.defaultOptions = {
|
|
11
|
-
// Use a default delay of 20ms for all mocks in all instances without a specified delay
|
|
12
|
-
delay: 20,
|
|
13
|
-
|
|
14
|
-
// altenatively use a callback which will be executed for each mock
|
|
15
|
-
delay: () => getRandomNumber(),
|
|
16
|
-
|
|
17
|
-
// or use the built-in `realisticDelay`. This is the default
|
|
18
|
-
delay: realisticDelay(),
|
|
19
|
-
}
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
**Per-instance defaults**
|
|
23
|
-
|
|
24
|
-
```ts
|
|
25
|
-
new MockLink(
|
|
26
|
-
[
|
|
27
|
-
// Use the default delay
|
|
28
|
-
{
|
|
29
|
-
request: { query },
|
|
30
|
-
result: { data: { greeting: 'Hello' }},
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
request: { query },
|
|
34
|
-
result: { data: { greeting: 'Hello' }},
|
|
35
|
-
// Override the default for this mock
|
|
36
|
-
delay: 10
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
{
|
|
40
|
-
defaultOptions: {
|
|
41
|
-
// Use a default delay of 20ms for all mocks without a specified delay
|
|
42
|
-
delay: 20,
|
|
43
|
-
|
|
44
|
-
// altenatively use a callback which will be executed for each mock
|
|
45
|
-
delay: () => getRandomNumber(),
|
|
46
|
-
|
|
47
|
-
// or use the built-in `realisticDelay`. This is the default
|
|
48
|
-
delay: realisticDelay(),
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
```
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Moves all React-related exports to the `@apollo/client/react` entrypoint and out of the main `@apollo/client` entrypoint. This prevents the need to install React in order to use the core client.
|
|
6
|
-
|
|
7
|
-
The following is a list of exports available in `@apollo/client` that should now import from `@apollo/client/react`.
|
|
8
|
-
- `ApolloConsumer`
|
|
9
|
-
- `ApolloProvider`
|
|
10
|
-
- `createQueryPreloader`
|
|
11
|
-
- `getApolloContext`
|
|
12
|
-
- `skipToken`
|
|
13
|
-
- `useApolloClient`
|
|
14
|
-
- `useBackgroundQuery`
|
|
15
|
-
- `useFragment`
|
|
16
|
-
- `useLazyQuery`
|
|
17
|
-
- `useLoadableQuery`
|
|
18
|
-
- `useMutation`
|
|
19
|
-
- `useQuery`
|
|
20
|
-
- `useQueryRefHandlers`
|
|
21
|
-
- `useReactiveVar`
|
|
22
|
-
- `useReadQuery`
|
|
23
|
-
- `useSubscription`
|
|
24
|
-
- `useSuspenseQuery`
|
|
25
|
-
|
|
26
|
-
The following is a list of exports available in `@apollo/client/testing` that should now import from `@apollo/client/testing/react`:
|
|
27
|
-
- `MockedProvider`
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Reworked the logic for then a loading state is triggered. If the link chain responds synchronously, a loading state will be omitted, otherwise it will be triggered.
|
|
6
|
-
If local resolvers are used, the time window for "sync vs async" starts as soon as `@exports` variables are resolved.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Switch to [RxJS](https://rxjs.dev/) as the observable implementation. `rxjs` is now a peer dependency of Apollo Client which means you will now need to install `rxjs` in addition to `@apollo/client`.
|
|
6
|
-
|
|
7
|
-
This change is mostly transparent, however transforming values on observables, common in link implementations, differs in RxJS vs `zen-observable`. For example, you could modify values in the link chain emitted from a downstream link by using the `.map` function. In RxJS, this is done with the `.pipe` function and passing a `map` operator instead.
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
import { map } from "rxjs";
|
|
11
|
-
|
|
12
|
-
const link new ApolloLink((operation, forward) => {
|
|
13
|
-
return forward(operation).pipe(
|
|
14
|
-
map((result) => performTransform(result))
|
|
15
|
-
);
|
|
16
|
-
});
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
For a full list of operators and comprehensive documentation on the capabilities of RxJS, check out the [documentation](https://rxjs.dev/).
|