paramour 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/codec.d.ts +76 -0
- package/dist/codec.js +110 -0
- package/dist/describe.d.ts +63 -0
- package/dist/describe.js +75 -0
- package/dist/errors.d.ts +55 -0
- package/dist/errors.js +128 -0
- package/dist/href.d.ts +59 -0
- package/dist/href.js +16 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -0
- package/dist/p.d.ts +23 -0
- package/dist/p.js +265 -0
- package/dist/path.d.ts +108 -0
- package/dist/path.js +439 -0
- package/dist/route.d.ts +253 -0
- package/dist/route.js +210 -0
- package/dist/safe-decode.d.ts +16 -0
- package/dist/safe-decode.js +42 -0
- package/dist/schema.d.ts +10 -0
- package/dist/schema.js +16 -0
- package/dist/search.d.ts +139 -0
- package/dist/search.js +472 -0
- package/package.json +29 -5
- package/README.md +0 -28
package/README.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# paramour
|
|
2
|
-
|
|
3
|
-
> *paramour* — "param" + "amour": a library that loves your params.
|
|
4
|
-
|
|
5
|
-
A fully type-safe routing companion for the Next.js App Router: validated, typed
|
|
6
|
-
route params and search params, type-checked path building, and a predictable,
|
|
7
|
-
human-readable URL wire format — with your choice of validation library via
|
|
8
|
-
[Standard Schema](https://github.com/standard-schema/standard-schema).
|
|
9
|
-
|
|
10
|
-
## Status
|
|
11
|
-
|
|
12
|
-
**This is a name-reservation placeholder.** The library is under active design
|
|
13
|
-
and development — nothing here is usable yet.
|
|
14
|
-
|
|
15
|
-
- Design document and progress: [github.com/JasonPaff/paramour](https://github.com/JasonPaff/paramour)
|
|
16
|
-
- Companion packages will live under the [`@paramour-js`](https://www.npmjs.com/org/paramour-js) scope.
|
|
17
|
-
|
|
18
|
-
## Why
|
|
19
|
-
|
|
20
|
-
Born from lessons learned maintaining and contributing to
|
|
21
|
-
[`next-typesafe-url`](https://www.npmjs.com/package/next-typesafe-url), which is
|
|
22
|
-
effectively unmaintained. Paramour aims to be a documented, tested,
|
|
23
|
-
community-maintained answer to typed routing in Next.js, with a migration path
|
|
24
|
-
from `next-typesafe-url`.
|
|
25
|
-
|
|
26
|
-
## License
|
|
27
|
-
|
|
28
|
-
MIT © Jason Paff
|