@danmat/query-fetch 0.1.0 → 0.1.1
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/README.md +10 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/DanMat/query-fetch/actions/workflows/ci.yml)
|
|
4
4
|
[](https://www.npmjs.com/package/@danmat/query-fetch)
|
|
5
|
-
[](https://bundlejs.com/?q=@danmat/query-fetch)
|
|
6
6
|
[](./LICENSE)
|
|
7
7
|
|
|
8
8
|
A tiny, **dependency-free** client for the HTTP **QUERY** method ([RFC 10008](https://www.rfc-editor.org/rfc/rfc10008)) — the request that is *safe and idempotent like `GET`*, but *carries a body like `POST`*, and *caches like neither before it could*.
|
|
@@ -114,6 +114,15 @@ QUERY is a **Proposed Standard** (June 2026). Two things to know:
|
|
|
114
114
|
- **CORS:** QUERY is not a CORS-safelisted method, so a cross-origin QUERY triggers a preflight. Your server must handle `OPTIONS` accordingly.
|
|
115
115
|
- **Spec churn:** browser-integration details (method normalization, caching) are still being ironed out in [whatwg/fetch#1938](https://github.com/whatwg/fetch/issues/1938). This library tracks runtime behavior as it ships.
|
|
116
116
|
|
|
117
|
+
## The `@danmat` QUERY suite
|
|
118
|
+
|
|
119
|
+
- **`@danmat/query-fetch`** — client for the QUERY method *(you are here)*.
|
|
120
|
+
- [`@danmat/accept-query`](https://github.com/DanMat/accept-query) — parse/build/negotiate the `Accept-Query` header.
|
|
121
|
+
- [`@danmat/query-cache`](https://github.com/DanMat/query-cache) — body-aware response caching.
|
|
122
|
+
- [`@danmat/query-server`](https://github.com/DanMat/query-server) — server-side request validation & negotiation.
|
|
123
|
+
|
|
124
|
+
▶️ **See them work together:** [query-suite-example](https://github.com/DanMat/query-suite-example) — a runnable demo using all four, with a **[🌐 live playground](https://query-suite-example.danmat.workers.dev)**.
|
|
125
|
+
|
|
117
126
|
## License
|
|
118
127
|
|
|
119
128
|
[MIT](./LICENSE) © Dan Matthew
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danmat/query-fetch",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A tiny, dependency-free client for the HTTP QUERY method (RFC 10008) — the safe, idempotent request with a body. Content-Type enforcement, POST fallback, and Accept negotiation over native fetch.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"http",
|