@modern-js/plugin-state 1.0.0-rc.13 → 1.0.0-rc.17

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,57 @@
1
1
  # @modern-js/plugin-state
2
2
 
3
+ ## 1.0.0-rc.17
4
+
5
+ ### Patch Changes
6
+
7
+ - 224f7fe: fix server route match
8
+ - 30ac27c: feat: add generator package description
9
+ - 204c626: feat: initial
10
+ - fix: #118 #104
11
+ - Updated dependencies [224f7fe]
12
+ - Updated dependencies [30ac27c]
13
+ - Updated dependencies [204c626]
14
+ - Updated dependencies [undefined]
15
+ - @modern-js/core@1.0.0-rc.17
16
+ - @modern-js/runtime-core@1.0.0-rc.17
17
+
18
+ ## 1.0.0-rc.16
19
+
20
+ ### Patch Changes
21
+
22
+ - 224f7fe: fix server route match
23
+ - 30ac27c: feat: add generator package description
24
+ - 204c626: feat: initial
25
+ - Updated dependencies [224f7fe]
26
+ - Updated dependencies [30ac27c]
27
+ - Updated dependencies [204c626]
28
+ - @modern-js/core@1.0.0-rc.16
29
+ - @modern-js/runtime-core@1.0.0-rc.16
30
+
31
+ ## 1.0.0-rc.15
32
+
33
+ ### Patch Changes
34
+
35
+ - 224f7fe: fix server route match
36
+ - 30ac27c: feat: add generator package description
37
+ - 204c626: feat: initial
38
+ - Updated dependencies [224f7fe]
39
+ - Updated dependencies [30ac27c]
40
+ - Updated dependencies [204c626]
41
+ - @modern-js/core@1.0.0-rc.15
42
+ - @modern-js/runtime-core@1.0.0-rc.15
43
+
44
+ ## 1.0.0-rc.14
45
+
46
+ ### Patch Changes
47
+
48
+ - 224f7fe: fix server route match
49
+ - 204c626: feat: initial
50
+ - Updated dependencies [224f7fe]
51
+ - Updated dependencies [204c626]
52
+ - @modern-js/core@1.0.0-rc.14
53
+ - @modern-js/runtime-core@1.0.0-rc.14
54
+
3
55
  ## 1.0.0-rc.13
4
56
 
5
57
  ### Patch Changes
@@ -1,6 +1,5 @@
1
- import path from 'path';
1
+ import { path, getEntryOptions, createRuntimeExportsUtils, PLUGIN_SCHEMAS } from '@modern-js/utils';
2
2
  import { createPlugin, useAppContext, useResolvedConfigContext } from '@modern-js/core';
3
- import { getEntryOptions, createRuntimeExportsUtils, PLUGIN_SCHEMAS } from '@modern-js/utils';
4
3
  import "../types";
5
4
  const PLUGIN_IDENTIFIER = 'state';
