-
Notifications
You must be signed in to change notification settings - Fork 7
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
Get related redcord #1132
Merged
Merged
Get related redcord #1132
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kristian240
approved these changes
Dec 6, 2022
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
kristian240
pushed a commit
that referenced
this pull request
Mar 30, 2023
* WIP on react package * WIP on mutations * Implement useQuery hook * Add eslint * Add createQuery and createMutation and fix typings * Prepare readme * Use IResponseData type * WIP on reponse data interface * Fix response data type * Update SWR * Update useMutation types * WIP on SSR hydrate feature * WIP on documentation for react lib * Finish SSR hydration * Fix Networkutils fetch for Next.sj projects where fetch is polyfilled on Node side * Finish SSR example * Add Layout * WIP on tests setup * Finish useQuery tests * Add use mutation tests * fetchQuery tests * Cleanup * Implement simgle page example * Implement useResourceList * WIP on better swr integration * Finish client side useQuery * update readme * Add comments * Update readme * 373, 375 - SSR Support and Refactoring (#691) * Recreate queryTodo query to expression syntax, lerna update * Dependant useQuery calls * useDependantCall hook helper * Fix useQuery tests * fetchQuery in Client * Remove console.logs * Add example with Promise.all, refactor todo{id} ssr example * fetchQuery tests * Update docs for fetchQuery usage * 375 - Refactor type syntax in Expressions, refactor shouldFetch in useQuery * Update docs * Update conditional fetching test - useQuery * Return stringified fallback * Update docs * Link shouldFetch examples in docs * Update parsing fallback * Fix fetchQuery tests * Add comments for further updates * Fix some issues form the PR comments * Fix eslint project wrning * Finish mixin * Update tests * Remove .env * Rename helper hook * better types * Update readme Co-authored-by: Ivica Batinic <ivica.batinic@infinum.hr> * Update lerna config * v2.5.0-beta.0 * Fix angular build script * Revert "v2.5.0-beta.0" This reverts commit 5857832. * remove parallel * ignore .angular folder * v2.5.0-beta.0 * Update readme * Fix ssr mixin types * Remove unused deps * Fix middleware typing * Fix middleware typing * Fix @datx/swr versions * Add examples to lerna packages * Fix use query test * Update SWR peer deps versions * Use readonly for type * Enable composite tsconfig * WIP on typings * Remove mobx from bundle * Upgrade to react 18 * Finish typings * Update types * Update readme * v2.5.0-beta.1 * Fix readme typo * Fix readme typos * Fix peer deps * Add prefetch option to fetchQuery * Rename useSafeClient to useInitialize * Rename useQuery to useDatx * v2.5.0-beta.2 * Add env * Update gitignore * Update SWR version * Add typings to example * Add defining models to swr readme (#879) * Update client instance type on useClient hook * Expose DatxConfiguration * v2.5.0-beta.3 * Add some scripts * Update packages * Optimise rerenders if data stays the same * Update testing deps * Add tests for compare * v2.5.0-beta.4 * Implement getResponseRawData helper * Fix mobx warnings in terminal * Update compare to use getResponseRawData * Cleanup * v2.5.0-beta.5 * Update README.md * Revert jsonapi-angular * Revert and fix issues * Mark jsonapi decorator as deprecated * Revert jsonapi-angular * Fix ts issues * Fix ts issues * Create separate responses * Get related redcord (#1132) * Update to yarn 3.2.1 * get relationship Co-authored-by: Kristian Djaković <kristian.djakovic@infinum.hr> * Allow prefetch to be function * Remove v8 from jest.config * Revert lerna stuff * Write fetch-query tests * Update compare tests * Fix use-mutation tests * Add id to related resource expression * Add moduleNameMapper to jest * Add type support for getAll queries * Write test for getAll * Update hydrate to work with fetchAll * Fix lint issues * Remove packages since we are using workspaces * Update tests.yml * Update gh actions * Fix mobx install * Add node_module cache * Revert yarn workspaces change * Tweak the caching key * Skip nx cache in CI * Use src files for datx libs in tests * Add getRelatedResource and getRelatedResources query support * Remove leftover comments * Fix failing build * Use lerna commands instead of yarn * Add no-private flag to build and test * Revert gh action deps * Skip lerna cache * Update useDatx types * Set no-private on publish script * Add beta publish script * v2.5.0-beta.6 * Update rollup config * Remove files from package.json * v2.5.0-beta.7 * Export Response and Fallback from the repo * v2.5.0-beta.8 * Fix endpoint not being used when fetching related resources * v2.5.0-beta.9 * Swr Infinite (#1145) * Add datx infinite types * Add DatxInfinite * Write datxInfinite tests * Add useDatxInfinite usage to README.md * v2.5.0-beta.10 * Add SWR docs * Add `requestSingle` and `requestCollection` * SWR to v2 * Update nextjs example * Revert tests.yml * Unrevert test.yml * Add setup-node@v3 * Install mobx to datx core and utils * Revert sidebars * v2.5.0-beta.11 * Update yarn lock * rename folder to datx-swr * Update .eslintrc * Revert workspace config * Remove examples * Revert examples basic-seutp docs * Revert packages/datx-jsonapi/src/Response.ts * Remove js-dom env lib * Remove docs * Merge branch 'master' into swr * Fix lint issues * Fix package --------- Co-authored-by: Danijel Buhin <danijel@danijelbuhin.com> Co-authored-by: Gordan Bareza <48893276+gbareza@users.noreply.github.com> Co-authored-by: Kristian Djaković <kristian.djakovic@infinum.hr> Co-authored-by: Darko Kukovec <darko@infinum.com>
kristian240
pushed a commit
that referenced
this pull request
Mar 30, 2023
* WIP on react package * WIP on mutations * Implement useQuery hook * Add eslint * Add createQuery and createMutation and fix typings * Prepare readme * Use IResponseData type * WIP on reponse data interface * Fix response data type * Update SWR * Update useMutation types * WIP on SSR hydrate feature * WIP on documentation for react lib * Finish SSR hydration * Fix Networkutils fetch for Next.sj projects where fetch is polyfilled on Node side * Finish SSR example * Add Layout * WIP on tests setup * Finish useQuery tests * Add use mutation tests * fetchQuery tests * Cleanup * Implement simgle page example * Implement useResourceList * WIP on better swr integration * Finish client side useQuery * update readme * Add comments * Update readme * 373, 375 - SSR Support and Refactoring (#691) * Recreate queryTodo query to expression syntax, lerna update * Dependant useQuery calls * useDependantCall hook helper * Fix useQuery tests * fetchQuery in Client * Remove console.logs * Add example with Promise.all, refactor todo{id} ssr example * fetchQuery tests * Update docs for fetchQuery usage * 375 - Refactor type syntax in Expressions, refactor shouldFetch in useQuery * Update docs * Update conditional fetching test - useQuery * Return stringified fallback * Update docs * Link shouldFetch examples in docs * Update parsing fallback * Fix fetchQuery tests * Add comments for further updates * Fix some issues form the PR comments * Fix eslint project wrning * Finish mixin * Update tests * Remove .env * Rename helper hook * better types * Update readme Co-authored-by: Ivica Batinic <ivica.batinic@infinum.hr> * Update lerna config * v2.5.0-beta.0 * Fix angular build script * Revert "v2.5.0-beta.0" This reverts commit 5857832. * remove parallel * ignore .angular folder * v2.5.0-beta.0 * Update readme * Fix ssr mixin types * Remove unused deps * Fix middleware typing * Fix middleware typing * Fix @datx/swr versions * Add examples to lerna packages * Fix use query test * Update SWR peer deps versions * Use readonly for type * Enable composite tsconfig * WIP on typings * Remove mobx from bundle * Upgrade to react 18 * Finish typings * Update types * Update readme * v2.5.0-beta.1 * Fix readme typo * Fix readme typos * Fix peer deps * Add prefetch option to fetchQuery * Rename useSafeClient to useInitialize * Rename useQuery to useDatx * v2.5.0-beta.2 * Add env * Update gitignore * Update SWR version * Add typings to example * Add defining models to swr readme (#879) * Update client instance type on useClient hook * Expose DatxConfiguration * v2.5.0-beta.3 * Add some scripts * Update packages * Optimise rerenders if data stays the same * Update testing deps * Add tests for compare * v2.5.0-beta.4 * Implement getResponseRawData helper * Fix mobx warnings in terminal * Update compare to use getResponseRawData * Cleanup * v2.5.0-beta.5 * Update README.md * Revert jsonapi-angular * Revert and fix issues * Mark jsonapi decorator as deprecated * Revert jsonapi-angular * Fix ts issues * Fix ts issues * Create separate responses * Get related redcord (#1132) * Update to yarn 3.2.1 * get relationship Co-authored-by: Kristian Djaković <kristian.djakovic@infinum.hr> * Allow prefetch to be function * Remove v8 from jest.config * Revert lerna stuff * Write fetch-query tests * Update compare tests * Fix use-mutation tests * Add id to related resource expression * Add moduleNameMapper to jest * Add type support for getAll queries * Write test for getAll * Update hydrate to work with fetchAll * Fix lint issues * Remove packages since we are using workspaces * Update tests.yml * Update gh actions * Fix mobx install * Add node_module cache * Revert yarn workspaces change * Tweak the caching key * Skip nx cache in CI * Use src files for datx libs in tests * Add getRelatedResource and getRelatedResources query support * Remove leftover comments * Fix failing build * Use lerna commands instead of yarn * Add no-private flag to build and test * Revert gh action deps * Skip lerna cache * Update useDatx types * Set no-private on publish script * Add beta publish script * v2.5.0-beta.6 * Update rollup config * Remove files from package.json * v2.5.0-beta.7 * Export Response and Fallback from the repo * v2.5.0-beta.8 * Fix endpoint not being used when fetching related resources * v2.5.0-beta.9 * Swr Infinite (#1145) * Add datx infinite types * Add DatxInfinite * Write datxInfinite tests * Add useDatxInfinite usage to README.md * v2.5.0-beta.10 * Add SWR docs * Add `requestSingle` and `requestCollection` * SWR to v2 * Update nextjs example * Revert tests.yml * Unrevert test.yml * Add setup-node@v3 * Install mobx to datx core and utils * Revert sidebars * v2.5.0-beta.11 * Update yarn lock * rename folder to datx-swr * Update .eslintrc * Revert workspace config * Remove examples * Revert examples basic-seutp docs * Revert packages/datx-jsonapi/src/Response.ts * Remove js-dom env lib * Remove docs * Merge branch 'master' into swr * Revert "Remove docs" This reverts commit 5b934bd. --------- Co-authored-by: Ivica Batinic <ivica.batinic@infinum.hr> Co-authored-by: Danijel Buhin <danijel@danijelbuhin.com> Co-authored-by: Gordan Bareza <48893276+gbareza@users.noreply.github.com> Co-authored-by: Darko Kukovec <darko@infinum.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the idea