@route-forge/core 1.3.1 → 1.4.0

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.
@@ -324,6 +324,13 @@ interface RouteForgeOptions {
324
324
  */
325
325
  response?: Array<((r: ResponseData) => unknown | Promise<unknown>) | [((r: ResponseData) => unknown | Promise<unknown>) | undefined, ((e: unknown) => unknown | Promise<unknown>) | undefined]>;
326
326
  };
327
+ /**
328
+ * @deprecated 前端校验始终开启,此选项不再被消费。
329
+ * 前端在层级未声明时始终抛 `UnknownLevelError`、路由名不存在始终抛 `UnknownRouteError`、
330
+ * 必填路径参数缺失始终抛 `MissingRouteParamError` —— 校验行为与 strict 无关,静默忽略会掩盖拼写错误、难以排查。
331
+ * 后端 `strict_mode` 的宽松/严格语义(未命中层级路由是否归入 unassigned/fallback)由后端在生成 manifest 时决定。
332
+ * 字段保留仅为向后兼容,传入不会有任何效果。
333
+ */
327
334
  strict?: boolean;
328
335
  timeout?: number;
329
336
  baseURL?: string;
@@ -324,6 +324,13 @@ interface RouteForgeOptions {
324
324
  */
325
325
  response?: Array<((r: ResponseData) => unknown | Promise<unknown>) | [((r: ResponseData) => unknown | Promise<unknown>) | undefined, ((e: unknown) => unknown | Promise<unknown>) | undefined]>;
326
326
  };
327
+ /**
328
+ * @deprecated 前端校验始终开启,此选项不再被消费。
329
+ * 前端在层级未声明时始终抛 `UnknownLevelError`、路由名不存在始终抛 `UnknownRouteError`、
330
+ * 必填路径参数缺失始终抛 `MissingRouteParamError` —— 校验行为与 strict 无关,静默忽略会掩盖拼写错误、难以排查。
331
+ * 后端 `strict_mode` 的宽松/严格语义(未命中层级路由是否归入 unassigned/fallback)由后端在生成 manifest 时决定。
332
+ * 字段保留仅为向后兼容,传入不会有任何效果。
333
+ */
327
334
  strict?: boolean;
328
335
  timeout?: number;
329
336
  baseURL?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@route-forge/core",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "框架无关的命名路由客户端核心:分级懒加载、隔离缓存、并发去重、拦截器",
5
5
  "license": "MIT",
6
6
  "author": "阿杰很厉害 <506907958@qq.com>",