6
5
  const index = createPlugin(() => {
@@ -5,22 +5,18 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _path = _interopRequireDefault(require("path"));
8
+ var _utils = require("@modern-js/utils");
9
9
 
10
10
  var _core = require("@modern-js/core");
11
11
 
12
- var _utils = require("@modern-js/utils");
13
-
14
12
  require("../types");
15
13
 
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
14
  const PLUGIN_IDENTIFIER = 'state';
19
15
  const index = (0, _core.createPlugin)(() => {
20
16
  const stateConfigMap = new Map();
21
17
  let pluginsExportsUtils;
22
18
 
23
- const stateModulePath = _path.default.resolve(__dirname, '../../../../');
19
+ const stateModulePath = _utils.path.resolve(__dirname, '../../../../');
24
20
 
25
21
  return {
26
22
  config() {
@@ -1,6 +1,5 @@
1
- import path from 'path';
1
+ import { path, getEntryOptions, createRuntimeExportsUtils, PLUGIN_SCHEMAS } from '@modern-js/utils';
2
2
  import { createPlugin, useAppContext, useResolvedConfigContext } from '@modern-js/core';
3
- import { getEntryOptions, createRuntimeExportsUtils, PLUGIN_SCHEMAS } from '@modern-js/utils';
4
3
  import "../types";
5
4
  var PLUGIN_IDENTIFIER = 'state';
6
5
  var index = createPlugin(function () {
package/package.json CHANGED
@@ -1,77 +1,77 @@
1
1
  {
2
- "name": "@modern-js/plugin-state",
3
- "version": "1.0.0-rc.13",
4
- "jsnext:source": "./src/index.ts",
5
- "types": "./dist/types/runtime/index.d.ts",
6
- "main": "./dist/js/node/runtime/index.js",
7
- "module": "./dist/js/treeshaking/runtime/index.js",
8
- "jsnext:modern": "./dist/js/modern/runtime/index.js",
9
- "exports": {
10
- ".": {
11
- "node": {
12
- "import": "./dist/js/modern/runtime/index.js",
13
- "require": "./dist/js/node/runtime/index.js"
14
- },
15
- "default": "./dist/js/treeshaking/runtime/index.js"
16
- },
17
- "./cli": "./dist/js/node/cli/index.js",
18
- "./plugins": {
19
- "node": {
20
- "import": "./dist/js/node/plugins.js",
21
- "require": "./dist/js/node/plugins.js"
22
- },
23
- "default": "./dist/js/treeshaking/plugins.js"
24
- }
25
- },
26
- "typesVersions": {
27
- "*": {
28
- ".": [
29
- "./dist/types/runtime/index.d.ts"
30
- ],
31
- "plugins": [
32
- "./dist/types/plugins.d.ts"
33
- ]
34
- }
35
- },
36
- "dependencies": {
37
- "@babel/runtime": "^7",
38
- "@modern-js-reduck/plugin-auto-actions": "^1.0.0-rc.1",
39
- "@modern-js-reduck/plugin-devtools": "^1.0.0-rc.1",
40
- "@modern-js-reduck/plugin-effects": "^1.0.0-rc.1",
41
- "@modern-js-reduck/plugin-immutable": "^1.0.0-rc.1",
42
- "@modern-js-reduck/react": "^1.0.0-rc.1",
43
- "@modern-js-reduck/store": "^1.0.0-rc.1",
44
- "@types/redux-logger": "^3.0.9",
45
- "redux-logger": "^3.0.6"
46
- },
47
- "devDependencies": {
48
- "@modern-js/core": "^1.0.0-rc.13",
49
- "@modern-js/plugin": "^1.0.0-rc.13",
50
- "@modern-js/runtime-core": "^1.0.0-rc.13",
51
- "@modern-js/utils": "^1.0.0-rc.13",
52
- "@types/jest": "^26",
53
- "@types/node": "^14",
54
- "@types/react": "^17",
55
- "@types/react-dom": "^17",
56
- "react": "^17.0.2",
57
- "typescript": "^4",
58
- "@modern-js/plugin-testing": "^1.0.0-rc.13",
59
- "@modern-js/module-tools": "^1.0.0-rc.13"
60
- },
61
- "sideEffects": false,
62
- "peerDependencies": {
63
- "@modern-js/core": "^1.0.0-rc.13",
64
- "@modern-js/runtime-core": "^1.0.0-rc.13",
65
- "react": "^17.0.2"
66
- },
67
- "modernConfig": {},
68
- "publishConfig": {
69
- "registry": "https://registry.npmjs.org/",
70
- "access": "public"
71
- },
72
- "scripts": {
73
- "new": "modern new",
74
- "build": "modern build",
75
- "test": "modern test --passWithNoTests"
76
- }
77
- }
2
+ "name": "@modern-js/plugin-state",
3
+ "version": "1.0.0-rc.17",
4
+ "jsnext:source": "./src/index.ts",
5
+ "types": "./dist/types/runtime/index.d.ts",
6
+ "main": "./dist/js/node/runtime/index.js",
7
+ "module": "./dist/js/treeshaking/runtime/index.js",
8
+ "jsnext:modern": "./dist/js/modern/runtime/index.js",
9
+ "exports": {
10
+ ".": {
11
+ "node": {
12
+ "import": "./dist/js/modern/runtime/index.js",
13
+ "require": "./dist/js/node/runtime/index.js"
14
+ },
15
+ "default": "./dist/js/treeshaking/runtime/index.js"
16
+ },
17
+ "./cli": "./dist/js/node/cli/index.js",
18
+ "./plugins": {
19
+ "node": {
20
+ "import": "./dist/js/node/plugins.js",
21
+ "require": "./dist/js/node/plugins.js"
22
+ },
23
+ "default": "./dist/js/treeshaking/plugins.js"
24
+ }
25
+ },
26
+ "typesVersions": {
27
+ "*": {
28
+ ".": [
29
+ "./dist/types/runtime/index.d.ts"
30
+ ],
31
+ "plugins": [
32
+ "./dist/types/plugins.d.ts"
33
+ ]
34
+ }
35
+ },
36
+ "dependencies": {
37
+ "@babel/runtime": "^7",
38
+ "@modern-js-reduck/plugin-auto-actions": "^1.0.0-rc.1",
39
+ "@modern-js-reduck/plugin-devtools": "^1.0.0-rc.1",
40
+ "@modern-js-reduck/plugin-effects": "^1.0.0-rc.1",
41
+ "@modern-js-reduck/plugin-immutable": "^1.0.0-rc.1",
42
+ "@modern-js-reduck/react": "^1.0.0-rc.1",
43
+ "@modern-js-reduck/store": "^1.0.0-rc.1",
44
+ "@types/redux-logger": "^3.0.9",
45
+ "redux-logger": "^3.0.6"
46
+ },
47
+ "devDependencies": {
48
+ "@modern-js/core": "^1.0.0-rc.17",
49
+ "@modern-js/plugin": "^1.0.0-rc.17",
50
+ "@modern-js/runtime-core": "^1.0.0-rc.17",
51
+ "@modern-js/utils": "^1.0.0-rc.17",
52
+ "@types/jest": "^26",
53
+ "@types/node": "^14",
54
+ "@types/react": "^17",
55
+ "@types/react-dom": "^17",
56
+ "react": "^17.0.2",
57
+ "typescript": "^4",
58
+ "@modern-js/plugin-testing": "^1.0.0-rc.17",
59
+ "@modern-js/module-tools": "^1.0.0-rc.17"
60
+ },
61
+ "sideEffects": false,
62
+ "peerDependencies": {
63
+ "@modern-js/core": "^1.0.0-rc.17",
64
+ "@modern-js/runtime-core": "^1.0.0-rc.17",
65
+ "react": "^17.0.2"
66
+ },
67
+ "modernConfig": {},
68
+ "publishConfig": {
69
+ "registry": "https://registry.npmjs.org/",
70
+ "access": "public"
71
+ },
72
+ "scripts": {
73
+ "new": "modern new",
74
+ "build": "modern build",
75
+ "test": "modern test --passWithNoTests"
76
+ }
77
+ }
package/src/cli/index.ts CHANGED
@@ -1,14 +1,14 @@
1
- import path from 'path';
2
- import {
3
- createPlugin,
4
- useAppContext,
5
- useResolvedConfigContext,
6
- } from '@modern-js/core';
7
1
  import {
2
+ path,
8
3
  getEntryOptions,
9
4
  createRuntimeExportsUtils,
10
5
  PLUGIN_SCHEMAS,
11
6
  } from '@modern-js/utils';
7
+ import {
8
+ createPlugin,
9
+ useAppContext,
10
+ useResolvedConfigContext,
11
+ } from '@modern-js/core';
12
12
  import {} from '../types';
13
13
 
14
14
  const PLUGIN_IDENTIFIER = 'state';