A React hook to wrap react-query results with fp-ts-remote-data results.

Overview

@jvlk/remote-data-query

Work with responses from @tanstack/react-query using @jvlk/fp-ts-remote-data and fp-ts.

Installing

npm

npm i @jvlk/remote-data-query typescript fp-ts

yarn

yarn add @jvlk/remote-data-query typescript fp-ts

Example

codesandbox

You'll need an API call that returns a TaskEither<E, Option<A>>. You can use safeFetchJson from @jvlk/fp-ts-fetch and then parse the results using O.fromNullable.

Note: Your application must be wrapped with a QueryClientProvider.

import * as O from 'fp-ts/Option'
import * as TE from 'fp-ts/TaskEither'
import * as t from 'io-ts'
import { fold, useRemoteDataQuery } from '@jvlk/remote-data-query'
import { safeFetchJson } from '@jvlk/fp-ts-fetch'
import { flow, pipe } from 'fp-ts/function'
import React from 'react'

function fetchRandomStrings() {
  return pipe(
    safeFetchJson(`https://baconipsum.com/api/?type=meat-and-filler`),
    TE.map(flow(O.fromNullable))
  )
}

export default function App() {
  const randomData = useRemoteDataQuery({
    queryFn: fetchRandomStrings(),
    queryKey: ['random-string'],
    decoder: t.array(t.string), // this is optional, but recommended
  })

  return fold(
    randomData,
    () => <p>loading...</p>,
    (e) => <p>There was an error: {JSON.stringify(e)}</p>,
    () => <p>No text found.</p>,
    (text) => (
      <>
        {text.map((line, i) => (
          <p key={`${line.slice(0, 5)}-${i}`}>{line}</p>
        ))}
      </>
    )
  )
}

Using with fp-ts

You can pass a decoder from io-ts to parse the data that is returned from the API request. This is optional, but I highly encourage you to do this! Any errors returned from io-ts will return a Failure<t.Errors>, and instead of the hook returning a Success<unknown> you will get the type of the decoder you use. The above example returns Success<string>.

