@modern-js/devtools-client 2.54.5 → 2.55.0

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.
Files changed (30) hide show
  1. package/dist/modern.config.json +66 -62
  2. package/dist/public/sw-proxy.js +1 -1
  3. package/dist/route.json +2 -2
  4. package/dist/routes-manifest.json +33 -35
  5. package/dist/static/css/{599.e744b37c.css → 465.e744b37c.css} +1 -1
  6. package/dist/static/css/{518.861d0891.css → 587.861d0891.css} +1 -1
  7. package/dist/static/css/components.41191267.css +1 -1
  8. package/dist/{html → static/html}/client/index.html +3 -3
  9. package/dist/{html → static/html}/mount/index.html +3 -3
  10. package/dist/static/js/{async/851.32405bb9.js → 465.65e0bb6e.js} +9 -9
  11. package/dist/static/js/{async/851.32405bb9.js.LICENSE.txt → 465.65e0bb6e.js.LICENSE.txt} +1 -2
  12. package/dist/static/js/{518.3a4d37e3.js → 587.60a92f73.js} +5 -5
  13. package/dist/static/js/{518.3a4d37e3.js.LICENSE.txt → 587.60a92f73.js.LICENSE.txt} +10 -0
  14. package/dist/static/js/{991.17fd54ac.js → 991.b26ded76.js} +2 -3
  15. package/dist/static/js/998.85b756e1.js +1 -0
  16. package/dist/static/js/async/client_config/{layout.940bdfa0.js → layout.d6c132de.js} +1 -1
  17. package/dist/static/js/async/client_react/(tab)/page.3664e1f6.js +1 -0
  18. package/dist/static/js/builder-runtime.a5189e74.js +1 -0
  19. package/dist/static/js/client.20d41e23.js +1 -0
  20. package/dist/static/js/{lib-polyfill.a0b0c08b.js → lib-polyfill.91c93318.js} +1 -1
  21. package/dist/static/js/mount.172de496.js +1 -0
  22. package/package.json +11 -11
  23. package/dist/static/js/277.1ce8ace1.js +0 -1
  24. package/dist/static/js/599.553c521a.js +0 -2
  25. package/dist/static/js/599.553c521a.js.LICENSE.txt +0 -8
  26. package/dist/static/js/991.17fd54ac.js.LICENSE.txt +0 -9
  27. package/dist/static/js/async/client_react/(tab)/page.62695646.js +0 -1
  28. package/dist/static/js/builder-runtime.68fc85a6.js +0 -1
  29. package/dist/static/js/client.18429a60.js +0 -1
  30. package/dist/static/js/mount.91f07cc0.js +0 -1
