@swc/core 1.15.41 → 1.15.43

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/binding.d.ts CHANGED
@@ -12,6 +12,7 @@ export declare function bundle(confItems: Buffer, signal?: AbortSignal | undefin
12
12
 
13
13
  export declare function getTargetTriple(): string
14
14
 
15
+ /** @deprecated Trace profiling is disabled. This function is kept as a no-op for compatibility. */
15
16
  export declare function initCustomTraceSubscriber(traceOutFilePath?: string | undefined | null): void
16
17
 
17
18
  export declare function minify(code: Buffer, opts: Buffer, isJson: boolean, extras: NapiMinifyExtra, signal?: AbortSignal | undefined | null): Promise<TransformOutput>
package/index.d.ts CHANGED
@@ -84,22 +84,7 @@ export declare function bundle(options?: BundleInput | string): Promise<{
84
84
  export declare function minify(src: string | Buffer, opts?: JsMinifyOptions, extras?: NapiMinifyExtra): Promise<Output>;
85
85
  export declare function minifySync(src: string | Buffer, opts?: JsMinifyOptions, extras?: NapiMinifyExtra): Output;
86
86
  /**
87
- * Configure custom trace configuration runs for a process lifecycle.
88
- * Currently only chromium's trace event format is supported.
89
- * (https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview)
90
- *
91
- * This should be called before calling any binding interfaces exported in `@swc/core`, such as
92
- * `transform*`, or `parse*` or anything. To avoid breaking changes, each binding fn internally
93
- * sets default trace subscriber if not set.
94
- *
95
- * Unlike other configuration, this does not belong to individual api surface using swcrc
96
- * or api's parameters (`transform(..., {trace})`). This is due to current tracing subscriber
97
- * can be configured only once for the global scope. Calling `registerGlobalTraceConfig` multiple
98
- * time won't cause error, subsequent calls will be ignored.
99
- *
100
- * As name implies currently this is experimental interface may change over time without semver
101
- * major breaking changes. Please provide feedbacks,
102
- * or bug report at https://github.com/swc-project/swc/discussions.
87
+ * @deprecated Trace profiling is disabled. This function is kept as a no-op for compatibility.
103
88
  */
104
89
  export declare function __experimental_registerGlobalTraceConfig(traceConfig: {
105
90
  type: "traceEvent";
package/index.js CHANGED
@@ -432,31 +432,10 @@ function minifySync(src, opts, extras) {
432
432
  return compiler.minifySync(src, opts, extras);
433
433
  }
434
434
  /**
435
- * Configure custom trace configuration runs for a process lifecycle.
436
- * Currently only chromium's trace event format is supported.
437
- * (https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview)
438
- *
439
- * This should be called before calling any binding interfaces exported in `@swc/core`, such as
440
- * `transform*`, or `parse*` or anything. To avoid breaking changes, each binding fn internally
441
- * sets default trace subscriber if not set.
442
- *
443
- * Unlike other configuration, this does not belong to individual api surface using swcrc
444
- * or api's parameters (`transform(..., {trace})`). This is due to current tracing subscriber
445
- * can be configured only once for the global scope. Calling `registerGlobalTraceConfig` multiple
446
- * time won't cause error, subsequent calls will be ignored.
447
- *
448
- * As name implies currently this is experimental interface may change over time without semver
449
- * major breaking changes. Please provide feedbacks,
450
- * or bug report at https://github.com/swc-project/swc/discussions.
435
+ * @deprecated Trace profiling is disabled. This function is kept as a no-op for compatibility.
451
436
  */
452
437
  function __experimental_registerGlobalTraceConfig(traceConfig) {
453
- // Do not raise error if binding doesn't exists - fallback binding will not support
454
- // this ever.
455
- if (bindings) {
456
- if (traceConfig.type === "traceEvent") {
457
- bindings.initCustomTraceSubscriber(traceConfig.fileName);
458
- }
459
- }
438
+ void traceConfig;
460
439
  }
461
440
  /**
462
441
  * @ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.15.41",
3
+ "version": "1.15.43",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -83,7 +83,7 @@
83
83
  ],
84
84
  "dependencies": {
85
85
  "@swc/counter": "^0.1.3",
86
- "@swc/types": "^0.1.26"
86
+ "@swc/types": "^0.1.27"
87
87
  },
88
88
  "devDependencies": {
89
89
  "@napi-rs/cli": "^3.2.0",
@@ -92,18 +92,18 @@
92
92
  "typescript": "^5.3.3"
93
93
  },
94
94
  "optionalDependencies": {
95
- "@swc/core-darwin-x64": "1.15.41",
96
- "@swc/core-win32-x64-msvc": "1.15.41",
97
- "@swc/core-linux-x64-gnu": "1.15.41",
98
- "@swc/core-linux-ppc64-gnu": "1.15.41",
99
- "@swc/core-linux-s390x-gnu": "1.15.41",
100
- "@swc/core-linux-x64-musl": "1.15.41",
101
- "@swc/core-win32-ia32-msvc": "1.15.41",
102
- "@swc/core-linux-arm-gnueabihf": "1.15.41",
103
- "@swc/core-darwin-arm64": "1.15.41",
104
- "@swc/core-linux-arm64-gnu": "1.15.41",
105
- "@swc/core-linux-arm64-musl": "1.15.41",
106
- "@swc/core-win32-arm64-msvc": "1.15.41"
95
+ "@swc/core-darwin-x64": "1.15.43",
96
+ "@swc/core-win32-x64-msvc": "1.15.43",
97
+ "@swc/core-linux-x64-gnu": "1.15.43",
98
+ "@swc/core-linux-ppc64-gnu": "1.15.43",
99
+ "@swc/core-linux-s390x-gnu": "1.15.43",
100
+ "@swc/core-linux-x64-musl": "1.15.43",
101
+ "@swc/core-win32-ia32-msvc": "1.15.43",
102
+ "@swc/core-linux-arm-gnueabihf": "1.15.43",
103
+ "@swc/core-darwin-arm64": "1.15.43",
104
+ "@swc/core-linux-arm64-gnu": "1.15.43",
105
+ "@swc/core-linux-arm64-musl": "1.15.43",
106
+ "@swc/core-win32-arm64-msvc": "1.15.43"
107
107
  },
108
108
  "scripts": {
109
109
  "postinstall": "node postinstall.js",