generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: Move all other server exports under a single (explicit) path
- Loading branch information
Showing
9 changed files
with
44 additions
and
26 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ Why just the cache here? | |
Those "top-level" .d.ts files are used to help projects with `moduleResolution: 'node'` | ||
resolve the correct imports. | ||
|
||
The other two imports under server, `nuqs/server/parsers` and `nuqs/server/serializer` | ||
are temporary and will be removed in [email protected]. | ||
The other import under server, `nuqs/server/temporary-react-agnostic` | ||
is temporary (as it says on the tin) and will be removed in [email protected]. | ||
|
||
Also, [email protected] will require a `moduleResolution: 'bundler' | 'nodeNext` setting in your tsconfig.json. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export { createSearchParamsCache } from './cache' | ||
export type { HistoryOptions, Nullable, Options, SearchParams } from './defs' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
/** @deprecated Import createSearchParamsCache from 'nuqs/server/cache' instead. | ||
* | ||
* This export will be removed from 'nuqs/server' in [email protected], | ||
* to allow non-Next.js server code to use the parsers, serializeres and other | ||
* server-side utilities without depending on React canary for the `cache` function. | ||
*/ | ||
export { createSearchParamsCache } from './cache' | ||
export type { HistoryOptions, Nullable, Options, SearchParams } from './defs' | ||
export { | ||
/** @deprecated Import createSearchParamsCache from 'nuqs/server/cache' instead. | ||
* | ||
* This export will be removed from 'nuqs/server' in [email protected], | ||
* to allow non-Next.js server code to use the parsers, serializeres and other | ||
* server-side utilities without depending on React canary for the `cache` function. | ||
*/ | ||
createSearchParamsCache | ||
} from './cache' | ||
export type { | ||
HistoryOptions, | ||
Nullable, | ||
Options, | ||
SearchParams, | ||
UrlKeys | ||
} from './defs' | ||
export { | ||
createLoader, | ||
type LoaderFunction, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export type { | ||
HistoryOptions, | ||
Nullable, | ||
Options, | ||
SearchParams, | ||
UrlKeys | ||
} from './defs' | ||
export { | ||
createLoader, | ||
type LoaderFunction, | ||
type LoaderInput, | ||
type LoaderOptions | ||
} from './loader' | ||
export * from './parsers' | ||
export { createSerializer } from './serializer' |
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
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