@stacksjs/types 0.75.685 → 0.75.690

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/desktop.d.ts CHANGED
@@ -80,6 +80,7 @@ export declare interface WebviewAgentConfig {
80
80
  publicPaths?: string[]
81
81
  appRoutes?: boolean
82
82
  database?: boolean
83
+ config?: boolean
83
84
  }
84
85
  /**
85
86
  * In-app updates of a desktop app, the same for a web view app
package/dist/server.d.ts CHANGED
@@ -49,6 +49,32 @@ export declare interface ServerConfig {
49
49
  domains?: DomainRoutes
50
50
  cache?: ServerCacheOptions
51
51
  security?: ServerSecurityOptions
52
+ render?: ServerRenderOptions
53
+ }
54
+ /**
55
+ * Admission to the views server's page renderer.
56
+ *
57
+ * Every page render takes one of a fixed number of slots; past those a request
58
+ * waits in a bounded queue, and past the queue it is refused with a 503. Unset,
59
+ * stx's own defaults stand (4 slots, 32 waiting, 15 seconds).
60
+ *
61
+ * `background` is for traffic an application can name but should not refuse:
62
+ * signed-out visits to the pages its robots.txt tells crawlers not to walk,
63
+ * say. A crawler that ignores robots.txt otherwise fills every slot and every
64
+ * waiting place, and the whole site answers "busy" to everybody. Lowered
65
+ * requests share their own few slots, wait behind every person, and are told
66
+ * to come back later rather than at once.
67
+ */
68
+ export declare interface ServerRenderOptions {
69
+ concurrency?: number
70
+ queueLimit?: number
71
+ queueTimeoutMs?: number
72
+ background?: {
73
+ match: (request: Request) => boolean | Promise<boolean>
74
+ concurrency?: number
75
+ queueLimit?: number
76
+ retryAfterSeconds?: number
77
+ }
52
78
  }
53
79
  /**
54
80
  * How the views server caches what it renders.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.75.685",
4
+ "version": "0.75.690",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -70,8 +70,8 @@
70
70
  "dependencies": {
71
71
  "@stacksjs/bunpress": "^0.2.34",
72
72
  "@stacksjs/clapp": "^0.2.17",
73
- "@stacksjs/events": "0.75.685",
74
- "@stacksjs/strings": "0.75.685",
73
+ "@stacksjs/events": "0.75.690",
74
+ "@stacksjs/strings": "0.75.690",
75
75
  "@stacksjs/stx": "^0.2.938",
76
76
  "@stacksjs/ts-validation": "^0.5.7",
77
77
  "bun-query-builder": "^0.6.4",
@@ -79,7 +79,7 @@
79
79
  "stripe": "23.0.0"
80
80
  },
81
81
  "devDependencies": {
82
- "@stacksjs/validation": "0.75.685",
82
+ "@stacksjs/validation": "0.75.690",
83
83
  "better-dx": "^0.2.39"
84
84
  },
85
85
  "sideEffects": false,
@@ -111,7 +111,7 @@
111
111
  }
112
112
  },
113
113
  "peerDependencies": {
114
- "@stacksjs/actions": "0.75.685",
115
- "@stacksjs/scheduler": "0.75.685"
114
+ "@stacksjs/actions": "0.75.690",
115
+ "@stacksjs/scheduler": "0.75.690"
116
116
  }
117
117
  }