generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Rename
nuqs/parsers
to nuqs/server
BREAKING CHANGE: export path has been renamed. Contents are identical. Since the `/parsers` export contained the server cache, this name makes better sense and helps outline the client/server nature of features in nuqs.
- Loading branch information
Showing
13 changed files
with
30 additions
and
30 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
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
2 changes: 1 addition & 1 deletion
2
packages/docs/src/app/(pages)/playground/server-side-parsing/parser.ts
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,3 +1,3 @@ | ||
import { parseAsInteger } from 'nuqs/parsers' | ||
import { parseAsInteger } from 'nuqs/server' | ||
|
||
export const counterParser = parseAsInteger.withDefault(0) |
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,4 +1,4 @@ | ||
import { parseAsInteger, parseAsString } from 'nuqs/parsers' | ||
import { parseAsInteger, parseAsString } from 'nuqs/server' | ||
|
||
export const delayParser = parseAsInteger.withDefault(0) | ||
export const queryParser = parseAsString.withDefault('') |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { parseAsInteger, parseAsString } from 'nuqs/parsers' | ||
import { parseAsInteger, parseAsString } from 'nuqs/server' | ||
|
||
export const counterParser = parseAsInteger.withDefault(0) | ||
export const fromParser = parseAsString |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// This file is needed for projects that have `moduleResolution` set to `node` | ||
// in their tsconfig.json to be able to `import {} from 'nuqs/parsers'`. | ||
// in their tsconfig.json to be able to `import {} from 'nuqs/server'`. | ||
// Other module resolutions strategies will look for the `exports` in `package.json`, | ||
// but with `node`, TypeScript will look for a .d.ts file with that name at the | ||
// root of the package. | ||
|
||
export * from './dist/parsers' | ||
export * from './dist/server' |
File renamed without changes.
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