@modern-js/plugin-garfish 1.4.5 → 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 +16 -0
- package/dist/js/modern/util.js +2 -2
- package/dist/js/node/util.js +2 -4
- package/dist/js/treeshaking/util.js +2 -2
- package/dist/types/util.d.ts +1 -2
- package/package.json +8 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
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
|
+
|
|
3
19
|
## 1.4.5
|
|
4
20
|
|
|
5
21
|
### 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/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": {
|
|
@@ -50,20 +50,17 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@babel/runtime": "^7",
|
|
53
|
-
"@modern-js/utils": "^1.
|
|
54
|
-
"@types/debug": "^4.1.7",
|
|
53
|
+
"@modern-js/utils": "^1.4.0",
|
|
55
54
|
"@types/react-loadable": "^5.5.6",
|
|
56
|
-
"debug": "^4.3.2",
|
|
57
55
|
"garfish": "^1.3.3",
|
|
58
56
|
"hoist-non-react-statics": "^3.3.2",
|
|
59
|
-
"lodash": "^4.17.21",
|
|
60
57
|
"react-loadable": "^5.5.0"
|
|
61
58
|
},
|
|
62
59
|
"devDependencies": {
|
|
63
|
-
"@modern-js/core": "1.
|
|
64
|
-
"@modern-js/plugin-router": "^1.2.
|
|
65
|
-
"@modern-js/runtime-core": "1.4.
|
|
66
|
-
"@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",
|
|
67
64
|
"@scripts/build": "0.0.0",
|
|
68
65
|
"@scripts/jest-config": "0.0.0",
|
|
69
66
|
"@testing-library/jest-dom": "^5.16.1",
|
|
@@ -72,7 +69,6 @@
|
|
|
72
69
|
"@testing-library/user-event": "^13.5.0",
|
|
73
70
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
74
71
|
"@types/jest": "^26.0.24",
|
|
75
|
-
"@types/lodash": "^4.14.181",
|
|
76
72
|
"@types/node": "^14",
|
|
77
73
|
"@types/react": "^17",
|
|
78
74
|
"@types/react-dom": "^17",
|
|
@@ -85,8 +81,8 @@
|
|
|
85
81
|
"webpack-chain": "^6.5.1"
|
|
86
82
|
},
|
|
87
83
|
"peerDependencies": {
|
|
88
|
-
"@modern-js/plugin-router": "^1.2.
|
|
89
|
-
"@modern-js/runtime-core": "^1.4.
|
|
84
|
+
"@modern-js/plugin-router": "^1.2.9",
|
|
85
|
+
"@modern-js/runtime-core": "^1.4.1",
|
|
90
86
|
"react": "^17"
|
|
91
87
|
},
|
|
92
88
|
"sideEffects": false,
|