Releases: nmathew98/qwery
Releases · nmathew98/qwery
v3.1.1
Release Summary
- Sort query keys if they are arrays
- Determine if a fetch is occurring for the first time with
isInitialFetch
foruseMonitoredFetch
throwErrors
even whensuspense
is not enabled
What's Changed
- test(vue): update enabled test by @nmathew98 in #373
- test(react,vue,svelte,solid): stricter enabled/disabled tests by @nmathew98 in #374
- fix(react): abort only on unmount by @nmathew98 in #376
- refactor(shared): refactor core by @nmathew98 in #375
- feat(react,vue,solid,svelte): throw errors even when not suspense by @nmathew98 in #377
- feat(react,vue,solid,svelte): sort query key if array by @nmathew98 in #378
- feat(react,vue,solid,svelte): isInitialFetch by @nmathew98 in #379
- chore: update readme by @nmathew98 in #380
Full Changelog: v3.1.0...v3.1.1
v3.1.0
Release Summary
- Automatically refetch Qweries by
queryKey
when a change a dispatched against one Qwery, cycles are detected - Added
toAsyncIterable
helper to convert any function into an async iterable to be used withsubscribe
- Fixed issues with the writable status of a broadcasting Qwery changing in React (available on
2.1.6
) - Fixed issues with Qwery not being recreated when props change in React (available on
2.1.6
) 2.1.x
will be marked as deprecated
What's Changed
- feat(react,vue,solid,svelte): reset all affected qweries by @nmathew98 in #354
- fix(react,vue,solid,svelte): circular affects by @nmathew98 in #355
- fix(react,vue,solid,svelte): update circular affects log message by @nmathew98 in #356
- fix(react,vue,solid,svelte): multiple resets for a single stringified query key since its not guaranteed to be unique by @nmathew98 in #357
- feat(react,vue,solid,svelte): placeholder data by @nmathew98 in #360
- feat(react,vue,solid,svelte): add toAsyncIterable helper for polling by @nmathew98 in #361
- fix(react): writable status changing by @nmathew98 in #363
- fix(react): effect deps arrays by @nmathew98 in #344
Full Changelog: v3.0.4...v3.1.0
v3.0.4
Release Summary
- Dependent Qweries
- Warnings when there is more than 1 writable broadcasting Qwery (available on
2.1.5
)
What's Changed
- types: update invert types by @nmathew98 in #341
- fix(react,vue,solid,svelte): warn when writable broadcasting dispatch and noop by @nmathew98 in #346
- feat(react,vue,solid,svelte): enable/disable qwery by @nmathew98 in #347
- fix(vue): undefined access by @nmathew98 in #348
Full Changelog: v3.0.2...v3.0.4
v3.0.2
Release Summary
- There was an issue with
suspense
causing infinite rerenders in React. This has been fixed and these fixes are also available on2.1.4
. To usesuspense
withuseQwery
, it must be within aSuspenseQwery
, this applies to both 3.x and 2.1.x, otherwise an error is thrown.
What's Changed
- fix(react): stabilize suspended promise by @nmathew98 in #334
- fix(react): suspense ssr initial value by @nmathew98 in #337
Full Changelog: v3.0.0...v3.0.2
v3.0.0
Release Summary
- Fixed two issues with broadcasting writable Qweries, both available on the latest 2.1.x release
- Remove deprecated options and
mapReduceMaybePromise
- Updated READMEs
What's Changed
- chore: update readmes by @nmathew98 in #316
- chore: fix ci by @nmathew98 in #317
- chore: update readmes to include stackblitz demos and credits by @nmathew98 in #319
- chore: update readme by @nmathew98 in #320
- chore: remove deprecated field from interface and mapReduceMaybePromise by @nmathew98 in #321
- feat(react,vue,solid,svelte): allow resetting qwery by @nmathew98 in #322
- fix(react,vue,solid,svelte): writable broadcasting check by @nmathew98 in #325
- fix(react,solid,svelte,vue): allow refetch when writable and broadcasting by @nmathew98 in #328
Full Changelog: v2.1.0...v3.0.0
v2.1.2
Release Summary
- Allow writable and broadcasting Qweries to refetch on window focus since these changes are persisted
What's Changed
- fix(react,solid,svelte,vue): allow refetch when writable and broadcasting by @nmathew98 in #328
Full Changelog: v2.1.1...v2.1.2
v2.1.1
Release Summary
- There was an issue with broadcasting writable Qweries not being able to dispatch unpersisted changes correctly, this is now fixed. The issue stemmed from the query key marked as broadcasting too early which caused
onChange
,onSuccess
andonError
to be a noop.
What's Changed
- fix(react,vue,solid,svelte): writable broadcasting check by @nmathew98 in #325
Full Changelog: v2.1.0...v2.1.1
v2.1.0
Release Summary
- First stable release
- Major fixes: suspense in React and Solid
- Major new changes: broadcast between two Qweries on the same page, with only one being allowed to be mutating which means automatic cache updates for all Qweries which share the same
queryKey
- API changes: deprecated
refetch
, now window focus refetching will completely reset the Qwery (all references will change) - Include sourcemaps
What's Changed
- fix(gqwery): dev dep shared by @nmathew98 in #263
- chore(react,vue,solid,svelte): update readme by @nmathew98 in #264
- chore(gqwery): add graphql-ws by @nmathew98 in #276
- chore(react,vue,gqwery): remove old tests by @nmathew98 in #279
- feat(react,vue,solid,svelte): reset state by @nmathew98 in #269
- test(react): rewrite tests for useQwery by @nmathew98 in #280
- fix(react): stricter suspended qwery checks by @nmathew98 in #281
- test(react): useMonitoredFetch, useNetworkMode, useRememberScroll by @nmathew98 in #282
- test(react): add ssr test by @nmathew98 in #283
- chore(react): add v8 and display coverage information by @nmathew98 in #284
- test(vue): rewrite tests for vue by @nmathew98 in #285
- test(vue): update broadcast tests by @nmathew98 in #286
- test(vue): add tests for context by @nmathew98 in #287
- test(solid): tests for solid by @nmathew98 in #288
- feat(react,solid,svelte,vue): allow readonly broadcasting qweries by @nmathew98 in #290
- Revert "feat(react,solid,svelte,vue): allow readonly broadcasting qweries" by @nmathew98 in #292
- feat(react,solid,svelte,vue): allow readonly broadcasting qweries by @nmathew98 in #291
- test(svelte): tests for svelte by @nmathew98 in #289
- test(gqwery): additional tests with react qwery by @nmathew98 in #293
- chore: add npm test package to test exports and valid npm deps by @nmathew98 in #294
- chore: publish to npm action by @nmathew98 in #295
- test(react,vue,solid,svelte): add test for writable broadcasting qwery on the same page by @nmathew98 in #296
- fix(react,vue,solid,svelte): silence writable broadcasting warning if onChange is noop by @nmathew98 in #297
- feat(react): suspended qwery without a queryKey by @nmathew98 in #299
- test(react): test types by @nmathew98 in #298
- test(solid): type tests by @nmathew98 in #300
- test(svelte): type tests by @nmathew98 in #301
- test(vue): type tests by @nmathew98 in #302
- refactor(react): invert promise into its own fn by @nmathew98 in #304
- fix(react,vue,solid,svelte): reset to previous onError and throw if suspense by @nmathew98 in #305
- feat: add buildWebSocketExecutor, test types by @nmathew98 in #307
Full Changelog: v2.0.0...v2.1.0
v2.0.0
What's Changed
- feat(gqwery): caching by @nmathew98 in #238
- feat(react,vue,solid,svelte,gqwery): request manager to dedupe requests by @nmathew98 in #239
- fix(react,svelte,solid,vue, gqwery): update how computeInitialQweryValue works by @nmathew98 in #240
- chore(gqwery): remove aliased exports, just doing a major bump by @nmathew98 in #241
- fix(gqwery): unwrap response and update tests to check references by @nmathew98 in #242
- feat(gqwery): fetch executor by @nmathew98 in #243
- feat(gqwery): support array of entities by @nmathew98 in #244
- fix(gqwery): fetch options idx by @nmathew98 in #245
- test(gqwery): improve pluck non entity test by @nmathew98 in #246
- docs(gqwery): comments around normalized cache and references by @nmathew98 in #247
- perf(gqwery): remove filter for entries by @nmathew98 in #248
- fix(gqwery): pluck and circular references by @nmathew98 in #249
- refactor(gqwery): simplify toGetterOrValue by @nmathew98 in #250
- refactor(gqwery): NormalizedCache class by @nmathew98 in #251
- test(gqwery): react test by @nmathew98 in #252
- chore(gqwery): cleanup by @nmathew98 in #253
- docs(gqwery): updating comments by @nmathew98 in #255
- chore(gqwery): add graphql-tools/batch-execute by @nmathew98 in #256
- refactor(gqwery): update how normalized cache works by @nmathew98 in #257
- types(gqwery): types for createNormalizedCache by @nmathew98 in #258
- chore(gqwery): export normalized cache type by @nmathew98 in #259
- feat(react,vue,svelte,solid): global request manager by @nmathew98 in #260
- chore(react,solid,svelte,vue,gqwery): update readme by @nmathew98 in #261
Full Changelog: v1.7.0...v2.0.0
v1.7.0
What's Changed
- chore(graphqwery): init graphqwery by @nmathew98 in #224
- chore(graphqwery): update readme by @nmathew98 in #225
- chore(gqwery): rename by @nmathew98 in #226
- chore: update pnpm lock by @nmathew98 in #227
- feat(gqwery): cache and schema by @nmathew98 in #228
- fix(gqwery): fixes after testing by @nmathew98 in #229
- fix(gqwery): query key regex by @nmathew98 in #231
- feat(gqwery): add buildMockExecutor by @nmathew98 in #232
- chore: general housekeeping by @nmathew98 in #233
- chore(shared): add weak merge cache by @nmathew98 in #234
Full Changelog: v1.6.1...v1.7.0