@ohos-ports/rspack-core 2.2.9-beta.0 → 2.3.4-beta.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 (68) hide show
  1. package/README.md +7 -7
  2. package/compiled/http-proxy-middleware/index.d.ts +12 -10
  3. package/compiled/http-proxy-middleware/package.json +1 -1
  4. package/compiled/tinypool/dist/index.js +5 -3
  5. package/compiled/watchpack/index.js +459 -60
  6. package/compiled/watchpack/package.json +1 -1
  7. package/compiled/watchpack/types/DirectoryWatcher.d.ts +24 -0
  8. package/compiled/watchpack/types/index.d.ts +1 -1
  9. package/compiled/watchpack/types/watchEventSource.d.ts +9 -0
  10. package/compiled/webpack-sources/index.d.ts +2 -0
  11. package/compiled/webpack-sources/index.js +207 -94
  12. package/compiled/webpack-sources/package.json +1 -1
  13. package/compiled/webpack-sources/types/RawSource.d.ts +0 -10
  14. package/compiled/webpack-sources/types/helpers/sourceMap.d.ts +47 -0
  15. package/compiled/webpack-sources/types/index.d.ts +1 -0
  16. package/dist/BuildInfo.d.ts +7 -0
  17. package/dist/Compilation.d.ts +3 -1
  18. package/dist/Compiler.d.ts +5 -6
  19. package/dist/ConcatenatedModule.d.ts +5 -1
  20. package/dist/ContextModule.d.ts +3 -1
  21. package/dist/ExternalModule.d.ts +7 -6
  22. package/dist/FileSystemInfo.d.ts +1 -0
  23. package/dist/Module.d.ts +12 -8
  24. package/dist/ModuleGraphConnection.d.ts +9 -3
  25. package/dist/NativeWatchFileSystem.d.ts +19 -7
  26. package/dist/NormalModule.d.ts +14 -6
  27. package/dist/RuntimeGlobals.d.ts +2 -1
  28. package/dist/RuntimeTemplate.d.ts +2 -0
  29. package/dist/Stats.d.ts +1 -1
  30. package/dist/builtin-loader/lightningcss/index.d.ts +5 -1
  31. package/dist/builtin-plugin/CompactHashedChunkIdsPlugin.d.ts +1 -0
  32. package/dist/builtin-plugin/CompactHashedModuleIdsPlugin.d.ts +1 -0
  33. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +5 -0
  34. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +3 -2
  35. package/dist/builtin-plugin/ImportedByDeferModulesPlugin.d.ts +9 -0
  36. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -0
  37. package/dist/builtin-plugin/index.d.ts +1 -0
  38. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +2 -2
  39. package/dist/config/adapterRuleUse.d.ts +1 -0
  40. package/dist/config/normalization.d.ts +2 -2
  41. package/dist/config/target.d.ts +6 -0
  42. package/dist/config/types.d.ts +69 -36
  43. package/dist/cssExtractHmr.js +1 -1
  44. package/dist/cssExtractLoader.js +1 -1
  45. package/dist/exports.d.ts +5 -4
  46. package/dist/index.js +1577 -1151
  47. package/dist/loader-runner/codeFilter.d.ts +9 -0
  48. package/dist/loader-runner/dependencies.d.ts +1 -1
  49. package/dist/loader-runner/index.d.ts +2 -1
  50. package/dist/loader-runner/service.d.ts +0 -4
  51. package/dist/loader-runner/worker.d.ts +4 -1
  52. package/dist/node/NodeWatchFileSystem.d.ts +7 -4
  53. package/dist/sharing/IndependentSharedPlugin.d.ts +1 -2
  54. package/dist/sharing/utils.d.ts +1 -1
  55. package/dist/sources.d.ts +3 -0
  56. package/dist/stats/statsFactoryUtils.d.ts +7 -0
  57. package/dist/util/bindingHelpers.d.ts +2 -0
  58. package/dist/util/createModule.d.ts +3 -0
  59. package/dist/util/fs.d.ts +13 -7
  60. package/dist/util/resolveLayerExternals.d.ts +1 -0
  61. package/dist/util/source.d.ts +12 -3
  62. package/dist/util/symbols.d.ts +10 -0
  63. package/dist/util/watchTimeInfo.d.ts +5 -1
  64. package/dist/worker.js +327 -326
  65. package/hot/lazy-compilation-node.js +1 -1
  66. package/hot/lazy-compilation-web.js +1 -1
  67. package/package.json +4 -4
  68. package/dist/loader-runner/cache.d.ts +0 -27
