This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@urql/exchange-graphcache@6.3.0
Minor Changes
Allow scalar values on the parent to be accessed from parent[info.fieldName] consistently. Prior to this change parent[fieldAlias] would get populated, which wouldn’t always result in a field that’s consistently accessible
Submitted by @kitten (See #3336)
Allow cache.resolve to return undefined when a value is not cached to make it easier to cause a cache miss in resolvers. Reminder: Returning undefined from a resolver means a field is uncached, while returning null means that a field’s value is null without causing a cache miss
Submitted by @kitten (See #3333)
Patch Changes
Record a dependency when __typename field is read. This removes a prior, outdated exception to avoid confusion when using cache.resolve(entity, '__typename') which doesn't cause the cache to record a dependency
Submitted by @kitten (See #3335)
⚠️ Fix cases where ResolveInfo’s parentFieldKey was incorrectly populated with a key that isn’t a field key (allowing for cache.resolve(info.parentKey, info.parentFieldKey) to be possible) but was instead set to info.parentKey combined with the field key
Submitted by @kitten (See #3336)
@urql/svelte@4.0.4
Patch Changes
⚠️ Fix queryStore and subscriptionStore not subscribing when writable calls its StartStopNotifier. This caused both stores to be inactive and become unresponsive when they’ve been unsubscribed from once, as they wouldn’t be able to restart their subscriptions to the Client
Submitted by @kitten (See #3331)
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@urql/exchange-graphcache@6.3.0
Minor Changes
parent[info.fieldName]
consistently. Prior to this changeparent[fieldAlias]
would get populated, which wouldn’t always result in a field that’s consistently accessible Submitted by @kitten (See #3336)cache.resolve
to returnundefined
when a value is not cached to make it easier to cause a cache miss in resolvers. Reminder: Returningundefined
from a resolver means a field is uncached, while returningnull
means that a field’s value isnull
without causing a cache miss Submitted by @kitten (See #3333)Patch Changes
__typename
field is read. This removes a prior, outdated exception to avoid confusion when usingcache.resolve(entity, '__typename')
which doesn't cause the cache to record a dependency Submitted by @kitten (See #3335)ResolveInfo
’sparentFieldKey
was incorrectly populated with a key that isn’t a field key (allowing forcache.resolve(info.parentKey, info.parentFieldKey)
to be possible) but was instead set toinfo.parentKey
combined with the field key Submitted by @kitten (See #3336)@urql/svelte@4.0.4
Patch Changes
queryStore
andsubscriptionStore
not subscribing whenwritable
calls itsStartStopNotifier
. This caused both stores to be inactive and become unresponsive when they’ve been unsubscribed from once, as they wouldn’t be able to restart their subscriptions to theClient
Submitted by @kitten (See #3331)