@modern-js/app-tools 1.0.0-rc.4 → 1.0.0-rc.9

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,110 @@
1
1
  # @modern-js/app-tools
2
2
 
3
+ ## 1.0.0-rc.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 224f7fe: fix server route match
8
+ - 204c626: feat: initial
9
+ - Updated dependencies [224f7fe]
10
+ - Updated dependencies [204c626]
11
+ - @modern-js/core@1.0.0-rc.9
12
+ - @modern-js/i18n-cli-language-detector@1.0.0-rc.9
13
+ - @modern-js/plugin-analyze@1.0.0-rc.9
14
+ - @modern-js/plugin-fast-refresh@1.0.0-rc.9
15
+ - @modern-js/plugin-i18n@1.0.0-rc.9
16
+ - @modern-js/webpack@1.0.0-rc.9
17
+ - @modern-js/new-action@1.0.0-rc.9
18
+ - @modern-js/plugin-polyfill@1.0.0-rc.9
19
+ - @modern-js/server@1.0.0-rc.9
20
+ - @modern-js/plugin@1.0.0-rc.9
21
+ - @modern-js/types@1.0.0-rc.9
22
+ - @modern-js/utils@1.0.0-rc.9
23
+
24
+ ## 1.0.0-rc.8
25
+
26
+ ### Patch Changes
27
+
28
+ - 224f7fe: fix server route match
29
+ - 204c626: feat: initial
30
+ - Updated dependencies [224f7fe]
31
+ - Updated dependencies [204c626]
32
+ - @modern-js/core@1.0.0-rc.8
33
+ - @modern-js/i18n-cli-language-detector@1.0.0-rc.8
34
+ - @modern-js/plugin-analyze@1.0.0-rc.8
35
+ - @modern-js/plugin-fast-refresh@1.0.0-rc.8
36
+ - @modern-js/plugin-i18n@1.0.0-rc.8
37
+ - @modern-js/webpack@1.0.0-rc.8
38
+ - @modern-js/new-action@1.0.0-rc.8
39
+ - @modern-js/plugin-polyfill@1.0.0-rc.8
40
+ - @modern-js/server@1.0.0-rc.8
41
+ - @modern-js/plugin@1.0.0-rc.8
42
+ - @modern-js/types@1.0.0-rc.8
43
+ - @modern-js/utils@1.0.0-rc.8
44
+
45
+ ## 1.0.0-rc.7
46
+
47
+ ### Patch Changes
48
+
49
+ - 224f7fe: fix server route match
50
+ - 204c626: feat: initial
51
+ - Updated dependencies [224f7fe]
52
+ - Updated dependencies [204c626]
53
+ - @modern-js/core@1.0.0-rc.7
54
+ - @modern-js/i18n-cli-language-detector@1.0.0-rc.7
55
+ - @modern-js/plugin-analyze@1.0.0-rc.7
56
+ - @modern-js/plugin-fast-refresh@1.0.0-rc.7
57
+ - @modern-js/plugin-i18n@1.0.0-rc.7
58
+ - @modern-js/webpack@1.0.0-rc.7
59
+ - @modern-js/new-action@1.0.0-rc.7
60
+ - @modern-js/plugin-polyfill@1.0.0-rc.7
61
+ - @modern-js/server@1.0.0-rc.7
62
+ - @modern-js/plugin@1.0.0-rc.7
63
+ - @modern-js/types@1.0.0-rc.7
64
+ - @modern-js/utils@1.0.0-rc.7
65
+
66
+ ## 1.0.0-rc.6
67
+
68
+ ### Patch Changes
69
+
70
+ - 224f7fe: fix server route match
71
+ - 204c626: feat: initial
72
+ - Updated dependencies [224f7fe]
73
+ - Updated dependencies [204c626]
74
+ - @modern-js/core@1.0.0-rc.6
75
+ - @modern-js/i18n-cli-language-detector@1.0.0-rc.6
76
+ - @modern-js/plugin-analyze@1.0.0-rc.6
77
+ - @modern-js/plugin-fast-refresh@1.0.0-rc.6
78
+ - @modern-js/plugin-i18n@1.0.0-rc.6
79
+ - @modern-js/webpack@1.0.0-rc.6
80
+ - @modern-js/new-action@1.0.0-rc.6
81
+ - @modern-js/plugin-polyfill@1.0.0-rc.6
82
+ - @modern-js/server@1.0.0-rc.6
83
+ - @modern-js/plugin@1.0.0-rc.6
84
+ - @modern-js/types@1.0.0-rc.6
85
+ - @modern-js/utils@1.0.0-rc.6
86
+
87
+ ## 1.0.0-rc.5
88
+
89
+ ### Patch Changes
90
+
91
+ - 224f7fe: fix server route match
92
+ - 204c626: feat: initial
93
+ - Updated dependencies [224f7fe]
94
+ - Updated dependencies [204c626]
95
+ - @modern-js/core@1.0.0-rc.5
96
+ - @modern-js/i18n-cli-language-detector@1.0.0-rc.5
97
+ - @modern-js/plugin-analyze@1.0.0-rc.5
98
+ - @modern-js/plugin-fast-refresh@1.0.0-rc.5
99
+ - @modern-js/plugin-i18n@1.0.0-rc.5
100
+ - @modern-js/webpack@1.0.0-rc.5
101
+ - @modern-js/new-action@1.0.0-rc.5
102
+ - @modern-js/plugin-polyfill@1.0.0-rc.5
103
+ - @modern-js/server@1.0.0-rc.5
104
+ - @modern-js/plugin@1.0.0-rc.5
105
+ - @modern-js/types@1.0.0-rc.5
106
+ - @modern-js/utils@1.0.0-rc.5
107
+
3
108
  ## 1.0.0-rc.4
