Changelog
This project follows Keep a Changelog and Semantic Versioning.
1.0.0-rc.2 - 2026-10-05
Section titled “1.0.0-rc.2 - 2026-10-05”The second release candidate of 1.0.0: lists whose request needs more than the URL, on
@qubeejs/core 1.4.1.
- Lists with an input. A list whose request needs something the URL does not hold — a project
id from the route path, an id looked up from a slug, a tenant — declares it as its input with
@qubeejs/core1.4, anduseQubeeList(list, input, adapter?)passes it through: required for a list that declares one, refused for a list that declares none,nullwhile it is not ready — thenrequestisnulland nothing is fetched — and never in the URL. An equal input keeps the samerequest, and a list written by hand works too, whether or not itsapplyrequires its input.QubeeListArgstypes the arguments for generic code, andQubeeListRequestthe request, nullable only for a list with an input (#39, #42)
Changed
Section titled “Changed”@qubeejs/core1.4.1 or later is required: 1.4 brings list inputs, and 1.4.1 tells a list without one apart however its type is written (#39)useQubeeSWRshows no page while its request isnull. It fetched nothing before too, but SWR’skeepPreviousDatawent on showing the page of the request before, and showed it again while the next request loaded. A page is now kept while the next request loads, never across anullone, asuseQubeeQuerydoes —fallbackDataincluded (#40, #42)
1.0.0-rc.1 - 2026-10-03
Section titled “1.0.0-rc.1 - 2026-10-03”The first release candidate of 1.0.0: @qubeejs/core 1.3 for React 18.3 and 19. Pick your router,
wrap the app once, use the hook, fetch.
- Lists in the URL.
useQubeeList(list, adapter?)drives a list declared with the core’sdefineList. ItsQubeeListHandlehas a draftstatethat updates synchronously, a typedset()that navigates at most once per call, optional debounce (ListSetOptions),isPending,href(),setPage(),reset(),toggleSort()when the list declares onesortParam(SortToggle), and arequestthat changes once per navigation. The URL is the source of truth: Back, Forward and links elsewhere discard what is not in it yet (#7, #15, #21) - A link is never overtaken by a pending debounce. A debounced change is committed at once when the user clicks a link — also one inside a shadow root — so that on routers that report the new URL late, a search still waiting cannot fire after the link was followed and pull the user back (#31, #35)
- Adapter providers. A list reads and writes the URL through a
RouterAdapter, set once for a subtree by a provider and found byuseQubeeList(list); an adapter passed as the second argument wins, andMissingRouterAdapterErrorreports that there is neither.<BrowserAdapter>anduseBrowserAdapter()are for apps without a router library, andcreateAdapterProvider()makes a provider for any other router. In development, two different lists under one provider that claim the same URL parameter log a warning (#6, #13, #20) @qubeejs/react/react-router:<ReactRouterAdapter>anduseReactRouterAdapter(), for React Router 7 and later (#22)@qubeejs/react/tanstack-router:<TanStackRouterAdapter>anduseTanStackRouterAdapter(), for TanStack Router 1.49 and later, the first release whosenavigatetakes an href; andparseSearchandstringifySearch, search serialisers forcreateRouterthat keep a query as plain text, so that a search box keeps what was typed (#23, #32, #34, #36)@qubeejs/react/next:<NextAdapter>anduseNextAdapter(), for the Next.js App Router, 15 and later. A Server Component layout can render the provider directly (#24)- Scroll stays where it is. Every router adapter keeps the scroll position when a list
navigates, and takes
scrollto hand it back to the router (#24, #32) - Lists in memory.
<MemoryAdapter>anduseMemoryAdapter()run a list definition without a URL — shared by the components under the provider, or owned by one component — for dialogs and pickers (#21) - Built-in fetching.
useQubeeQuery(request, options?)fetches the page a list asks for and fetches again when the request changes: the previous page kept meanwhile, a replaced request aborted and its answer ignored, the flags right from the first render, on the server too, and no cache.<QubeeFetchProvider>sets the fetcher (QubeeFetcher) of a subtree, and a status that is notokbecomes aQubeeFetchError(#25, #33) @qubeejs/react/fetch:fetchQubeePage(request, options?), the function everything fetches with — a server-safe entry point, callable from a Server Component, a route loader or a script (#25)@qubeejs/react/tanstack-query:qubeeQueryOptions(request, options?), the TanStack Query options of a list request — its key and aqueryFnwith TanStack’s abort signal — foruseQuery,useSuspenseQuery,prefetchQueryand the rest. A server-safe entry point, for TanStack Query 5.62 and later (#26)@qubeejs/react/swr:useQubeeSWR(request, options?),useSWRkeyed on a list request, with the previous page kept while the next one loads and SWR’s own options (QubeeSWROptions), for SWR 2 (#27)- The query builder in React.
useQubee(config)gives a component a qubee instance of its own, re-rendered throughuseSyncExternalStoreand safe to render on the server (QubeeHandle).<QubeeProvider>anduseQubeeContext()share one instance across a subtree: only its consumers re-render, andMissingQubeeProviderErrorreports a missing provider (#4, #5) - Packaging. ES modules and CommonJS with type declarations for both, one entry point per
integration with its library as an optional peer dependency, and no runtime dependencies. The
entries that export hooks or components are marked
'use client', so a Next.js Server Component can import the package’s components without a wrapper file;fetchandtanstack-queryare not, so a Server Component can call what they export (#19) - Documentation site at https://qubeejs-react.andreatantimonaco.me: a setup page for each router, guides, recipes, and an API reference generated from JSDoc and grouped by entry point. Every usage sample is type-checked against the build, and the testing samples run, on each build (#8, #28)