@stacksjs/types 0.72.56 → 0.72.57

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.
Files changed (2) hide show
  1. package/dist/request.d.ts +13 -4
  2. package/package.json +2 -2
package/dist/request.d.ts CHANGED
@@ -7,12 +7,21 @@ declare interface RequestData {
7
7
  }
8
8
  /**
9
9
  * Cookie-access helper exposed via `request.cookies` on
10
- * {@link RequestInstance}. The methods mirror bun-router's
11
- * `CookieAccessor` — duplicated locally so this package doesn't
12
- * have to depend on bun-router for a single type. Keep the surface
13
- * in sync if bun-router extends its accessor.
10
+ * {@link RequestInstance}. Mirrors bun-router's `CookieAccessor` —
11
+ * duplicated locally so this package doesn't have to depend on bun-router
12
+ * for a single type.
13
+ *
14
+ * "Keep the surface in sync" used to be the whole instruction here, and it
15
+ * drifted the moment bun-router's accessor grew: the runtime object is
16
+ * callable and carries its entries directly, and this said it was four
17
+ * methods. A comment cannot notice that. `cookie-accessor-parity.test-d.ts`
18
+ * in `@stacksjs/router` — a package that already depends on bun-router — now
19
+ * asserts the two are mutually assignable, so drift is a build failure
20
+ * instead of a note.
14
21
  */
15
22
  export declare interface RequestCookies {
23
+ (): Record<string, string>
24
+ [name: string]: unknown
16
25
  get: (name: string) => string | undefined
17
26
  set: (name: string, value: string, options?: {
18
27
  path?: string
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.72.56",
4
+ "version": "0.72.57",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -71,7 +71,7 @@
71
71
  }
72
72
  },
73
73
  "devDependencies": {
74
- "@stacksjs/validation": "0.72.56",
74
+ "@stacksjs/validation": "0.72.57",
75
75
  "better-dx": "^0.2.24",
76
76
  "meilisearch": "^0.59.0"
77
77
  },