4
109
 
5
110
  ### Patch Changes
@@ -59,12 +59,8 @@ export const build = async () => {
59
59
  /* eslint-disable react-hooks/rules-of-hooks */
60
60
 
61
61
 
62
- const {
63
- value: resolvedConfig
64
- } = useResolvedConfigContext();
65
- const {
66
- value: appContext
67
- } = useAppContext();
62
+ const resolvedConfig = useResolvedConfigContext();
63
+ const appContext = useAppContext();
68
64
  /* eslint-enable react-hooks/rules-of-hooks */
69
65
 
70
66
  const outputPath = appContext.distDirectory;
@@ -11,12 +11,8 @@ import { createCompiler } from "../utils/createCompiler";
11
11
  import { createServer } from "../utils/createServer";
12
12
  export const dev = async () => {
13
13
  /* eslint-disable react-hooks/rules-of-hooks */
14
- const {
15
- value: appContext
16
- } = useAppContext();
17
- const {
18
- value: userConfig
19
- } = useResolvedConfigContext();
14
+ const appContext = useAppContext();
15
+ const userConfig = useResolvedConfigContext();
20
16
  /* eslint-enable react-hooks/rules-of-hooks */
21
17
 
22
18
  const {
@@ -4,12 +4,8 @@ import server from '@modern-js/server';
4
4
  import { printInstructions } from "../utils/printInstructions";
5
5
  export const start = async () => {
6
6
  /* eslint-disable react-hooks/rules-of-hooks */
7
- const {
8
- value: appContext
9
- } = useAppContext();
10
- const {
11
- value: userConfig
12
- } = useResolvedConfigContext();
7
+ const appContext = useAppContext();
8
+ const userConfig = useResolvedConfigContext();
13
9
  /* eslint-enable react-hooks/rules-of-hooks */
14
10
 
15
11
  const {
@@ -74,12 +74,8 @@ const build = async () => {
74
74
  /* eslint-disable react-hooks/rules-of-hooks */
75
75
 
76
76
 
77
- const {
78
- value: resolvedConfig
79
- } = (0, _core.useResolvedConfigContext)();
80
- const {
81
- value: appContext
82
- } = (0, _core.useAppContext)();
77
+ const resolvedConfig = (0, _core.useResolvedConfigContext)();
78
+ const appContext = (0, _core.useAppContext)();
83
79
  /* eslint-enable react-hooks/rules-of-hooks */
84
80
 
85
81
  const outputPath = appContext.distDirectory;
@@ -23,12 +23,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
23
23
 
24
24
  const dev = async () => {
25
25
  /* eslint-disable react-hooks/rules-of-hooks */
26
- const {
27
- value: appContext
28
- } = (0, _core.useAppContext)();
29
- const {
30
- value: userConfig
31
- } = (0, _core.useResolvedConfigContext)();
26
+ const appContext = (0, _core.useAppContext)();
27
+ const userConfig = (0, _core.useResolvedConfigContext)();
32
28
  /* eslint-enable react-hooks/rules-of-hooks */
33
29
 
34
30
  const {
@@ -17,12 +17,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
17
 
18
18
  const start = async () => {
19
19
  /* eslint-disable react-hooks/rules-of-hooks */
20
- const {
21
- value: appContext
22
- } = (0, _core.useAppContext)();
23
- const {
24
- value: userConfig
25
- } = (0, _core.useResolvedConfigContext)();
20
+ const appContext = (0, _core.useAppContext)();
21
+ const userConfig = (0, _core.useResolvedConfigContext)();
26
22
  /* eslint-enable react-hooks/rules-of-hooks */
27
23
 
28
24
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/app-tools",
3
- "version": "1.0.0-rc.4",
3
+ "version": "1.0.0-rc.9",
4
4
  "jsnext:source": "./src/index.ts",
5
5
  "types": "./lib/types.d.ts",
6
6
  "main": "./dist/js/node/index.js",
@@ -21,18 +21,18 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@babel/runtime": "^7",
24
- "@modern-js/core": "^1.0.0-rc.4",
25
- "@modern-js/types": "^1.0.0-rc.4",
26
- "@modern-js/i18n-cli-language-detector": "^1.0.0-rc.4",
27
- "@modern-js/new-action": "^1.0.0-rc.4",
28
- "@modern-js/plugin": "^1.0.0-rc.4",
29
- "@modern-js/plugin-analyze": "^1.0.0-rc.4",
30
- "@modern-js/plugin-fast-refresh": "^1.0.0-rc.4",
31
- "@modern-js/plugin-i18n": "^1.0.0-rc.4",
32
- "@modern-js/plugin-polyfill": "^1.0.0-rc.4",
33
- "@modern-js/server": "^1.0.0-rc.4",
34
- "@modern-js/utils": "^1.0.0-rc.4",
35
- "@modern-js/webpack": "^1.0.0-rc.4",
24
+ "@modern-js/core": "^1.0.0-rc.9",
25
+ "@modern-js/types": "^1.0.0-rc.9",
26
+ "@modern-js/i18n-cli-language-detector": "^1.0.0-rc.9",
27
+ "@modern-js/new-action": "^1.0.0-rc.9",
28
+ "@modern-js/plugin": "^1.0.0-rc.9",
29
+ "@modern-js/plugin-analyze": "^1.0.0-rc.9",
30
+ "@modern-js/plugin-fast-refresh": "^1.0.0-rc.9",
31
+ "@modern-js/plugin-i18n": "^1.0.0-rc.9",
32
+ "@modern-js/plugin-polyfill": "^1.0.0-rc.9",
33
+ "@modern-js/server": "^1.0.0-rc.9",
34
+ "@modern-js/utils": "^1.0.0-rc.9",
35
+ "@modern-js/webpack": "^1.0.0-rc.9",
36
36
  "webpack": "^5.54.0"
37
37
  },
38
38
  "devDependencies": {
@@ -41,8 +41,8 @@
41
41
  "@types/react": "^17",
42
42
  "@types/react-dom": "^17",
43
43
  "typescript": "^4",
44
- "@modern-js/plugin-testing": "^1.0.0-rc.3",
45
- "@modern-js/module-tools": "^1.0.0-rc.3"
44
+ "@modern-js/plugin-testing": "^1.0.0-rc.9",
45
+ "@modern-js/module-tools": "^1.0.0-rc.9"
46
46
  },
47
47
  "sideEffects": false,
48
48
  "modernConfig": {
@@ -50,7 +50,7 @@
50
50
  "packageMode": "node-js"
51
51
  }
52
52
  },
53
- "publicCnfig": {
53
+ "publishConfig": {
54
54
  "registry": "https://registry.npmjs.org/",
55
55
  "access": "public"
56
56
  },
@@ -74,8 +74,8 @@ export const build = async () => {
74
74
  };
75
75
 
76
76
  /* eslint-disable react-hooks/rules-of-hooks */
77
- const { value: resolvedConfig } = useResolvedConfigContext();
78
- const { value: appContext } = useAppContext();
77
+ const resolvedConfig = useResolvedConfigContext();
78
+ const appContext = useAppContext();
79
79
  /* eslint-enable react-hooks/rules-of-hooks */
80
80
 
81
81
  const outputPath = appContext.distDirectory;
@@ -21,8 +21,8 @@ import { createServer } from '../utils/createServer';
21
21
 
22
22
  export const dev = async () => {
23
23
  /* eslint-disable react-hooks/rules-of-hooks */
24
- const { value: appContext } = useAppContext();
25
- const { value: userConfig } = useResolvedConfigContext();
24
+ const appContext = useAppContext();
25
+ const userConfig = useResolvedConfigContext();
26
26
  /* eslint-enable react-hooks/rules-of-hooks */
27
27
 
28
28
  const { appDirectory, distDirectory, port } = appContext;
@@ -5,8 +5,8 @@ import { printInstructions } from '../utils/printInstructions';
5
5
 
6
6
  export const start = async () => {
7
7
  /* eslint-disable react-hooks/rules-of-hooks */
8
- const { value: appContext } = useAppContext();
9
- const { value: userConfig } = useResolvedConfigContext();
8
+ const appContext = useAppContext();
9
+ const userConfig = useResolvedConfigContext();
10
10
  /* eslint-enable react-hooks/rules-of-hooks */
11
11
 
12
12
  const { appDirectory, port } = appContext;