@modern-js/plugin-garfish 1.4.4-beta.6 → 1.4.6
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 +48 -0
- package/dist/js/modern/runtime/utils/apps.js +0 -1
- package/dist/js/modern/util.js +2 -2
- package/dist/js/node/runtime/utils/apps.js +0 -1
- package/dist/js/node/util.js +2 -4
- package/dist/js/treeshaking/runtime/utils/apps.js +0 -1
- package/dist/js/treeshaking/util.js +2 -2
- package/dist/types/util.d.ts +1 -2
- package/jest.config.js +0 -1
- package/package.json +13 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# @modern-js/plugin-garfish
|
|
2
2
|
|
|
3
|
+
## 1.4.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 17d0cc46: feat: prebundle lodash to @modern-js/utils/lodash
|
|
8
|
+
- Updated dependencies [485375ae]
|
|
9
|
+
- Updated dependencies [77ff9754]
|
|
10
|
+
- Updated dependencies [d2d1d6b2]
|
|
11
|
+
- Updated dependencies [07a4887e]
|
|
12
|
+
- Updated dependencies [ea2ae711]
|
|
13
|
+
- Updated dependencies [17d0cc46]
|
|
14
|
+
- Updated dependencies [d2d1d6b2]
|
|
15
|
+
- @modern-js/plugin-router@1.2.9
|
|
16
|
+
- @modern-js/runtime-core@1.4.1
|
|
17
|
+
- @modern-js/utils@1.4.0
|
|
18
|
+
|
|
19
|
+
## 1.4.5
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- bebb39b6: chore: improve devDependencies and peerDependencies
|
|
24
|
+
- 8491b6dd: fix: optimise "types" exports from plugin
|
|
25
|
+
- Updated dependencies [bebb39b6]
|
|
26
|
+
- Updated dependencies [132f7b53]
|
|
27
|
+
- Updated dependencies [c4a7e4a3]
|
|
28
|
+
- @modern-js/plugin-router@1.2.8
|
|
29
|
+
- @modern-js/utils@1.3.7
|
|
30
|
+
|
|
31
|
+
## 1.4.4
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- 77116fc6: refactor(plugin-garfish): refactor garfish runtime plugin to new plugin mechanise
|
|
36
|
+
fix(plugin-garfish): fix plugin-garfish runtime config
|
|
37
|
+
- Updated dependencies [05ce88a0]
|
|
38
|
+
- Updated dependencies [a8df060e]
|
|
39
|
+
- Updated dependencies [c2046f37]
|
|
40
|
+
- Updated dependencies [a2261fed]
|
|
41
|
+
- Updated dependencies [cee0efcc]
|
|
42
|
+
- Updated dependencies [e31ce644]
|
|
43
|
+
- Updated dependencies [6a7acb81]
|
|
44
|
+
- Updated dependencies [681a1ff9]
|
|
45
|
+
- Updated dependencies [4e2026e4]
|
|
46
|
+
- @modern-js/core@1.6.0
|
|
47
|
+
- @modern-js/utils@1.3.6
|
|
48
|
+
- @modern-js/runtime-core@1.4.0
|
|
49
|
+
- @modern-js/plugin-router@1.2.6
|
|
50
|
+
|
|
3
51
|
## 1.4.3
|
|
4
52
|
|
|
5
53
|
### Patch Changes
|
package/dist/js/modern/util.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export const logger =
|
|
1
|
+
import { createDebugger } from '@modern-js/utils';
|
|
2
|
+
export const logger = createDebugger('plugin-garfish');
|
|
3
3
|
export const SUBMODULE_APP_COMPONENT_KEY = 'SubModuleComponent';
|
|
4
4
|
export function generateSubAppContainerKey(moduleInfo) {
|
|
5
5
|
return moduleInfo ? `modern_sub_app_container_${decodeURIComponent(moduleInfo === null || moduleInfo === void 0 ? void 0 : moduleInfo.name)}` : 'modern_sub_app_container';
|
package/dist/js/node/util.js
CHANGED
|
@@ -7,11 +7,9 @@ exports.SUBMODULE_APP_COMPONENT_KEY = void 0;
|
|
|
7
7
|
exports.generateSubAppContainerKey = generateSubAppContainerKey;
|
|
8
8
|
exports.logger = void 0;
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _utils = require("@modern-js/utils");
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const logger = (0, _debug.default)('modern-js:plugin-garfish');
|
|
12
|
+
const logger = (0, _utils.createDebugger)('plugin-garfish');
|
|
15
13
|
exports.logger = logger;
|
|
16
14
|
const SUBMODULE_APP_COMPONENT_KEY = 'SubModuleComponent';
|
|
17
15
|
exports.SUBMODULE_APP_COMPONENT_KEY = SUBMODULE_APP_COMPONENT_KEY;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export var logger =
|
|
1
|
+
import { createDebugger } from '@modern-js/utils';
|
|
2
|
+
export var logger = createDebugger('plugin-garfish');
|
|
3
3
|
export var SUBMODULE_APP_COMPONENT_KEY = 'SubModuleComponent';
|
|
4
4
|
export function generateSubAppContainerKey(moduleInfo) {
|
|
5
5
|
return moduleInfo ? "modern_sub_app_container_".concat(decodeURIComponent(moduleInfo === null || moduleInfo === void 0 ? void 0 : moduleInfo.name)) : 'modern_sub_app_container';
|
package/dist/types/util.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import createDebug from 'debug';
|
|
2
1
|
import { ModuleInfo } from './runtime';
|
|
3
|
-
export declare const logger:
|
|
2
|
+
export declare const logger: import("@modern-js/utils/compiled/debug").Debugger;
|
|
4
3
|
export declare const SUBMODULE_APP_COMPONENT_KEY = "SubModuleComponent";
|
|
5
4
|
export declare function generateSubAppContainerKey(moduleInfo?: ModuleInfo): string;
|
package/jest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.4.
|
|
14
|
+
"version": "1.4.6",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/runtime/index.d.ts",
|
|
17
17
|
"typesVersions": {
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
],
|
|
25
25
|
"runtime": [
|
|
26
26
|
"./dist/types/runtime/index.d.ts"
|
|
27
|
+
],
|
|
28
|
+
"types": [
|
|
29
|
+
"./type.d.ts"
|
|
27
30
|
]
|
|
28
31
|
}
|
|
29
32
|
},
|
|
@@ -31,6 +34,7 @@
|
|
|
31
34
|
"module": "./dist/js/treeshaking/runtime/index.js",
|
|
32
35
|
"jsnext:modern": "./dist/js/modern/index.js",
|
|
33
36
|
"exports": {
|
|
37
|
+
"./types": "./type.d.ts",
|
|
34
38
|
".": {
|
|
35
39
|
"node": {
|
|
36
40
|
"jsnext:source": "./src/index.ts",
|
|
@@ -46,20 +50,17 @@
|
|
|
46
50
|
},
|
|
47
51
|
"dependencies": {
|
|
48
52
|
"@babel/runtime": "^7",
|
|
49
|
-
"@modern-js/utils": "^1.
|
|
50
|
-
"@types/debug": "^4.1.7",
|
|
53
|
+
"@modern-js/utils": "^1.4.0",
|
|
51
54
|
"@types/react-loadable": "^5.5.6",
|
|
52
|
-
"debug": "^4.3.2",
|
|
53
55
|
"garfish": "^1.3.3",
|
|
54
56
|
"hoist-non-react-statics": "^3.3.2",
|
|
55
|
-
"lodash": "^4.17.21",
|
|
56
57
|
"react-loadable": "^5.5.0"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
|
-
"@modern-js/core": "
|
|
60
|
-
"@modern-js/plugin-router": "^1.2.
|
|
61
|
-
"@modern-js/runtime-core": "
|
|
62
|
-
"@modern-js/types": "^1.
|
|
60
|
+
"@modern-js/core": "1.7.0",
|
|
61
|
+
"@modern-js/plugin-router": "^1.2.9",
|
|
62
|
+
"@modern-js/runtime-core": "1.4.1",
|
|
63
|
+
"@modern-js/types": "^1.4.0",
|
|
63
64
|
"@scripts/build": "0.0.0",
|
|
64
65
|
"@scripts/jest-config": "0.0.0",
|
|
65
66
|
"@testing-library/jest-dom": "^5.16.1",
|
|
@@ -68,7 +69,6 @@
|
|
|
68
69
|
"@testing-library/user-event": "^13.5.0",
|
|
69
70
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
70
71
|
"@types/jest": "^26.0.24",
|
|
71
|
-
"@types/lodash": "^4.14.181",
|
|
72
72
|
"@types/node": "^14",
|
|
73
73
|
"@types/react": "^17",
|
|
74
74
|
"@types/react-dom": "^17",
|
|
@@ -81,17 +81,15 @@
|
|
|
81
81
|
"webpack-chain": "^6.5.1"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@modern-js/plugin-router": "^1.2.
|
|
85
|
-
"@modern-js/runtime-core": "^1.
|
|
86
|
-
"@modern-js/core": "^1.5.0",
|
|
84
|
+
"@modern-js/plugin-router": "^1.2.9",
|
|
85
|
+
"@modern-js/runtime-core": "^1.4.1",
|
|
87
86
|
"react": "^17"
|
|
88
87
|
},
|
|
89
88
|
"sideEffects": false,
|
|
90
89
|
"modernConfig": {},
|
|
91
90
|
"publishConfig": {
|
|
92
91
|
"registry": "https://registry.npmjs.org/",
|
|
93
|
-
"access": "public"
|
|
94
|
-
"types": "./dist/types/runtime/index.d.ts"
|
|
92
|
+
"access": "public"
|
|
95
93
|
},
|
|
96
94
|
"scripts": {
|
|
97
95
|
"new": "modern new",
|