@@ -1,49 +1,44 @@
1
1
  {
2
2
  "autoLoadPlugins": false,
3
- "runtime": {
4
- "router": {
5
- "basename": "/__devtools"
6
- }
7
- },
8
- "runtimeByEntries": {},
9
3
  "source": {
10
- "alias": {
11
- "styled-components": "/home/runner/work/modern.js/modern.js/node_modules/.pnpm/styled-components@5.3.5_react-dom@18.2.0_react-is@18.2.0_react@18.2.0/node_modules/styled-components/dist/styled-components.cjs.js",
12
- "@_modern_js_internal": "/home/runner/work/modern.js/modern.js/packages/devtools/client/node_modules/.modern-js",
13
- "@_modern_js_src": "/home/runner/work/modern.js/modern.js/packages/devtools/client/src",
14
- "@": "/home/runner/work/modern.js/modern.js/packages/devtools/client/src",
15
- "@shared": "/home/runner/work/modern.js/modern.js/packages/devtools/client/shared",
16
- "@modern-js/runtime-utils/node$": "/home/runner/work/modern.js/modern.js/packages/toolkit/runtime-utils/dist/cjs/node/index.js",
17
- "@modern-js/runtime/plugins": "/home/runner/work/modern.js/modern.js/packages/devtools/client/node_modules/.modern-js/.runtime-exports/plugins.js",
18
- "react": "/home/runner/work/modern.js/modern.js/packages/devtools/client/node_modules/react-exp",
19
- "react-dom": "/home/runner/work/modern.js/modern.js/packages/devtools/client/node_modules/react-dom-exp"
4
+ "entries": {
5
+ "mount": {
6
+ "entry": "./src/entries/mount/index.tsx",
7
+ "disableMount": true
8
+ }
20
9
  },
10
+ "mainEntryName": "client",
11
+ "enableAsyncEntry": false,
12
+ "enableCustomEntry": false,
13
+ "disableDefaultEntries": false,
14
+ "entriesDir": "./src/entries",
15
+ "configDir": "./config",
21
16
  "globalVars": [
22
17
  {
23
- "process.env.IS_REACT18": "true",
24
- "process.env.MODERN_JS_VERSION": "2.54.5"
18
+ "process.env.MODERN_JS_VERSION": "2.55.0",
19
+ "process.env.IS_REACT18": "true"
25
20
  },
26
21
  null,
27
22
  {
28
- "process.env.VERSION": "2.54.5",
29
- "process.env.PKG_VERSION": "2.54.5",
30
- "process.env.DEVTOOLS_MARK": "sQNOaw3zeJIhyQHMMX38u",
23
+ "process.env.VERSION": "2.55.0",
24
+ "process.env.PKG_VERSION": "2.55.0",
25
+ "process.env.DEVTOOLS_MARK": "_m2KjHBsyjXKJ58vW1kCb",
31
26
  "__REACT_DEVTOOLS_GLOBAL_HOOK__": {
32
27
  "isDisabled": true
33
28
  }
34
29
  }
35
30
  ],
36
- "entries": {
37
- "mount": {
38
- "entry": "./src/entries/mount/index.tsx",
39
- "disableMount": true
40
- }
31
+ "alias": {
32
+ "@_modern_js_internal": "/home/runner/work/modern.js/modern.js/packages/devtools/client/node_modules/.modern-js",
33
+ "@_modern_js_src": "/home/runner/work/modern.js/modern.js/packages/devtools/client/src",
34
+ "@": "/home/runner/work/modern.js/modern.js/packages/devtools/client/src",
35
+ "@shared": "/home/runner/work/modern.js/modern.js/packages/devtools/client/shared",
36
+ "styled-components": "/home/runner/work/modern.js/modern.js/node_modules/.pnpm/styled-components@5.3.5_react-dom@18.2.0_react-is@18.2.0_react@18.2.0/node_modules/styled-components/dist/styled-components.cjs.js",
37
+ "@modern-js/runtime/plugins": "/home/runner/work/modern.js/modern.js/packages/devtools/client/node_modules/.modern-js/.runtime-exports/plugins.js",
38
+ "@modern-js/runtime-utils/node$": "/home/runner/work/modern.js/modern.js/packages/toolkit/runtime-utils/dist/cjs/node/index.js",
39
+ "react": "/home/runner/work/modern.js/modern.js/packages/devtools/client/node_modules/react-exp",
40
+ "react-dom": "/home/runner/work/modern.js/modern.js/packages/devtools/client/node_modules/react-dom-exp"
41
41
  },
42
- "mainEntryName": "client",
43
- "enableAsyncEntry": false,
44
- "disableDefaultEntries": false,
45
- "entriesDir": "./src/entries",
46
- "configDir": "./config",
47
42
  "include": [
48
43
  {},
49
44
  {},
@@ -55,30 +50,10 @@
55
50
  "/home/runner/work/modern.js/modern.js/node_modules/.pnpm/@radix-ui+themes@3.0.5_@types+react-dom@18.0.6_@types+react@18.0.21_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/themes/styles.css"
56
51
  ]
57
52
  },
58
- "tools": {
59
- "styledComponents": {
60
- "topLevelImportPaths": [
61
- "@modern-js/runtime/styled"
62
- ]
63
- },
64
- "tsChecker": {
65
- "issue": {
66
- "exclude": [
67
- {
68
- "file": "**/api/lambda/**/*"
69
- }
70
- ]
71
- }
72
- },
73
- "bundlerChain": [
74
- null,
75
- null
76
- ]
77
- },
78
53
  "output": {
79
54
  "distPath": {
80
55
  "root": "dist",
81
- "html": "html",
56
+ "html": "static/html",
82
57
  "js": "static/js",
83
58
  "css": "static/css",
84
59
  "server": "bundles",
@@ -98,7 +73,7 @@
98
73
  },
99
74
  "dev": {
100
75
  "port": 8780,
101
- "assetPrefix": "/__devtools"
76
+ "assetPrefix": "http://localhost:8780"
102
77
  },
103
78
  "html": {
104
79
  "title": "",
@@ -119,6 +94,26 @@
119
94
  "format-detection": "telephone=no"
120
95
  }
121
96
  },
97
+ "tools": {
98
+ "tsChecker": {
99
+ "issue": {
100
+ "exclude": [
101
+ {
102
+ "file": "**/api/lambda/**/*"
103
+ }
104
+ ]
105
+ }
106
+ },
107
+ "styledComponents": {
108
+ "topLevelImportPaths": [
109
+ "@modern-js/runtime/styled"
110
+ ]
111
+ },
112
+ "bundlerChain": [
113
+ null,
114
+ null
115
+ ]
116
+ },
122
117
  "plugins": [
123
118
  {
124
119
  "name": "@modern-js/app-tools",
@@ -133,15 +128,12 @@
133
128
  "@modern-js/plugin-polyfill"
134
129
  ],
135
130
  "registerHook": {
136
- "modifyEntryExport": {},
137
- "modifyEntryImports": {},
138
- "modifyEntryRuntimePlugins": {},
139
- "modifyEntryRenderFunction": {},
140
- "modifyAsyncEntry": {},
131
+ "_internalRuntimePlugins": {},
141
132
  "modifyFileSystemRoutes": {},
142
133
  "modifyServerRoutes": {},
143
134
  "modifyEntrypoints": {},
144
135
  "checkEntryPoint": {},
136
+ "generateEntryCode": {},
145
137
  "htmlPartials": {},
146
138
  "beforeGenerateRoutes": {},
147
139
  "addDefineTypes": {},
@@ -176,7 +168,10 @@
176
168
  ]
177
169
  },
178
170
  {
179
- "name": "@modern-js/plugin-analyze"
171
+ "name": "@modern-js/plugin-analyze",
172
+ "post": [
173
+ "@modern-js/runtime"
174
+ ]
180
175
  },
181
176
  {
182
177
  "name": "@modern-js/server-build"
@@ -191,6 +186,12 @@
191
186
  }
192
187
  ],
193
188
  "builderPlugins": [],
189
+ "runtime": {
190
+ "router": {
191
+ "supportHtml5History": false
192
+ }
193
+ },
194
+ "runtimeByEntries": {},
194
195
  "performance": {
195
196
  "chunkSplit": {
196
197
  "strategy": "split-by-experience",
@@ -210,12 +211,12 @@
210
211
  "_raw": {
211
212
  "runtime": {
212
213
  "router": {
213
- "basename": "/__devtools"
214
+ "supportHtml5History": false
214
215
  }
215
216
  },
216
217
  "dev": {
217
- "assetPrefix": "/__devtools",
218
- "port": 8780
218
+ "port": 8780,
219
+ "assetPrefix": "http://localhost:8780"
219
220
  },
220
221
  "source": {
221
222
  "mainEntryName": "client",
@@ -234,6 +235,9 @@
234
235
  }
235
236
  },
236
237
  "output": {
238
+ "distPath": {
239
+ "html": "static/html"
240
+ },
237
241
  "assetPrefix": "/__devtools",
238
242
  "disableInlineRuntimeChunk": true,
239
243
  "disableSourceMap": true
@@ -1 +1 @@
1
- (()=>{"use strict";let e="2.54.5",t=new URL(location.href).searchParams.get("rules");if(!e)throw Error("[Modern.js DevTools] failed to load version");let s=t?JSON.parse(t):[],r=`http://${location.host}/__devtools/service/unregister`;self.addEventListener("install",e=>{console.log("[Modern.js DevTools] service worker installed with rules:",JSON.stringify(s,null,2)),e.waitUntil(self.skipWaiting())}),self.addEventListener("activate",e=>{console.log(`[Modern.js DevTools] service worker activated, click to unregister: ${r}`),e.waitUntil(self.clients.claim())}),self.addEventListener("fetch",t=>{let r=new URL(t.request.url);if(r.host===location.host){if("/__devtools/service/status"===r.pathname){let r=new Response(JSON.stringify({href:location.href,rules:s,version:e},null,2));t.respondWith(r);return}if("/__devtools/service/unregister"===r.pathname){t.respondWith(Promise.resolve().then(async()=>{let e=await self.registration.unregister();return e&&(s.length=0),new Response(null,{status:e?200:500})}));return}}let o={};for(let{test:e,key:r,value:l}of(t.request.headers.forEach((e,t)=>{o[t]=e}),s))(void 0===e||e===t.request.url)&&(o[r]=l);let l=new Request(t.request,{headers:o});t.respondWith(fetch(l))})})();
1
+ (()=>{"use strict";let e="2.55.0",t=new URL(location.href).searchParams.get("rules");if(!e)throw Error("[Modern.js DevTools] failed to load version");let s=t?JSON.parse(t):[],r=`http://${location.host}/__devtools/service/unregister`;self.addEventListener("install",e=>{console.log("[Modern.js DevTools] service worker installed with rules:",JSON.stringify(s,null,2)),e.waitUntil(self.skipWaiting())}),self.addEventListener("activate",e=>{console.log(`[Modern.js DevTools] service worker activated, click to unregister: ${r}`),e.waitUntil(self.clients.claim())}),self.addEventListener("fetch",t=>{let r=new URL(t.request.url);if(r.host===location.host){if("/__devtools/service/status"===r.pathname){let r=new Response(JSON.stringify({href:location.href,rules:s,version:e},null,2));t.respondWith(r);return}if("/__devtools/service/unregister"===r.pathname){t.respondWith(Promise.resolve().then(async()=>{let e=await self.registration.unregister();return e&&(s.length=0),new Response(null,{status:e?200:500})}));return}}let o={};for(let{test:e,key:r,value:l}of(t.request.headers.forEach((e,t)=>{o[t]=e}),s))(void 0===e||e===t.request.url)&&(o[r]=l);let l=new Request(t.request,{headers:o});t.respondWith(fetch(l))})})();
package/dist/route.json CHANGED
@@ -3,7 +3,7 @@
3
3
  {
4
4
  "urlPath": "/",
5
5
  "entryName": "client",
6
- "entryPath": "html/client/index.html",
6
+ "entryPath": "static/html/client/index.html",
7
7
  "isSPA": true,
8
8
  "isStream": false,
9
9
  "isSSR": false
@@ -11,7 +11,7 @@
11
11
  {
12
12
  "urlPath": "/mount",
13
13
  "entryName": "mount",
14
- "entryPath": "html/mount/index.html",
14
+ "entryPath": "static/html/mount/index.html",
15
15
  "isSPA": true,
16
16
  "isStream": false,
17
17
  "isSSR": false
@@ -5,34 +5,34 @@
5
5
  "242",
6
6
  "567",
7
7
  "126",
8
- "707",
9
8
  "58",
9
+ "707",
10
10
  "118",
11
- "518",
12
- "599",
13
- "277",
11
+ "587",
12
+ "465",
13
+ "998",
14
14
  "462"
15
15
  ],
16
16
  "assets": [
17
- "/__devtools/static/js/builder-runtime.68fc85a6.js",
17
+ "/__devtools/static/js/builder-runtime.a5189e74.js",
18
18
  "/__devtools/static/js/components.1e877f2c.js",
19
19
  "/__devtools/static/css/components.41191267.css",
20
- "/__devtools/static/js/lib-polyfill.a0b0c08b.js",
21
- "/__devtools/static/js/lib-lodash.4ab7d73a.js",
20
+ "/__devtools/static/js/lib-polyfill.91c93318.js",
22
21
  "/__devtools/static/js/lib-react.be245967.js",
22
+ "/__devtools/static/js/lib-lodash.4ab7d73a.js",
23
23
  "/__devtools/static/js/lib-router.619ce9d4.js",
24
- "/__devtools/static/css/518.861d0891.css",
25
- "/__devtools/static/js/518.3a4d37e3.js",
26
- "/__devtools/static/js/599.553c521a.js",
27
- "/__devtools/static/css/599.e744b37c.css",
28
- "/__devtools/static/js/277.1ce8ace1.js",
29
- "/__devtools/static/js/client.18429a60.js",
24
+ "/__devtools/static/js/587.60a92f73.js",
25
+ "/__devtools/static/css/587.861d0891.css",
26
+ "/__devtools/static/js/465.65e0bb6e.js",
27
+ "/__devtools/static/css/465.e744b37c.css",
28
+ "/__devtools/static/js/998.85b756e1.js",
29
+ "/__devtools/static/js/client.20d41e23.js",
30
30
  "/__devtools/static/css/client.13303fab.css"
31
31
  ],
32
32
  "referenceCssAssets": [
33
33
  "/__devtools/static/css/components.41191267.css",
34
- "/__devtools/static/css/518.861d0891.css",
35
- "/__devtools/static/css/599.e744b37c.css",
34
+ "/__devtools/static/css/587.861d0891.css",
35
+ "/__devtools/static/css/465.e744b37c.css",
36
36
  "/__devtools/static/css/client.13303fab.css"
37
37
  ]
38
38
  },
@@ -46,7 +46,7 @@
46
46
  "assets": [
47
47
  "/__devtools/static/js/components.1e877f2c.js",
48
48
  "/__devtools/static/css/components.41191267.css",
49
- "/__devtools/static/js/lib-polyfill.a0b0c08b.js",
49
+ "/__devtools/static/js/lib-polyfill.91c93318.js",
50
50
  "/__devtools/static/js/async/769.9da82d5e.js",
51
51
  "/__devtools/static/js/async/client_config/(toolkit).(type)/page.afc8e58e.js"
52
52
  ],
@@ -56,10 +56,10 @@
56
56
  },
57
57
  "client_config/layout": {
58
58
  "chunkIds": [
59
- "587"
59
+ "518"
60
60
  ],
61
61
  "assets": [
62
- "/__devtools/static/js/async/client_config/layout.940bdfa0.js"
62
+ "/__devtools/static/js/async/client_config/layout.d6c132de.js"
63
63
  ],
64
64
  "referenceCssAssets": []
65
65
  },
@@ -82,7 +82,7 @@
82
82
  "assets": [
83
83
  "/__devtools/static/js/components.1e877f2c.js",
84
84
  "/__devtools/static/css/components.41191267.css",
85
- "/__devtools/static/js/lib-polyfill.a0b0c08b.js",
85
+ "/__devtools/static/js/lib-polyfill.91c93318.js",
86
86
  "/__devtools/static/js/async/769.9da82d5e.js",
87
87
  "/__devtools/static/js/async/client_context/builder/page.0dc5a1e9.js"
88
88
  ],
@@ -100,7 +100,7 @@
100
100
  "assets": [
101
101
  "/__devtools/static/js/components.1e877f2c.js",
102
102
  "/__devtools/static/css/components.41191267.css",
103
- "/__devtools/static/js/lib-polyfill.a0b0c08b.js",
103
+ "/__devtools/static/js/lib-polyfill.91c93318.js",
104
104
  "/__devtools/static/js/async/769.9da82d5e.js",
105
105
  "/__devtools/static/js/async/client_context/framework/page.b4f8bc08.js"
106
106
  ],
@@ -273,12 +273,10 @@
273
273
  },
274
274
  "client_react/(tab)/page": {
275
275
  "chunkIds": [
276
- "851",
277
276
  "483"
278
277
  ],
279
278
  "assets": [
280
- "/__devtools/static/js/async/851.32405bb9.js",
281
- "/__devtools/static/js/async/client_react/(tab)/page.62695646.js"
279
+ "/__devtools/static/js/async/client_react/(tab)/page.3664e1f6.js"
282
280
  ],
283
281
  "referenceCssAssets": []
284
282
  },
@@ -353,30 +351,30 @@
353
351
  "242",
354
352
  "567",
355
353
  "126",
356
- "707",
357
354
  "58",
358
- "518",
355
+ "707",
356
+ "587",
359
357
  "991",
360
- "277",
358
+ "998",
361
359
  "400"
362
360
  ],
363
361
  "assets": [
364
- "/__devtools/static/js/builder-runtime.68fc85a6.js",
362
+ "/__devtools/static/js/builder-runtime.a5189e74.js",
365
363
  "/__devtools/static/js/components.1e877f2c.js",
366
364
  "/__devtools/static/css/components.41191267.css",
367
- "/__devtools/static/js/lib-polyfill.a0b0c08b.js",
368
- "/__devtools/static/js/lib-lodash.4ab7d73a.js",
365
+ "/__devtools/static/js/lib-polyfill.91c93318.js",
369
366
  "/__devtools/static/js/lib-react.be245967.js",
370
- "/__devtools/static/css/518.861d0891.css",
371
- "/__devtools/static/js/518.3a4d37e3.js",
372
- "/__devtools/static/js/991.17fd54ac.js",
373
- "/__devtools/static/js/277.1ce8ace1.js",
374
- "/__devtools/static/js/mount.91f07cc0.js",
367
+ "/__devtools/static/js/lib-lodash.4ab7d73a.js",
368
+ "/__devtools/static/js/587.60a92f73.js",
369
+ "/__devtools/static/css/587.861d0891.css",
370
+ "/__devtools/static/js/991.b26ded76.js",
371
+ "/__devtools/static/js/998.85b756e1.js",
372
+ "/__devtools/static/js/mount.172de496.js",
375
373
  "/__devtools/static/css/mount.8fe89093.css"
376
374
  ],
377
375
  "referenceCssAssets": [
378
376
  "/__devtools/static/css/components.41191267.css",
379
- "/__devtools/static/css/518.861d0891.css",
377
+ "/__devtools/static/css/587.861d0891.css",
380
378
  "/__devtools/static/css/mount.8fe89093.css"
381
379
  ]
382
380
  }