@modern-js/plugin-devtools 2.58.0 → 2.58.2

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/dist/cli.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { type AppTools, type CliPlugin } from '@modern-js/app-tools';
2
- import { ClientDefinition } from '@modern-js/devtools-kit/node';
3
- import { DevtoolsPluginOptions } from './options';
4
- import { Plugin } from './types';
2
+ import type { ClientDefinition } from '@modern-js/devtools-kit/node';
3
+ import { type DevtoolsPluginOptions } from './options';
4
+ import type { Plugin } from './types';
5
5
  export type { DevtoolsPluginOptions };
6
6
  export type DevtoolsPlugin = CliPlugin<AppTools> & {
7
7
  setClientDefinition: (def: ClientDefinition) => void;
package/dist/options.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { DevtoolsContext } from '@modern-js/devtools-kit/node';
1
+ import { type DevtoolsContext } from '@modern-js/devtools-kit/node';
2
2
  export interface DevtoolsPluginOptions {
3
3
  enable?: boolean;
4
4
  endpoint?: string;
@@ -1,2 +1,2 @@
1
- import { Plugin } from '../types';
1
+ import type { Plugin } from '../types';
2
2
  export declare const pluginCleanup: Plugin;
@@ -1,2 +1,2 @@
1
- import { Plugin } from '../types';
1
+ import type { Plugin } from '../types';
2
2
  export declare const pluginDebug: Plugin;
@@ -1,2 +1,2 @@
1
- import { Plugin } from '../types';
1
+ import type { Plugin } from '../types';
2
2
  export declare const pluginHtml: Plugin;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import http from 'http';
3
- import { Plugin } from '../types';
3
+ import type { Plugin } from '../types';
4
4
  declare global {
5
5
  interface DevtoolsPluginVars {
6
6
  http?: http.Server & {
@@ -1,5 +1,5 @@
1
1
  import { type ServerManifest } from '@modern-js/devtools-kit/node';
2
- import { Plugin } from '../types';
2
+ import type { Plugin } from '../types';
3
3
  declare global {
4
4
  interface DevtoolsPluginVars {
5
5
  manifest?: ServerManifest;
@@ -1,5 +1,5 @@
1
- import { DevtoolsContext } from '@modern-js/devtools-kit/node';
2
- import { CliPluginAPI, Plugin } from '../types';
1
+ import { type DevtoolsContext } from '@modern-js/devtools-kit/node';
2
+ import type { CliPluginAPI, Plugin } from '../types';
3
3
  import { SocketServer } from '../utils/socket';
4
4
  export interface SetupClientConnectionOptions {
5
5
  api: CliPluginAPI;
@@ -1,2 +1,2 @@
1
- import { Plugin } from '../types';
1
+ import type { Plugin } from '../types';
2
2
  export declare const pluginServiceWorker: Plugin;
@@ -1,2 +1,2 @@
1
- import { Plugin } from '../types';
1
+ import type { Plugin } from '../types';
2
2
  export declare const pluginSettleState: Plugin;
@@ -1,5 +1,5 @@
1
- import { ServerState } from '@modern-js/devtools-kit/node';
2
- import { Plugin } from '../types';
1
+ import { type ServerState } from '@modern-js/devtools-kit/node';
2
+ import type { Plugin } from '../types';
3
3
  declare global {
4
4
  interface DevtoolsPluginVars {
5
5
  state: ServerState;
@@ -1,2 +1,2 @@
1
- import { Plugin } from '../types';
1
+ import type { Plugin } from '../types';
2
2
  export declare const pluginWatcher: Plugin;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="node" />
2
- import { BaseHooks } from '@modern-js/core';
2
+ import type { BaseHooks } from '@modern-js/core';
3
3
  import type { AppTools, AppToolsHooks, CliPlugin } from '@modern-js/app-tools';
4
4
  import type { ServerPlugin, ToThreads } from '@modern-js/server-core';
5
5
  import type { RsbuildPluginAPI } from '@rsbuild/core';
6
- import { Hookable } from 'hookable';
7
- import { DevtoolsContext, ServerManifest } from '@modern-js/devtools-kit/node';
6
+ import type { Hookable } from 'hookable';
7
+ import type { DevtoolsContext, ServerManifest } from '@modern-js/devtools-kit/node';
8
8
  export type CliPluginAPI = Parameters<NonNullable<CliPlugin<AppTools>['setup']>>[0];
9
9
  export type ServerPluginAPI = Parameters<NonNullable<ServerPlugin['setup']>>[0];
10
10
  export type BufferLike = string | Buffer | DataView | number | ArrayBufferView | Uint8Array | ArrayBuffer | SharedArrayBuffer | ReadonlyArray<any> | ReadonlyArray<number> | {
@@ -1,4 +1,4 @@
1
- import { StoragePresetWithIdent } from '@modern-js/devtools-kit/node';
1
+ import type { StoragePresetWithIdent } from '@modern-js/devtools-kit/node';
2
2
  export interface DevtoolsConfig {
3
3
  storagePresets?: StoragePresetWithIdent[];
4
4
  }
@@ -1,4 +1,4 @@
1
- import { DevtoolsContext, StoragePresetContext } from '@modern-js/devtools-kit';
1
+ import type { DevtoolsContext, StoragePresetContext } from '@modern-js/devtools-kit';
2
2
  export declare function getConfigFilenames(base: string, dir?: string): string[];
3
3
  /** Resolve all config files from target directory upward to the root path. */
4
4
  export declare function resolveConfigFiles(base: string, dir?: string): Promise<string[]>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
- import { IncomingMessage } from 'http';
2
+ import type { IncomingMessage } from 'http';
3
3
  import WebSocket from 'ws';
4
- import { BufferLike } from '../types';
4
+ import type { BufferLike } from '../types';
5
5
  export interface SendMessageOptions {
6
6
  mask?: boolean | undefined;
7
7
  binary?: boolean | undefined;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.58.0",
18
+ "version": "2.58.2",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/index.d.ts",
21
21
  "main": "./dist/index.js",
@@ -49,36 +49,36 @@
49
49
  "cookie-es": "^1.0.0",
50
50
  "flatted": "^3.2.9",
51
51
  "hono": "4.5.1",
52
+ "hookable": "^5.5.3",
52
53
  "open": "^10.1.0",
53
54
  "p-defer": "^3.0.0",
55
+ "react-devtools-inline": "^4.28.5",
54
56
  "ufo": "^1.3.0",
55
57
  "valtio": "^1.11.1",
56
58
  "ws": "^8.13.0",
57
- "hookable": "^5.5.3",
58
- "react-devtools-inline": "^4.28.5",
59
- "@modern-js/devtools-client": "2.58.0",
60
- "@modern-js/devtools-kit": "2.58.0",
61
- "@modern-js/utils": "2.58.0"
59
+ "@modern-js/devtools-client": "2.58.2",
60
+ "@modern-js/devtools-kit": "2.58.2",
61
+ "@modern-js/utils": "2.58.2"
62
62
  },
63
63
  "devDependencies": {
64
+ "@rsbuild/core": "1.0.1-beta.14",
64
65
  "@swc/helpers": "0.5.3",
65
66
  "@types/node": "^14",
66
- "@types/ws": "^8.5.5",
67
67
  "@types/react-devtools-inline": "^4.24.8",
68
+ "@types/ws": "^8.5.5",
68
69
  "type-fest": "^4.1.0",
69
70
  "typescript": "^5",
70
- "@rsbuild/core": "1.0.1-beta.9",
71
- "@modern-js/app-tools": "2.58.0",
72
- "@modern-js/core": "2.58.0",
73
- "@modern-js/module-tools": "2.58.0",
74
- "@modern-js/runtime": "2.58.0",
75
- "@modern-js/types": "2.58.0",
76
- "@modern-js/uni-builder": "2.58.0",
77
- "@scripts/build": "2.58.0",
78
- "@modern-js/server-core": "2.58.0"
71
+ "@modern-js/app-tools": "2.58.2",
72
+ "@modern-js/core": "2.58.2",
73
+ "@modern-js/module-tools": "2.58.2",
74
+ "@modern-js/runtime": "2.58.2",
75
+ "@modern-js/server-core": "2.58.2",
76
+ "@modern-js/uni-builder": "2.58.2",
77
+ "@modern-js/types": "2.58.2",
78
+ "@scripts/build": "2.58.2"
79
79
  },
80
80
  "peerDependencies": {
81
- "@modern-js/runtime": "^2.58.0"
81
+ "@modern-js/runtime": "^2.58.2"
82
82
  },
83
83
  "peerDependenciesMeta": {
84
84
  "@modern-js/runtime": {