@modern-js/plugin-testing 1.18.0 → 1.18.1
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/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# @modern-js/plugin-testing
|
2
2
|
|
3
|
+
## 1.18.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [3586707]
|
8
|
+
- Updated dependencies [c1a4d9b]
|
9
|
+
- Updated dependencies [f6a3aa1]
|
10
|
+
- Updated dependencies [9f7bfa6]
|
11
|
+
- Updated dependencies [9fcfbd4]
|
12
|
+
- Updated dependencies [6c2c745]
|
13
|
+
- @modern-js/prod-server@1.18.1
|
14
|
+
- @modern-js/plugin@1.18.1
|
15
|
+
- @modern-js/utils@1.18.1
|
16
|
+
- @modern-js/webpack@1.18.1
|
17
|
+
- @modern-js/runtime@1.18.1
|
18
|
+
- @modern-js/babel-preset-app@1.18.1
|
19
|
+
- @modern-js/babel-compiler@1.18.1
|
20
|
+
|
3
21
|
## 1.18.0
|
4
22
|
|
5
23
|
### Patch Changes
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AsyncLocalStorage } from 'async_hooks';
|
2
|
-
import { Server } from '@modern-js/server';
|
2
|
+
import { Server } from '@modern-js/prod-server';
|
3
3
|
const store = new AsyncLocalStorage();
|
4
4
|
export const isInHandler = () => Boolean(store.getStore());
|
5
5
|
let server = null;
|
@@ -9,9 +9,6 @@ const createApp = async (pwd, config, plugins, routes) => {
|
|
9
9
|
config.output.path = './';
|
10
10
|
server = new Server({
|
11
11
|
apiOnly: true,
|
12
|
-
dev: {
|
13
|
-
watch: false
|
14
|
-
},
|
15
12
|
pwd,
|
16
13
|
config,
|
17
14
|
plugins,
|
@@ -7,7 +7,7 @@ exports.isInHandler = exports.getApp = exports.createApp = exports.closeServer =
|
|
7
7
|
|
8
8
|
var _async_hooks = require("async_hooks");
|
9
9
|
|
10
|
-
var
|
10
|
+
var _prodServer = require("@modern-js/prod-server");
|
11
11
|
|
12
12
|
const store = new _async_hooks.AsyncLocalStorage();
|
13
13
|
|
@@ -19,11 +19,8 @@ let server = null;
|
|
19
19
|
const createApp = async (pwd, config, plugins, routes) => {
|
20
20
|
if (!server) {
|
21
21
|
config.output.path = './';
|
22
|
-
server = new
|
22
|
+
server = new _prodServer.Server({
|
23
23
|
apiOnly: true,
|
24
|
-
dev: {
|
25
|
-
watch: false
|
26
|
-
},
|
27
24
|
pwd,
|
28
25
|
config,
|
29
26
|
plugins,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
3
3
|
import { AsyncLocalStorage } from 'async_hooks';
|
4
|
-
import { Server } from '@modern-js/server';
|
4
|
+
import { Server } from '@modern-js/prod-server';
|
5
5
|
var store = new AsyncLocalStorage();
|
6
6
|
export var isInHandler = function isInHandler() {
|
7
7
|
return Boolean(store.getStore());
|
@@ -23,9 +23,6 @@ var createApp = /*#__PURE__*/function () {
|
|
23
23
|
config.output.path = './';
|
24
24
|
server = new Server({
|
25
25
|
apiOnly: true,
|
26
|
-
dev: {
|
27
|
-
watch: false
|
28
|
-
},
|
29
26
|
pwd: pwd,
|
30
27
|
config: config,
|
31
28
|
plugins: plugins,
|
@@ -1,6 +1,6 @@
|
|
1
|
-
/// <reference path="../../../../../../server/prod-server/src/type.d.ts" />
|
2
1
|
/// <reference types="node" />
|
3
2
|
/// <reference types="node/http" />
|
3
|
+
/// <reference types="@modern-js/prod-server/src/type" />
|
4
4
|
export declare const isInHandler: () => boolean;
|
5
5
|
declare const createApp: (pwd: string, config: any, plugins: any[], routes: any[]) => Promise<(req: import("http").IncomingMessage, res: import("http").ServerResponse, next?: (() => void) | undefined) => void>;
|
6
6
|
declare const getApp: () => (req: import("http").IncomingMessage, res: import("http").ServerResponse, next?: (() => void) | undefined) => void;
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "1.18.
|
14
|
+
"version": "1.18.1",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/types/index.d.ts",
|
17
17
|
"main": "./dist/js/node/index.js",
|
@@ -99,12 +99,12 @@
|
|
99
99
|
"@modern-js-reduck/plugin-effects": "^1.0.2",
|
100
100
|
"@modern-js-reduck/plugin-immutable": "^1.0.1",
|
101
101
|
"@modern-js-reduck/store": "^1.0.3",
|
102
|
-
"@modern-js/babel-compiler": "1.18.
|
103
|
-
"@modern-js/utils": "1.18.
|
104
|
-
"@modern-js/webpack": "1.18.
|
105
|
-
"@modern-js/babel-preset-app": "1.18.
|
106
|
-
"@modern-js/plugin": "1.18.
|
107
|
-
"@modern-js/server": "1.18.
|
102
|
+
"@modern-js/babel-compiler": "1.18.1",
|
103
|
+
"@modern-js/utils": "1.18.1",
|
104
|
+
"@modern-js/webpack": "1.18.1",
|
105
|
+
"@modern-js/babel-preset-app": "1.18.1",
|
106
|
+
"@modern-js/plugin": "1.18.1",
|
107
|
+
"@modern-js/prod-server": "1.18.1",
|
108
108
|
"@testing-library/jest-dom": "^5.14.1",
|
109
109
|
"@testing-library/react": "^12.0.0",
|
110
110
|
"@types/testing-library__jest-dom": "^5.14.3",
|
@@ -121,7 +121,7 @@
|
|
121
121
|
"peerDependencies": {
|
122
122
|
"react": ">=17",
|
123
123
|
"react-dom": ">=17",
|
124
|
-
"@modern-js/runtime": "^1.18.
|
124
|
+
"@modern-js/runtime": "^1.18.1"
|
125
125
|
},
|
126
126
|
"peerDependenciesMeta": {
|
127
127
|
"@modern-js/runtime": {
|
@@ -131,11 +131,11 @@
|
|
131
131
|
"devDependencies": {
|
132
132
|
"react": "^17",
|
133
133
|
"react-dom": "^17",
|
134
|
-
"@modern-js/core": "1.18.
|
135
|
-
"@modern-js/runtime": "1.18.
|
136
|
-
"@modern-js/bff-core": "1.18.
|
137
|
-
"@scripts/build": "1.18.
|
138
|
-
"@scripts/jest-config": "1.18.
|
134
|
+
"@modern-js/core": "1.18.1",
|
135
|
+
"@modern-js/runtime": "1.18.1",
|
136
|
+
"@modern-js/bff-core": "1.18.1",
|
137
|
+
"@scripts/build": "1.18.1",
|
138
|
+
"@scripts/jest-config": "1.18.1",
|
139
139
|
"@types/jest": "^27",
|
140
140
|
"@types/supertest": "^2.0.11",
|
141
141
|
"@types/node": "^14",
|