@@ -104,6 +104,6 @@ export const activate = function (options) {
104
104
  return function () {
105
105
  errorHandlers.delete(onError);
106
106
  compiling.delete(data);
107
- sendActiveRequest();
107
+ // The trigger endpoint only adds IDs; don't resend the remaining set.
108
108
  };
109
109
  };
@@ -92,6 +92,6 @@ export const activate = function (options) {
92
92
  return function () {
93
93
  errorHandlers.delete(onError);
94
94
  compiling.delete(data);
95
- sendActiveRequest();
95
+ // The trigger endpoint only adds IDs; don't resend the remaining set.
96
96
  };
97
97
  };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@ohos-ports/rspack-core",
3
- "version": "2.2.9-beta.0",
3
+ "version": "2.3.4-beta.0",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
- "description": "Fast Rust-based bundler for the web with a modernized webpack API (OpenHarmony port: uses @ohos-ports/rspack-binding with the aarch64-unknown-linux-ohos native binary)",
6
+ "description": "Fast Rust-based bundler for the web with a modernized webpack API (OpenHarmony port: uses @ohos-ports/rspack-binding with the openharmony arm64 native binary from upstream musl 2.3.4 prebuilt, signed)",
7
7
  "types": "./dist/index.d.ts",
8
8
  "publishConfig": {
9
9
  "access": "public"
@@ -35,10 +35,10 @@
35
35
  "repository": {
36
36
  "type": "git",
37
37
  "url": "https://github.com/ohos-ports/ohos-ports.git",
38
- "directory": "ports/@rspack/core/2.2.9"
38
+ "directory": "ports/@rspack/core/2.3.4"
39
39
  },
40
40
  "dependencies": {
41
- "@rspack/binding": "npm:@ohos-ports/rspack-binding@2.2.9-beta.0"
41
+ "@ohos-ports/rspack-binding": "2.3.4-beta.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@module-federation/runtime-tools": "^0.24.1 || ^2.0.0",
@@ -1,27 +0,0 @@
1
- import type { JsLoaderContext } from '@rspack/binding';
2
- import { type LoaderDependencies, LoaderDependenciesState } from './dependencies.js';
3
- type LoaderCacheContent = string | Uint8Array;
4
- export type LoaderCacheEntry = {
5
- content: LoaderCacheContent | null;
6
- sourceMap?: Uint8Array;
7
- addedDependencies: LoaderDependencies;
8
- removedDependencies: LoaderDependencies;
9
- parseMeta: Record<string, string>;
10
- };
11
- export type WorkerCacheResult = {
12
- type: 'disabled';
13
- } | {
14
- type: 'miss';
15
- } | {
16
- type: 'hit';
17
- entry: LoaderCacheEntry;
18
- };
19
- export declare class LoaderCache {
20
- #private;
21
- constructor(context: JsLoaderContext, dependencies: LoaderDependenciesState);
22
- get(loaderIndex: number, content: LoaderCacheContent | null | undefined, additionalData: unknown): Promise<LoaderCacheEntry | null | undefined>;
23
- store(loaderIndex: number, content: LoaderCacheContent | null | undefined, sourceMap: Uint8Array | undefined, additionalData: unknown): Promise<void>;
24
- workerGet(loaderIndex: number, content: LoaderCacheContent | null | undefined, additionalData: unknown): Promise<WorkerCacheResult>;
25
- workerStore(loaderIndex: number, content: LoaderCacheContent | null | undefined, sourceMap: Uint8Array | undefined, additionalData: unknown): Promise<void>;
26
- }
27
- export {};