@stacksjs/sites 0.75.529 → 0.75.535

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/context.d.ts CHANGED
@@ -22,13 +22,3 @@ export declare function currentSiteId(): number | undefined;
22
22
  * compile error, not a cross-tenant query.
23
23
  */
24
24
  export declare function requireSite(): SiteContext;
25
- /**
26
- * Thrown when a handler that only makes sense on a tenant site runs without
27
- * one - an unknown host, or a platform host hitting a site-only route.
28
- * Carries `status: 404` so the router's error mapping answers Not Found
29
- * rather than 500: an unknown host is the visitor's dead end, not our bug.
30
- */
31
- export declare class SiteNotResolvedError extends Error {
32
- readonly status: number;
33
- constructor(message?: string);
34
- }
@@ -22,7 +22,6 @@ export declare function classifyHost(host: string, options: Pick<ResolvedSitesOp
22
22
  * gateway forward it); otherwise the connection's own Host.
23
23
  */
24
24
  export declare function requestHost(headers: Headers, options: Pick<ResolvedSitesOptions, 'trustProxyHost'>): string;
25
- export declare function clearSiteCache(): void;
26
25
  /**
27
26
  * Host -> site, cached. Null means "no such site": platform hosts, unknown
28
27
  * hosts, and disabled multi-site all land there - `strict` decides what the
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/sites",
3
3
  "type": "module",
4
- "version": "0.75.529",
4
+ "version": "0.75.535",
5
5
  "description": "The Stacks multi-site (request-level tenancy) functionality.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -56,18 +56,18 @@
56
56
  "prepublishOnly": "bun run build"
57
57
  },
58
58
  "dependencies": {
59
- "@stacksjs/auth": "0.75.529",
60
- "@stacksjs/config": "0.75.529",
61
- "@stacksjs/database": "0.75.529",
62
- "@stacksjs/router": "0.75.529"
59
+ "@stacksjs/auth": "0.75.535",
60
+ "@stacksjs/config": "0.75.535",
61
+ "@stacksjs/database": "0.75.535",
62
+ "@stacksjs/router": "0.75.535"
63
63
  },
64
64
  "devDependencies": {
65
- "@stacksjs/error-handling": "0.75.529",
65
+ "@stacksjs/error-handling": "0.75.535",
66
66
  "better-dx": "^0.2.24"
67
67
  },
68
68
  "sideEffects": false,
69
69
  "peerDependencies": {
70
- "@stacksjs/cms": "0.75.529"
70
+ "@stacksjs/cms": "0.75.535"
71
71
  },
72
72
  "peerDependenciesMeta": {
73
73
  "@stacksjs/cms": {