@rsbuild/core 0.6.8 → 0.6.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.
Files changed (53) hide show
  1. package/compiled/commander/{typings/index.d.ts → index.d.ts} +26 -24
  2. package/compiled/commander/index.js +3528 -1
  3. package/compiled/commander/package.json +1 -1
  4. package/compiled/connect-history-api-fallback/index.js +186 -1
  5. package/compiled/dotenv/{lib/main.d.ts → index.d.ts} +16 -12
  6. package/compiled/dotenv/index.js +458 -1
  7. package/compiled/dotenv/package.json +1 -1
  8. package/compiled/dotenv-expand/{lib/main.d.ts → index.d.ts} +9 -7
  9. package/compiled/dotenv-expand/index.js +146 -1
  10. package/compiled/dotenv-expand/package.json +1 -1
  11. package/compiled/http-compression/index.js +185 -1
  12. package/compiled/launch-editor-middleware/index.js +843 -1
  13. package/compiled/on-finished/index.d.ts +2 -2
  14. package/compiled/on-finished/index.js +390 -3
  15. package/compiled/on-finished/package.json +1 -1
  16. package/compiled/open/index.d.ts +1 -153
  17. package/compiled/open/index.js +526 -1
  18. package/compiled/open/package.json +1 -1
  19. package/compiled/sirv/index.d.ts +1 -0
  20. package/compiled/sirv/index.js +798 -1
  21. package/compiled/sirv/package.json +1 -1
  22. package/compiled/webpack-dev-middleware/index.d.ts +1 -0
  23. package/compiled/webpack-dev-middleware/index.js +6696 -0
  24. package/compiled/webpack-dev-middleware/license +20 -0
  25. package/compiled/webpack-dev-middleware/package.json +1 -0
  26. package/compiled/webpack-dev-middleware/schema-utils.js +1 -0
  27. package/compiled/ws/index.d.ts +7 -15
  28. package/compiled/ws/index.js +4885 -1
  29. package/compiled/ws/package.json +1 -1
  30. package/dist/cli/commands.js +1 -1
  31. package/dist/cli/prepare.js +1 -1
  32. package/dist/client/format.d.ts +5 -0
  33. package/dist/client/{formatStats.js → format.js} +8 -43
  34. package/dist/client/{hmr/index.d.ts → hmr.d.ts} +4 -0
  35. package/dist/client/hmr.mjs +194 -431
  36. package/dist/client/overlay.mjs +205 -227
  37. package/dist/createContext.js +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/plugins/target.js +19 -16
  40. package/dist/provider/plugins/swc.js +1 -0
  41. package/dist/provider/shared.js +2 -2
  42. package/dist/server/devMiddleware.js +1 -1
  43. package/dist/server/devServer.js +6 -1
  44. package/dist/server/getDevMiddlewares.d.ts +3 -0
  45. package/dist/server/getDevMiddlewares.js +6 -8
  46. package/dist/server/helper.d.ts +4 -4
  47. package/dist/server/middlewares.d.ts +5 -2
  48. package/dist/server/middlewares.js +1 -7
  49. package/package.json +6 -5
  50. package/compiled/open/license +0 -9
  51. package/compiled/sirv/sirv.d.ts +0 -27
  52. package/dist/client/formatStats.d.ts +0 -12
  53. package/dist/client/hmr/url.d.ts +0 -6
@@ -0,0 +1,20 @@
1
+ Copyright JS Foundation and other contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ 'Software'), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"webpack-dev-middleware","author":"Tobias Koppers @sokra","version":"7.2.1","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -0,0 +1 @@
1
+ module.exports.validate = () => {};
@@ -1,15 +1,7 @@
1
1
  /// <reference types="node" />
2
-
3
2
  import { EventEmitter } from 'events';
4
- import {
5
- Agent,
6
- ClientRequest,
7
- ClientRequestArgs,
8
- IncomingMessage,
9
- OutgoingHttpHeaders,
10
- Server as HTTPServer,
11
- } from "http";
12
- import { Server as HTTPSServer } from 'https';
3
+ import { ClientRequestArgs, IncomingMessage, ClientRequest, OutgoingHttpHeaders, Agent, Server } from 'http';
4
+ import { Server as Server$1 } from 'https';
13
5
  import { Duplex, DuplexOptions } from 'stream';
14
6
  import { SecureContextOptions } from 'tls';
15
7
  import { URL } from 'url';
@@ -35,6 +27,8 @@ type BufferLike =
35
27
  | { valueOf(): string }
36
28
  | { [Symbol.toPrimitive](hint: string): string };
37
29
 
30
+ declare const WebSocketAlias: typeof WebSocket;
31
+ interface WebSocketAlias extends WebSocket {}
38
32
  // WebSocket socket.
39
33
  declare class WebSocket extends EventEmitter {
40
34
  /** The connection is not yet open. */
@@ -199,9 +193,7 @@ declare class WebSocket extends EventEmitter {
199
193
  ): this;
200
194
  removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
201
195
  }
202
-
203
- declare const WebSocketAlias: typeof WebSocket;
204
- interface WebSocketAlias extends WebSocket {} // eslint-disable-line @typescript-eslint/no-empty-interface
196
+ // eslint-disable-line @typescript-eslint/no-empty-interface
205
197
 
206
198
  declare namespace WebSocket {
207
199
  /**
@@ -318,7 +310,7 @@ declare namespace WebSocket {
318
310
  host?: string | undefined;
319
311
  port?: number | undefined;
320
312
  backlog?: number | undefined;
321
- server?: HTTPServer<V> | HTTPSServer<V> | undefined;
313
+ server?: Server<V> | Server$1<V> | undefined;
322
314
  verifyClient?:
323
315
  | VerifyClientCallbackAsync<InstanceType<V>>
324
316
  | VerifyClientCallbackSync<InstanceType<V>>
@@ -407,4 +399,4 @@ declare namespace WebSocket {
407
399
  function createWebSocketStream(websocket: WebSocket, options?: DuplexOptions): Duplex;
408
400
  }
409
401
 
410
- export = WebSocket;
402
+ export { WebSocket as default };