Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: vue init #70

Merged
merged 1 commit into from
Mar 2, 2024
Merged

chore: vue init #70

merged 1 commit into from
Mar 2, 2024

Conversation

nmathew98
Copy link
Owner

No description provided.

@nmathew98 nmathew98 merged commit f5c2732 into dev Mar 2, 2024
1 check passed
@nmathew98 nmathew98 deleted the chore/vue-setup branch March 2, 2024 02:47
nmathew98 added a commit that referenced this pull request Mar 2, 2024
nmathew98 added a commit that referenced this pull request Mar 2, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1
nmathew98 added a commit that referenced this pull request Mar 2, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2
nmathew98 added a commit that referenced this pull request Mar 3, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3
nmathew98 added a commit that referenced this pull request Mar 3, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4
nmathew98 added a commit that referenced this pull request Mar 3, 2024
* 0.0.1 (#7)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* 0.0.2 (#13)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* 0.0.3 (#20)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* 1.0.0 (#23)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* 1.0.1 (#25)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* 1.0.2 (#27)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* 1.0.3 (#30)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* 1.0.4 (#33)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* 1.0.5 (#35)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* 1.0.6 (#37)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* 1.1.0 (#39)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* 1.2.0 (#44)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* 1.3.0 (#50)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* 1.3.1 (#54)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* 1.3.2 (#59)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e5cb6d29fefc5926e311923b7f8d63080c.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* 1.3.3 (#64)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e5cb6d29fefc5926e311923b7f8d63080c.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* 1.4.0 (#69)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e5cb6d29fefc5926e311923b7f8d63080c.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore: merge master

* 1.4.1 (#92)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e5cb6d29fefc5926e311923b7f8d63080c.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64acdb9f9e46c20bb9d3ab5aab522084c6b.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* 1.4.2 (#96)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e5cb6d29fefc5926e311923b7f8d63080c.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64acdb9f9e46c20bb9d3ab5aab522084c6b.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* 1.4.3 (#102)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e5cb6d29fefc5926e311923b7f8d63080c.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64acdb9f9e46c20bb9d3ab5aab522084c6b.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* 1.4.4 (#110)

* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e5cb6d29fefc5926e311923b7f8d63080c.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64acdb9f9e46c20bb9d3ab5aab522084c6b.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4

* chore: remove extra files
nmathew98 added a commit that referenced this pull request Mar 6, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4

* feat(svelte): useExecutionEnvironment (#113)

* feat(svelte): context (#114)

* feat(svelte): useNetworkMode (#115)

* feat(svelte): useRememberScroll (#116)

* chore(svelte): update exports (#117)

* chore(svelte): update exports

* chore(svelte): update tsconfig

* feat(svelte): useQwery (#118)

* feat(svelte): useQwery

* fix(svelte): subscribe to store until dispatch has a value set

* chore(svelte): update exports

* fix(svelte): if suspense then we can just directly return dispatch from result if available because the reference will not change, same crdt always

* fix(vue): same for vue

* types(svelte,vue): add InferData utility type

* types(svelte,vue): remove ts expect error

* types(react): update types for broadcast

* chore(react,vue): update tsconfig (#119)

* types(react): type import UseNetworkModeOptions (#120)

* refactor(vue,svelte): computeInitialValueTest -> computeInitialValue (#121)

* refactor(react,vue,svelte): move no op cache to shared (#122)

* fix(svelte): for dispatch move subscribe out of getter (#123)

* fix(svelte): for dispatch move subscribe out of getter

* types(svelte,vue): InferData<I> instead of Data

* chore: update readme (#124)

* feat: add map reduce and maybe return a promise utility fn for change handlers (#125)

* chore: update readme (#126)

* refactor(shared): update mapReduceMaybePromise to be rest args instead (#127)

* feat(react,svelte,vue): useMonitoredFetch hook (#128)

* fix(react,vue,svelte): allow specifying other options (#129)

* types(react,vue,svelte): adding types (#130)

* chore(svelte): update build config (#131)

* chore: update readme (#132)

* chore(svelte): update package.json (#133)

* v1.5.0
nmathew98 added a commit that referenced this pull request Mar 7, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4

* feat(svelte): useExecutionEnvironment (#113)

* feat(svelte): context (#114)

* feat(svelte): useNetworkMode (#115)

* feat(svelte): useRememberScroll (#116)

* chore(svelte): update exports (#117)

* chore(svelte): update exports

* chore(svelte): update tsconfig

* feat(svelte): useQwery (#118)

* feat(svelte): useQwery

* fix(svelte): subscribe to store until dispatch has a value set

* chore(svelte): update exports

* fix(svelte): if suspense then we can just directly return dispatch from result if available because the reference will not change, same crdt always

* fix(vue): same for vue

* types(svelte,vue): add InferData utility type

* types(svelte,vue): remove ts expect error

* types(react): update types for broadcast

* chore(react,vue): update tsconfig (#119)

* types(react): type import UseNetworkModeOptions (#120)

* refactor(vue,svelte): computeInitialValueTest -> computeInitialValue (#121)

* refactor(react,vue,svelte): move no op cache to shared (#122)

* fix(svelte): for dispatch move subscribe out of getter (#123)

* fix(svelte): for dispatch move subscribe out of getter

* types(svelte,vue): InferData<I> instead of Data

* chore: update readme (#124)

* feat: add map reduce and maybe return a promise utility fn for change handlers (#125)

* chore: update readme (#126)

* refactor(shared): update mapReduceMaybePromise to be rest args instead (#127)

* feat(react,svelte,vue): useMonitoredFetch hook (#128)

* fix(react,vue,svelte): allow specifying other options (#129)

* types(react,vue,svelte): adding types (#130)

* chore(svelte): update build config (#131)

* chore: update readme (#132)

* chore(svelte): update package.json (#133)

* v1.5.0

* chore(react,vue,svelte): update readme with more accurate figures (#135)

* chore(react,vue,svelte): update readme with more accurate figures

* chore: update readme

* chore(solid): solid start (#136)

* chore(solid): solid start

* chore: add vitest and qwery-shared

* chore(react,vue,svelte,solid): update readme (#137)

* feat(solid): useMonitoredFetch (#138)

* feat(solid): useExecutionEnvironment (#139)

* feat(solid): useRememberScroll (#140)

* feat(solid): useNetworkMode (#141)

* fix(solid): useMonitoredFetch (#142)

* feat(solid): context (#143)

* chore(solid): update exports (#144)

* fix(solid): not destructuring props (#145)

* fix(solid): onCleanup (#146)

* fix(solid): onCleanup

* fix(solid): cleanup happens when scope reevaluates or is finally disposed

* feat(solid): useQwery (#147)

* feat(solid): useQwery

* chore(solid): update exports

* types(solid): update useQwery types (#148)

* chore(solid): update readme (#150)

* v1.5.1
nmathew98 added a commit that referenced this pull request Mar 7, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4

* feat(svelte): useExecutionEnvironment (#113)

* feat(svelte): context (#114)

* feat(svelte): useNetworkMode (#115)

* feat(svelte): useRememberScroll (#116)

* chore(svelte): update exports (#117)

* chore(svelte): update exports

* chore(svelte): update tsconfig

* feat(svelte): useQwery (#118)

* feat(svelte): useQwery

* fix(svelte): subscribe to store until dispatch has a value set

* chore(svelte): update exports

* fix(svelte): if suspense then we can just directly return dispatch from result if available because the reference will not change, same crdt always

* fix(vue): same for vue

* types(svelte,vue): add InferData utility type

* types(svelte,vue): remove ts expect error

* types(react): update types for broadcast

* chore(react,vue): update tsconfig (#119)

* types(react): type import UseNetworkModeOptions (#120)

* refactor(vue,svelte): computeInitialValueTest -> computeInitialValue (#121)

* refactor(react,vue,svelte): move no op cache to shared (#122)

* fix(svelte): for dispatch move subscribe out of getter (#123)

* fix(svelte): for dispatch move subscribe out of getter

* types(svelte,vue): InferData<I> instead of Data

* chore: update readme (#124)

* feat: add map reduce and maybe return a promise utility fn for change handlers (#125)

* chore: update readme (#126)

* refactor(shared): update mapReduceMaybePromise to be rest args instead (#127)

* feat(react,svelte,vue): useMonitoredFetch hook (#128)

* fix(react,vue,svelte): allow specifying other options (#129)

* types(react,vue,svelte): adding types (#130)

* chore(svelte): update build config (#131)

* chore: update readme (#132)

* chore(svelte): update package.json (#133)

* v1.5.0

* chore(react,vue,svelte): update readme with more accurate figures (#135)

* chore(react,vue,svelte): update readme with more accurate figures

* chore: update readme

* chore(solid): solid start (#136)

* chore(solid): solid start

* chore: add vitest and qwery-shared

* chore(react,vue,svelte,solid): update readme (#137)

* feat(solid): useMonitoredFetch (#138)

* feat(solid): useExecutionEnvironment (#139)

* feat(solid): useRememberScroll (#140)

* feat(solid): useNetworkMode (#141)

* fix(solid): useMonitoredFetch (#142)

* feat(solid): context (#143)

* chore(solid): update exports (#144)

* fix(solid): not destructuring props (#145)

* fix(solid): onCleanup (#146)

* fix(solid): onCleanup

* fix(solid): cleanup happens when scope reevaluates or is finally disposed

* feat(solid): useQwery (#147)

* feat(solid): useQwery

* chore(solid): update exports

* types(solid): update useQwery types (#148)

* chore(solid): update readme (#150)

* v1.5.1

* feat(vue,solid,svelte): proxy dispatch (#152)

* v1.5.2
nmathew98 added a commit that referenced this pull request Mar 10, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4

* feat(svelte): useExecutionEnvironment (#113)

* feat(svelte): context (#114)

* feat(svelte): useNetworkMode (#115)

* feat(svelte): useRememberScroll (#116)

* chore(svelte): update exports (#117)

* chore(svelte): update exports

* chore(svelte): update tsconfig

* feat(svelte): useQwery (#118)

* feat(svelte): useQwery

* fix(svelte): subscribe to store until dispatch has a value set

* chore(svelte): update exports

* fix(svelte): if suspense then we can just directly return dispatch from result if available because the reference will not change, same crdt always

* fix(vue): same for vue

* types(svelte,vue): add InferData utility type

* types(svelte,vue): remove ts expect error

* types(react): update types for broadcast

* chore(react,vue): update tsconfig (#119)

* types(react): type import UseNetworkModeOptions (#120)

* refactor(vue,svelte): computeInitialValueTest -> computeInitialValue (#121)

* refactor(react,vue,svelte): move no op cache to shared (#122)

* fix(svelte): for dispatch move subscribe out of getter (#123)

* fix(svelte): for dispatch move subscribe out of getter

* types(svelte,vue): InferData<I> instead of Data

* chore: update readme (#124)

* feat: add map reduce and maybe return a promise utility fn for change handlers (#125)

* chore: update readme (#126)

* refactor(shared): update mapReduceMaybePromise to be rest args instead (#127)

* feat(react,svelte,vue): useMonitoredFetch hook (#128)

* fix(react,vue,svelte): allow specifying other options (#129)

* types(react,vue,svelte): adding types (#130)

* chore(svelte): update build config (#131)

* chore: update readme (#132)

* chore(svelte): update package.json (#133)

* v1.5.0

* chore(react,vue,svelte): update readme with more accurate figures (#135)

* chore(react,vue,svelte): update readme with more accurate figures

* chore: update readme

* chore(solid): solid start (#136)

* chore(solid): solid start

* chore: add vitest and qwery-shared

* chore(react,vue,svelte,solid): update readme (#137)

* feat(solid): useMonitoredFetch (#138)

* feat(solid): useExecutionEnvironment (#139)

* feat(solid): useRememberScroll (#140)

* feat(solid): useNetworkMode (#141)

* fix(solid): useMonitoredFetch (#142)

* feat(solid): context (#143)

* chore(solid): update exports (#144)

* fix(solid): not destructuring props (#145)

* fix(solid): onCleanup (#146)

* fix(solid): onCleanup

* fix(solid): cleanup happens when scope reevaluates or is finally disposed

* feat(solid): useQwery (#147)

* feat(solid): useQwery

* chore(solid): update exports

* types(solid): update useQwery types (#148)

* chore(solid): update readme (#150)

* v1.5.1

* feat(vue,solid,svelte): proxy dispatch (#152)

* v1.5.2

* chore(svelte): make svelte peer dep instead of dev dep (#155)

* chore(react): remove pnpm lock, no need now that its a workspace (#156)

* chore: example api init (#157)

* chore(react,solid,svelte,vue): update deps (#158)

* feat(example-api): get and upsert (#159)

* feat(example-api): get and upsert

* fix(example-api): add createdAt

* chore(example-react): init (#160)

* chore(example-react): init

* chore(example-react): remove test and pack scripts

* chore(example-react): add shadcn/ui (#161)

* chore(example-react): add shadcn/ui

* style(example-react): formatting

* fix(example-react): update index.css for tailwind 4

* chore(example-react): updating styling config for tailwind v4 (#162)

* chore(example-react): updating styling config for tailwind v4

* chore(example-react): fix failing build

* chore(example-react): adding in theme vars as required by tailwind v4 (#163)

* chore(example-react): adding in theme vars as required by tailwind v4, with the other stuff unsupported as of now

* style(example-react): fix linting and formatting

* feat(example-react): thread (#164)

* feat(example-react): accordion thread thing

* chore(example-react): update eslint config

* refactor(example-react): onClickChildThread -> makeOnClickChildThread

* fix(example-react): increment rerender counter only when reference changes (#165)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App (#166)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App

* fix(react,vue,svelte,solid): update for onsuccess merge (#168)

* fix(react,vue,svelte,solid): update for onsuccess merge in the case of an incomplete document

* fix(svelte,solid,vue): merged instead of final, incremental expects the result of the original onSuccess

* feat(example-react): cleaning up design  (#169)

* feat(example-react): cleaning up design and adding border for rerenders going from blue to red

* fix(example-react): when going back to main thread set reply to null

* fix(example-react): disable submit button if no new thread

* feat(example-react): add new main thread (#170)

* feat(example-react): add new main thread

* fix(example-react): prevent default on enter keydown

* style(example-react): formatting

* feat(example-react): useQwery example, bit contrived and needs docs (#171)

* chore(example-react): remove build script (#172)

* chore(example-react): rely on published version instead of workspace, fine on mac but fails in ci otherwise

* chore(example-react): trying to link

* chore(example-react): update pnpm.lock

* chore(example-react): moving react-qwery link to devDeps

* chore(example-react): remove build script, unsure why its failing too lazy to check, works locally

* chore(example-react): remove vite tailwindcss plugin (#173)

* fix(example-react): increase rerender weight (#174)

* docs(example-react): adding some comments (#175)

* refactor(example-react): setting up mock data in shared api project (#176)

* refactor(example-react): setting up mock data in shared api project, typing react example properly

* refactor(example-api): loading up initialValue from thread prop

* chore(example-react): specifying react qwery as a workspace package instead of linking

* chore(example-react): splitting up lint, test and build instead of parallel

* chore(example-react): build first then test

* chore(example-react): update readme (#177)

* chore(react,example-react): update readme (#178)

* v1.5.3
nmathew98 added a commit that referenced this pull request Mar 10, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4

* feat(svelte): useExecutionEnvironment (#113)

* feat(svelte): context (#114)

* feat(svelte): useNetworkMode (#115)

* feat(svelte): useRememberScroll (#116)

* chore(svelte): update exports (#117)

* chore(svelte): update exports

* chore(svelte): update tsconfig

* feat(svelte): useQwery (#118)

* feat(svelte): useQwery

* fix(svelte): subscribe to store until dispatch has a value set

* chore(svelte): update exports

* fix(svelte): if suspense then we can just directly return dispatch from result if available because the reference will not change, same crdt always

* fix(vue): same for vue

* types(svelte,vue): add InferData utility type

* types(svelte,vue): remove ts expect error

* types(react): update types for broadcast

* chore(react,vue): update tsconfig (#119)

* types(react): type import UseNetworkModeOptions (#120)

* refactor(vue,svelte): computeInitialValueTest -> computeInitialValue (#121)

* refactor(react,vue,svelte): move no op cache to shared (#122)

* fix(svelte): for dispatch move subscribe out of getter (#123)

* fix(svelte): for dispatch move subscribe out of getter

* types(svelte,vue): InferData<I> instead of Data

* chore: update readme (#124)

* feat: add map reduce and maybe return a promise utility fn for change handlers (#125)

* chore: update readme (#126)

* refactor(shared): update mapReduceMaybePromise to be rest args instead (#127)

* feat(react,svelte,vue): useMonitoredFetch hook (#128)

* fix(react,vue,svelte): allow specifying other options (#129)

* types(react,vue,svelte): adding types (#130)

* chore(svelte): update build config (#131)

* chore: update readme (#132)

* chore(svelte): update package.json (#133)

* v1.5.0

* chore(react,vue,svelte): update readme with more accurate figures (#135)

* chore(react,vue,svelte): update readme with more accurate figures

* chore: update readme

* chore(solid): solid start (#136)

* chore(solid): solid start

* chore: add vitest and qwery-shared

* chore(react,vue,svelte,solid): update readme (#137)

* feat(solid): useMonitoredFetch (#138)

* feat(solid): useExecutionEnvironment (#139)

* feat(solid): useRememberScroll (#140)

* feat(solid): useNetworkMode (#141)

* fix(solid): useMonitoredFetch (#142)

* feat(solid): context (#143)

* chore(solid): update exports (#144)

* fix(solid): not destructuring props (#145)

* fix(solid): onCleanup (#146)

* fix(solid): onCleanup

* fix(solid): cleanup happens when scope reevaluates or is finally disposed

* feat(solid): useQwery (#147)

* feat(solid): useQwery

* chore(solid): update exports

* types(solid): update useQwery types (#148)

* chore(solid): update readme (#150)

* v1.5.1

* feat(vue,solid,svelte): proxy dispatch (#152)

* v1.5.2

* chore(svelte): make svelte peer dep instead of dev dep (#155)

* chore(react): remove pnpm lock, no need now that its a workspace (#156)

* chore: example api init (#157)

* chore(react,solid,svelte,vue): update deps (#158)

* feat(example-api): get and upsert (#159)

* feat(example-api): get and upsert

* fix(example-api): add createdAt

* chore(example-react): init (#160)

* chore(example-react): init

* chore(example-react): remove test and pack scripts

* chore(example-react): add shadcn/ui (#161)

* chore(example-react): add shadcn/ui

* style(example-react): formatting

* fix(example-react): update index.css for tailwind 4

* chore(example-react): updating styling config for tailwind v4 (#162)

* chore(example-react): updating styling config for tailwind v4

* chore(example-react): fix failing build

* chore(example-react): adding in theme vars as required by tailwind v4 (#163)

* chore(example-react): adding in theme vars as required by tailwind v4, with the other stuff unsupported as of now

* style(example-react): fix linting and formatting

* feat(example-react): thread (#164)

* feat(example-react): accordion thread thing

* chore(example-react): update eslint config

* refactor(example-react): onClickChildThread -> makeOnClickChildThread

* fix(example-react): increment rerender counter only when reference changes (#165)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App (#166)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App

* fix(react,vue,svelte,solid): update for onsuccess merge (#168)

* fix(react,vue,svelte,solid): update for onsuccess merge in the case of an incomplete document

* fix(svelte,solid,vue): merged instead of final, incremental expects the result of the original onSuccess

* feat(example-react): cleaning up design  (#169)

* feat(example-react): cleaning up design and adding border for rerenders going from blue to red

* fix(example-react): when going back to main thread set reply to null

* fix(example-react): disable submit button if no new thread

* feat(example-react): add new main thread (#170)

* feat(example-react): add new main thread

* fix(example-react): prevent default on enter keydown

* style(example-react): formatting

* feat(example-react): useQwery example, bit contrived and needs docs (#171)

* chore(example-react): remove build script (#172)

* chore(example-react): rely on published version instead of workspace, fine on mac but fails in ci otherwise

* chore(example-react): trying to link

* chore(example-react): update pnpm.lock

* chore(example-react): moving react-qwery link to devDeps

* chore(example-react): remove build script, unsure why its failing too lazy to check, works locally

* chore(example-react): remove vite tailwindcss plugin (#173)

* fix(example-react): increase rerender weight (#174)

* docs(example-react): adding some comments (#175)

* refactor(example-react): setting up mock data in shared api project (#176)

* refactor(example-react): setting up mock data in shared api project, typing react example properly

* refactor(example-api): loading up initialValue from thread prop

* chore(example-react): specifying react qwery as a workspace package instead of linking

* chore(example-react): splitting up lint, test and build instead of parallel

* chore(example-react): build first then test

* chore(example-react): update readme (#177)

* chore(react,example-react): update readme (#178)

* v1.5.3

* fix(example-react): forgot to update landing as well (#180)

* fix(example-react): forgot to update landing as well

* refactor(example-react): update props for Thread

* fix(react,vue,svelte,example-react): broadcast channel fixes (#181)

* fix(react,vue,svelte,example-react): broadcast channel fixes

* fix(example-react): useEffect dep

* v1.5.4
nmathew98 added a commit that referenced this pull request Mar 14, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4

* feat(svelte): useExecutionEnvironment (#113)

* feat(svelte): context (#114)

* feat(svelte): useNetworkMode (#115)

* feat(svelte): useRememberScroll (#116)

* chore(svelte): update exports (#117)

* chore(svelte): update exports

* chore(svelte): update tsconfig

* feat(svelte): useQwery (#118)

* feat(svelte): useQwery

* fix(svelte): subscribe to store until dispatch has a value set

* chore(svelte): update exports

* fix(svelte): if suspense then we can just directly return dispatch from result if available because the reference will not change, same crdt always

* fix(vue): same for vue

* types(svelte,vue): add InferData utility type

* types(svelte,vue): remove ts expect error

* types(react): update types for broadcast

* chore(react,vue): update tsconfig (#119)

* types(react): type import UseNetworkModeOptions (#120)

* refactor(vue,svelte): computeInitialValueTest -> computeInitialValue (#121)

* refactor(react,vue,svelte): move no op cache to shared (#122)

* fix(svelte): for dispatch move subscribe out of getter (#123)

* fix(svelte): for dispatch move subscribe out of getter

* types(svelte,vue): InferData<I> instead of Data

* chore: update readme (#124)

* feat: add map reduce and maybe return a promise utility fn for change handlers (#125)

* chore: update readme (#126)

* refactor(shared): update mapReduceMaybePromise to be rest args instead (#127)

* feat(react,svelte,vue): useMonitoredFetch hook (#128)

* fix(react,vue,svelte): allow specifying other options (#129)

* types(react,vue,svelte): adding types (#130)

* chore(svelte): update build config (#131)

* chore: update readme (#132)

* chore(svelte): update package.json (#133)

* v1.5.0

* chore(react,vue,svelte): update readme with more accurate figures (#135)

* chore(react,vue,svelte): update readme with more accurate figures

* chore: update readme

* chore(solid): solid start (#136)

* chore(solid): solid start

* chore: add vitest and qwery-shared

* chore(react,vue,svelte,solid): update readme (#137)

* feat(solid): useMonitoredFetch (#138)

* feat(solid): useExecutionEnvironment (#139)

* feat(solid): useRememberScroll (#140)

* feat(solid): useNetworkMode (#141)

* fix(solid): useMonitoredFetch (#142)

* feat(solid): context (#143)

* chore(solid): update exports (#144)

* fix(solid): not destructuring props (#145)

* fix(solid): onCleanup (#146)

* fix(solid): onCleanup

* fix(solid): cleanup happens when scope reevaluates or is finally disposed

* feat(solid): useQwery (#147)

* feat(solid): useQwery

* chore(solid): update exports

* types(solid): update useQwery types (#148)

* chore(solid): update readme (#150)

* v1.5.1

* feat(vue,solid,svelte): proxy dispatch (#152)

* v1.5.2

* chore(svelte): make svelte peer dep instead of dev dep (#155)

* chore(react): remove pnpm lock, no need now that its a workspace (#156)

* chore: example api init (#157)

* chore(react,solid,svelte,vue): update deps (#158)

* feat(example-api): get and upsert (#159)

* feat(example-api): get and upsert

* fix(example-api): add createdAt

* chore(example-react): init (#160)

* chore(example-react): init

* chore(example-react): remove test and pack scripts

* chore(example-react): add shadcn/ui (#161)

* chore(example-react): add shadcn/ui

* style(example-react): formatting

* fix(example-react): update index.css for tailwind 4

* chore(example-react): updating styling config for tailwind v4 (#162)

* chore(example-react): updating styling config for tailwind v4

* chore(example-react): fix failing build

* chore(example-react): adding in theme vars as required by tailwind v4 (#163)

* chore(example-react): adding in theme vars as required by tailwind v4, with the other stuff unsupported as of now

* style(example-react): fix linting and formatting

* feat(example-react): thread (#164)

* feat(example-react): accordion thread thing

* chore(example-react): update eslint config

* refactor(example-react): onClickChildThread -> makeOnClickChildThread

* fix(example-react): increment rerender counter only when reference changes (#165)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App (#166)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App

* fix(react,vue,svelte,solid): update for onsuccess merge (#168)

* fix(react,vue,svelte,solid): update for onsuccess merge in the case of an incomplete document

* fix(svelte,solid,vue): merged instead of final, incremental expects the result of the original onSuccess

* feat(example-react): cleaning up design  (#169)

* feat(example-react): cleaning up design and adding border for rerenders going from blue to red

* fix(example-react): when going back to main thread set reply to null

* fix(example-react): disable submit button if no new thread

* feat(example-react): add new main thread (#170)

* feat(example-react): add new main thread

* fix(example-react): prevent default on enter keydown

* style(example-react): formatting

* feat(example-react): useQwery example, bit contrived and needs docs (#171)

* chore(example-react): remove build script (#172)

* chore(example-react): rely on published version instead of workspace, fine on mac but fails in ci otherwise

* chore(example-react): trying to link

* chore(example-react): update pnpm.lock

* chore(example-react): moving react-qwery link to devDeps

* chore(example-react): remove build script, unsure why its failing too lazy to check, works locally

* chore(example-react): remove vite tailwindcss plugin (#173)

* fix(example-react): increase rerender weight (#174)

* docs(example-react): adding some comments (#175)

* refactor(example-react): setting up mock data in shared api project (#176)

* refactor(example-react): setting up mock data in shared api project, typing react example properly

* refactor(example-api): loading up initialValue from thread prop

* chore(example-react): specifying react qwery as a workspace package instead of linking

* chore(example-react): splitting up lint, test and build instead of parallel

* chore(example-react): build first then test

* chore(example-react): update readme (#177)

* chore(react,example-react): update readme (#178)

* v1.5.3

* fix(example-react): forgot to update landing as well (#180)

* fix(example-react): forgot to update landing as well

* refactor(example-react): update props for Thread

* fix(react,vue,svelte,example-react): broadcast channel fixes (#181)

* fix(react,vue,svelte,example-react): broadcast channel fixes

* fix(example-react): useEffect dep

* v1.5.4

* fix(react,vue,svelte,solid): broadcast persistent dispatches (#184)

* chore(qwery-shared): migrate to tsup (#185)

* fix(react,vue,solid,svelte): remember scroll hook was returning too early (#187)

* refactor(react,solid,svelte,vue): move core logic to shared (#186)

* refactor(react,vue,svelte,solid): remove useExecutionEnvironment and move isBrowser to shared

* refactor(react,solid,svelte,vue): move createId to shared

* refactor(react,solid,svelte,vue): move useMonitoredFetch to shared

* refactor(react): refactor useQwery, moving core logic to shared

* refactor(react): exhaustive deps

* refactor(react): removing exhaustive deps and adding lint rule, keeping it non reactive to changes in options is better, less bugs and more standard behaviour and also its a little unnecessary because the use case will not come up (except maybe for onChange, onSuccess, onError and refetch)

* refactor(react): forward args for all function options

* refactor(solid): moving core logic to shared

* refactor(vue): moving core logic to shared

* refactor(react): if conditional qwery then there will be no unsubscribe

* refactor(solid, vue): throw an error if can't invoke dispatch

* refactor(svelte, solid): moving core logic for svelte and solid to shared and squash bugs with DOM not being updated for svelte and solid

* docs(svelte, vue): update docs for svelte and vue

* docs(svelte): update docs for svelte

* fix(svelte,vue,solid): isServer check was wrong for solid and svelte for useRememberScroll (#188)

* refactor(react,vue,svelte,solid): move useRememberScroll core to shared (#189)

* fix(react,vue,svelte,solid): optional options for useNetworkMode (#190)

* fix(react,vue,svelte,solid): optional options for useNetworkMode, update example to include a fetching and online status indicator

* chore(react): silence linter warning

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted (#191)

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted

* test(react): tests for broadcasting updates

* chore(react,solid,svelte,vue): update exports (#193)

* v1.5.5

* chore: remove useExecutionEnvironment hook
nmathew98 added a commit that referenced this pull request Mar 17, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4

* feat(svelte): useExecutionEnvironment (#113)

* feat(svelte): context (#114)

* feat(svelte): useNetworkMode (#115)

* feat(svelte): useRememberScroll (#116)

* chore(svelte): update exports (#117)

* chore(svelte): update exports

* chore(svelte): update tsconfig

* feat(svelte): useQwery (#118)

* feat(svelte): useQwery

* fix(svelte): subscribe to store until dispatch has a value set

* chore(svelte): update exports

* fix(svelte): if suspense then we can just directly return dispatch from result if available because the reference will not change, same crdt always

* fix(vue): same for vue

* types(svelte,vue): add InferData utility type

* types(svelte,vue): remove ts expect error

* types(react): update types for broadcast

* chore(react,vue): update tsconfig (#119)

* types(react): type import UseNetworkModeOptions (#120)

* refactor(vue,svelte): computeInitialValueTest -> computeInitialValue (#121)

* refactor(react,vue,svelte): move no op cache to shared (#122)

* fix(svelte): for dispatch move subscribe out of getter (#123)

* fix(svelte): for dispatch move subscribe out of getter

* types(svelte,vue): InferData<I> instead of Data

* chore: update readme (#124)

* feat: add map reduce and maybe return a promise utility fn for change handlers (#125)

* chore: update readme (#126)

* refactor(shared): update mapReduceMaybePromise to be rest args instead (#127)

* feat(react,svelte,vue): useMonitoredFetch hook (#128)

* fix(react,vue,svelte): allow specifying other options (#129)

* types(react,vue,svelte): adding types (#130)

* chore(svelte): update build config (#131)

* chore: update readme (#132)

* chore(svelte): update package.json (#133)

* v1.5.0

* chore(react,vue,svelte): update readme with more accurate figures (#135)

* chore(react,vue,svelte): update readme with more accurate figures

* chore: update readme

* chore(solid): solid start (#136)

* chore(solid): solid start

* chore: add vitest and qwery-shared

* chore(react,vue,svelte,solid): update readme (#137)

* feat(solid): useMonitoredFetch (#138)

* feat(solid): useExecutionEnvironment (#139)

* feat(solid): useRememberScroll (#140)

* feat(solid): useNetworkMode (#141)

* fix(solid): useMonitoredFetch (#142)

* feat(solid): context (#143)

* chore(solid): update exports (#144)

* fix(solid): not destructuring props (#145)

* fix(solid): onCleanup (#146)

* fix(solid): onCleanup

* fix(solid): cleanup happens when scope reevaluates or is finally disposed

* feat(solid): useQwery (#147)

* feat(solid): useQwery

* chore(solid): update exports

* types(solid): update useQwery types (#148)

* chore(solid): update readme (#150)

* v1.5.1

* feat(vue,solid,svelte): proxy dispatch (#152)

* v1.5.2

* chore(svelte): make svelte peer dep instead of dev dep (#155)

* chore(react): remove pnpm lock, no need now that its a workspace (#156)

* chore: example api init (#157)

* chore(react,solid,svelte,vue): update deps (#158)

* feat(example-api): get and upsert (#159)

* feat(example-api): get and upsert

* fix(example-api): add createdAt

* chore(example-react): init (#160)

* chore(example-react): init

* chore(example-react): remove test and pack scripts

* chore(example-react): add shadcn/ui (#161)

* chore(example-react): add shadcn/ui

* style(example-react): formatting

* fix(example-react): update index.css for tailwind 4

* chore(example-react): updating styling config for tailwind v4 (#162)

* chore(example-react): updating styling config for tailwind v4

* chore(example-react): fix failing build

* chore(example-react): adding in theme vars as required by tailwind v4 (#163)

* chore(example-react): adding in theme vars as required by tailwind v4, with the other stuff unsupported as of now

* style(example-react): fix linting and formatting

* feat(example-react): thread (#164)

* feat(example-react): accordion thread thing

* chore(example-react): update eslint config

* refactor(example-react): onClickChildThread -> makeOnClickChildThread

* fix(example-react): increment rerender counter only when reference changes (#165)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App (#166)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App

* fix(react,vue,svelte,solid): update for onsuccess merge (#168)

* fix(react,vue,svelte,solid): update for onsuccess merge in the case of an incomplete document

* fix(svelte,solid,vue): merged instead of final, incremental expects the result of the original onSuccess

* feat(example-react): cleaning up design  (#169)

* feat(example-react): cleaning up design and adding border for rerenders going from blue to red

* fix(example-react): when going back to main thread set reply to null

* fix(example-react): disable submit button if no new thread

* feat(example-react): add new main thread (#170)

* feat(example-react): add new main thread

* fix(example-react): prevent default on enter keydown

* style(example-react): formatting

* feat(example-react): useQwery example, bit contrived and needs docs (#171)

* chore(example-react): remove build script (#172)

* chore(example-react): rely on published version instead of workspace, fine on mac but fails in ci otherwise

* chore(example-react): trying to link

* chore(example-react): update pnpm.lock

* chore(example-react): moving react-qwery link to devDeps

* chore(example-react): remove build script, unsure why its failing too lazy to check, works locally

* chore(example-react): remove vite tailwindcss plugin (#173)

* fix(example-react): increase rerender weight (#174)

* docs(example-react): adding some comments (#175)

* refactor(example-react): setting up mock data in shared api project (#176)

* refactor(example-react): setting up mock data in shared api project, typing react example properly

* refactor(example-api): loading up initialValue from thread prop

* chore(example-react): specifying react qwery as a workspace package instead of linking

* chore(example-react): splitting up lint, test and build instead of parallel

* chore(example-react): build first then test

* chore(example-react): update readme (#177)

* chore(react,example-react): update readme (#178)

* v1.5.3

* fix(example-react): forgot to update landing as well (#180)

* fix(example-react): forgot to update landing as well

* refactor(example-react): update props for Thread

* fix(react,vue,svelte,example-react): broadcast channel fixes (#181)

* fix(react,vue,svelte,example-react): broadcast channel fixes

* fix(example-react): useEffect dep

* v1.5.4

* fix(react,vue,svelte,solid): broadcast persistent dispatches (#184)

* chore(qwery-shared): migrate to tsup (#185)

* fix(react,vue,solid,svelte): remember scroll hook was returning too early (#187)

* refactor(react,solid,svelte,vue): move core logic to shared (#186)

* refactor(react,vue,svelte,solid): remove useExecutionEnvironment and move isBrowser to shared

* refactor(react,solid,svelte,vue): move createId to shared

* refactor(react,solid,svelte,vue): move useMonitoredFetch to shared

* refactor(react): refactor useQwery, moving core logic to shared

* refactor(react): exhaustive deps

* refactor(react): removing exhaustive deps and adding lint rule, keeping it non reactive to changes in options is better, less bugs and more standard behaviour and also its a little unnecessary because the use case will not come up (except maybe for onChange, onSuccess, onError and refetch)

* refactor(react): forward args for all function options

* refactor(solid): moving core logic to shared

* refactor(vue): moving core logic to shared

* refactor(react): if conditional qwery then there will be no unsubscribe

* refactor(solid, vue): throw an error if can't invoke dispatch

* refactor(svelte, solid): moving core logic for svelte and solid to shared and squash bugs with DOM not being updated for svelte and solid

* docs(svelte, vue): update docs for svelte and vue

* docs(svelte): update docs for svelte

* fix(svelte,vue,solid): isServer check was wrong for solid and svelte for useRememberScroll (#188)

* refactor(react,vue,svelte,solid): move useRememberScroll core to shared (#189)

* fix(react,vue,svelte,solid): optional options for useNetworkMode (#190)

* fix(react,vue,svelte,solid): optional options for useNetworkMode, update example to include a fetching and online status indicator

* chore(react): silence linter warning

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted (#191)

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted

* test(react): tests for broadcasting updates

* chore(react,solid,svelte,vue): update exports (#193)

* v1.5.5

* chore(react,vue,solid,svelte): update readme (#195)

* chore(react,vue,solid,svelte): update readme

* chore(react,vue,solid,svelte): add bundlephobia link

* chore: update readme (#196)

* chore(react,vue,solid,svelte): update readme

* chore(react,vue,solid,svelte): add bundlephobia link

* chore: update repo readme

* chore(react,vue,solid,svelte): update incremental (#197)

* fix(react,vue,solid,svelte): rerender on persisted dispatches (#199)

* test(react): update unit tests (#200)

* types(react,vue,solid,svelte): inferring onChange type correcty (#201)

* docs(example-vue): vue example (#198)

* docs(example-vue): vue example

* docs(vue): setting the currentThread uuid in a ref and computing the details of the currentThread, fixes reply to not working and broadcasts not working

* fix(example-vue): build issues

* fix(example-vue): small fixups

* chore(react,vue,solid,svelte): export Dispatch type (#202)

* chore(react,vue,solid,svelte): export Dispatch type

* chore(example-react,example-vue): verbatim module syntax

* chore: update readme

* chore(example-vue): update package name (#203)

* v1.5.6
nmathew98 added a commit that referenced this pull request Mar 30, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4

* feat(svelte): useExecutionEnvironment (#113)

* feat(svelte): context (#114)

* feat(svelte): useNetworkMode (#115)

* feat(svelte): useRememberScroll (#116)

* chore(svelte): update exports (#117)

* chore(svelte): update exports

* chore(svelte): update tsconfig

* feat(svelte): useQwery (#118)

* feat(svelte): useQwery

* fix(svelte): subscribe to store until dispatch has a value set

* chore(svelte): update exports

* fix(svelte): if suspense then we can just directly return dispatch from result if available because the reference will not change, same crdt always

* fix(vue): same for vue

* types(svelte,vue): add InferData utility type

* types(svelte,vue): remove ts expect error

* types(react): update types for broadcast

* chore(react,vue): update tsconfig (#119)

* types(react): type import UseNetworkModeOptions (#120)

* refactor(vue,svelte): computeInitialValueTest -> computeInitialValue (#121)

* refactor(react,vue,svelte): move no op cache to shared (#122)

* fix(svelte): for dispatch move subscribe out of getter (#123)

* fix(svelte): for dispatch move subscribe out of getter

* types(svelte,vue): InferData<I> instead of Data

* chore: update readme (#124)

* feat: add map reduce and maybe return a promise utility fn for change handlers (#125)

* chore: update readme (#126)

* refactor(shared): update mapReduceMaybePromise to be rest args instead (#127)

* feat(react,svelte,vue): useMonitoredFetch hook (#128)

* fix(react,vue,svelte): allow specifying other options (#129)

* types(react,vue,svelte): adding types (#130)

* chore(svelte): update build config (#131)

* chore: update readme (#132)

* chore(svelte): update package.json (#133)

* v1.5.0

* chore(react,vue,svelte): update readme with more accurate figures (#135)

* chore(react,vue,svelte): update readme with more accurate figures

* chore: update readme

* chore(solid): solid start (#136)

* chore(solid): solid start

* chore: add vitest and qwery-shared

* chore(react,vue,svelte,solid): update readme (#137)

* feat(solid): useMonitoredFetch (#138)

* feat(solid): useExecutionEnvironment (#139)

* feat(solid): useRememberScroll (#140)

* feat(solid): useNetworkMode (#141)

* fix(solid): useMonitoredFetch (#142)

* feat(solid): context (#143)

* chore(solid): update exports (#144)

* fix(solid): not destructuring props (#145)

* fix(solid): onCleanup (#146)

* fix(solid): onCleanup

* fix(solid): cleanup happens when scope reevaluates or is finally disposed

* feat(solid): useQwery (#147)

* feat(solid): useQwery

* chore(solid): update exports

* types(solid): update useQwery types (#148)

* chore(solid): update readme (#150)

* v1.5.1

* feat(vue,solid,svelte): proxy dispatch (#152)

* v1.5.2

* chore(svelte): make svelte peer dep instead of dev dep (#155)

* chore(react): remove pnpm lock, no need now that its a workspace (#156)

* chore: example api init (#157)

* chore(react,solid,svelte,vue): update deps (#158)

* feat(example-api): get and upsert (#159)

* feat(example-api): get and upsert

* fix(example-api): add createdAt

* chore(example-react): init (#160)

* chore(example-react): init

* chore(example-react): remove test and pack scripts

* chore(example-react): add shadcn/ui (#161)

* chore(example-react): add shadcn/ui

* style(example-react): formatting

* fix(example-react): update index.css for tailwind 4

* chore(example-react): updating styling config for tailwind v4 (#162)

* chore(example-react): updating styling config for tailwind v4

* chore(example-react): fix failing build

* chore(example-react): adding in theme vars as required by tailwind v4 (#163)

* chore(example-react): adding in theme vars as required by tailwind v4, with the other stuff unsupported as of now

* style(example-react): fix linting and formatting

* feat(example-react): thread (#164)

* feat(example-react): accordion thread thing

* chore(example-react): update eslint config

* refactor(example-react): onClickChildThread -> makeOnClickChildThread

* fix(example-react): increment rerender counter only when reference changes (#165)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App (#166)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App

* fix(react,vue,svelte,solid): update for onsuccess merge (#168)

* fix(react,vue,svelte,solid): update for onsuccess merge in the case of an incomplete document

* fix(svelte,solid,vue): merged instead of final, incremental expects the result of the original onSuccess

* feat(example-react): cleaning up design  (#169)

* feat(example-react): cleaning up design and adding border for rerenders going from blue to red

* fix(example-react): when going back to main thread set reply to null

* fix(example-react): disable submit button if no new thread

* feat(example-react): add new main thread (#170)

* feat(example-react): add new main thread

* fix(example-react): prevent default on enter keydown

* style(example-react): formatting

* feat(example-react): useQwery example, bit contrived and needs docs (#171)

* chore(example-react): remove build script (#172)

* chore(example-react): rely on published version instead of workspace, fine on mac but fails in ci otherwise

* chore(example-react): trying to link

* chore(example-react): update pnpm.lock

* chore(example-react): moving react-qwery link to devDeps

* chore(example-react): remove build script, unsure why its failing too lazy to check, works locally

* chore(example-react): remove vite tailwindcss plugin (#173)

* fix(example-react): increase rerender weight (#174)

* docs(example-react): adding some comments (#175)

* refactor(example-react): setting up mock data in shared api project (#176)

* refactor(example-react): setting up mock data in shared api project, typing react example properly

* refactor(example-api): loading up initialValue from thread prop

* chore(example-react): specifying react qwery as a workspace package instead of linking

* chore(example-react): splitting up lint, test and build instead of parallel

* chore(example-react): build first then test

* chore(example-react): update readme (#177)

* chore(react,example-react): update readme (#178)

* v1.5.3

* fix(example-react): forgot to update landing as well (#180)

* fix(example-react): forgot to update landing as well

* refactor(example-react): update props for Thread

* fix(react,vue,svelte,example-react): broadcast channel fixes (#181)

* fix(react,vue,svelte,example-react): broadcast channel fixes

* fix(example-react): useEffect dep

* v1.5.4

* fix(react,vue,svelte,solid): broadcast persistent dispatches (#184)

* chore(qwery-shared): migrate to tsup (#185)

* fix(react,vue,solid,svelte): remember scroll hook was returning too early (#187)

* refactor(react,solid,svelte,vue): move core logic to shared (#186)

* refactor(react,vue,svelte,solid): remove useExecutionEnvironment and move isBrowser to shared

* refactor(react,solid,svelte,vue): move createId to shared

* refactor(react,solid,svelte,vue): move useMonitoredFetch to shared

* refactor(react): refactor useQwery, moving core logic to shared

* refactor(react): exhaustive deps

* refactor(react): removing exhaustive deps and adding lint rule, keeping it non reactive to changes in options is better, less bugs and more standard behaviour and also its a little unnecessary because the use case will not come up (except maybe for onChange, onSuccess, onError and refetch)

* refactor(react): forward args for all function options

* refactor(solid): moving core logic to shared

* refactor(vue): moving core logic to shared

* refactor(react): if conditional qwery then there will be no unsubscribe

* refactor(solid, vue): throw an error if can't invoke dispatch

* refactor(svelte, solid): moving core logic for svelte and solid to shared and squash bugs with DOM not being updated for svelte and solid

* docs(svelte, vue): update docs for svelte and vue

* docs(svelte): update docs for svelte

* fix(svelte,vue,solid): isServer check was wrong for solid and svelte for useRememberScroll (#188)

* refactor(react,vue,svelte,solid): move useRememberScroll core to shared (#189)

* fix(react,vue,svelte,solid): optional options for useNetworkMode (#190)

* fix(react,vue,svelte,solid): optional options for useNetworkMode, update example to include a fetching and online status indicator

* chore(react): silence linter warning

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted (#191)

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted

* test(react): tests for broadcasting updates

* chore(react,solid,svelte,vue): update exports (#193)

* v1.5.5

* chore(react,vue,solid,svelte): update readme (#195)

* chore(react,vue,solid,svelte): update readme

* chore(react,vue,solid,svelte): add bundlephobia link

* chore: update readme (#196)

* chore(react,vue,solid,svelte): update readme

* chore(react,vue,solid,svelte): add bundlephobia link

* chore: update repo readme

* chore(react,vue,solid,svelte): update incremental (#197)

* fix(react,vue,solid,svelte): rerender on persisted dispatches (#199)

* test(react): update unit tests (#200)

* types(react,vue,solid,svelte): inferring onChange type correcty (#201)

* docs(example-vue): vue example (#198)

* docs(example-vue): vue example

* docs(vue): setting the currentThread uuid in a ref and computing the details of the currentThread, fixes reply to not working and broadcasts not working

* fix(example-vue): build issues

* fix(example-vue): small fixups

* chore(react,vue,solid,svelte): export Dispatch type (#202)

* chore(react,vue,solid,svelte): export Dispatch type

* chore(example-react,example-vue): verbatim module syntax

* chore: update readme

* chore(example-vue): update package name (#203)

* v1.5.6

* docs(example-svelte): svelte example (#205)

* docs(example-svelte): svelte example mostly there, still a few rough parts with the ThreadChild

* fix(example-svelte): fix issue with children not updating correctly when replied to, though not sure if there's a better way. pending bug with content not being cleared correctly

* docs(example-svelte): update comments

* chore: update example svelte package name

* docs(example-svelte): another possible bug with svelte

* feat: batching (#207)

* feat: batching

* feat: size scheduler

* fix: move isWaiting flip up one level

* fix: .then returns a new promise

* test: unit tests

* fix: external reject size scheduler

* feat: allow immediate execution

* refactor: extract out immediateScheduler

* feat: add immediate execution utility, aborts all pending executions

* types: types for batcher

* chore: update exports

* types: relax constraint on return

* feat(react,vue,solid,svelte): add fetchPolicy to allow specifying fetch behaviour (#208)

* feat(react,vue,solid,svelte): add fetchPolicy to allow specifying fetch behaviour

* fix: update behaviour of broadcast and window focus refetch

* fix(react,vue,solid,svelte): propagate fetch policy to createQwery (#209)

* chore(react,solid,svelte,vue): update readme (#210)

* docs(example-svelte): upgrade to svelte 5 (#211)

* docs(example-svelte): update to svelte 5

* chore: enable ssr

* fix(react,solid,vue,svelte): check network connectivity only client side (#212)

* fix(react,solid,vue,svelte): check network connectivity only client side

* fix(react): update useNetworkMode effect deps

* docs(example-svelte): proper ssr (#213)

* docs(example-solid): solidjs example (#214)

* chore: init solid

* docs(example-solid): solid example

* chore(example-solid): update eslint config

* docs(example-svelte): disable ssr (#216)

* docs(example-svelte): remove data loader (#217)

* chore(example-svelte, example-solid): update readme (#218)

* v1.6.0
nmathew98 added a commit that referenced this pull request Mar 30, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4

* feat(svelte): useExecutionEnvironment (#113)

* feat(svelte): context (#114)

* feat(svelte): useNetworkMode (#115)

* feat(svelte): useRememberScroll (#116)

* chore(svelte): update exports (#117)

* chore(svelte): update exports

* chore(svelte): update tsconfig

* feat(svelte): useQwery (#118)

* feat(svelte): useQwery

* fix(svelte): subscribe to store until dispatch has a value set

* chore(svelte): update exports

* fix(svelte): if suspense then we can just directly return dispatch from result if available because the reference will not change, same crdt always

* fix(vue): same for vue

* types(svelte,vue): add InferData utility type

* types(svelte,vue): remove ts expect error

* types(react): update types for broadcast

* chore(react,vue): update tsconfig (#119)

* types(react): type import UseNetworkModeOptions (#120)

* refactor(vue,svelte): computeInitialValueTest -> computeInitialValue (#121)

* refactor(react,vue,svelte): move no op cache to shared (#122)

* fix(svelte): for dispatch move subscribe out of getter (#123)

* fix(svelte): for dispatch move subscribe out of getter

* types(svelte,vue): InferData<I> instead of Data

* chore: update readme (#124)

* feat: add map reduce and maybe return a promise utility fn for change handlers (#125)

* chore: update readme (#126)

* refactor(shared): update mapReduceMaybePromise to be rest args instead (#127)

* feat(react,svelte,vue): useMonitoredFetch hook (#128)

* fix(react,vue,svelte): allow specifying other options (#129)

* types(react,vue,svelte): adding types (#130)

* chore(svelte): update build config (#131)

* chore: update readme (#132)

* chore(svelte): update package.json (#133)

* v1.5.0

* chore(react,vue,svelte): update readme with more accurate figures (#135)

* chore(react,vue,svelte): update readme with more accurate figures

* chore: update readme

* chore(solid): solid start (#136)

* chore(solid): solid start

* chore: add vitest and qwery-shared

* chore(react,vue,svelte,solid): update readme (#137)

* feat(solid): useMonitoredFetch (#138)

* feat(solid): useExecutionEnvironment (#139)

* feat(solid): useRememberScroll (#140)

* feat(solid): useNetworkMode (#141)

* fix(solid): useMonitoredFetch (#142)

* feat(solid): context (#143)

* chore(solid): update exports (#144)

* fix(solid): not destructuring props (#145)

* fix(solid): onCleanup (#146)

* fix(solid): onCleanup

* fix(solid): cleanup happens when scope reevaluates or is finally disposed

* feat(solid): useQwery (#147)

* feat(solid): useQwery

* chore(solid): update exports

* types(solid): update useQwery types (#148)

* chore(solid): update readme (#150)

* v1.5.1

* feat(vue,solid,svelte): proxy dispatch (#152)

* v1.5.2

* chore(svelte): make svelte peer dep instead of dev dep (#155)

* chore(react): remove pnpm lock, no need now that its a workspace (#156)

* chore: example api init (#157)

* chore(react,solid,svelte,vue): update deps (#158)

* feat(example-api): get and upsert (#159)

* feat(example-api): get and upsert

* fix(example-api): add createdAt

* chore(example-react): init (#160)

* chore(example-react): init

* chore(example-react): remove test and pack scripts

* chore(example-react): add shadcn/ui (#161)

* chore(example-react): add shadcn/ui

* style(example-react): formatting

* fix(example-react): update index.css for tailwind 4

* chore(example-react): updating styling config for tailwind v4 (#162)

* chore(example-react): updating styling config for tailwind v4

* chore(example-react): fix failing build

* chore(example-react): adding in theme vars as required by tailwind v4 (#163)

* chore(example-react): adding in theme vars as required by tailwind v4, with the other stuff unsupported as of now

* style(example-react): fix linting and formatting

* feat(example-react): thread (#164)

* feat(example-react): accordion thread thing

* chore(example-react): update eslint config

* refactor(example-react): onClickChildThread -> makeOnClickChildThread

* fix(example-react): increment rerender counter only when reference changes (#165)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App (#166)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App

* fix(react,vue,svelte,solid): update for onsuccess merge (#168)

* fix(react,vue,svelte,solid): update for onsuccess merge in the case of an incomplete document

* fix(svelte,solid,vue): merged instead of final, incremental expects the result of the original onSuccess

* feat(example-react): cleaning up design  (#169)

* feat(example-react): cleaning up design and adding border for rerenders going from blue to red

* fix(example-react): when going back to main thread set reply to null

* fix(example-react): disable submit button if no new thread

* feat(example-react): add new main thread (#170)

* feat(example-react): add new main thread

* fix(example-react): prevent default on enter keydown

* style(example-react): formatting

* feat(example-react): useQwery example, bit contrived and needs docs (#171)

* chore(example-react): remove build script (#172)

* chore(example-react): rely on published version instead of workspace, fine on mac but fails in ci otherwise

* chore(example-react): trying to link

* chore(example-react): update pnpm.lock

* chore(example-react): moving react-qwery link to devDeps

* chore(example-react): remove build script, unsure why its failing too lazy to check, works locally

* chore(example-react): remove vite tailwindcss plugin (#173)

* fix(example-react): increase rerender weight (#174)

* docs(example-react): adding some comments (#175)

* refactor(example-react): setting up mock data in shared api project (#176)

* refactor(example-react): setting up mock data in shared api project, typing react example properly

* refactor(example-api): loading up initialValue from thread prop

* chore(example-react): specifying react qwery as a workspace package instead of linking

* chore(example-react): splitting up lint, test and build instead of parallel

* chore(example-react): build first then test

* chore(example-react): update readme (#177)

* chore(react,example-react): update readme (#178)

* v1.5.3

* fix(example-react): forgot to update landing as well (#180)

* fix(example-react): forgot to update landing as well

* refactor(example-react): update props for Thread

* fix(react,vue,svelte,example-react): broadcast channel fixes (#181)

* fix(react,vue,svelte,example-react): broadcast channel fixes

* fix(example-react): useEffect dep

* v1.5.4

* fix(react,vue,svelte,solid): broadcast persistent dispatches (#184)

* chore(qwery-shared): migrate to tsup (#185)

* fix(react,vue,solid,svelte): remember scroll hook was returning too early (#187)

* refactor(react,solid,svelte,vue): move core logic to shared (#186)

* refactor(react,vue,svelte,solid): remove useExecutionEnvironment and move isBrowser to shared

* refactor(react,solid,svelte,vue): move createId to shared

* refactor(react,solid,svelte,vue): move useMonitoredFetch to shared

* refactor(react): refactor useQwery, moving core logic to shared

* refactor(react): exhaustive deps

* refactor(react): removing exhaustive deps and adding lint rule, keeping it non reactive to changes in options is better, less bugs and more standard behaviour and also its a little unnecessary because the use case will not come up (except maybe for onChange, onSuccess, onError and refetch)

* refactor(react): forward args for all function options

* refactor(solid): moving core logic to shared

* refactor(vue): moving core logic to shared

* refactor(react): if conditional qwery then there will be no unsubscribe

* refactor(solid, vue): throw an error if can't invoke dispatch

* refactor(svelte, solid): moving core logic for svelte and solid to shared and squash bugs with DOM not being updated for svelte and solid

* docs(svelte, vue): update docs for svelte and vue

* docs(svelte): update docs for svelte

* fix(svelte,vue,solid): isServer check was wrong for solid and svelte for useRememberScroll (#188)

* refactor(react,vue,svelte,solid): move useRememberScroll core to shared (#189)

* fix(react,vue,svelte,solid): optional options for useNetworkMode (#190)

* fix(react,vue,svelte,solid): optional options for useNetworkMode, update example to include a fetching and online status indicator

* chore(react): silence linter warning

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted (#191)

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted

* test(react): tests for broadcasting updates

* chore(react,solid,svelte,vue): update exports (#193)

* v1.5.5

* chore(react,vue,solid,svelte): update readme (#195)

* chore(react,vue,solid,svelte): update readme

* chore(react,vue,solid,svelte): add bundlephobia link

* chore: update readme (#196)

* chore(react,vue,solid,svelte): update readme

* chore(react,vue,solid,svelte): add bundlephobia link

* chore: update repo readme

* chore(react,vue,solid,svelte): update incremental (#197)

* fix(react,vue,solid,svelte): rerender on persisted dispatches (#199)

* test(react): update unit tests (#200)

* types(react,vue,solid,svelte): inferring onChange type correcty (#201)

* docs(example-vue): vue example (#198)

* docs(example-vue): vue example

* docs(vue): setting the currentThread uuid in a ref and computing the details of the currentThread, fixes reply to not working and broadcasts not working

* fix(example-vue): build issues

* fix(example-vue): small fixups

* chore(react,vue,solid,svelte): export Dispatch type (#202)

* chore(react,vue,solid,svelte): export Dispatch type

* chore(example-react,example-vue): verbatim module syntax

* chore: update readme

* chore(example-vue): update package name (#203)

* v1.5.6

* docs(example-svelte): svelte example (#205)

* docs(example-svelte): svelte example mostly there, still a few rough parts with the ThreadChild

* fix(example-svelte): fix issue with children not updating correctly when replied to, though not sure if there's a better way. pending bug with content not being cleared correctly

* docs(example-svelte): update comments

* chore: update example svelte package name

* docs(example-svelte): another possible bug with svelte

* feat: batching (#207)

* feat: batching

* feat: size scheduler

* fix: move isWaiting flip up one level

* fix: .then returns a new promise

* test: unit tests

* fix: external reject size scheduler

* feat: allow immediate execution

* refactor: extract out immediateScheduler

* feat: add immediate execution utility, aborts all pending executions

* types: types for batcher

* chore: update exports

* types: relax constraint on return

* feat(react,vue,solid,svelte): add fetchPolicy to allow specifying fetch behaviour (#208)

* feat(react,vue,solid,svelte): add fetchPolicy to allow specifying fetch behaviour

* fix: update behaviour of broadcast and window focus refetch

* fix(react,vue,solid,svelte): propagate fetch policy to createQwery (#209)

* chore(react,solid,svelte,vue): update readme (#210)

* docs(example-svelte): upgrade to svelte 5 (#211)

* docs(example-svelte): update to svelte 5

* chore: enable ssr

* fix(react,solid,vue,svelte): check network connectivity only client side (#212)

* fix(react,solid,vue,svelte): check network connectivity only client side

* fix(react): update useNetworkMode effect deps

* docs(example-svelte): proper ssr (#213)

* docs(example-solid): solidjs example (#214)

* chore: init solid

* docs(example-solid): solid example

* chore(example-solid): update eslint config

* docs(example-svelte): disable ssr (#216)

* docs(example-svelte): remove data loader (#217)

* chore(example-svelte, example-solid): update readme (#218)

* v1.6.0

* fix(react,solid,svelte,vue): run fetch in background for cache-and-network (#220)

* chore(solid,svelte): update readme (#221)

* v1.6.1
nmathew98 added a commit that referenced this pull request Apr 1, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4

* feat(svelte): useExecutionEnvironment (#113)

* feat(svelte): context (#114)

* feat(svelte): useNetworkMode (#115)

* feat(svelte): useRememberScroll (#116)

* chore(svelte): update exports (#117)

* chore(svelte): update exports

* chore(svelte): update tsconfig

* feat(svelte): useQwery (#118)

* feat(svelte): useQwery

* fix(svelte): subscribe to store until dispatch has a value set

* chore(svelte): update exports

* fix(svelte): if suspense then we can just directly return dispatch from result if available because the reference will not change, same crdt always

* fix(vue): same for vue

* types(svelte,vue): add InferData utility type

* types(svelte,vue): remove ts expect error

* types(react): update types for broadcast

* chore(react,vue): update tsconfig (#119)

* types(react): type import UseNetworkModeOptions (#120)

* refactor(vue,svelte): computeInitialValueTest -> computeInitialValue (#121)

* refactor(react,vue,svelte): move no op cache to shared (#122)

* fix(svelte): for dispatch move subscribe out of getter (#123)

* fix(svelte): for dispatch move subscribe out of getter

* types(svelte,vue): InferData<I> instead of Data

* chore: update readme (#124)

* feat: add map reduce and maybe return a promise utility fn for change handlers (#125)

* chore: update readme (#126)

* refactor(shared): update mapReduceMaybePromise to be rest args instead (#127)

* feat(react,svelte,vue): useMonitoredFetch hook (#128)

* fix(react,vue,svelte): allow specifying other options (#129)

* types(react,vue,svelte): adding types (#130)

* chore(svelte): update build config (#131)

* chore: update readme (#132)

* chore(svelte): update package.json (#133)

* v1.5.0

* chore(react,vue,svelte): update readme with more accurate figures (#135)

* chore(react,vue,svelte): update readme with more accurate figures

* chore: update readme

* chore(solid): solid start (#136)

* chore(solid): solid start

* chore: add vitest and qwery-shared

* chore(react,vue,svelte,solid): update readme (#137)

* feat(solid): useMonitoredFetch (#138)

* feat(solid): useExecutionEnvironment (#139)

* feat(solid): useRememberScroll (#140)

* feat(solid): useNetworkMode (#141)

* fix(solid): useMonitoredFetch (#142)

* feat(solid): context (#143)

* chore(solid): update exports (#144)

* fix(solid): not destructuring props (#145)

* fix(solid): onCleanup (#146)

* fix(solid): onCleanup

* fix(solid): cleanup happens when scope reevaluates or is finally disposed

* feat(solid): useQwery (#147)

* feat(solid): useQwery

* chore(solid): update exports

* types(solid): update useQwery types (#148)

* chore(solid): update readme (#150)

* v1.5.1

* feat(vue,solid,svelte): proxy dispatch (#152)

* v1.5.2

* chore(svelte): make svelte peer dep instead of dev dep (#155)

* chore(react): remove pnpm lock, no need now that its a workspace (#156)

* chore: example api init (#157)

* chore(react,solid,svelte,vue): update deps (#158)

* feat(example-api): get and upsert (#159)

* feat(example-api): get and upsert

* fix(example-api): add createdAt

* chore(example-react): init (#160)

* chore(example-react): init

* chore(example-react): remove test and pack scripts

* chore(example-react): add shadcn/ui (#161)

* chore(example-react): add shadcn/ui

* style(example-react): formatting

* fix(example-react): update index.css for tailwind 4

* chore(example-react): updating styling config for tailwind v4 (#162)

* chore(example-react): updating styling config for tailwind v4

* chore(example-react): fix failing build

* chore(example-react): adding in theme vars as required by tailwind v4 (#163)

* chore(example-react): adding in theme vars as required by tailwind v4, with the other stuff unsupported as of now

* style(example-react): fix linting and formatting

* feat(example-react): thread (#164)

* feat(example-react): accordion thread thing

* chore(example-react): update eslint config

* refactor(example-react): onClickChildThread -> makeOnClickChildThread

* fix(example-react): increment rerender counter only when reference changes (#165)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App (#166)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App

* fix(react,vue,svelte,solid): update for onsuccess merge (#168)

* fix(react,vue,svelte,solid): update for onsuccess merge in the case of an incomplete document

* fix(svelte,solid,vue): merged instead of final, incremental expects the result of the original onSuccess

* feat(example-react): cleaning up design  (#169)

* feat(example-react): cleaning up design and adding border for rerenders going from blue to red

* fix(example-react): when going back to main thread set reply to null

* fix(example-react): disable submit button if no new thread

* feat(example-react): add new main thread (#170)

* feat(example-react): add new main thread

* fix(example-react): prevent default on enter keydown

* style(example-react): formatting

* feat(example-react): useQwery example, bit contrived and needs docs (#171)

* chore(example-react): remove build script (#172)

* chore(example-react): rely on published version instead of workspace, fine on mac but fails in ci otherwise

* chore(example-react): trying to link

* chore(example-react): update pnpm.lock

* chore(example-react): moving react-qwery link to devDeps

* chore(example-react): remove build script, unsure why its failing too lazy to check, works locally

* chore(example-react): remove vite tailwindcss plugin (#173)

* fix(example-react): increase rerender weight (#174)

* docs(example-react): adding some comments (#175)

* refactor(example-react): setting up mock data in shared api project (#176)

* refactor(example-react): setting up mock data in shared api project, typing react example properly

* refactor(example-api): loading up initialValue from thread prop

* chore(example-react): specifying react qwery as a workspace package instead of linking

* chore(example-react): splitting up lint, test and build instead of parallel

* chore(example-react): build first then test

* chore(example-react): update readme (#177)

* chore(react,example-react): update readme (#178)

* v1.5.3

* fix(example-react): forgot to update landing as well (#180)

* fix(example-react): forgot to update landing as well

* refactor(example-react): update props for Thread

* fix(react,vue,svelte,example-react): broadcast channel fixes (#181)

* fix(react,vue,svelte,example-react): broadcast channel fixes

* fix(example-react): useEffect dep

* v1.5.4

* fix(react,vue,svelte,solid): broadcast persistent dispatches (#184)

* chore(qwery-shared): migrate to tsup (#185)

* fix(react,vue,solid,svelte): remember scroll hook was returning too early (#187)

* refactor(react,solid,svelte,vue): move core logic to shared (#186)

* refactor(react,vue,svelte,solid): remove useExecutionEnvironment and move isBrowser to shared

* refactor(react,solid,svelte,vue): move createId to shared

* refactor(react,solid,svelte,vue): move useMonitoredFetch to shared

* refactor(react): refactor useQwery, moving core logic to shared

* refactor(react): exhaustive deps

* refactor(react): removing exhaustive deps and adding lint rule, keeping it non reactive to changes in options is better, less bugs and more standard behaviour and also its a little unnecessary because the use case will not come up (except maybe for onChange, onSuccess, onError and refetch)

* refactor(react): forward args for all function options

* refactor(solid): moving core logic to shared

* refactor(vue): moving core logic to shared

* refactor(react): if conditional qwery then there will be no unsubscribe

* refactor(solid, vue): throw an error if can't invoke dispatch

* refactor(svelte, solid): moving core logic for svelte and solid to shared and squash bugs with DOM not being updated for svelte and solid

* docs(svelte, vue): update docs for svelte and vue

* docs(svelte): update docs for svelte

* fix(svelte,vue,solid): isServer check was wrong for solid and svelte for useRememberScroll (#188)

* refactor(react,vue,svelte,solid): move useRememberScroll core to shared (#189)

* fix(react,vue,svelte,solid): optional options for useNetworkMode (#190)

* fix(react,vue,svelte,solid): optional options for useNetworkMode, update example to include a fetching and online status indicator

* chore(react): silence linter warning

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted (#191)

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted

* test(react): tests for broadcasting updates

* chore(react,solid,svelte,vue): update exports (#193)

* v1.5.5

* chore(react,vue,solid,svelte): update readme (#195)

* chore(react,vue,solid,svelte): update readme

* chore(react,vue,solid,svelte): add bundlephobia link

* chore: update readme (#196)

* chore(react,vue,solid,svelte): update readme

* chore(react,vue,solid,svelte): add bundlephobia link

* chore: update repo readme

* chore(react,vue,solid,svelte): update incremental (#197)

* fix(react,vue,solid,svelte): rerender on persisted dispatches (#199)

* test(react): update unit tests (#200)

* types(react,vue,solid,svelte): inferring onChange type correcty (#201)

* docs(example-vue): vue example (#198)

* docs(example-vue): vue example

* docs(vue): setting the currentThread uuid in a ref and computing the details of the currentThread, fixes reply to not working and broadcasts not working

* fix(example-vue): build issues

* fix(example-vue): small fixups

* chore(react,vue,solid,svelte): export Dispatch type (#202)

* chore(react,vue,solid,svelte): export Dispatch type

* chore(example-react,example-vue): verbatim module syntax

* chore: update readme

* chore(example-vue): update package name (#203)

* v1.5.6

* docs(example-svelte): svelte example (#205)

* docs(example-svelte): svelte example mostly there, still a few rough parts with the ThreadChild

* fix(example-svelte): fix issue with children not updating correctly when replied to, though not sure if there's a better way. pending bug with content not being cleared correctly

* docs(example-svelte): update comments

* chore: update example svelte package name

* docs(example-svelte): another possible bug with svelte

* feat: batching (#207)

* feat: batching

* feat: size scheduler

* fix: move isWaiting flip up one level

* fix: .then returns a new promise

* test: unit tests

* fix: external reject size scheduler

* feat: allow immediate execution

* refactor: extract out immediateScheduler

* feat: add immediate execution utility, aborts all pending executions

* types: types for batcher

* chore: update exports

* types: relax constraint on return

* feat(react,vue,solid,svelte): add fetchPolicy to allow specifying fetch behaviour (#208)

* feat(react,vue,solid,svelte): add fetchPolicy to allow specifying fetch behaviour

* fix: update behaviour of broadcast and window focus refetch

* fix(react,vue,solid,svelte): propagate fetch policy to createQwery (#209)

* chore(react,solid,svelte,vue): update readme (#210)

* docs(example-svelte): upgrade to svelte 5 (#211)

* docs(example-svelte): update to svelte 5

* chore: enable ssr

* fix(react,solid,vue,svelte): check network connectivity only client side (#212)

* fix(react,solid,vue,svelte): check network connectivity only client side

* fix(react): update useNetworkMode effect deps

* docs(example-svelte): proper ssr (#213)

* docs(example-solid): solidjs example (#214)

* chore: init solid

* docs(example-solid): solid example

* chore(example-solid): update eslint config

* docs(example-svelte): disable ssr (#216)

* docs(example-svelte): remove data loader (#217)

* chore(example-svelte, example-solid): update readme (#218)

* v1.6.0

* fix(react,solid,svelte,vue): run fetch in background for cache-and-network (#220)

* chore(solid,svelte): update readme (#221)

* v1.6.1

* chore(graphqwery): init graphqwery (#224)

* chore(graphqwery): update readme (#225)

* chore(gqwery): rename (#226)

* chore: update pnpm lock (#227)

* feat(gqwery): cache and executor (#228)

squashed:

feat(gqwery): once we have the initial response, map it to cache keys: plucking out entities from response, store them in the cache and map the operation to a key in the cache

fix(gqwery): linting issues and remove spec folder

chore(gqwery): add lodash

refactor(gqwery): cleanup

refactor(gqwery): hydrate accepts a query directly

wip(gqwery): combined executor

feat(gqwery): add weak graphql cache and handle subscriptions

docs(gqwery): update comments for combined executor

* fix(gqwery): fixes after testing (#229)

* fix(gqwery): fixes after testing

* fix(gqwery): update unit tests

* fix(gqwery): add __typename to field selections

* refactor(gqwery): use loop-recur from clojure instead of recursing

* types(gqwery): types for data unit test

* refactor(gqwery): rename makeNormalize to makePluck

* refactor(gqwery): trim OperationInformation and OperationSelection interfaces

* feat: createGraphQLQueryKeys

* fix(gqwery): updating hydrate to use createGraphQLQueryKey

* types(gqwery): update GraphQLTypePolicy

* test(gqwery): test for http executor, wss is a bit of a pain, maybe sse and mocking out fetch might be better

* chore(gqwery): update exports

* style(gqwery): fix lint error

* chore(gqwery): pnpm install --fix-lockfile, skipping ws tests for now

* test(gqwery): update ws tests, should work but not running because of conflicting graphql instances

* fix(gqwery): query key regex (#231)

* fix(gqwery): update how query key is checked

* fix(gqwery): add args to subscription test schema

* fix(gqwery): update query key tostring regex

* feat(gqwery): add buildMockExecutor (#232)

* chore: general housekeeping (#233)

* chore: general housekeeping - add clean.modules script and package updates

* chore(gqwery): update exports

* chore(shared): add weak merge cache (#234)

* v1.7.0
nmathew98 added a commit that referenced this pull request Apr 8, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4

* feat(svelte): useExecutionEnvironment (#113)

* feat(svelte): context (#114)

* feat(svelte): useNetworkMode (#115)

* feat(svelte): useRememberScroll (#116)

* chore(svelte): update exports (#117)

* chore(svelte): update exports

* chore(svelte): update tsconfig

* feat(svelte): useQwery (#118)

* feat(svelte): useQwery

* fix(svelte): subscribe to store until dispatch has a value set

* chore(svelte): update exports

* fix(svelte): if suspense then we can just directly return dispatch from result if available because the reference will not change, same crdt always

* fix(vue): same for vue

* types(svelte,vue): add InferData utility type

* types(svelte,vue): remove ts expect error

* types(react): update types for broadcast

* chore(react,vue): update tsconfig (#119)

* types(react): type import UseNetworkModeOptions (#120)

* refactor(vue,svelte): computeInitialValueTest -> computeInitialValue (#121)

* refactor(react,vue,svelte): move no op cache to shared (#122)

* fix(svelte): for dispatch move subscribe out of getter (#123)

* fix(svelte): for dispatch move subscribe out of getter

* types(svelte,vue): InferData<I> instead of Data

* chore: update readme (#124)

* feat: add map reduce and maybe return a promise utility fn for change handlers (#125)

* chore: update readme (#126)

* refactor(shared): update mapReduceMaybePromise to be rest args instead (#127)

* feat(react,svelte,vue): useMonitoredFetch hook (#128)

* fix(react,vue,svelte): allow specifying other options (#129)

* types(react,vue,svelte): adding types (#130)

* chore(svelte): update build config (#131)

* chore: update readme (#132)

* chore(svelte): update package.json (#133)

* v1.5.0

* chore(react,vue,svelte): update readme with more accurate figures (#135)

* chore(react,vue,svelte): update readme with more accurate figures

* chore: update readme

* chore(solid): solid start (#136)

* chore(solid): solid start

* chore: add vitest and qwery-shared

* chore(react,vue,svelte,solid): update readme (#137)

* feat(solid): useMonitoredFetch (#138)

* feat(solid): useExecutionEnvironment (#139)

* feat(solid): useRememberScroll (#140)

* feat(solid): useNetworkMode (#141)

* fix(solid): useMonitoredFetch (#142)

* feat(solid): context (#143)

* chore(solid): update exports (#144)

* fix(solid): not destructuring props (#145)

* fix(solid): onCleanup (#146)

* fix(solid): onCleanup

* fix(solid): cleanup happens when scope reevaluates or is finally disposed

* feat(solid): useQwery (#147)

* feat(solid): useQwery

* chore(solid): update exports

* types(solid): update useQwery types (#148)

* chore(solid): update readme (#150)

* v1.5.1

* feat(vue,solid,svelte): proxy dispatch (#152)

* v1.5.2

* chore(svelte): make svelte peer dep instead of dev dep (#155)

* chore(react): remove pnpm lock, no need now that its a workspace (#156)

* chore: example api init (#157)

* chore(react,solid,svelte,vue): update deps (#158)

* feat(example-api): get and upsert (#159)

* feat(example-api): get and upsert

* fix(example-api): add createdAt

* chore(example-react): init (#160)

* chore(example-react): init

* chore(example-react): remove test and pack scripts

* chore(example-react): add shadcn/ui (#161)

* chore(example-react): add shadcn/ui

* style(example-react): formatting

* fix(example-react): update index.css for tailwind 4

* chore(example-react): updating styling config for tailwind v4 (#162)

* chore(example-react): updating styling config for tailwind v4

* chore(example-react): fix failing build

* chore(example-react): adding in theme vars as required by tailwind v4 (#163)

* chore(example-react): adding in theme vars as required by tailwind v4, with the other stuff unsupported as of now

* style(example-react): fix linting and formatting

* feat(example-react): thread (#164)

* feat(example-react): accordion thread thing

* chore(example-react): update eslint config

* refactor(example-react): onClickChildThread -> makeOnClickChildThread

* fix(example-react): increment rerender counter only when reference changes (#165)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App (#166)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App

* fix(react,vue,svelte,solid): update for onsuccess merge (#168)

* fix(react,vue,svelte,solid): update for onsuccess merge in the case of an incomplete document

* fix(svelte,solid,vue): merged instead of final, incremental expects the result of the original onSuccess

* feat(example-react): cleaning up design  (#169)

* feat(example-react): cleaning up design and adding border for rerenders going from blue to red

* fix(example-react): when going back to main thread set reply to null

* fix(example-react): disable submit button if no new thread

* feat(example-react): add new main thread (#170)

* feat(example-react): add new main thread

* fix(example-react): prevent default on enter keydown

* style(example-react): formatting

* feat(example-react): useQwery example, bit contrived and needs docs (#171)

* chore(example-react): remove build script (#172)

* chore(example-react): rely on published version instead of workspace, fine on mac but fails in ci otherwise

* chore(example-react): trying to link

* chore(example-react): update pnpm.lock

* chore(example-react): moving react-qwery link to devDeps

* chore(example-react): remove build script, unsure why its failing too lazy to check, works locally

* chore(example-react): remove vite tailwindcss plugin (#173)

* fix(example-react): increase rerender weight (#174)

* docs(example-react): adding some comments (#175)

* refactor(example-react): setting up mock data in shared api project (#176)

* refactor(example-react): setting up mock data in shared api project, typing react example properly

* refactor(example-api): loading up initialValue from thread prop

* chore(example-react): specifying react qwery as a workspace package instead of linking

* chore(example-react): splitting up lint, test and build instead of parallel

* chore(example-react): build first then test

* chore(example-react): update readme (#177)

* chore(react,example-react): update readme (#178)

* v1.5.3

* fix(example-react): forgot to update landing as well (#180)

* fix(example-react): forgot to update landing as well

* refactor(example-react): update props for Thread

* fix(react,vue,svelte,example-react): broadcast channel fixes (#181)

* fix(react,vue,svelte,example-react): broadcast channel fixes

* fix(example-react): useEffect dep

* v1.5.4

* fix(react,vue,svelte,solid): broadcast persistent dispatches (#184)

* chore(qwery-shared): migrate to tsup (#185)

* fix(react,vue,solid,svelte): remember scroll hook was returning too early (#187)

* refactor(react,solid,svelte,vue): move core logic to shared (#186)

* refactor(react,vue,svelte,solid): remove useExecutionEnvironment and move isBrowser to shared

* refactor(react,solid,svelte,vue): move createId to shared

* refactor(react,solid,svelte,vue): move useMonitoredFetch to shared

* refactor(react): refactor useQwery, moving core logic to shared

* refactor(react): exhaustive deps

* refactor(react): removing exhaustive deps and adding lint rule, keeping it non reactive to changes in options is better, less bugs and more standard behaviour and also its a little unnecessary because the use case will not come up (except maybe for onChange, onSuccess, onError and refetch)

* refactor(react): forward args for all function options

* refactor(solid): moving core logic to shared

* refactor(vue): moving core logic to shared

* refactor(react): if conditional qwery then there will be no unsubscribe

* refactor(solid, vue): throw an error if can't invoke dispatch

* refactor(svelte, solid): moving core logic for svelte and solid to shared and squash bugs with DOM not being updated for svelte and solid

* docs(svelte, vue): update docs for svelte and vue

* docs(svelte): update docs for svelte

* fix(svelte,vue,solid): isServer check was wrong for solid and svelte for useRememberScroll (#188)

* refactor(react,vue,svelte,solid): move useRememberScroll core to shared (#189)

* fix(react,vue,svelte,solid): optional options for useNetworkMode (#190)

* fix(react,vue,svelte,solid): optional options for useNetworkMode, update example to include a fetching and online status indicator

* chore(react): silence linter warning

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted (#191)

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted

* test(react): tests for broadcasting updates

* chore(react,solid,svelte,vue): update exports (#193)

* v1.5.5

* chore(react,vue,solid,svelte): update readme (#195)

* chore(react,vue,solid,svelte): update readme

* chore(react,vue,solid,svelte): add bundlephobia link

* chore: update readme (#196)

* chore(react,vue,solid,svelte): update readme

* chore(react,vue,solid,svelte): add bundlephobia link

* chore: update repo readme

* chore(react,vue,solid,svelte): update incremental (#197)

* fix(react,vue,solid,svelte): rerender on persisted dispatches (#199)

* test(react): update unit tests (#200)

* types(react,vue,solid,svelte): inferring onChange type correcty (#201)

* docs(example-vue): vue example (#198)

* docs(example-vue): vue example

* docs(vue): setting the currentThread uuid in a ref and computing the details of the currentThread, fixes reply to not working and broadcasts not working

* fix(example-vue): build issues

* fix(example-vue): small fixups

* chore(react,vue,solid,svelte): export Dispatch type (#202)

* chore(react,vue,solid,svelte): export Dispatch type

* chore(example-react,example-vue): verbatim module syntax

* chore: update readme

* chore(example-vue): update package name (#203)

* v1.5.6

* docs(example-svelte): svelte example (#205)

* docs(example-svelte): svelte example mostly there, still a few rough parts with the ThreadChild

* fix(example-svelte): fix issue with children not updating correctly when replied to, though not sure if there's a better way. pending bug with content not being cleared correctly

* docs(example-svelte): update comments

* chore: update example svelte package name

* docs(example-svelte): another possible bug with svelte

* feat: batching (#207)

* feat: batching

* feat: size scheduler

* fix: move isWaiting flip up one level

* fix: .then returns a new promise

* test: unit tests

* fix: external reject size scheduler

* feat: allow immediate execution

* refactor: extract out immediateScheduler

* feat: add immediate execution utility, aborts all pending executions

* types: types for batcher

* chore: update exports

* types: relax constraint on return

* feat(react,vue,solid,svelte): add fetchPolicy to allow specifying fetch behaviour (#208)

* feat(react,vue,solid,svelte): add fetchPolicy to allow specifying fetch behaviour

* fix: update behaviour of broadcast and window focus refetch

* fix(react,vue,solid,svelte): propagate fetch policy to createQwery (#209)

* chore(react,solid,svelte,vue): update readme (#210)

* docs(example-svelte): upgrade to svelte 5 (#211)

* docs(example-svelte): update to svelte 5

* chore: enable ssr

* fix(react,solid,vue,svelte): check network connectivity only client side (#212)

* fix(react,solid,vue,svelte): check network connectivity only client side

* fix(react): update useNetworkMode effect deps

* docs(example-svelte): proper ssr (#213)

* docs(example-solid): solidjs example (#214)

* chore: init solid

* docs(example-solid): solid example

* chore(example-solid): update eslint config

* docs(example-svelte): disable ssr (#216)

* docs(example-svelte): remove data loader (#217)

* chore(example-svelte, example-solid): update readme (#218)

* v1.6.0

* fix(react,solid,svelte,vue): run fetch in background for cache-and-network (#220)

* chore(solid,svelte): update readme (#221)

* v1.6.1

* chore(graphqwery): init graphqwery (#224)

* chore(graphqwery): update readme (#225)

* chore(gqwery): rename (#226)

* chore: update pnpm lock (#227)

* feat(gqwery): cache and executor (#228)

squashed:

feat(gqwery): once we have the initial response, map it to cache keys: plucking out entities from response, store them in the cache and map the operation to a key in the cache

fix(gqwery): linting issues and remove spec folder

chore(gqwery): add lodash

refactor(gqwery): cleanup

refactor(gqwery): hydrate accepts a query directly

wip(gqwery): combined executor

feat(gqwery): add weak graphql cache and handle subscriptions

docs(gqwery): update comments for combined executor

* fix(gqwery): fixes after testing (#229)

* fix(gqwery): fixes after testing

* fix(gqwery): update unit tests

* fix(gqwery): add __typename to field selections

* refactor(gqwery): use loop-recur from clojure instead of recursing

* types(gqwery): types for data unit test

* refactor(gqwery): rename makeNormalize to makePluck

* refactor(gqwery): trim OperationInformation and OperationSelection interfaces

* feat: createGraphQLQueryKeys

* fix(gqwery): updating hydrate to use createGraphQLQueryKey

* types(gqwery): update GraphQLTypePolicy

* test(gqwery): test for http executor, wss is a bit of a pain, maybe sse and mocking out fetch might be better

* chore(gqwery): update exports

* style(gqwery): fix lint error

* chore(gqwery): pnpm install --fix-lockfile, skipping ws tests for now

* test(gqwery): update ws tests, should work but not running because of conflicting graphql instances

* fix(gqwery): query key regex (#231)

* fix(gqwery): update how query key is checked

* fix(gqwery): add args to subscription test schema

* fix(gqwery): update query key tostring regex

* feat(gqwery): add buildMockExecutor (#232)

* chore: general housekeeping (#233)

* chore: general housekeeping - add clean.modules script and package updates

* chore(gqwery): update exports

* chore(shared): add weak merge cache (#234)

* v1.7.0

* feat(gqwery): caching (#238)

squash

fix(gqwery): allow query keys to handle multiple queries in a single request, and caching working for basic queries

test(gqwery): update unit test

test(gqwery): expect that each top level entity is linked correctly

refactor: bring checking if the cached value is valid into the cache instead of the executor

feat: supporting fragments

test: add more todo test cases

refactor: refactor tests for expected fields

test: inline fragment support for expected fields

refactor: approximateResponseShape -> toBlankResponse, clearValuesDeep -> toEmptyRecordDeep, objectFromEntriesDeep -> toRecordDeep

refactor: bring everything cache related to the cache

test: tests for weak graphql cache

test: add additional expect to check reference

fix: update comparison for cached response and requested fields

refactor: mergeWith to blank a response

refactor: remove toRecordDeep

chore: update incremental

test: tests with computeInitialQweryValue

feat: unwrap graphql responses

chore: update incremental

* feat(react,vue,solid,svelte,gqwery): request manager to dedupe requests (#239)

* feat(react,vue,solid,svelte,gqwery): request manager to dedupe requests

* style: lint

* fix(react,vue,svelte,solid,gqwery): failing tests and update gqwery exports

* feat: make RequestManager a singleton

* fix: optional request manager

* docs: adding comments

* refactor: export QweryRequestManager type

* types: update types for request store

* chore: export RequestManager

* fix(react,svelte,solid,vue, gqwery): update how computeInitialQweryValue works (#240)

* chore(gqwery): remove aliased exports, just doing a major bump (#241)

* fix(gqwery): unwrap response and update tests to check references (#242)

* feat(gqwery): fetch executor (#243)

* feat(gqwery): fetch executor

* refactor: remove ability to specify a fetchFn

* feat(gqwery): support array of entities (#244)

* feat(gqwery): support array of entities

* fix: every item in array has to be an entity

* fix: union types and lists

* fix: reassigning references for entities which already exist

* fix: update isMatch checks

* docs: comments for pluck

* test: tests for pluck

* fix: update creation of getter for entities

* refactor: simplify normalizeAndCache

* refactor: simplify normalizedCache

* refactor: simplify normalized cache more

* fix(gqwery): fetch options idx (#245)

* test(gqwery): stricter test for pluck (#246)

* docs(gqwery): comments around normalized cache and references (#247)

* perf(gqwery): remove filter for entries (#248)

* perf(gqwery): remove filter for entries

* refactor(gqwery): simplify pluck

* fix(gqwery): pluck and circular references (#249)

* fix(gqwery): pluck and circular references

* fix(gqwery): update error message thrown

* test(gqwery): update test for error

* test(gqwery): update error message thrown

* refactor(gqwery): simplify toGetterOrValue (#250)

* refactor(gqwery): NormalizedCache class (#251)

* test(gqwery): react test (#252)

* chore(gqwery): cleanup (#253)

* chore(react,solid,svelte,vue,shared): update build configs to add sourcemap (#254)

* docs(gqwery): updating comments (#255)

* chore(gqwery): add graphql-tools/batch-execute (#256)

* refactor(gqwery): update how normalized cache works, only QueryKeys get the merge from normalizeAndCache, otherwise just set (#257)

* types(gqwery): types for createNormalizedCache (#258)

* chore(gqwery): export normalized cache type (#259)

* feat(react,vue,svelte,solid): global request manager (#260)

BREAKING CHANGE: Context is no longer just the cache store, request manager is also attached to it

* chore(react,solid,svelte,vue,gqwery): update readme and package information (#261)

* v2.0.0
nmathew98 added a commit that referenced this pull request Apr 8, 2024
* feat: QweryProvider (#1)

* feat: useQwery hook (#2)

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered

* chore: update readme (#3)

* feat: subscriptions and polling (#4)

* feat: useRememberScroll (#5)

* feat: refetchOnWindowFocus (#6)

* 0.0.1

* fix: awaiting initial value, either or can resolve to nullish (#8)

* types: useQweryOptions (#9)

* types: rough types for useQweryOptions

* fix: with makeMonitoredFetch, if a fetch is not enabled then it returns void so don't initialize the crdt in this case. update useRememberScroll to not execute server side

* chore: add vitest, react testing library, jsdom (#10)

* test: adding test api and redis (#11)

* test: add tests for useQwery, csr and ssr (#12)

* test: add tests for useQwery, csr and ssr

* chore: add gh actions

* 0.0.2

* chore: cleanup and update vite to build as lib (#14)

* chore: remove api.put (#15)

* chore: update deps, update exports, update types (#16)

* fix: effects don't run in ssr (#17)

* fix: effects don't run in ssr so return initialValue if it is an object, up to client to await and use suspense or what not. also update renderSsr to remove window while calling ReactDOMServer

* test: adding tests for async caches

* style: remove unused import

* types: update types

* refactor: update QweryProvider

* style: double quotes

* fix: silence act errors (#18)

* style: remove unused imports (#19)

* 0.0.3

* chore: update readme (#21)

* chore: update readme (#22)

* 1.0.0

* chore: update export locations (#24)

* 1.0.1

* chore: update README (#26)

* 1.0.2

* chore: update readme (#28)

* chore: update exports (#29)

* 1.0.3

* fix: unsubscribe (#31)

* fix: subscription return (#32)

* 1.0.4

* fix: fix build output issues making react and other deps external, update subscribe and onWindowFocus (#34)

* 1.0.5

* feat: to disable queries if offline (#36)

* 1.0.6

* feat: add broadcast channel support (#38)

* feat: add broadcast channel support

* fix: broadcast the diff

* 1.1.0

* feat: cancellable queries (#40)

* chore: update readme (#42)

* 1.2.0

* feat: suspense (#45)

* feat: suspense

* fix: suspense fetch before rendering

* 1.3.0

* fix: suspense throw errors (#53)

* 1.3.1

* fix: suspense onChange, throw errors after invoking onError (#55)

* chore: monorepo (#56)

* chore: monorepo

* chore: update github actions

* chore: lint in ci/cd

* Revert "chore: lint in ci/cd"

This reverts commit 567b07e.

* chore: lint in ci/cd

* chore: run lint, test and build concurrently (#57)

* feat: remove ability to manually handle broadcasts (#58)

* v1.3.2

* fix: trigger rerender after dispatching a broadcasted update (#60)

* fix: close broadcast channel (#61)

* fix: early return if broadcast next is same as current (#62)

* fix: early return if broadcast next is same as current. all listening channels receive a message even if on the same tab, and just reset to the next broadcasted state because otherwise we gotta determine if its an array and all

* style: remove unused import

* fix: only post next as a message

* docs: add comment

* fix: stablize id for each broadcaster, update some types, add pack script, fix issues with generated types (#63)

* v1.3.3

* refactor: rework types (#65)

* refactor: rework types

* refactor: splitting up types, accepting a refetch prop if refetchOnWindowFocus is true

* chore: update lint rules

* refactor: rearrange keys in base definitions to be in the same order

* refactor: reducing use of any (#66)

* refactor: reducing use of any

* refactor: alias InitialValue and Data

* chore: update package.json (#67)

* refactor: label next as Data

* chore: update package.json

* chore: point main to umd version

* refactor: update broadcast types

* refactor: fixing up untagged refetch base options

* refactor: any -> unknown for base options

* refactor: using any instead of unknown, less errors for no reason (#68)

* v1.4.0

* chore(vue): vue init (#70)

* feat(vue): useExecutionEnvironment (#71)

* feat: useExecutionEnvironment

* chore: update lockfile

* chore: update tsconfig

* feat(vue): use network mode (#72)

* chore(vue): use network mode

* fix: connectionStatus is computed

* fix(vue): run a fetch on mounted also when determining network status (#73)

* feat(vue): use remember scroll (#74)

* feat(vue): qwery context (#75)

* feat(vue): use qwery (#76)

* feat(vue): use qwery roughly

* refactor: tidy things up, use shallowReactive instead of ref

* refactor: remove todos and if suspense then first check the crdt state and if not check the result (initial render)

* chore(vue): update exports (#77)

* fix(vue): health check initially even for ssr (#78)

* fix(vue): check hasInjectionContext (#79)

* refactor(vue): add use id composable (#80)

* Revert "refactor(vue): add use id composable (#80)" (#82)

This reverts commit 4af9f64.

* chore(vue): add api and redis from react, add example test (#83)

* chore(vue): add api and redis from react, add example test

* chore(vue): update pnpm-lock

* chore(vue): revert change to tsconfig

* test(vue): csr (#84)

* test(vue): caches queries csr

* chore(vue): revert change to tsconfig

* test(vue): subscriptions, conditional queries, window focus

* test(vue): onChange

* test(vue): ssr (#85)

* refactor(vue): normal args instead of object (#86)

* test(vue): refactor, going with defineComponent (#87)

* refactor(react): initializeCrdt -> initializeCRDT, remove refetch (#88)

* refactor(vue): remove refetch (#89)

* chore(react,vue): update clean script (#90)

* chore: update readme (#91)

* v1.4.1

* types(react,vue): improve BaseQueryOptions (#94)

* fix(vue): make dispatch a getter instead of a computed ref, cleaner usage (#93)

* chore(react,vue): update readme (#95)

* v1.4.2

* chore(react,vue): use shared types (#97)

* chore(react,vue): bit of housekeeping, extracting out common types

* chore(react): using common types in react package

* fix(vue): void result of renderSsr

* chore(react): cleaning up imports

* chore(vue): migrate to shared types

* chore(vue,react): update vite config

* fix(vue,react): cache fetched initial value (#98)

* chore: update readme (#99)

* fix(vue,react): update cache on refetch (#100)

* chore: update deps (#101)

* v1.4.3

* chore(react,vue): update main entry point (#104)

* chore(svelte): svelte init (#103)

* chore: update gh actions (#105)

* chore: pnpm lerna run instead of pnpx (#106)

* types(vue,react): improve typing for UseQweryReturn (#107)

* types(vue): improve typing for UseQweryReturn

* types(react,vue): UseQueryReturnWithSuspense -> MaybePromise

* chore(vue): tsx -> ts (#108)

* chore(react,vue,svelte): make qwery-shared a dev dep (#109)

* chore(react,vue,svelte): make qwery-shared a dev dep, getting install not found errors

* chore(react,vue,svelte): relative link path

* v1.4.4

* feat(svelte): useExecutionEnvironment (#113)

* feat(svelte): context (#114)

* feat(svelte): useNetworkMode (#115)

* feat(svelte): useRememberScroll (#116)

* chore(svelte): update exports (#117)

* chore(svelte): update exports

* chore(svelte): update tsconfig

* feat(svelte): useQwery (#118)

* feat(svelte): useQwery

* fix(svelte): subscribe to store until dispatch has a value set

* chore(svelte): update exports

* fix(svelte): if suspense then we can just directly return dispatch from result if available because the reference will not change, same crdt always

* fix(vue): same for vue

* types(svelte,vue): add InferData utility type

* types(svelte,vue): remove ts expect error

* types(react): update types for broadcast

* chore(react,vue): update tsconfig (#119)

* types(react): type import UseNetworkModeOptions (#120)

* refactor(vue,svelte): computeInitialValueTest -> computeInitialValue (#121)

* refactor(react,vue,svelte): move no op cache to shared (#122)

* fix(svelte): for dispatch move subscribe out of getter (#123)

* fix(svelte): for dispatch move subscribe out of getter

* types(svelte,vue): InferData<I> instead of Data

* chore: update readme (#124)

* feat: add map reduce and maybe return a promise utility fn for change handlers (#125)

* chore: update readme (#126)

* refactor(shared): update mapReduceMaybePromise to be rest args instead (#127)

* feat(react,svelte,vue): useMonitoredFetch hook (#128)

* fix(react,vue,svelte): allow specifying other options (#129)

* types(react,vue,svelte): adding types (#130)

* chore(svelte): update build config (#131)

* chore: update readme (#132)

* chore(svelte): update package.json (#133)

* v1.5.0

* chore(react,vue,svelte): update readme with more accurate figures (#135)

* chore(react,vue,svelte): update readme with more accurate figures

* chore: update readme

* chore(solid): solid start (#136)

* chore(solid): solid start

* chore: add vitest and qwery-shared

* chore(react,vue,svelte,solid): update readme (#137)

* feat(solid): useMonitoredFetch (#138)

* feat(solid): useExecutionEnvironment (#139)

* feat(solid): useRememberScroll (#140)

* feat(solid): useNetworkMode (#141)

* fix(solid): useMonitoredFetch (#142)

* feat(solid): context (#143)

* chore(solid): update exports (#144)

* fix(solid): not destructuring props (#145)

* fix(solid): onCleanup (#146)

* fix(solid): onCleanup

* fix(solid): cleanup happens when scope reevaluates or is finally disposed

* feat(solid): useQwery (#147)

* feat(solid): useQwery

* chore(solid): update exports

* types(solid): update useQwery types (#148)

* chore(solid): update readme (#150)

* v1.5.1

* feat(vue,solid,svelte): proxy dispatch (#152)

* v1.5.2

* chore(svelte): make svelte peer dep instead of dev dep (#155)

* chore(react): remove pnpm lock, no need now that its a workspace (#156)

* chore: example api init (#157)

* chore(react,solid,svelte,vue): update deps (#158)

* feat(example-api): get and upsert (#159)

* feat(example-api): get and upsert

* fix(example-api): add createdAt

* chore(example-react): init (#160)

* chore(example-react): init

* chore(example-react): remove test and pack scripts

* chore(example-react): add shadcn/ui (#161)

* chore(example-react): add shadcn/ui

* style(example-react): formatting

* fix(example-react): update index.css for tailwind 4

* chore(example-react): updating styling config for tailwind v4 (#162)

* chore(example-react): updating styling config for tailwind v4

* chore(example-react): fix failing build

* chore(example-react): adding in theme vars as required by tailwind v4 (#163)

* chore(example-react): adding in theme vars as required by tailwind v4, with the other stuff unsupported as of now

* style(example-react): fix linting and formatting

* feat(example-react): thread (#164)

* feat(example-react): accordion thread thing

* chore(example-react): update eslint config

* refactor(example-react): onClickChildThread -> makeOnClickChildThread

* fix(example-react): increment rerender counter only when reference changes (#165)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App (#166)

* fix(example-react): increment rerender counter only when reference changes

* fix(example-react): useLayoutEffect

* fix(example-react): update App

* fix(react,vue,svelte,solid): update for onsuccess merge (#168)

* fix(react,vue,svelte,solid): update for onsuccess merge in the case of an incomplete document

* fix(svelte,solid,vue): merged instead of final, incremental expects the result of the original onSuccess

* feat(example-react): cleaning up design  (#169)

* feat(example-react): cleaning up design and adding border for rerenders going from blue to red

* fix(example-react): when going back to main thread set reply to null

* fix(example-react): disable submit button if no new thread

* feat(example-react): add new main thread (#170)

* feat(example-react): add new main thread

* fix(example-react): prevent default on enter keydown

* style(example-react): formatting

* feat(example-react): useQwery example, bit contrived and needs docs (#171)

* chore(example-react): remove build script (#172)

* chore(example-react): rely on published version instead of workspace, fine on mac but fails in ci otherwise

* chore(example-react): trying to link

* chore(example-react): update pnpm.lock

* chore(example-react): moving react-qwery link to devDeps

* chore(example-react): remove build script, unsure why its failing too lazy to check, works locally

* chore(example-react): remove vite tailwindcss plugin (#173)

* fix(example-react): increase rerender weight (#174)

* docs(example-react): adding some comments (#175)

* refactor(example-react): setting up mock data in shared api project (#176)

* refactor(example-react): setting up mock data in shared api project, typing react example properly

* refactor(example-api): loading up initialValue from thread prop

* chore(example-react): specifying react qwery as a workspace package instead of linking

* chore(example-react): splitting up lint, test and build instead of parallel

* chore(example-react): build first then test

* chore(example-react): update readme (#177)

* chore(react,example-react): update readme (#178)

* v1.5.3

* fix(example-react): forgot to update landing as well (#180)

* fix(example-react): forgot to update landing as well

* refactor(example-react): update props for Thread

* fix(react,vue,svelte,example-react): broadcast channel fixes (#181)

* fix(react,vue,svelte,example-react): broadcast channel fixes

* fix(example-react): useEffect dep

* v1.5.4

* fix(react,vue,svelte,solid): broadcast persistent dispatches (#184)

* chore(qwery-shared): migrate to tsup (#185)

* fix(react,vue,solid,svelte): remember scroll hook was returning too early (#187)

* refactor(react,solid,svelte,vue): move core logic to shared (#186)

* refactor(react,vue,svelte,solid): remove useExecutionEnvironment and move isBrowser to shared

* refactor(react,solid,svelte,vue): move createId to shared

* refactor(react,solid,svelte,vue): move useMonitoredFetch to shared

* refactor(react): refactor useQwery, moving core logic to shared

* refactor(react): exhaustive deps

* refactor(react): removing exhaustive deps and adding lint rule, keeping it non reactive to changes in options is better, less bugs and more standard behaviour and also its a little unnecessary because the use case will not come up (except maybe for onChange, onSuccess, onError and refetch)

* refactor(react): forward args for all function options

* refactor(solid): moving core logic to shared

* refactor(vue): moving core logic to shared

* refactor(react): if conditional qwery then there will be no unsubscribe

* refactor(solid, vue): throw an error if can't invoke dispatch

* refactor(svelte, solid): moving core logic for svelte and solid to shared and squash bugs with DOM not being updated for svelte and solid

* docs(svelte, vue): update docs for svelte and vue

* docs(svelte): update docs for svelte

* fix(svelte,vue,solid): isServer check was wrong for solid and svelte for useRememberScroll (#188)

* refactor(react,vue,svelte,solid): move useRememberScroll core to shared (#189)

* fix(react,vue,svelte,solid): optional options for useNetworkMode (#190)

* fix(react,vue,svelte,solid): optional options for useNetworkMode, update example to include a fetching and online status indicator

* chore(react): silence linter warning

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted (#191)

* fix(shared): don't broadcast if isBroadcasted is true and isPersisted

* test(react): tests for broadcasting updates

* chore(react,solid,svelte,vue): update exports (#193)

* v1.5.5

* chore(react,vue,solid,svelte): update readme (#195)

* chore(react,vue,solid,svelte): update readme

* chore(react,vue,solid,svelte): add bundlephobia link

* chore: update readme (#196)

* chore(react,vue,solid,svelte): update readme

* chore(react,vue,solid,svelte): add bundlephobia link

* chore: update repo readme

* chore(react,vue,solid,svelte): update incremental (#197)

* fix(react,vue,solid,svelte): rerender on persisted dispatches (#199)

* test(react): update unit tests (#200)

* types(react,vue,solid,svelte): inferring onChange type correcty (#201)

* docs(example-vue): vue example (#198)

* docs(example-vue): vue example

* docs(vue): setting the currentThread uuid in a ref and computing the details of the currentThread, fixes reply to not working and broadcasts not working

* fix(example-vue): build issues

* fix(example-vue): small fixups

* chore(react,vue,solid,svelte): export Dispatch type (#202)

* chore(react,vue,solid,svelte): export Dispatch type

* chore(example-react,example-vue): verbatim module syntax

* chore: update readme

* chore(example-vue): update package name (#203)

* v1.5.6

* docs(example-svelte): svelte example (#205)

* docs(example-svelte): svelte example mostly there, still a few rough parts with the ThreadChild

* fix(example-svelte): fix issue with children not updating correctly when replied to, though not sure if there's a better way. pending bug with content not being cleared correctly

* docs(example-svelte): update comments

* chore: update example svelte package name

* docs(example-svelte): another possible bug with svelte

* feat: batching (#207)

* feat: batching

* feat: size scheduler

* fix: move isWaiting flip up one level

* fix: .then returns a new promise

* test: unit tests

* fix: external reject size scheduler

* feat: allow immediate execution

* refactor: extract out immediateScheduler

* feat: add immediate execution utility, aborts all pending executions

* types: types for batcher

* chore: update exports

* types: relax constraint on return

* feat(react,vue,solid,svelte): add fetchPolicy to allow specifying fetch behaviour (#208)

* feat(react,vue,solid,svelte): add fetchPolicy to allow specifying fetch behaviour

* fix: update behaviour of broadcast and window focus refetch

* fix(react,vue,solid,svelte): propagate fetch policy to createQwery (#209)

* chore(react,solid,svelte,vue): update readme (#210)

* docs(example-svelte): upgrade to svelte 5 (#211)

* docs(example-svelte): update to svelte 5

* chore: enable ssr

* fix(react,solid,vue,svelte): check network connectivity only client side (#212)

* fix(react,solid,vue,svelte): check network connectivity only client side

* fix(react): update useNetworkMode effect deps

* docs(example-svelte): proper ssr (#213)

* docs(example-solid): solidjs example (#214)

* chore: init solid

* docs(example-solid): solid example

* chore(example-solid): update eslint config

* docs(example-svelte): disable ssr (#216)

* docs(example-svelte): remove data loader (#217)

* chore(example-svelte, example-solid): update readme (#218)

* v1.6.0

* fix(react,solid,svelte,vue): run fetch in background for cache-and-network (#220)

* chore(solid,svelte): update readme (#221)

* v1.6.1

* chore(graphqwery): init graphqwery (#224)

* chore(graphqwery): update readme (#225)

* chore(gqwery): rename (#226)

* chore: update pnpm lock (#227)

* feat(gqwery): cache and executor (#228)

squashed:

feat(gqwery): once we have the initial response, map it to cache keys: plucking out entities from response, store them in the cache and map the operation to a key in the cache

fix(gqwery): linting issues and remove spec folder

chore(gqwery): add lodash

refactor(gqwery): cleanup

refactor(gqwery): hydrate accepts a query directly

wip(gqwery): combined executor

feat(gqwery): add weak graphql cache and handle subscriptions

docs(gqwery): update comments for combined executor

* fix(gqwery): fixes after testing (#229)

* fix(gqwery): fixes after testing

* fix(gqwery): update unit tests

* fix(gqwery): add __typename to field selections

* refactor(gqwery): use loop-recur from clojure instead of recursing

* types(gqwery): types for data unit test

* refactor(gqwery): rename makeNormalize to makePluck

* refactor(gqwery): trim OperationInformation and OperationSelection interfaces

* feat: createGraphQLQueryKeys

* fix(gqwery): updating hydrate to use createGraphQLQueryKey

* types(gqwery): update GraphQLTypePolicy

* test(gqwery): test for http executor, wss is a bit of a pain, maybe sse and mocking out fetch might be better

* chore(gqwery): update exports

* style(gqwery): fix lint error

* chore(gqwery): pnpm install --fix-lockfile, skipping ws tests for now

* test(gqwery): update ws tests, should work but not running because of conflicting graphql instances

* fix(gqwery): query key regex (#231)

* fix(gqwery): update how query key is checked

* fix(gqwery): add args to subscription test schema

* fix(gqwery): update query key tostring regex

* feat(gqwery): add buildMockExecutor (#232)

* chore: general housekeeping (#233)

* chore: general housekeeping - add clean.modules script and package updates

* chore(gqwery): update exports

* chore(shared): add weak merge cache (#234)

* v1.7.0

* feat(gqwery): caching (#238)

squash

fix(gqwery): allow query keys to handle multiple queries in a single request, and caching working for basic queries

test(gqwery): update unit test

test(gqwery): expect that each top level entity is linked correctly

refactor: bring checking if the cached value is valid into the cache instead of the executor

feat: supporting fragments

test: add more todo test cases

refactor: refactor tests for expected fields

test: inline fragment support for expected fields

refactor: approximateResponseShape -> toBlankResponse, clearValuesDeep -> toEmptyRecordDeep, objectFromEntriesDeep -> toRecordDeep

refactor: bring everything cache related to the cache

test: tests for weak graphql cache

test: add additional expect to check reference

fix: update comparison for cached response and requested fields

refactor: mergeWith to blank a response

refactor: remove toRecordDeep

chore: update incremental

test: tests with computeInitialQweryValue

feat: unwrap graphql responses

chore: update incremental

* feat(react,vue,solid,svelte,gqwery): request manager to dedupe requests (#239)

* feat(react,vue,solid,svelte,gqwery): request manager to dedupe requests

* style: lint

* fix(react,vue,svelte,solid,gqwery): failing tests and update gqwery exports

* feat: make RequestManager a singleton

* fix: optional request manager

* docs: adding comments

* refactor: export QweryRequestManager type

* types: update types for request store

* chore: export RequestManager

* fix(react,svelte,solid,vue, gqwery): update how computeInitialQweryValue works (#240)

* chore(gqwery): remove aliased exports, just doing a major bump (#241)

* fix(gqwery): unwrap response and update tests to check references (#242)

* feat(gqwery): fetch executor (#243)

* feat(gqwery): fetch executor

* refactor: remove ability to specify a fetchFn

* feat(gqwery): support array of entities (#244)

* feat(gqwery): support array of entities

* fix: every item in array has to be an entity

* fix: union types and lists

* fix: reassigning references for entities which already exist

* fix: update isMatch checks

* docs: comments for pluck

* test: tests for pluck

* fix: update creation of getter for entities

* refactor: simplify normalizeAndCache

* refactor: simplify normalizedCache

* refactor: simplify normalized cache more

* fix(gqwery): fetch options idx (#245)

* test(gqwery): stricter test for pluck (#246)

* docs(gqwery): comments around normalized cache and references (#247)

* perf(gqwery): remove filter for entries (#248)

* perf(gqwery): remove filter for entries

* refactor(gqwery): simplify pluck

* fix(gqwery): pluck and circular references (#249)

* fix(gqwery): pluck and circular references

* fix(gqwery): update error message thrown

* test(gqwery): update test for error

* test(gqwery): update error message thrown

* refactor(gqwery): simplify toGetterOrValue (#250)

* refactor(gqwery): NormalizedCache class (#251)

* test(gqwery): react test (#252)

* chore(gqwery): cleanup (#253)

* chore(react,solid,svelte,vue,shared): update build configs to add sourcemap (#254)

* docs(gqwery): updating comments (#255)

* chore(gqwery): add graphql-tools/batch-execute (#256)

* refactor(gqwery): update how normalized cache works, only QueryKeys get the merge from normalizeAndCache, otherwise just set (#257)

* types(gqwery): types for createNormalizedCache (#258)

* chore(gqwery): export normalized cache type (#259)

* feat(react,vue,svelte,solid): global request manager (#260)

BREAKING CHANGE: Context is no longer just the cache store, request manager is also attached to it

* chore(react,solid,svelte,vue,gqwery): update readme and package information (#261)

* v2.0.0

* fix(gqwery): dev dep shared (#263)

* chore(react,vue,solid,svelte): update readme (#264)

* chore(react,vue,solid,svelte): update readme

* chore: update lockfile

* v2.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant