@rsbuild/core 2.0.0-rc.1 → 2.0.0-rc.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.
Files changed (44) hide show
  1. package/compiled/css-loader/index.js +2 -2
  2. package/compiled/html-rspack-plugin/index.js +14 -14
  3. package/compiled/postcss/index.js +1 -1
  4. package/compiled/postcss/lib/at-rule.d.ts +0 -1
  5. package/compiled/postcss/lib/comment.d.ts +0 -1
  6. package/compiled/postcss/lib/container.d.ts +1 -6
  7. package/compiled/postcss/lib/css-syntax-error.d.ts +0 -1
  8. package/compiled/postcss/lib/declaration.d.ts +0 -1
  9. package/compiled/postcss/lib/document.d.ts +0 -1
  10. package/compiled/postcss/lib/fromJSON.d.ts +1 -1
  11. package/compiled/postcss/lib/input.d.ts +0 -1
  12. package/compiled/postcss/lib/lazy-result.d.ts +3 -4
  13. package/compiled/postcss/lib/list.d.ts +1 -1
  14. package/compiled/postcss/lib/no-work-result.d.ts +0 -1
  15. package/compiled/postcss/lib/node.d.ts +0 -1
  16. package/compiled/postcss/lib/parse.d.ts +1 -1
  17. package/compiled/postcss/lib/postcss.d.ts +1 -3
  18. package/compiled/postcss/lib/previous-map.d.ts +0 -1
  19. package/compiled/postcss/lib/processor.d.ts +0 -1
  20. package/compiled/postcss/lib/result.d.ts +0 -1
  21. package/compiled/postcss/lib/root.d.ts +0 -1
  22. package/compiled/postcss/lib/rule.d.ts +12 -12
  23. package/compiled/postcss/lib/stringifier.d.ts +0 -1
  24. package/compiled/postcss/lib/stringify.d.ts +1 -1
  25. package/compiled/postcss/lib/warning.d.ts +0 -1
  26. package/compiled/postcss/license +1 -1
  27. package/compiled/postcss/package.json +1 -1
  28. package/compiled/postcss-loader/index.js +6 -6
  29. package/compiled/rspack-chain/package.json +1 -1
  30. package/compiled/rspack-chain/types/index.d.ts +3 -1
  31. package/dist/{863.js → 753.js} +101 -118
  32. package/dist/http-proxy-middleware.js +4 -4
  33. package/dist/index.js +1 -1
  34. package/dist/launch-editor-middleware.js +6 -6
  35. package/dist/manifest-plugin.js +8 -8
  36. package/dist/memfs.js +16 -56
  37. package/dist/tinyglobby.js +279 -127
  38. package/dist/ws.js +2 -2
  39. package/dist-types/server/devServer.d.ts +2 -2
  40. package/dist-types/server/socketServer.d.ts +3 -3
  41. package/dist-types/types/config.d.ts +7 -1
  42. package/package.json +5 -5
  43. package/dist-types/plugins/esm.d.ts +0 -2
  44. /package/dist/{863.js.LICENSE.txt → 753.js.LICENSE.txt} +0 -0
@@ -8,7 +8,7 @@ import type Cors from '../../compiled/cors';
8
8
  import type { Options as HttpProxyOptions, Filter as ProxyFilter } from '../../compiled/http-proxy-middleware';
9
9
  import type { RspackChain } from '../../compiled/rspack-chain/types';
10
10
  import type { FileDescriptor } from '../../compiled/rspack-manifest-plugin';
11
- import type { RsbuildDevServer } from '../server/devServer';
11
+ import type { HotSend, RsbuildDevServer } from '../server/devServer';
12
12
  import type { RsbuildPreviewServer } from '../server/previewServer';
13
13
  import type { Logger } from '../logger';
14
14
  import type { EnvironmentContext, ModifyBundlerChainUtils, ModifyChainUtils, Routes } from './hooks';
@@ -1570,6 +1570,12 @@ export type EnvironmentAPI = Record<string, {
1570
1570
  * Get the compiled HTML template.
1571
1571
  */
1572
1572
  getTransformedHtml: (entryName: string) => Promise<string>;
1573
+ /**
1574
+ * Send HMR message to the current environment only.
1575
+ */
1576
+ hot: {
1577
+ send: HotSend;
1578
+ };
1573
1579
  /**
1574
1580
  * Provides some context information about the current environment
1575
1581
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/core",
3
- "version": "2.0.0-rc.1",
3
+ "version": "2.0.0-rc.2",
4
4
  "description": "The Rspack-based build tool.",
5
5
  "homepage": "https://rsbuild.rs",
6
6
  "bugs": {
@@ -50,7 +50,7 @@
50
50
  "devDependencies": {
51
51
  "@jridgewell/remapping": "^2.3.5",
52
52
  "@jridgewell/trace-mapping": "^0.3.31",
53
- "@rslib/core": "0.20.3",
53
+ "@rslib/core": "0.21.0",
54
54
  "@types/cors": "^2.8.19",
55
55
  "@types/node": "^24.12.2",
56
56
  "@types/on-finished": "2.3.5",
@@ -72,20 +72,20 @@
72
72
  "mrmime": "^2.0.1",
73
73
  "on-finished": "2.4.1",
74
74
  "open": "^11.0.0",
75
- "postcss": "^8.5.8",
75
+ "postcss": "^8.5.9",
76
76
  "postcss-load-config": "6.0.1",
77
77
  "postcss-loader": "8.2.1",
78
78
  "prebundle": "1.6.4",
79
79
  "range-parser": "^1.2.1",
80
80
  "reduce-configs": "^1.1.2",
81
81
  "rslog": "^2.1.1",
82
- "rspack-chain": "^2.0.0-rc.1",
82
+ "rspack-chain": "^2.0.1",
83
83
  "rspack-manifest-plugin": "5.2.1",
84
84
  "sirv": "^3.0.2",
85
85
  "stacktrace-parser": "^0.1.11",
86
86
  "style-loader": "^4.0.0",
87
87
  "supports-color": "^10.2.2",
88
- "tinyglobby": "^0.2.15",
88
+ "tinyglobby": "^0.2.16",
89
89
  "typescript": "^6.0.2",
90
90
  "webpack-merge": "6.0.1",
91
91
  "ws": "^8.20.0"
@@ -1,2 +0,0 @@
1
- import type { RsbuildPlugin } from '../types';
2
- export declare const pluginEsm: () => RsbuildPlugin;
File without changes