@swc/wasm-web 1.16.22 → 1.16.30-nightly-20261205.1

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "강동윤 <kdy1997.dev@gmail.com>"
6
6
  ],
7
7
  "description": "wasm module for swc",
8
- "version": "1.16.22",
8
+ "version": "1.16.30-nightly-20261205.1",
9
9
  "license": "Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",
package/wasm.d.ts CHANGED
@@ -953,6 +953,11 @@ export interface ReactCompilerOptions {
953
953
 
954
954
  /**
955
955
  * ESLint rules whose suppressions opt a function out of compilation.
956
+ *
957
+ * Takes effect only when `environment.validateExhaustiveMemoizationDependencies`
958
+ * or `environment.validateHooksUsage` is `false`.
959
+ *
960
+ * Defaults to `["react-hooks/exhaustive-deps", "react-hooks/rules-of-hooks"]`.
956
961
  */
957
962
  eslintSuppressionRules?: string[];
958
963
 
@@ -970,6 +975,44 @@ export interface ReactCompilerOptions {
970
975
  * Dynamically-gated compilation.
971
976
  */
972
977
  dynamicGating?: ReactCompilerDynamicGatingConfig;
978
+
979
+ /**
980
+ * Curated subset of the compiler's `environment` options.
981
+ *
982
+ * Unset fields leave the compiler defaults intact.
983
+ */
984
+ environment?: ReactCompilerEnvironmentConfig;
985
+ }
986
+
987
+ export interface ReactCompilerEnvironmentConfig {
988
+ /**
989
+ * Extract anonymous functions that do not close over local variables into
990
+ * top-level helper functions.
991
+ *
992
+ * Defaults to `true`.
993
+ */
994
+ enableFunctionOutlining?: boolean;
995
+
996
+ /**
997
+ * Validate that manual memoization dependencies are exhaustive.
998
+ *
999
+ * The compiler reads `eslintSuppressionRules` only when this option or
1000
+ * `validateHooksUsage` is `false`. While both are `true`, ESLint
1001
+ * suppression comments do not opt a function out of compilation.
1002
+ *
1003
+ * Defaults to `true`.
1004
+ */
1005
+ validateExhaustiveMemoizationDependencies?: boolean;
1006
+
1007
+ /**
1008
+ * Validate that hooks are used according to the Rules of Hooks.
1009
+ *
1010
+ * See `validateExhaustiveMemoizationDependencies` for how this option
1011
+ * interacts with `eslintSuppressionRules`.
1012
+ *
1013
+ * Defaults to `true`.
1014
+ */
1015
+ validateHooksUsage?: boolean;
973
1016
  }
974
1017
 
975
1018
  export interface ReactCompilerGatingConfig {
package/wasm.js CHANGED
@@ -635,8 +635,8 @@ function __wbg_get_imports() {
635
635
  const ret = false;
636
636
  return ret;
637
637
  };
638
- imports.wbg.__wbindgen_closure_wrapper17216 = function(arg0, arg1, arg2) {
639
- const ret = makeMutClosure(arg0, arg1, 665, __wbg_adapter_52);
638
+ imports.wbg.__wbindgen_closure_wrapper18146 = function(arg0, arg1, arg2) {
639
+ const ret = makeMutClosure(arg0, arg1, 695, __wbg_adapter_52);
640
640
  return addHeapObject(ret);
641
641
  };
642
642
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
package/wasm_bg.wasm CHANGED
Binary file