@modern-js/plugin-garfish 1.4.4-beta.5 → 1.4.5
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 +32 -0
- package/dist/js/modern/runtime/plugin.js +6 -10
- package/dist/js/modern/runtime/utils/apps.js +0 -1
- package/dist/js/node/runtime/plugin.js +6 -11
- package/dist/js/node/runtime/utils/apps.js +0 -1
- package/dist/js/treeshaking/runtime/plugin.js +5 -9
- package/dist/js/treeshaking/runtime/utils/apps.js +0 -1
- package/dist/types/runtime/plugin.d.ts +1 -1
- package/jest.config.js +0 -1
- package/package.json +13 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @modern-js/plugin-garfish
|
|
2
2
|
|
|
3
|
+
## 1.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bebb39b6: chore: improve devDependencies and peerDependencies
|
|
8
|
+
- 8491b6dd: fix: optimise "types" exports from plugin
|
|
9
|
+
- Updated dependencies [bebb39b6]
|
|
10
|
+
- Updated dependencies [132f7b53]
|
|
11
|
+
- Updated dependencies [c4a7e4a3]
|
|
12
|
+
- @modern-js/plugin-router@1.2.8
|
|
13
|
+
- @modern-js/utils@1.3.7
|
|
14
|
+
|
|
15
|
+
## 1.4.4
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 77116fc6: refactor(plugin-garfish): refactor garfish runtime plugin to new plugin mechanise
|
|
20
|
+
fix(plugin-garfish): fix plugin-garfish runtime config
|
|
21
|
+
- Updated dependencies [05ce88a0]
|
|
22
|
+
- Updated dependencies [a8df060e]
|
|
23
|
+
- Updated dependencies [c2046f37]
|
|
24
|
+
- Updated dependencies [a2261fed]
|
|
25
|
+
- Updated dependencies [cee0efcc]
|
|
26
|
+
- Updated dependencies [e31ce644]
|
|
27
|
+
- Updated dependencies [6a7acb81]
|
|
28
|
+
- Updated dependencies [681a1ff9]
|
|
29
|
+
- Updated dependencies [4e2026e4]
|
|
30
|
+
- @modern-js/core@1.6.0
|
|
31
|
+
- @modern-js/utils@1.3.6
|
|
32
|
+
- @modern-js/runtime-core@1.4.0
|
|
33
|
+
- @modern-js/plugin-router@1.2.6
|
|
34
|
+
|
|
3
35
|
## 1.4.3
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _merge from "lodash/merge";
|
|
2
1
|
const _excluded = ["manifest"];
|
|
3
2
|
|
|
4
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -58,20 +57,17 @@ async function initOptions(manifest = {}, options) {
|
|
|
58
57
|
} // export default GarfishPlugin;
|
|
59
58
|
|
|
60
59
|
|
|
61
|
-
export default (
|
|
60
|
+
export default (config => ({
|
|
62
61
|
name: '@modern-js/garfish-plugin',
|
|
63
|
-
setup:
|
|
62
|
+
setup: () => {
|
|
64
63
|
setExternal();
|
|
65
64
|
|
|
66
|
-
const
|
|
67
|
-
{
|
|
65
|
+
const {
|
|
68
66
|
manifest
|
|
69
|
-
} =
|
|
70
|
-
options = _objectWithoutProperties(
|
|
67
|
+
} = config,
|
|
68
|
+
options = _objectWithoutProperties(config, _excluded);
|
|
71
69
|
|
|
72
|
-
logger('createPlugin',
|
|
73
|
-
config
|
|
74
|
-
});
|
|
70
|
+
logger('createPlugin', config);
|
|
75
71
|
const promise = initOptions(manifest, options);
|
|
76
72
|
return {
|
|
77
73
|
hoc({
|
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _merge3 = _interopRequireDefault(require("lodash/merge"));
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _hoistNonReactStatics = _interopRequireDefault(require("hoist-non-react-statics"));
|
|
@@ -75,20 +73,17 @@ async function initOptions(manifest = {}, options) {
|
|
|
75
73
|
} // export default GarfishPlugin;
|
|
76
74
|
|
|
77
75
|
|
|
78
|
-
var _default =
|
|
76
|
+
var _default = config => ({
|
|
79
77
|
name: '@modern-js/garfish-plugin',
|
|
80
|
-
setup:
|
|
78
|
+
setup: () => {
|
|
81
79
|
(0, _setExternal.default)();
|
|
82
80
|
|
|
83
|
-
const
|
|
84
|
-
{
|
|
81
|
+
const {
|
|
85
82
|
manifest
|
|
86
|
-
} =
|
|
87
|
-
options = _objectWithoutProperties(
|
|
83
|
+
} = config,
|
|
84
|
+
options = _objectWithoutProperties(config, _excluded);
|
|
88
85
|
|
|
89
|
-
(0, _util.logger)('createPlugin',
|
|
90
|
-
config
|
|
91
|
-
});
|
|
86
|
+
(0, _util.logger)('createPlugin', config);
|
|
92
87
|
const promise = initOptions(manifest, options);
|
|
93
88
|
return {
|
|
94
89
|
hoc({
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
2
|
|
|
3
|
-
import _merge from "lodash/merge";
|
|
4
3
|
var _excluded = ["manifest"];
|
|
5
4
|
|
|
6
5
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -120,19 +119,16 @@ function _initOptions() {
|
|
|
120
119
|
return _initOptions.apply(this, arguments);
|
|
121
120
|
}
|
|
122
121
|
|
|
123
|
-
export default (function (
|
|
122
|
+
export default (function (config) {
|
|
124
123
|
return {
|
|
125
124
|
name: '@modern-js/garfish-plugin',
|
|
126
|
-
setup: function setup(
|
|
125
|
+
setup: function setup() {
|
|
127
126
|
setExternal();
|
|
128
127
|
|
|
129
|
-
var
|
|
130
|
-
|
|
131
|
-
options = _objectWithoutProperties(_merge2, _excluded);
|
|
128
|
+
var manifest = config.manifest,
|
|
129
|
+
options = _objectWithoutProperties(config, _excluded);
|
|
132
130
|
|
|
133
|
-
logger('createPlugin',
|
|
134
|
-
config: config
|
|
135
|
-
});
|
|
131
|
+
logger('createPlugin', config);
|
|
136
132
|
var promise = initOptions(manifest, options);
|
|
137
133
|
return {
|
|
138
134
|
hoc: function hoc(_ref, next) {
|
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.5",
|
|
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,7 +50,7 @@
|
|
|
46
50
|
},
|
|
47
51
|
"dependencies": {
|
|
48
52
|
"@babel/runtime": "^7",
|
|
49
|
-
"@modern-js/utils": "^1.3.
|
|
53
|
+
"@modern-js/utils": "^1.3.7",
|
|
50
54
|
"@types/debug": "^4.1.7",
|
|
51
55
|
"@types/react-loadable": "^5.5.6",
|
|
52
56
|
"debug": "^4.3.2",
|
|
@@ -56,10 +60,10 @@
|
|
|
56
60
|
"react-loadable": "^5.5.0"
|
|
57
61
|
},
|
|
58
62
|
"devDependencies": {
|
|
59
|
-
"@modern-js/core": "
|
|
60
|
-
"@modern-js/plugin-router": "^1.2.
|
|
61
|
-
"@modern-js/runtime-core": "
|
|
62
|
-
"@modern-js/types": "^1.3.
|
|
63
|
+
"@modern-js/core": "1.6.1",
|
|
64
|
+
"@modern-js/plugin-router": "^1.2.8",
|
|
65
|
+
"@modern-js/runtime-core": "1.4.0",
|
|
66
|
+
"@modern-js/types": "^1.3.6",
|
|
63
67
|
"@scripts/build": "0.0.0",
|
|
64
68
|
"@scripts/jest-config": "0.0.0",
|
|
65
69
|
"@testing-library/jest-dom": "^5.16.1",
|
|
@@ -81,17 +85,15 @@
|
|
|
81
85
|
"webpack-chain": "^6.5.1"
|
|
82
86
|
},
|
|
83
87
|
"peerDependencies": {
|
|
84
|
-
"@modern-js/plugin-router": "^1.2.
|
|
85
|
-
"@modern-js/runtime-core": "^1.
|
|
86
|
-
"@modern-js/core": "^1.5.0",
|
|
88
|
+
"@modern-js/plugin-router": "^1.2.8",
|
|
89
|
+
"@modern-js/runtime-core": "^1.4.0",
|
|
87
90
|
"react": "^17"
|
|
88
91
|
},
|
|
89
92
|
"sideEffects": false,
|
|
90
93
|
"modernConfig": {},
|
|
91
94
|
"publishConfig": {
|
|
92
95
|
"registry": "https://registry.npmjs.org/",
|
|
93
|
-
"access": "public"
|
|
94
|
-
"types": "./dist/types/runtime/index.d.ts"
|
|
96
|
+
"access": "public"
|
|
95
97
|
},
|
|
96
98
|
"scripts": {
|
|
97
99
|
"new": "modern new",
|