Comments
  • build(deps-dev): bump react, react-dom, react-test-renderer and @types/react

    build(deps-dev): bump react, react-dom, react-test-renderer and @types/react

    Bumps react, react-dom, react-test-renderer and @types/react. These dependencies needed to be updated together. Updates react from 16.14.0 to 18.2.0

    Release notes

    Sourced from react's releases.

    18.2.0 (June 14, 2022)

    React DOM

    React DOM Server

    • Pass information about server errors to the client. (@​salazarm and @​gnoff in #24551 and #24591)
    • Allow to provide a reason when aborting the HTML stream. (@​gnoff in #24680)
    • Eliminate extraneous text separators in the HTML where possible. (@​gnoff in #24630)
    • Disallow complex children inside <title> elements to match the browser constraints. (@​gnoff in #24679)
    • Fix buffering in some worker environments by explicitly setting highWaterMark to 0. (@​jplhomer in #24641)

    Server Components (Experimental)

    18.1.0 (April 26, 2022)

    React DOM

    React DOM Server

    • Fix escaping for the bootstrapScriptContent contents. (@​gnoff in #24385)
    • Significantly improve performance of renderToPipeableStream. (@​gnoff in #24291)

    ESLint Plugin: React Hooks

    Use Subscription

    • Replace the implementation with the use-sync-external-store shim. (@​gaearon in #24289)

    18.0.0 (March 29, 2022)

    ... (truncated)

    Changelog

    Sourced from react's changelog.

    18.2.0 (June 14, 2022)

    React DOM

    React DOM Server

    • Pass information about server errors to the client. (@​salazarm and @​gnoff in #24551 and #24591)
    • Allow to provide a reason when aborting the HTML stream. (@​gnoff in #24680)
    • Eliminate extraneous text separators in the HTML where possible. (@​gnoff in #24630)
    • Disallow complex children inside <title> elements to match the browser constraints. (@​gnoff in #24679)
    • Fix buffering in some worker environments by explicitly setting highWaterMark to 0. (@​jplhomer in #24641)

    Server Components (Experimental)

    18.1.0 (April 26, 2022)

    React DOM

    React DOM Server

    • Fix escaping for the bootstrapScriptContent contents. (@​gnoff in #24385)
    • Significantly improve performance of renderToPipeableStream. (@​gnoff in #24291)

    ESLint Plugin: React Hooks

    Use Subscription

    • Replace the implementation with the use-sync-external-store shim. (@​gaearon in #24289)

    ... (truncated)

    Commits
    Maintainer changes

    This version was pushed to npm by gnoff, a new releaser for react since your current version.


    Updates react-dom from 16.14.0 to 18.2.0

    Release notes

    Sourced from react-dom's releases.

    18.2.0 (June 14, 2022)

    React DOM

    React DOM Server

    • Pass information about server errors to the client. (@​salazarm and @​gnoff in #24551 and #24591)
    • Allow to provide a reason when aborting the HTML stream. (@​gnoff in #24680)
    • Eliminate extraneous text separators in the HTML where possible. (@​gnoff in #24630)
    • Disallow complex children inside <title> elements to match the browser constraints. (@​gnoff in #24679)
    • Fix buffering in some worker environments by explicitly setting highWaterMark to 0. (@​jplhomer in #24641)

    Server Components (Experimental)

    18.1.0 (April 26, 2022)

    React DOM

    React DOM Server

    • Fix escaping for the bootstrapScriptContent contents. (@​gnoff in #24385)
    • Significantly improve performance of renderToPipeableStream. (@​gnoff in #24291)

    ESLint Plugin: React Hooks

    Use Subscription

    • Replace the implementation with the use-sync-external-store shim. (@​gaearon in #24289)

    18.0.0 (March 29, 2022)

    ... (truncated)

    Changelog

    Sourced from react-dom's changelog.

    18.2.0 (June 14, 2022)

    React DOM

    React DOM Server

    • Pass information about server errors to the client. (@​salazarm and @​gnoff in #24551 and #24591)
    • Allow to provide a reason when aborting the HTML stream. (@​gnoff in #24680)
    • Eliminate extraneous text separators in the HTML where possible. (@​gnoff in #24630)
    • Disallow complex children inside <title> elements to match the browser constraints. (@​gnoff in #24679)
    • Fix buffering in some worker environments by explicitly setting highWaterMark to 0. (@​jplhomer in #24641)

    Server Components (Experimental)

    18.1.0 (April 26, 2022)

    React DOM

    React DOM Server

    • Fix escaping for the bootstrapScriptContent contents. (@​gnoff in #24385)
    • Significantly improve performance of renderToPipeableStream. (@​gnoff in #24291)

    ESLint Plugin: React Hooks

    Use Subscription

    • Replace the implementation with the use-sync-external-store shim. (@​gaearon in #24289)

    ... (truncated)

    Commits
    Maintainer changes

    This version was pushed to npm by gnoff, a new releaser for react-dom since your current version.


    Updates react-test-renderer from 16.14.0 to 18.2.0

    Release notes

    Sourced from react-test-renderer's releases.

    18.2.0 (June 14, 2022)

    React DOM

    React DOM Server

    • Pass information about server errors to the client. (@​salazarm and @​gnoff in #24551 and #24591)
    • Allow to provide a reason when aborting the HTML stream. (@​gnoff in #24680)
    • Eliminate extraneous text separators in the HTML where possible. (@​gnoff in #24630)
    • Disallow complex children inside <title> elements to match the browser constraints. (@​gnoff in #24679)
    • Fix buffering in some worker environments by explicitly setting highWaterMark to 0. (@​jplhomer in #24641)

    Server Components (Experimental)

    18.1.0 (April 26, 2022)

    React DOM

    React DOM Server

    • Fix escaping for the bootstrapScriptContent contents. (@​gnoff in #24385)
    • Significantly improve performance of renderToPipeableStream. (@​gnoff in #24291)

    ESLint Plugin: React Hooks

    Use Subscription

    • Replace the implementation with the use-sync-external-store shim. (@​gaearon in #24289)

    18.0.0 (March 29, 2022)

    ... (truncated)

    Changelog

    Sourced from react-test-renderer's changelog.

    18.2.0 (June 14, 2022)

    React DOM

    React DOM Server

    • Pass information about server errors to the client. (@​salazarm and @​gnoff in #24551 and #24591)
    • Allow to provide a reason when aborting the HTML stream. (@​gnoff in #24680)
    • Eliminate extraneous text separators in the HTML where possible. (@​gnoff in #24630)
    • Disallow complex children inside <title> elements to match the browser constraints. (@​gnoff in #24679)
    • Fix buffering in some worker environments by explicitly setting highWaterMark to 0. (@​jplhomer in #24641)

    Server Components (Experimental)

    18.1.0 (April 26, 2022)

    React DOM

    React DOM Server

    • Fix escaping for the bootstrapScriptContent contents. (@​gnoff in #24385)
    • Significantly improve performance of renderToPipeableStream. (@​gnoff in #24291)

    ESLint Plugin: React Hooks

    Use Subscription

    • Replace the implementation with the use-sync-external-store shim. (@​gaearon in #24289)

    ... (truncated)

    Commits
    • 72b7462 Bump local package.json versions for 18.1 release (#24447)
    • 6bf3dee Upgrade react-shallow-renderer to support react 18 (#24442)
    • 34aa5cf Update local package.jsons for 18
    • 2e0d86d Allow updating dehydrated root at lower priority without forcing client rende...
    • 832e298 Revert accdientally merged PR (#24081)
    • c8e4789 Pass children to hydration root constructor
    • 1ad8d81 Remove object-assign polyfill (#23351)
    • 1fb0d06 [Devtools][Transition Tracing] Add Transition callbacks to createRoot (#23276)
    • efd8f64 Resolve default onRecoverableError at root init (#23264)
    • 0dedfcc Update the exports field (#23257)
    • Additional commits viewable in compare view
    Maintainer changes

    This version was pushed to npm by gnoff, a new releaser for react-test-renderer since your current version.


    Updates @types/react from 16.14.34 to 18.0.25

    Commits

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 2
  • build(deps-dev): bump @swc/core from 1.3.14 to 1.3.20

    build(deps-dev): bump @swc/core from 1.3.14 to 1.3.20

    Bumps @swc/core from 1.3.14 to 1.3.20.

    Changelog

    Sourced from @​swc/core's changelog.

    [1.3.20] - 2022-11-26

    Bug Fixes

    • (es/codegen) Preserve parens for new in optional chaining (#6484) (1ca281a)

    • (es/minifier) Preserve classes with side effects in static fields (#6480) (8d906b4)

    • (es/react) Allow spread children (#6505) (90aa6c8)

    • (es/visit) Visit TypeScript satisfies expressions (#6511) (0cee0e1)

    Features

    • (es/codegen) Skip whitespaces for comments in minify mode (#6465) (08a9e21)

    Miscellaneous Tasks

    Performance

    • (es/helpers) Improve fast-path for helper detection (#6502) (b3b5526)

    Refactor

    Build

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • build(deps-dev): bump @swc/core from 1.3.14 to 1.3.19

    build(deps-dev): bump @swc/core from 1.3.14 to 1.3.19

    Bumps @swc/core from 1.3.14 to 1.3.19.

    Changelog

    Sourced from @​swc/core's changelog.

    [1.3.19] - 2022-11-20

    Bug Fixes

    • (es/compat) Fix consecutive optional call (#6461) (f7072db)

    • (es/lints) Revert check for reassignment to classes (#6472) (ca20d94)

    • (es/minifier) Preserve unused imported specifiers (#6458) (dabea71)

    • (es/minifier) Abort inliner on fn declarations used multiple time (#6473) (15ad2c2)

    • (es/minifier) Avoid dropping statements which has side-effects (#6476) (9154bbc)

    • (es/modules) Remove wrong check for jsc.paths (#6470) (072bd13)

    • (es/parser) Fix parsing of regexp (#6469) (3e702b9)

    • (xml/parser) Fix parsing of comments (#6449) (3a0d98b)

    Features

    • (es/minifier) Support script fully (#6455) (4d7b920)

    • (html/minifier) Remove empty script and style tags with attributes (#6447) (7441721)

    • (html/minifier) Use the latest EsVersion (#6453) (7f6bf59)

    Refactor

    [1.3.18] - 2022-11-16

    Bug Fixes

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • build(deps): bump @tanstack/react-query from 4.14.5 to 4.16.1

    build(deps): bump @tanstack/react-query from 4.14.5 to 4.16.1

    Bumps @tanstack/react-query from 4.14.5 to 4.16.1.

    Release notes

    Sourced from @​tanstack/react-query's releases.

    v4.16.1

    Version 4.16.1 - 11/13/2022, 7:01 PM

    Changes

    Fix

    • vue-query: useQueries options allow empty array (#4505) (9584a6a6) by Naymi

    Test

    • add useQueries with suspense tests (#4502) (f65e7af1) by Dante

    Packages

    • @​tanstack/react-query@​4.16.1
    • @​tanstack/vue-query@​4.16.1
    • @​tanstack/react-query-devtools@​4.16.1
    • @​tanstack/react-query-persist-client@​4.16.1

    v4.16.0

    Version 4.16.0 - 11/13/2022, 7:55 AM

    Changes

    Feat

    Packages

    • @​tanstack/react-query-devtools@​4.16.0

    v4.15.1

    Version 4.15.1 - 11/13/2022, 7:50 AM

    Changes

    Fix

    • lock dependency of @​tanstack/match-sorter-utils to 8.1.1 (#4501) (32b3aac5) by Dominik Dorfmeister

    Packages

    • @​tanstack/query-core@​4.15.1
    • @​tanstack/query-persist-client-core@​4.15.1
    • @​tanstack/query-async-storage-persister@​4.15.1
    • @​tanstack/query-broadcast-client-experimental@​4.15.1
    • @​tanstack/query-sync-storage-persister@​4.15.1
    • @​tanstack/react-query@​4.15.1

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • build(deps-dev): bump jest-environment-jsdom from 29.3.0 to 29.3.1

    build(deps-dev): bump jest-environment-jsdom from 29.3.0 to 29.3.1

    Bumps jest-environment-jsdom from 29.3.0 to 29.3.1.

    Release notes

    Sourced from jest-environment-jsdom's releases.

    v29.3.1

    Fixes

    • [jest-config] Do not warn about preset in ProjectConfig #13583

    Performance

    • [jest-transform] Defer creation of cache directory #13420
    Changelog

    Sourced from jest-environment-jsdom's changelog.

    29.3.1

    Fixes

    • [jest-config] Do not warn about preset in ProjectConfig #13583

    Performance

    • [jest-transform] Defer creation of cache directory #13420
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • build(deps): bump @jvlk/fp-ts-remote-data from 1.0.0 to 1.0.1

    build(deps): bump @jvlk/fp-ts-remote-data from 1.0.0 to 1.0.1

    Bumps @jvlk/fp-ts-remote-data from 1.0.0 to 1.0.1.

    Changelog

    Sourced from @​jvlk/fp-ts-remote-data's changelog.

    1.0.1 (2022-11-08)

    Bug Fixes

    • remove lib from fp-ts imports (0fb7c27)
    Commits
    • 0453a0b chore(release): 1.0.1 [skip ci]
    • 0fb7c27 fix: remove lib from fp-ts imports
    • 5ad63d5 ci: rename PR Check to CI
    • f1f86bd Merge pull request #1 from jderochervlk/dependabot/npm_and_yarn/types/jest-29...
    • 165ccf0 ci: add codeql
    • 6dfced4 chore(deps-dev): bump @​types/jest from 29.2.1 to 29.2.2
    • 66ce0b3 ci: add dependabot
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • build(deps-dev): bump jest from 29.3.0 to 29.3.1

    build(deps-dev): bump jest from 29.3.0 to 29.3.1

    Bumps jest from 29.3.0 to 29.3.1.

    Release notes

    Sourced from jest's releases.

    v29.3.1

    Fixes

    • [jest-config] Do not warn about preset in ProjectConfig #13583

    Performance

    • [jest-transform] Defer creation of cache directory #13420
    Changelog

    Sourced from jest's changelog.

    29.3.1

    Fixes

    • [jest-config] Do not warn about preset in ProjectConfig #13583

    Performance

    • [jest-transform] Defer creation of cache directory #13420
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • build(deps-dev): bump msw from 0.47.4 to 0.48.0

    build(deps-dev): bump msw from 0.47.4 to 0.48.0

    Bumps msw from 0.47.4 to 0.48.0.

    Release notes

    Sourced from msw's releases.

    v0.48.0 (2022-11-08)

    Features

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • build(deps-dev): bump husky from 8.0.1 to 8.0.2

    build(deps-dev): bump husky from 8.0.1 to 8.0.2

    Bumps husky from 8.0.1 to 8.0.2.

    Release notes

    Sourced from husky's releases.

    v8.0.2

    • docs: remove deprecated npm set-script
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • build(deps-dev): bump @swc/core from 1.3.14 to 1.3.21

    build(deps-dev): bump @swc/core from 1.3.14 to 1.3.21

    Bumps @swc/core from 1.3.14 to 1.3.21.

    Changelog

    Sourced from @​swc/core's changelog.

    [1.3.21] - 2022-11-30

    Bug Fixes

    • (ci) Fix publish action for binaries (#6517) (2ac3201)

    • (es/minifier) Don't drop used variables from sequential inliner (#6520) (b394f9f)

    • (es/minifier) Make sequential inliner respect resolution order (#6509) (27ae59e)

    • (es/minifier) Use unsafe option for arrow => method (#6521) (9752b43)

    • (es/minifier) Don't convert a signed integer literal key to a numeric literal (#6529) (81224b5)

    • (html/parser) Fix parsing of cdata (#6534) (e3cbe7e)

    Features

    Miscellaneous Tasks

    Performance

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • build(deps-dev): bump tsup from 6.4.0 to 6.5.0

    build(deps-dev): bump tsup from 6.4.0 to 6.5.0

    Bumps tsup from 6.4.0 to 6.5.0.

    Release notes

    Sourced from tsup's releases.

    v6.5.0

    6.5.0 (2022-11-14)

    Bug Fixes

    Features

    • add --publicDir [dir] flag (3da1c00)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • build(deps): bump typescript from 4.8.4 to 4.9.3

    build(deps): bump typescript from 4.8.4 to 4.9.3

    Bumps typescript from 4.8.4 to 4.9.3.

    Release notes

    Sourced from typescript's releases.

    TypeScript 4.9

    For release notes, check out the release announcement.

    Downloads are available on:

    Changes:

    • 93bd577458d55cd720b2677705feab5c91eb12ce Bump version to 4.9.3 and LKG.
    • 107f832b80df2dc97748021cb00af2b6813db75b Update LKG.
    • 31bee5682df130a14ffdd5742f994dbe7313dd0e Cherry-pick PR #50977 into release-4.9 (#51363) [ #50872 ]
    • 1e2fa7ae15f8530910fef8b916ec8a4ed0b59c45 Update version to 4.9.2-rc and LKG.
    • 7ab89e5c6e401d161f31f28a6c555a3ba530910e Merge remote-tracking branch 'origin/main' into release-4.9
    • e5cd686defb1a4cbdb36bd012357ba5bed28f371 Update package-lock.json
    • 8d40dc15d1b9945837e7860320fdccfe27c40cad Update package-lock.json
    • 5cfb3a2fe344a5350734305193e6cc99516285ca Only call return() for an abrupt completion in user code (#51297)
    • a7a9d158e817fcb0e94dc1c24e0a401b21be0cc9 Fix for broken baseline in yieldInForInInDownlevelGenerator (#51345)
    • 7f8426f4df0d0a7dd8b72079dafc3e60164a23b1 fix for-in enumeration containing yield in generator (#51295)
    • 3d2b4017eb6b9a2b94bc673291e56ae95e8beddd Fix assertion functions accessed via wildcard imports (#51324)
    • 64d0d5ae140b7b26a09e75114517b418d6bcaa9f fix(51301): Fixing an unused import at the end of a line removes the newline (#51320)
    • 754eeb2986bde30d5926e0fa99c87dda9266d01b Update CodeQL workflow and configuration, fix found bugs (#51263)
    • d8aad262006ad2d2c91aa7a0e4449b4b83c57f7b Update package-lock.json
    • d4f26c840b1db76c0b25a405c8e73830a2b45cbc fix(51245): Class with parameter decorator in arrow function causes "convert to default export" refactoring failure (#51256)
    • 16faf45682173ea437a50330feb4785578923d7f Update package-lock.json
    • 8b1ecdb701e2a2e19e9f8bcdd6b2beac087eabee fix(50654): "Move to a new file" breaks the declaration of referenced variable (#50681)
    • 170a17fad57eae619c5ef2b7bdb3ac00d6c32c47 Dom update 2022-10-25 (#51300)
    • 9c4e14d75174432f6a4dc5967a09712a6784ab88 Remove "No type information for this code" from baseline (#51311)
    • 88d25b4f232929df59729156dfda6b65277affec fix(50068): Refactors trigger debug failure when JSX text has a ' and a tag on the same line. (#51299)
    • 8bee69acf410d4986cb0cc102b949e2d133d5380 Update package-lock.json
    • 702de1eeaaef88a189e4d06e5a2aae287853790a Fix early call to return/throw on generator (#51294)
    • 2c12b1499908ad7718e65d20e264561207c22375 Add a GH Action to file a new issue if we go a week without seeing a typescript-error-deltas issue (#51271)
    • 6af270dee09d62516f6dc02ec102a745ffebc037 Update package-lock.json
    • 2cc4c16a26672a7ba6c97ba16309fcf334db7cae Update package-lock.json
    • 60934915d9ccc4ca9c0fb2cd060d7ec81601942b Fix apparent typo in getStringMappingType (#51248)
    • 61c26096e3373719ece686b84c698423890e9a5f Update package-lock.json
    • ef69116c41cb6805f89e6592eacb0ccb7f02207d Generate shortest rootDirs module specifier instead of first possible (#51244)
    • bbb42f453dc684e03d977c5b70391124d57543a9 Fix typo in canWatchDirectoryOrFile found by CodeQL (#51262)
    • a56b254ad3c52b598bc5d44f83f3d0a1cf806068 Include 'this' type parameter in isRelatedTo fast path (#51230)
    • 3abd351c0eea55758f27ee5558a4a1525b77f45b Fix super property transform in async arrow in method (#51240)
    • eed05112180e0d94f78aa02d676d49468f15dc31 Update package-lock.json
    • 2625c1feae25aede35465ca835440fc57bf13d52 Make the init config category order predictable (#51247)
    • 1ca99b34029dafad2c18af7bdc0711f4abf7e522 fix(50551): Destructuring assignment with var bypasses "variable is used before being assigned" check (2454) (#50560)
    • 3f28fa12dfecb8dfd66ce4684bf26f64e1f092f1 Update package-lock.json
    • 906ebe49334a3a9c2dbd73cd3c902898bc712b66 Revert structuredTypeRelatedTo change and fix isUnitLikeType (#51076)
    • 8ac465239f52de1da3ada8cdc4c3f107f4d62e45 change type (#51231)
    • 245a02cbed7ad50a21289730159abc8d19a66f40 fix(51222): Go-to-definition on return statements should jump to the containing function declaration (#51227)
    • 2dff34e8c4a91c0005ca9ccfb7e045e225b6f2e4 markAliasReferenced should include ExportValue as well (#51219)

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • build(deps-dev): bump ts-pattern from 4.0.5 to 4.0.6

    build(deps-dev): bump ts-pattern from 4.0.5 to 4.0.6

    Bumps ts-pattern from 4.0.5 to 4.0.6.

    Release notes

    Sourced from ts-pattern's releases.

    v4.0.6

    Bug fixes

    abstract class A {}
    

    class B extends A {}

    class C extends A {}

    const object = new B() as B | C;

    match(object) .with(P.instanceOf(A), a => ...) // a: B | C // ^ // ✅ This type-checks now! .exhaustive()

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • build(deps): bump @jvlk/fp-ts-fetch from 1.1.0 to 1.1.1

    build(deps): bump @jvlk/fp-ts-fetch from 1.1.0 to 1.1.1

    Bumps @jvlk/fp-ts-fetch from 1.1.0 to 1.1.1.

    Changelog

    Sourced from @​jvlk/fp-ts-fetch's changelog.

    1.1.1 (2022-11-08)

    Bug Fixes

    • remove lib from fp-ts imports (798900b)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
React Query Typed Api - An opinioneted wrapper around react-query to implement fully typed api requests

React Query Typed Api - An opinioneted wrapper around react-query to implement fully typed api requests

Apperside 5 Aug 5, 2022
A React Library to update API url with query parameters by looking at query parameters in the browser.

A React Library to update API url with query parameters by looking at query parameters in the browser.

Casey Bui 16 Aug 18, 2022
User-friendly query builder for React

react-awesome-query-builder User-friendly React component to build queries. Inspired by jQuery QueryBuilder Using awesome Ant Design v4 for widgets No

Denis Oblogin 1.3k Dec 5, 2022
Tutorial for using react query and supabase

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run

Ankit Jena 28 Nov 11, 2022
React Query for Firestore, that you can actually use in production, on every screen.

React Query for Firestore, that you can actually use in production, on every screen.

Amine Bl 96 Nov 27, 2022
React Query and Axios example with CRUD operation - GET/POST/PUT/DELETE request with Rest API

React Query Axios example with Rest API React Client with React Query and Axios to make CRUD requests to Rest API in that: React Query Axios GET reque

null 16 Nov 7, 2022
Just a small collection of hooks that make it easy to integrate React Query into a REST API

react-query-restful is just a small collection of hooks that make it easy to integrate React Query into a REST API.

Quasar Systems 4 Sep 16, 2022
Angular bindings for react-query

Angular bindings for react-query

null 9 Oct 5, 2022
A plug-and-play hook that will send data about Ethereum contract interactions straight to FullStory

use-fullstory-web3 Automatically record web3 events into FullStory useFullStoryWeb3 is a plug-and-play hook that will send data about Ethereum contrac

Ralf Popescu 2 Nov 24, 2021
Resources for use with ember-data for reactive data (re)fetching

ember-data-resources Resources for reactive data fetching with ember-data Compatibility Ember.js v3.25 or above Installation ember install ember-data-

null 29 Nov 4, 2022
A simple blog- Using React, Router v6, Tailwind, React-hook-form and more packages.

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

Sajjad 4 Nov 26, 2022
The ½ kb state machine hook for React

The ½ kb state machine hook for React

Cassio Zen 2.3k Dec 1, 2022
Ultimate Guide to setup React Context API with our custom hook [Typescript]

Ultimate Guide to setup React Context API with our custom hook [Typescript] To start working on this project simply run the following commands git clo

damiisdandy 4 Oct 10, 2021
An example using universal client/server routing and data in React with AWS DynamoDB

react-server-routing-example A simple (no compile) example of how to do universal server/browser rendering, routing and data fetching with React and A

Michael Hart 300 Aug 25, 2022
Dead simple data fetcher for react

Tired creating these state in your component: isLoading, isError, data, retry? With use-promise-result, your job is to specify how to get data, we tak

Sylk 10 Aug 30, 2021
A unique search bar that filters through data. Built with React, JavaScript, Material UI, Node.js and MySQL

A unique search bar that filters through data. Built with React, JavaScript, Material UI, Node.js and MySQL

Christotle Agholor 4 Nov 22, 2022
LocateJS predicts your location by analyzing your connection and system data.

LocateJS predicts your location by analyzing your connection and system data.

z0ccc 282 Dec 6, 2022
Proof of concept implementation of Suspense for Data Fetching for Apollo.

Apollo Query Result Proof of concept implementation of Suspense for Data Fetching for Apollo. WARNING! This is not a real package (yet)! Implementatio

null 10 Oct 7, 2022