@shuvi/platform-shared 1.0.8 → 1.0.10

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 (33) hide show
  1. package/esm/shared/helper/getAppData.js +1 -1
  2. package/esm/shared/helper/router.js +1 -1
  3. package/esm/shared/loader/loader.d.ts +1 -1
  4. package/esm/shared/loader/loader.js +5 -3
  5. package/esm/shared/loader/types.d.ts +4 -2
  6. package/esm/shared/models/error.js +1 -1
  7. package/esm/shared/routerTypes.d.ts +2 -2
  8. package/esm/shared/runtimPlugin.d.ts +1 -1
  9. package/esm/shared/runtimPlugin.js +1 -1
  10. package/lib/node/platform/runtimeFiles.d.ts +1 -1
  11. package/lib/node/platform/runtimeFiles.js +1 -1
  12. package/lib/node/project/file-presets/files/app/core/entry.js.d.ts +1 -1
  13. package/lib/node/project/file-presets/files/app/core/error.js.d.ts +1 -1
  14. package/lib/node/project/file-presets/files/app/core/platform.js.d.ts +1 -1
  15. package/lib/node/project/file-presets/files/app/core/runtimeConfig.js.d.ts +1 -1
  16. package/lib/node/project/file-presets/files/app/core/setRuntimeConfig.js.d.ts +1 -1
  17. package/lib/node/project/file-presets/files/app/user/app.js.d.ts +1 -1
  18. package/lib/node/project/file-presets/files/app/user/error.js.d.ts +1 -1
  19. package/lib/node/project/file-presets/files/app/user/error.js.js +1 -1
  20. package/lib/node/project/file-presets/files/app/user/server.js.d.ts +1 -1
  21. package/lib/node/project/file-presets/index.d.ts +3 -3
  22. package/lib/node/route/helpers.js +2 -2
  23. package/lib/node/route/route.js +1 -1
  24. package/lib/shared/helper/getAppData.js +1 -1
  25. package/lib/shared/helper/router.js +1 -1
  26. package/lib/shared/loader/loader.d.ts +1 -1
  27. package/lib/shared/loader/loader.js +5 -3
  28. package/lib/shared/loader/types.d.ts +4 -2
  29. package/lib/shared/models/error.js +1 -1
  30. package/lib/shared/routerTypes.d.ts +2 -2
  31. package/lib/shared/runtimPlugin.d.ts +1 -1
  32. package/lib/shared/runtimPlugin.js +1 -1
  33. package/package.json +10 -10
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="dom" />
2
- import { CLIENT_APPDATA_ID } from '@shuvi/shared/lib/constants';
2
+ import { CLIENT_APPDATA_ID } from '@shuvi/shared/constants';
3
3
  let appData = null;
