@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 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
@@ -136,7 +136,6 @@ function getAppInstance(options, appInfo, manifest) {
136
136
  } = this.state;
137
137
 
138
138
  if (appInstance) {
139
- // eslint-disable-next-line @typescript-eslint/no-shadow
140
139
  const {
141
140
  appInfo
142
141
  } = appInstance;
@@ -1,5 +1,5 @@
1
- import createDebug from 'debug';
2
- export const logger = createDebug('modern-js:plugin-garfish');
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';
@@ -142,7 +142,6 @@ function getAppInstance(options, appInfo, manifest) {
142
142
  } = this.state;
143
143
 
144
144
  if (appInstance) {
145
- // eslint-disable-next-line @typescript-eslint/no-shadow
146
145
  const {
147
146
  appInfo
148
147
  } = appInstance;
@@ -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 _debug = _interopRequireDefault(require("debug"));
10
+ var _utils = require("@modern-js/utils");
11
11
 
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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;
@@ -220,7 +220,6 @@ function getAppInstance(options, appInfo, manifest) {
220
220
  appInstance = this.state.appInstance;
221
221
 
222
222
  if (appInstance) {
223
- // eslint-disable-next-line @typescript-eslint/no-shadow
224
223
  _appInfo = appInstance.appInfo;
225
224
 
226
225
  if (_appInfo.cache) {
@@ -1,5 +1,5 @@
1
- import createDebug from 'debug';
2
- export var logger = createDebug('modern-js:plugin-garfish');
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';
@@ -1,5 +1,4 @@
1
- import createDebug from 'debug';
2
1
  import { ModuleInfo } from './runtime';
3
- export declare const logger: createDebug.Debugger;
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
@@ -2,7 +2,6 @@ const sharedConfig = require('@scripts/jest-config');
2
2
 
3
3
  /** @type {import('@jest/types').Config.InitialOptions} */
4
4
  module.exports = {
5
- // eslint-disable-next-line node/no-unsupported-features/es-syntax
6
5
  ...sharedConfig,
7
6
  rootDir: __dirname,
8
7
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.4.4-beta.6",
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.3.5",
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": "^1.5.0",
60
- "@modern-js/plugin-router": "^1.2.5",
61
- "@modern-js/runtime-core": "^1.2.4",
62
- "@modern-js/types": "^1.3.5",
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.5",
85
- "@modern-js/runtime-core": "^1.2.4",
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",