9 Commits

Author SHA1 Message Date
François Best
777627ef8f feat: Add testing HOC to reduce test setup verbosity (#765) 2024-11-14 13:33:26 +00:00
Francois Best
a1013704af feat: Introducing adapters for other frameworks
BREAKING CHANGE: nuqs now requires wrapping your app
with a NuqsAdapter, which is a context provider connecting
your framework APIs to the hooks' internals.

BREAKING CHANGE: The `startTransition` option no longer
automatically sets `shallow: false`. The `Options` type
is no longer generic.

BREAKING CHANGE: The "use client" directive was not included
in the client import (`import {} from 'nuqs'`). It has now been added,
meaning that server-side code needs to import from `nuqs/server`
to avoid errors like:
```
Error: Attempted to call withDefault() from the server but withDefault is on
the client. It's not possible to invoke a client function from the server, it can
only be rendered as a Component or passed to props of a Client
Component.
```

Closes #603, #620.
2024-10-22 13:38:41 +02:00
François Best
0db86bbc54 doc: Fix SSR "source on GitHub" (#540)
* doc: Fix SSR "source on GitHub"

* chore: Trying things

* chore: Resolve

* chore: Explicit include

* chore: Glob

* chore: Be explicit

* chore: Revert other files
2024-04-11 01:18:58 +02:00
Francois Best
845a43c852 ref: Separate lib & playground into a monorepo
- Use PNPM & Turborepo
- Fix a few unchecked array index accesses
2023-10-13 10:02:47 +02:00
Francois Best
e90b752ef7 fix: Version .d.ts redirection files
It's simpler this way, not having to deal with
lifecycle scripts.
Sure, it clutters the root of the repo a bit, but oh well.
2023-08-30 22:01:43 +02:00
Francois Best
7bde5a1e2d fix: Use re-exports rather than symlinks 2023-08-30 21:51:07 +02:00
Francois Best
da42e35822 chore: Add E2E tests with Cypress 2022-01-31 00:29:18 +01:00
Matthew Evers
84e70bb9e3 fix: do not cause SSR in dynamic paths 2020-10-15 09:49:53 +02:00
Francois Best
966674a970 Initial commit 2020-05-11 05:52:34 +02:00