4
4
  export function getAppData() {
5
5
  if (appData) {
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import isEqual from '@shuvi/utils/lib/isEqual';
10
+ import isEqual from '@shuvi/utils/isEqual';
11
11
  export function runPreload(to) {
12
12
  return __awaiter(this, void 0, void 0, function* () {
13
13
  const toMatches = to.matches;
@@ -5,5 +5,5 @@ interface Result<T> {
5
5
  result?: T;
6
6
  }
7
7
  export declare function runInParallerAndBail<T>(fns: Array<() => Promise<T> | T>): Promise<Result<T>[]>;
8
- export declare function runLoaders(matches: IRouteMatch<IPageRouteRecord>[], loadersByRouteId: Record<string, Loader>, { query, req, getAppContext }: LoaderContextOptions): Promise<LoaderDataRecord>;
8
+ export declare function runLoaders(matches: IRouteMatch<IPageRouteRecord>[], loadersByRouteId: Record<string, Loader>, { pathname, query, params, req, getAppContext }: LoaderContextOptions): Promise<LoaderDataRecord>;
9
9
  export {};
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import invariant from '@shuvi/utils/lib/invariant';
10
+ import invariant from '@shuvi/utils/invariant';
11
11
  import { json as createJson, redirect as createRedirect, response, isResponse } from '../response';
12
12
  // todo: add unit tests
13
13
  export function runInParallerAndBail(fns) {
@@ -71,7 +71,7 @@ function errorHelper(msg, statusCode = 500) {
71
71
  invariant(statusCode >= 400 && statusCode < 600, 'status code should be 4xx and 5xx');
72
72
  throw response(msg, { status: statusCode });
73
73
  }
74
- export function runLoaders(matches, loadersByRouteId, { query, req, getAppContext }) {
74
+ export function runLoaders(matches, loadersByRouteId, { pathname, query, params, req, getAppContext }) {
75
75
  return __awaiter(this, void 0, void 0, function* () {
76
76
  const loaderDatas = {};
77
77
  if (!matches.length) {
@@ -85,7 +85,9 @@ export function runLoaders(matches, loadersByRouteId, { query, req, getAppContex
85
85
  }
86
86
  let res;
87
87
  try {
88
- const value = yield loaderFn(Object.assign({ pathname: match.pathname, params: match.params, query: query, redirect: redirectHelper, error: errorHelper, appContext }, (req ? { req } : {})));
88
+ const value = yield loaderFn(Object.assign({ pathname,
89
+ params,
90
+ query, redirect: redirectHelper, error: errorHelper, appContext }, (req ? { req } : {})));
89
91
  if (value === undefined) {
90
92
  throw new Error(`You defined a loader for route "${match.route.path}" but didn't return ` +
91
93
  `anything from your \`loader\` function. Please return a value or \`null\`.`);
@@ -3,8 +3,10 @@ import { IURLQuery, IURLParams } from '../routerTypes';
3
3
  import { IAppContext } from '../applicationTypes';
4
4
  import { Response } from '../response';
5
5
  export interface LoaderContextOptions {
6
- req?: ShuviRequest;
7
- query: IURLQuery;
6
+ req?: IRouteLoaderContext['req'];
7
+ pathname: IRouteLoaderContext['pathname'];
8
+ query: IRouteLoaderContext['query'];
9
+ params: IRouteLoaderContext['params'];
8
10
  getAppContext: () => IAppContext;
9
11
  }
10
12
  export declare type RedirectFunction = (to: string, status?: number) => any;
@@ -1,5 +1,5 @@
1
1
  import { defineModel } from 'doura';
2
- import { SHUVI_ERROR } from '@shuvi/shared/lib/constants';
2
+ import { SHUVI_ERROR } from '@shuvi/shared/constants';
3
3
  const DEFAULT_ERROR_STATE = {
4
4
  error: null
5
5
  };
@@ -27,9 +27,9 @@ export interface IPageRouteConfig {
27
27
  redirect?: string;
28
28
  path: string;
29
29
  }
30
- export interface IPageRouteConfigWithId extends IPageRouteConfig {
30
+ export interface INormalizedPageRouteConfig extends IPageRouteConfig {
31
31
  id: string;
32
- children?: IPageRouteConfigWithId[];
32
+ children?: INormalizedPageRouteConfig[];
33
33
  }
34
34
  export interface IMiddlewareRouteConfig {
35
35
  path: string;
@@ -15,7 +15,7 @@ export interface BuiltInRuntimePluginHooks extends HookMap {
15
15
  export interface RuntimePluginHooks extends BuiltInRuntimePluginHooks, CustomRuntimePluginHooks {
16
16
  }
17
17
  export declare const getManager: () => import("@shuvi/hook").HookManager<RuntimePluginHooks, void>;
18
- export declare const createRuntimePluginBefore: import("@shuvi/shared/lib/plugins").PluginFunc<RuntimePluginHooks, void>, createRuntimePlugin: import("@shuvi/shared/lib/plugins").PluginFunc<RuntimePluginHooks, void>, createRuntimePluginAfter: import("@shuvi/shared/lib/plugins").PluginFunc<RuntimePluginHooks, void>;
18
+ export declare const createRuntimePluginBefore: import("@shuvi/shared/plugins").PluginFunc<RuntimePluginHooks, void>, createRuntimePlugin: import("@shuvi/shared/plugins").PluginFunc<RuntimePluginHooks, void>, createRuntimePluginAfter: import("@shuvi/shared/plugins").PluginFunc<RuntimePluginHooks, void>;
19
19
  export type { IPluginInstance, CustomRuntimePluginHooks };
20
20
  export declare type PluginManager = ReturnType<typeof getManager>;
21
21
  export declare type RuntimePluginInstance = IPluginInstance<RuntimePluginHooks, void>;
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { createAsyncParallelHook, createAsyncSeriesHook, createAsyncSeriesWaterfallHook, createHookManager, isPluginInstance } from '@shuvi/hook';
11
- import { createPluginCreator } from '@shuvi/shared/lib/plugins';
11
+ import { createPluginCreator } from '@shuvi/shared/plugins';
12
12
  const init = createAsyncParallelHook();
13
13
  const appContext = createAsyncSeriesHook();
14
14
  const appComponent = createAsyncSeriesWaterfallHook();
@@ -4,4 +4,4 @@ import { IPluginContext } from '@shuvi/service';
4
4
  * `core/error`, `core/platform`, `core/plugins`, `core/polyfill`, `core/runtimeConfig`, `core/setRuntimeConfig`,
5
5
  * `user/error`, `user/runtime` and `entry`
6
6
  */
7
- export declare const getPresetRuntimeFilesCreator: (platformModule: string) => (pluginContext: IPluginContext) => Promise<import("@shuvi/service/lib/project").FileOption<any, any>[]>;
7
+ export declare const getPresetRuntimeFilesCreator: (platformModule: string) => (pluginContext: IPluginContext) => Promise<import("@shuvi/service/lib/project").FileOptionWithId<any, any>[]>;
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.getPresetRuntimeFilesCreator = void 0;
16
16
  const project_1 = require("@shuvi/service/lib/project");
17
- const logger_1 = __importDefault(require("@shuvi/utils/lib/logger"));
17
+ const logger_1 = __importDefault(require("@shuvi/utils/logger"));
18
18
  const shuvi_singleton_runtimeConfig_1 = require("../../shared/shuvi-singleton-runtimeConfig");
19
19
  const projectContext_1 = require("../project/projectContext");
20
20
  const file_presets_1 = require("../project/file-presets");
@@ -1,3 +1,3 @@
1
1
  import { ProjectContext } from '../../../../projectContext';
2
- declare const _default: (context: ProjectContext) => Omit<import("@shuvi/service/lib/project").FileOptionWithoutId<string, any>, "name">;
2
+ declare const _default: (context: ProjectContext) => Omit<import("@shuvi/service/lib/project").FileOption<string, any>, "name">;
3
3
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: () => Omit<import("@shuvi/service/lib/project/index").FileOptionWithoutId<string, any>, "name">;
1
+ declare const _default: () => Omit<import("@shuvi/service/lib/project/index").FileOption<string, any>, "name">;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { ProjectContext } from '../../../../projectContext';
2
- declare const _default: (context: ProjectContext) => Omit<import("@shuvi/service/lib/project").FileOptionWithoutId<string, any>, "name">;
2
+ declare const _default: (context: ProjectContext) => Omit<import("@shuvi/service/lib/project").FileOption<string, any>, "name">;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { ProjectContext } from '../../../../projectContext';
2
- declare const _default: (context: ProjectContext) => Omit<import("@shuvi/service/lib/project/index").FileOptionWithoutId<string, any>, "name">;
2
+ declare const _default: (context: ProjectContext) => Omit<import("@shuvi/service/lib/project/index").FileOption<string, any>, "name">;
3
3
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: () => Omit<import("@shuvi/service/lib/project/index").FileOptionWithoutId<string, any>, "name">;
1
+ declare const _default: () => Omit<import("@shuvi/service/lib/project/index").FileOption<string, any>, "name">;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { ProjectContext } from '../../../../projectContext';
2
- declare const _default: (context: ProjectContext) => Omit<import("@shuvi/service/lib/project").FileOptionWithoutId<string, any>, "name">;
2
+ declare const _default: (context: ProjectContext) => Omit<import("@shuvi/service/lib/project").FileOption<string, any>, "name">;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { ProjectContext } from '../../../../projectContext';
2
- declare const _default: (context: ProjectContext) => Omit<import("@shuvi/service/lib/project").FileOptionWithoutId<string, any>, "name">;
2
+ declare const _default: (context: ProjectContext) => Omit<import("@shuvi/service/lib/project").FileOption<string, any>, "name">;
3
3
  export default _default;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const project_1 = require("@shuvi/service/lib/project");
4
- const file_1 = require("@shuvi/utils/lib/file");
4
+ const file_1 = require("@shuvi/utils/file");
5
5
  const __1 = require("../../..");
6
6
  const { getAllFiles, getFirstModuleExport } = project_1.fileUtils;
7
7
  exports.default = (context) => {
@@ -1,3 +1,3 @@
1
1
  import { ProjectContext } from '../../../../projectContext';
2
- declare const _default: (context: ProjectContext) => Omit<import("@shuvi/service/lib/project").FileOptionWithoutId<string, any>, "name">;
2
+ declare const _default: (context: ProjectContext) => Omit<import("@shuvi/service/lib/project").FileOption<string, any>, "name">;
3
3
  export default _default;
@@ -1,4 +1,4 @@
1
- import { FileOption, FileOptionWithoutId } from '@shuvi/service/lib/project';
1
+ import { FileOptionWithId, FileOption } from '@shuvi/service/lib/project';
2
2
  import { ProjectContext } from '../projectContext';
3
- export declare function getFilePresets(context: ProjectContext): FileOption<any>[];
4
- export declare const defineFile: (options: Omit<FileOptionWithoutId, 'name'>) => Omit<FileOptionWithoutId<string, any>, "name">;
3
+ export declare function getFilePresets(context: ProjectContext): FileOptionWithId<any>[];
4
+ export declare const defineFile: (options: Omit<FileOption, 'name'>) => Omit<FileOption<string, any>, "name">;
@@ -15,8 +15,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.sortRoutes = exports.fileTypeChecker = exports.hasRouteChildren = exports.readDir = exports.getAllowFilesAndDirs = exports.isRouteFile = exports.combineComponents = exports.normalizeRoutePath = exports.parseDynamicPath = void 0;
16
16
  const fs_1 = __importDefault(require("fs"));
17
17
  const path_1 = require("path");
18
- const file_1 = require("@shuvi/utils/lib/file");
19
- const invariant_1 = __importDefault(require("@shuvi/utils/lib/invariant"));
18
+ const file_1 = require("@shuvi/utils/file");
19
+ const invariant_1 = __importDefault(require("@shuvi/utils/invariant"));
20
20
  const router_1 = require("../../shared/router");
21
21
  const supportFileTypes = ['page', 'layout', 'middleware', 'api'];
22
22
  const allowReadFilExtList = ['ts', 'js', 'tsx', 'jsx'];
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getMiddlewareRoutes = exports.getApiRoutes = exports.getPageRoutes = exports.getRawRoutesFromDir = void 0;
13
13
  const path_1 = require("path");
14
- const file_1 = require("@shuvi/utils/lib/file");
14
+ const file_1 = require("@shuvi/utils/file");
15
15
  const helpers_1 = require("./helpers");
16
16
  const matchSpec_1 = require("./matchSpec");
17
17
  const getRawRoutesFromDir = (dirname, excludes) => __awaiter(void 0, void 0, void 0, function* () {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getAppData = void 0;
4
4
  /// <reference lib="dom" />
5
- const constants_1 = require("@shuvi/shared/lib/constants");
5
+ const constants_1 = require("@shuvi/shared/constants");
6
6
  let appData = null;
7
7
  function getAppData() {
8
8
  if (appData) {
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.getRouteMatchesWithInvalidLoader = exports.runPreload = void 0;
16
- const isEqual_1 = __importDefault(require("@shuvi/utils/lib/isEqual"));
16
+ const isEqual_1 = __importDefault(require("@shuvi/utils/isEqual"));
17
17
  function runPreload(to) {
18
18
  return __awaiter(this, void 0, void 0, function* () {
19
19
  const toMatches = to.matches;
@@ -5,5 +5,5 @@ interface Result<T> {
5
5
  result?: T;
6
6
  }
7
7
  export declare function runInParallerAndBail<T>(fns: Array<() => Promise<T> | T>): Promise<Result<T>[]>;
8
- export declare function runLoaders(matches: IRouteMatch<IPageRouteRecord>[], loadersByRouteId: Record<string, Loader>, { query, req, getAppContext }: LoaderContextOptions): Promise<LoaderDataRecord>;
8
+ export declare function runLoaders(matches: IRouteMatch<IPageRouteRecord>[], loadersByRouteId: Record<string, Loader>, { pathname, query, params, req, getAppContext }: LoaderContextOptions): Promise<LoaderDataRecord>;
9
9
  export {};
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.runLoaders = exports.runInParallerAndBail = void 0;
16
- const invariant_1 = __importDefault(require("@shuvi/utils/lib/invariant"));
16
+ const invariant_1 = __importDefault(require("@shuvi/utils/invariant"));
17
17
  const response_1 = require("../response");
18
18
  // todo: add unit tests
19
19
  function runInParallerAndBail(fns) {
@@ -78,7 +78,7 @@ function errorHelper(msg, statusCode = 500) {
78
78
  (0, invariant_1.default)(statusCode >= 400 && statusCode < 600, 'status code should be 4xx and 5xx');
79
79
  throw (0, response_1.response)(msg, { status: statusCode });
80
80
  }
81
- function runLoaders(matches, loadersByRouteId, { query, req, getAppContext }) {
81
+ function runLoaders(matches, loadersByRouteId, { pathname, query, params, req, getAppContext }) {
82
82
  return __awaiter(this, void 0, void 0, function* () {
83
83
  const loaderDatas = {};
84
84
  if (!matches.length) {
@@ -92,7 +92,9 @@ function runLoaders(matches, loadersByRouteId, { query, req, getAppContext }) {
92
92
  }
93
93
  let res;
94
94
  try {
95
- const value = yield loaderFn(Object.assign({ pathname: match.pathname, params: match.params, query: query, redirect: redirectHelper, error: errorHelper, appContext }, (req ? { req } : {})));
95
+ const value = yield loaderFn(Object.assign({ pathname,
96
+ params,
97
+ query, redirect: redirectHelper, error: errorHelper, appContext }, (req ? { req } : {})));
96
98
  if (value === undefined) {
97
99
  throw new Error(`You defined a loader for route "${match.route.path}" but didn't return ` +
98
100
  `anything from your \`loader\` function. Please return a value or \`null\`.`);
@@ -3,8 +3,10 @@ import { IURLQuery, IURLParams } from '../routerTypes';
3
3
  import { IAppContext } from '../applicationTypes';
4
4
  import { Response } from '../response';
5
5
  export interface LoaderContextOptions {
6
- req?: ShuviRequest;
7
- query: IURLQuery;
6
+ req?: IRouteLoaderContext['req'];
7
+ pathname: IRouteLoaderContext['pathname'];
8
+ query: IRouteLoaderContext['query'];
9
+ params: IRouteLoaderContext['params'];
8
10
  getAppContext: () => IAppContext;
9
11
  }
10
12
  export declare type RedirectFunction = (to: string, status?: number) => any;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.errorModel = exports.errorModelName = void 0;
4
4
  const doura_1 = require("doura");
5
- const constants_1 = require("@shuvi/shared/lib/constants");
5
+ const constants_1 = require("@shuvi/shared/constants");
6
6
  const DEFAULT_ERROR_STATE = {
7
7
  error: null
8
8
  };
@@ -27,9 +27,9 @@ export interface IPageRouteConfig {
27
27
  redirect?: string;
28
28
  path: string;
29
29
  }
30
- export interface IPageRouteConfigWithId extends IPageRouteConfig {
30
+ export interface INormalizedPageRouteConfig extends IPageRouteConfig {
31
31
  id: string;
32
- children?: IPageRouteConfigWithId[];
32
+ children?: INormalizedPageRouteConfig[];
33
33
  }
34
34
  export interface IMiddlewareRouteConfig {
35
35
  path: string;
@@ -15,7 +15,7 @@ export interface BuiltInRuntimePluginHooks extends HookMap {
15
15
  export interface RuntimePluginHooks extends BuiltInRuntimePluginHooks, CustomRuntimePluginHooks {
16
16
  }
17
17
  export declare const getManager: () => import("@shuvi/hook").HookManager<RuntimePluginHooks, void>;
18
- export declare const createRuntimePluginBefore: import("@shuvi/shared/lib/plugins").PluginFunc<RuntimePluginHooks, void>, createRuntimePlugin: import("@shuvi/shared/lib/plugins").PluginFunc<RuntimePluginHooks, void>, createRuntimePluginAfter: import("@shuvi/shared/lib/plugins").PluginFunc<RuntimePluginHooks, void>;
18
+ export declare const createRuntimePluginBefore: import("@shuvi/shared/plugins").PluginFunc<RuntimePluginHooks, void>, createRuntimePlugin: import("@shuvi/shared/plugins").PluginFunc<RuntimePluginHooks, void>, createRuntimePluginAfter: import("@shuvi/shared/plugins").PluginFunc<RuntimePluginHooks, void>;
19
19
  export type { IPluginInstance, CustomRuntimePluginHooks };
20
20
  export declare type PluginManager = ReturnType<typeof getManager>;
21
21
  export declare type RuntimePluginInstance = IPluginInstance<RuntimePluginHooks, void>;
@@ -12,7 +12,7 @@ var _a;
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.initPlugins = exports.createRuntimePluginAfter = exports.createRuntimePlugin = exports.createRuntimePluginBefore = exports.getManager = void 0;
14
14
  const hook_1 = require("@shuvi/hook");
15
- const plugins_1 = require("@shuvi/shared/lib/plugins");
15
+ const plugins_1 = require("@shuvi/shared/plugins");
16
16
  const init = (0, hook_1.createAsyncParallelHook)();
17
17
  const appContext = (0, hook_1.createAsyncSeriesHook)();
18
18
  const appComponent = (0, hook_1.createAsyncSeriesWaterfallHook)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/platform-shared",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -80,20 +80,20 @@
80
80
  "build:cjs": "tsc -p tsconfig.build.node.json"
81
81
  },
82
82
  "engines": {
83
- "node": ">= 12.0.0"
83
+ "node": ">= 16.0.0"
84
84
  },
85
85
  "dependencies": {
86
- "@shuvi/hook": "1.0.8",
87
- "doura": "0.0.4",
88
- "@shuvi/router": "1.0.8",
89
- "@shuvi/runtime": "1.0.8",
90
- "@shuvi/shared": "1.0.8",
91
- "@shuvi/toolpack": "1.0.8",
92
- "@shuvi/utils": "1.0.8",
86
+ "@shuvi/hook": "1.0.10",
87
+ "doura": "0.0.7",
88
+ "@shuvi/router": "1.0.10",
89
+ "@shuvi/runtime": "1.0.10",
90
+ "@shuvi/shared": "1.0.10",
91
+ "@shuvi/toolpack": "1.0.10",
92
+ "@shuvi/utils": "1.0.10",
93
93
  "redux": "4.1.2"
94
94
  },
95
95
  "peerDependencies": {
96
- "@shuvi/service": "1.0.8"
96
+ "@shuvi/service": "1.0.10"
97
97
  },
98
98
  "devDependencies": {
99
99
  "@shuvi/service": "workspace:*",