@stacksjs/router 0.75.86 → 0.75.87

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.
@@ -104,7 +104,7 @@ export declare function bundleMounts(selection: DefaultRouteBundleSelection | un
104
104
  * `social` is not included. It is opt-in, decided by configured providers,
105
105
  * and no default page depends on it alone.
106
106
  */
107
- export declare function mountedDefaultRouteBundles(featureEnabled: (name: string) => boolean, env?: NodeJS.ProcessEnv): Set<typeof DEFAULT_ROUTE_BUNDLES[number]>;
107
+ export declare function mountedDefaultRouteBundles(featureEnabled: (name: DefaultRouteBundleFeature) => boolean, env?: NodeJS.ProcessEnv): Set<typeof DEFAULT_ROUTE_BUNDLES[number]>;
108
108
  /**
109
109
  * Load all routes from the registry
110
110
  */
@@ -165,3 +165,14 @@ export declare interface DefaultRouteBundleSelection {
165
165
  explicit: boolean
166
166
  }
167
167
  export type DefaultRouteBundle = typeof DEFAULT_ROUTE_BUNDLES[number] | typeof OPT_IN_ROUTE_BUNDLES[number];
168
+ /**
169
+ * The feature names the router asks about, and nothing wider.
170
+ *
171
+ * Spelled as literals rather than as `@stacksjs/config`'s `StacksFeature`, so
172
+ * the router stays free of config. The check still happens: `feature` only
173
+ * fits a `(name: DefaultRouteBundleFeature) => boolean` slot if it accepts
174
+ * every name here, so a gate the router invents that `feature()` does not
175
+ * know fails to compile at each caller. `email` was exactly that, a name only
176
+ * the router knew (stacksjs/stacks#2867).
177
+ */
178
+ export type DefaultRouteBundleFeature = typeof DEFAULT_ROUTE_BUNDLE_FEATURES[keyof typeof DEFAULT_ROUTE_BUNDLE_FEATURES];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/router",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.86",
5
+ "version": "0.75.87",
6
6
  "description": "The Stacks framework router.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -67,27 +67,27 @@
67
67
  },
68
68
  "dependencies": {
69
69
  "@stacksjs/bun-router": "^0.1.24",
70
- "@stacksjs/cache": "0.75.86",
71
- "@stacksjs/collections": "0.75.86",
72
- "@stacksjs/config": "0.75.86",
73
- "@stacksjs/error-handling": "0.75.86",
74
- "@stacksjs/logging": "0.75.86",
75
- "@stacksjs/pagination": "0.75.86",
76
- "@stacksjs/path": "0.75.86",
77
- "@stacksjs/security": "0.75.86",
78
- "@stacksjs/storage": "0.75.86",
70
+ "@stacksjs/cache": "0.75.87",
71
+ "@stacksjs/collections": "0.75.87",
72
+ "@stacksjs/config": "0.75.87",
73
+ "@stacksjs/error-handling": "0.75.87",
74
+ "@stacksjs/logging": "0.75.87",
75
+ "@stacksjs/pagination": "0.75.87",
76
+ "@stacksjs/path": "0.75.87",
77
+ "@stacksjs/security": "0.75.87",
78
+ "@stacksjs/storage": "0.75.87",
79
79
  "ts-rate-limiter": "^0.4.10"
80
80
  },
81
81
  "devDependencies": {
82
- "@stacksjs/actions": "0.75.86",
83
- "@stacksjs/types": "0.75.86",
82
+ "@stacksjs/actions": "0.75.87",
83
+ "@stacksjs/types": "0.75.87",
84
84
  "better-dx": "^0.2.24"
85
85
  },
86
86
  "peerDependencies": {
87
- "@stacksjs/api": "0.75.86",
88
- "@stacksjs/auth": "0.75.86",
89
- "@stacksjs/database": "0.75.86",
90
- "@stacksjs/validation": "0.75.86"
87
+ "@stacksjs/api": "0.75.87",
88
+ "@stacksjs/auth": "0.75.87",
89
+ "@stacksjs/database": "0.75.87",
90
+ "@stacksjs/validation": "0.75.87"
91
91
  },
92
92
  "peerDependenciesMeta": {
93
93
  "@stacksjs/api": {