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

2.0.0 #262

Merged
merged 241 commits into from
Apr 8, 2024
Merged

2.0.0 #262

merged 241 commits into from
Apr 8, 2024

Conversation

nmathew98
Copy link
Owner

No description provided.

* feat: useQwery hook

* fix: proxy onChange for when a Promise is not returned, so onSuccess is not triggered
* 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
* test: add tests for useQwery, csr and ssr

* chore: add gh actions
* 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
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
…ts (#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
* feat(gqwery): fetch executor

* refactor: remove ability to specify a fetchFn
* 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
* perf(gqwery): remove filter for entries

* refactor(gqwery): simplify pluck
* fix(gqwery): pluck and circular references

* fix(gqwery): update error message thrown

* test(gqwery): update test for error

* test(gqwery): update error message thrown
…et the merge from normalizeAndCache, otherwise just set (#257)
BREAKING CHANGE: Context is no longer just the cache store, request manager is also attached to it
@nmathew98 nmathew98 merged commit 87f16c5 into master Apr 8, 2024
1 check passed
@nmathew98 nmathew98 deleted the chore/2.0.0 branch April 8, 2024 08:23
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