Skip to content

Commit

Permalink
chore: Rename nuqs/parsers to nuqs/server
Browse files Browse the repository at this point in the history
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
franky47 committed Oct 22, 2024
1 parent 4616a7b commit b6bdc66
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 21 deletions.
7 changes: 1 addition & 6 deletions packages/nuqs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@
},
"./server": {
"types": "./dist/server.d.ts",
"import": "./dist/server.js",
"require": "./dist/server.cjs"
},
"./parsers": {
"types": "./dist/parsers.d.ts",
"import": "./dist/parsers.js"
"import": "./dist/server.js"
}
},
"scripts": {
Expand Down
7 changes: 0 additions & 7 deletions packages/nuqs/parsers.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/nuqs/src/index.parsers.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/nuqs/src/tests/cache.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
parseAsBoolean,
parseAsInteger,
parseAsString
} from '../../dist/parsers'
} from '../../dist/server'

{
const cache = createSearchParamsCache({
Expand Down

0 comments on commit b6bdc66

Please sign in to comment.