@apollo/client 4.0.0-alpha.15 → 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 +18 -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/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/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/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/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 -7
- 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/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/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/beige-spiders-hope.md +0 -5
- 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/poor-spiders-hunt.md +0 -23
- package/.changeset/popular-games-sleep.md +0 -5
- package/.changeset/pre.json +0 -168
- 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/selfish-spoons-approve.md +0 -44
- 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-ants-bake.md +0 -5
- 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-colts-tell.md +0 -5
- package/.changeset/sour-guests-poke.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/strange-walls-march.md +0 -5
- 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/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 -36
- package/__cjs/testing/internal/index.cjs.map +0 -1
- package/__cjs/testing/internal/index.d.cts +0 -13
- 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/internal/wait.cjs +0 -7
- package/__cjs/testing/internal/wait.cjs.map +0 -1
- package/__cjs/testing/internal/wait.d.cts +0 -2
- 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/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/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 -13
- package/testing/internal/index.js +0 -12
- 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/internal/wait.d.ts +0 -2
- package/testing/internal/wait.js +0 -4
- package/testing/internal/wait.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,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Require environments that support `WeakMap`, `WeakSet` and symbols. Apollo Client would fallback to `Map` and `Set` if the weak versions were not available. This has been removed and expects that these features are available in the source environment.
|
|
6
|
-
|
|
7
|
-
If you are running in an environment without `WeakMap`, `WeakSet` or symbols, you will need to find appropriate polyfills.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
The `defaultOptions` and `initialFetchPolicy` options are no longer supported with `useLazyQuery`.
|
|
6
|
-
|
|
7
|
-
If you use `defaultOptions`, pass those options directly to the hook instead. If you use `initialFetchPolicy`, use `fetchPolicy` instead.
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
`useLazyQuery` no longer supports `variables` in the hook options and therefore no longer performs variable merging. The execute function must now be called with `variables` instead.
|
|
6
|
-
|
|
7
|
-
```ts
|
|
8
|
-
function MyComponent() {
|
|
9
|
-
const [execute] = useLazyQuery(query);
|
|
10
|
-
|
|
11
|
-
function runExecute() {
|
|
12
|
-
execute({ variables: { ... }});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
This change means the execute function returned from `useLazyQuery` is more type-safe. The execute function will require you to pass a `variables` option if the query type includes required variables.
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
The resolver function's `context` argument (the 3rd argument) has changed to provide additional information without the possibility of name clashes. Previously the `context` argument would spread request context and override the `client` and `cache` properties to give access to both inside of a resolver. The `context` argument takes now takes the following shape:
|
|
6
|
-
|
|
7
|
-
```ts
|
|
8
|
-
{
|
|
9
|
-
// the request context. By default `TContextValue` is of type `DefaultContext`,
|
|
10
|
-
// but can be changed if a `context` function is provided.
|
|
11
|
-
requestContext: TContextValue,
|
|
12
|
-
// The client instance making the request
|
|
13
|
-
client: ApolloClient,
|
|
14
|
-
// Whether the resolver is run as a result of gathering exported variables
|
|
15
|
-
// or resolving the value as part of the result
|
|
16
|
-
phase: "exports" | "resolve"
|
|
17
|
-
}
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
To migrate, pull any request context from `requestContext` and the `cache` from the `client` property:
|
|
21
|
-
|
|
22
|
-
```diff
|
|
23
|
-
new LocalState({
|
|
24
|
-
resolvers: {
|
|
25
|
-
Query: {
|
|
26
|
-
- myResolver: (parent, args, { someValue, cache }) => {
|
|
27
|
-
+ myResolver: (parent, args, { requestContext, client }) => {
|
|
28
|
-
+ const someValue = requestContext.someValue;
|
|
29
|
-
+ const cache = client.cache;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Apollo Client no longer ships with support for `@client` fields out-of-the-box and now must be opt-in. To opt in to use `@client` fields, pass an instantiated `LocalState` instance to the `localState` option. If a query contains `@client` and local state hasn't been configured, an error will be thrown.
|
|
6
|
-
|
|
7
|
-
```ts
|
|
8
|
-
import { LocalState } from "@apollo/client/local-state";
|
|
9
|
-
|
|
10
|
-
new ApolloClient({
|
|
11
|
-
localState: new LocalState(),
|
|
12
|
-
});
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Default the `delay` for all mocked responses passed to `MockLink` using `realisticDelay`. This ensures your test handles loading states by default and is not reliant on a specific timing.
|
|
6
|
-
|
|
7
|
-
If you would like to restore the old behavior, use a global default delay of `0`.
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
MockLink.defaultOptions = {
|
|
11
|
-
delay: 0
|
|
12
|
-
}
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
### Changes for users of `InMemoryCache`
|
|
6
|
-
|
|
7
|
-
`cache.diff` now returns `null` instead of an empty object (`{}`) when `returnPartialData` is `true` and the result is empty.
|
|
8
|
-
|
|
9
|
-
If you use `cache.diff` directly with `returnPartialData: true`, you will need to check for `null` before accessing any other fields on the `result` property. A non-null value indicates that at least one field was present in the cache for the given query document.
|
|
10
|
-
|
|
11
|
-
### Changes for third-party cache implementations
|
|
12
|
-
|
|
13
|
-
The client now expects `cache.diff` to return `null` instead of an empty object when there is no data that can be fulfilled from the cache and `returnPartialData` is `true`. If your cache implementation returns an empty object, please update this to return `null`.
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Remove workarounds for streaming with non-WhatWG response bodies to reduce bundle size.
|
|
6
|
-
|
|
7
|
-
This removes support for `fetch` implementations that return Node Streams, Async Iterators or Blob instances as `Response.body`.
|
|
8
|
-
|
|
9
|
-
In the WhatWG Fetch specification, [`Response.body`](https://fetch.spec.whatwg.org/#body) is specified as a WhatWG [ReadableStream](https://streams.spec.whatwg.org/#readablestream).
|
|
10
|
-
|
|
11
|
-
At this point in time, this is natively supported in browsers, `node` and React Native (via [react-native-fetch-api](https://www.npmjs.com/package/react-native-fetch-api), see our [setup instructions for React Native](https://www.apollographql.com/docs/react/integrations/react-native#consuming-multipart-http-via-text-streaming)).
|
|
12
|
-
|
|
13
|
-
If you are using an older `fetch` polyfill that deviates from the spec, this might not be compatible - for example, [node-fetch](https://github.com/node-fetch/node-fetch?tab=readme-ov-file#interface-body) returns a node `Readable` instead of a `ReadableStream`.
|
|
14
|
-
In those cases, please switch to a compatible alternative such as the `node`-native `fetch`, or `undici`.
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": minor
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Add a new method for static SSR of React components, `prerenderStatic`.
|
|
6
|
-
The old methods, `getDataFromTree`, `getMarkupFromTree` and `renderToStringWithData`
|
|
7
|
-
have been deprecated in favor of `prerenderStatic`.
|
|
8
|
-
|
|
9
|
-
If used with React 19 and the `prerender` or `prerenderToNodeStream` apis from
|
|
10
|
-
`react-dom/static`, this method can now be used to SSR-prerender suspense-enabled
|
|
11
|
-
hook APIs.
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Remove `loading`, `networkStatus`, and `partial` properties on all promise-based query APIs. These properties were mostly static and were unnecessary since promise resolution guaranteed that the query was not longer loading.
|
|
6
|
-
|
|
7
|
-
This affects the following APIs:
|
|
8
|
-
- `client.query`
|
|
9
|
-
- `client.refetchQueries`
|
|
10
|
-
- `client.reFetchObservableQueries`
|
|
11
|
-
- `client.resetStore`
|
|
12
|
-
- `observableQuery.fetchMore`
|
|
13
|
-
- `observableQuery.refetch`
|
|
14
|
-
- `observableQuery.reobserve`
|
|
15
|
-
- `observableQuery.setVariables`
|
|
16
|
-
- The `useLazyQuery` `execute` function
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
`notifyOnNetworkStatusChange` now defaults to `true`. This means that loading states will be emitted (core API) or rendered (React) by default when calling `refetch`, `fetchMore`, etc. To maintain the old behavior, set `notifyOnNetworkStatusChange` to `false` in `defaultOptions`.
|
|
6
|
-
|
|
7
|
-
```ts
|
|
8
|
-
new ApolloClient({
|
|
9
|
-
defaultOptions: {
|
|
10
|
-
watchQuery: {
|
|
11
|
-
// Use the v3 default
|
|
12
|
-
notifyOnNetworkStatusChange: false
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
})
|
|
16
|
-
```
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": patch
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
`ObservableQuery.variables` has been updated to return `TVariables` rather than `TVariables | undefined`. This is more consistent with the runtime value where an empty object (`{}`) will be returned when the `variables` option is not provided.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Removes `ObservableQuery.result()` method. If you use this method and need similar functionality, use the `firstValueFrom` helper in RxJS.
|
|
6
|
-
|
|
7
|
-
```ts
|
|
8
|
-
import { firstValueFrom, from } from "rxjs";
|
|
9
|
-
|
|
10
|
-
// The `from` is necessary to turn `observableQuery` into an RxJS observable
|
|
11
|
-
const result = await firstValueFrom(from(observableQuery))
|
|
12
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Subscriptions are no longer eagerly started after calling `client.subscribe`. To kick off the subscription, you will now need to subscribe to the returned observable.
|
|
6
|
-
|
|
7
|
-
```ts
|
|
8
|
-
// Subscriptions are no longer started when calling subscribe on its own.
|
|
9
|
-
const subscriptionObservable = client.subscribe(...);
|
|
10
|
-
|
|
11
|
-
// Instead, subscribe to the returned observable to kick off the subscription.
|
|
12
|
-
subscriptionObservable.subscribe({
|
|
13
|
-
next: (value) => console.log(value)
|
|
14
|
-
});
|
|
15
|
-
```
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
`useLazyQuery` will now only execute the query when the execute function is called. Previously `useLazyQuery` would behave like `useQuery` after the first call to the execute function which means changes to options might perform network requests.
|
|
6
|
-
|
|
7
|
-
You can now safely rerender `useLazyQuery` with new options which will take effect the next time you manually trigger the query.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Subscriptions no longer emit errors in the `error` callback and instead provide errors on the `error` property on the result passed to the `next` callback. As a result, errors will no longer automatically terminate the connection allowing additional results to be emitted when the connection stays open.
|
|
6
|
-
|
|
7
|
-
When an error terminates the downstream connection, a `next` event will be emitted with an `error` property followed by a `complete` event instead.
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Remove `newData` option for mocked responses passed to `MockLink` or the `mocks` option on `MockedProvider`. This option was undocumented and was nearly identical to using the `result` option as a callback.
|
|
6
|
-
|
|
7
|
-
To replicate the old behavior of `newData`, use `result` as a callback and add the `maxUsageCount` option with a value set to `Number.POSITIVE_INFINITY`.
|
|
8
|
-
|
|
9
|
-
**with `MockLink`**
|
|
10
|
-
```diff
|
|
11
|
-
new MockLink([
|
|
12
|
-
{
|
|
13
|
-
request: { query, variables },
|
|
14
|
-
- newData: (variables) => ({ data: { greeting: "Hello " + variables.greeting } }),
|
|
15
|
-
+ result: (variables) => ({ data: { greeting: "Hello " + variables.greeting } }),
|
|
16
|
-
+ maxUsageCount: Number.POSITIVE_INFINITY,
|
|
17
|
-
}
|
|
18
|
-
])
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
**with `MockedProvider`**
|
|
22
|
-
```diff
|
|
23
|
-
<MockedProvider
|
|
24
|
-
mocks={[
|
|
25
|
-
{
|
|
26
|
-
request: { query, variables },
|
|
27
|
-
- newData: (variables) => ({ data: { greeting: "Hello " + variables.greeting } }),
|
|
28
|
-
+ result: (variables) => ({ data: { greeting: "Hello " + variables.greeting } }),
|
|
29
|
-
+ maxUsageCount: Number.POSITIVE_INFINITY,
|
|
30
|
-
}
|
|
31
|
-
]}
|
|
32
|
-
/>
|
|
33
|
-
```
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Require the `link` option when instantiating `ApolloClient`. This removes the `uri`, `credentials` and `headers` options from `ApolloClient` in favor of passing an instantiated `HttpLink` directly. To migrate:
|
|
6
|
-
|
|
7
|
-
**If using `uri`, `credentials`, or `headers` options**
|
|
8
|
-
```diff
|
|
9
|
-
new ApolloClient({
|
|
10
|
-
// ...
|
|
11
|
-
- uri,
|
|
12
|
-
- credentials,
|
|
13
|
-
- headers,
|
|
14
|
-
+ link: new HttpLink({ uri, credentials, headers }),
|
|
15
|
-
// or if you prefer the function call approach:
|
|
16
|
-
+ link: createHttpLink({ uri, credentials, headers }),
|
|
17
|
-
});
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
**If creating a client without the `link` option**
|
|
21
|
-
```diff
|
|
22
|
-
new ApolloClient({
|
|
23
|
-
// ...
|
|
24
|
-
+ link: ApolloLink.empty()
|
|
25
|
-
});
|
|
26
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"@apollo/client": major
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
### Changes for users of `InMemoryCache`
|
|
6
|
-
|
|
7
|
-
`cache.diff` no longer throws when `returnPartialData` is set to `false` without a complete result. Instead, `cache.diff` will return `null` when it is unable to read a full cache result.
|
|
8
|
-
|
|
9
|
-
If you use `cache.diff` directly with `returnPartialData: false`, remove the `try`/`catch` block and replace with a check for `null`.
|
|
10
|
-
|
|
11
|
-
### Changes for third-party cache implementations
|
|
12
|
-
|
|
13
|
-
The client now expects `cache.diff` to return `null` instead of throwing when the cache returns an incomplete result and `returnPartialData` is `false`. The internal `try`/`catch` blocks have been removed around `cache.diff`. If your cache implementation throws for incomplete results, please update this to return `null`.
|