@modern-js/plugin-v2 2.67.2 → 2.67.4

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.
@@ -35,7 +35,9 @@ function initServerContext(params) {
35
35
  distDirectory: options.pwd,
36
36
  metaName: options.metaName || "modern-js",
37
37
  plugins,
38
- middlewares: []
38
+ middlewares: [],
39
+ bffRuntimeFramework: options.appContext.bffRuntimeFramework,
40
+ renderMiddlewares: []
39
41
  };
40
42
  }
41
43
  function createServerContext({ serverContext, config }) {
@@ -13,7 +13,9 @@ function initServerContext(params) {
13
13
  distDirectory: options.pwd,
14
14
  metaName: options.metaName || "modern-js",
15
15
  plugins,
16
- middlewares: []
16
+ middlewares: [],
17
+ bffRuntimeFramework: options.appContext.bffRuntimeFramework,
18
+ renderMiddlewares: []
17
19
  };
18
20
  }
19
21
  function createServerContext(param) {
@@ -11,7 +11,9 @@ function initServerContext(params) {
11
11
  distDirectory: options.pwd,
12
12
  metaName: options.metaName || "modern-js",
13
13
  plugins,
14
- middlewares: []
14
+ middlewares: [],
15
+ bffRuntimeFramework: options.appContext.bffRuntimeFramework,
16
+ renderMiddlewares: []
15
17
  };
16
18
  }
17
19
  function createServerContext({ serverContext, config }) {
@@ -11,6 +11,7 @@ export type ServerCreateOptions = {
11
11
  sharedDirectory?: string;
12
12
  apiDirectory?: string;
13
13
  lambdaDirectory?: string;
14
+ bffRuntimeFramework?: string;
14
15
  };
15
16
  };
16
17
  export type ServerRunOptions = {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.67.2",
18
+ "version": "2.67.4",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -81,18 +81,18 @@
81
81
  "dependencies": {
82
82
  "@swc/helpers": "0.5.13",
83
83
  "jiti": "1.21.7",
84
- "@modern-js/runtime-utils": "2.67.2",
85
- "@modern-js/utils": "2.67.2"
84
+ "@modern-js/runtime-utils": "2.67.4",
85
+ "@modern-js/utils": "2.67.4"
86
86
  },
87
87
  "devDependencies": {
88
- "@rsbuild/core": "1.3.7",
88
+ "@rsbuild/core": "1.3.16",
89
89
  "@types/jest": "^29",
90
90
  "@types/node": "^14",
91
91
  "@types/react": "^18.3.11",
92
92
  "jest": "^29",
93
93
  "typescript": "^5",
94
- "@modern-js/types": "2.67.2",
95
- "@modern-js/uni-builder": "2.67.2",
94
+ "@modern-js/types": "2.67.4",
95
+ "@modern-js/uni-builder": "2.67.4",
96
96
  "@scripts/build": "2.66.0",
97
97
  "@scripts/jest-config": "2.66.0"
98
98
  },