@sanity/pkg-utils 6.11.6 → 6.11.7

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/dist/cli.cjs CHANGED
@@ -3,7 +3,7 @@ var cac = require("cac");
3
3
  function _interopDefaultCompat(e) {
4
4
  return e && typeof e == "object" && "default" in e ? e : { default: e };
5
5
  }
6
- var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "6.11.6";
6
+ var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "6.11.7";
7
7
  const cli = cac__default.default();
8
8
  cli.command("", "Check").alias("check").option("--strict", "Strict mode").option("--tsconfig [tsconfig]", "[string] tsconfig.json").action(async (options) => {
9
9
  const { checkAction } = await Promise.resolve().then(function() {
package/dist/index.d.cts CHANGED
@@ -564,7 +564,7 @@ export declare type ReactCompilerLoggerEvent =
564
564
  }
565
565
 
566
566
  /**
567
- * Until these types are on npm: https://github.com/facebook/react/blob/2ba462b665bb4691067e67db3cfbffc56959b788/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts#L34-L120
567
+ * Until these types are on npm: https://github.com/facebook/react/blob/0bc30748730063e561d87a24a4617526fdd38349/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts#L39-L122
568
568
  * @alpha
569
569
  */
570
570
  export declare interface ReactCompilerOptions {
@@ -583,6 +583,13 @@ export declare interface ReactCompilerOptions {
583
583
  */
584
584
  eslintSuppressionRules?: Array<string> | null | undefined
585
585
  sources?: Array<string> | ((filename: string) => boolean) | null
586
+ /**
587
+ * The minimum major version of React that the compiler should emit code for. If the target is 19
588
+ * or higher, the compiler emits direct imports of React runtime APIs needed by the compiler. On
589
+ * versions prior to 19, an extra runtime package react-compiler-runtime is necessary to provide
590
+ * a userspace approximation of runtime APIs.
591
+ */
592
+ target: '17' | '18' | '19'
586
593
  }
587
594
 
588
595
  /** @internal */
package/dist/index.d.ts CHANGED
@@ -564,7 +564,7 @@ export declare type ReactCompilerLoggerEvent =
564
564
  }
565
565
 
566
566
  /**
567
- * Until these types are on npm: https://github.com/facebook/react/blob/2ba462b665bb4691067e67db3cfbffc56959b788/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts#L34-L120
567
+ * Until these types are on npm: https://github.com/facebook/react/blob/0bc30748730063e561d87a24a4617526fdd38349/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts#L39-L122
568
568
  * @alpha
569
569
  */
570
570
  export declare interface ReactCompilerOptions {
@@ -583,6 +583,13 @@ export declare interface ReactCompilerOptions {
583
583
  */
584
584
  eslintSuppressionRules?: Array<string> | null | undefined
585
585
  sources?: Array<string> | ((filename: string) => boolean) | null
586
+ /**
587
+ * The minimum major version of React that the compiler should emit code for. If the target is 19
588
+ * or higher, the compiler emits direct imports of React runtime APIs needed by the compiler. On
589
+ * versions prior to 19, an extra runtime package react-compiler-runtime is necessary to provide
590
+ * a userspace approximation of runtime APIs.
591
+ */
592
+ target: '17' | '18' | '19'
586
593
  }
587
594
 
588
595
  /** @internal */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/pkg-utils",
3
- "version": "6.11.6",
3
+ "version": "6.11.7",
4
4
  "description": "Simple utilities for modern npm packages.",
5
5
  "keywords": [
6
6
  "sanity-io",
@@ -144,9 +144,9 @@
144
144
  "semver": "^7.6.0",
145
145
  "ts-node": "^10.9.2",
146
146
  "typescript": "5.6.3",
147
- "vitest": "^2.1.3",
147
+ "vitest": "^2.1.4",
148
148
  "vitest-github-actions-reporter": "^0.11.1",
149
- "@sanity/pkg-utils": "6.11.6"
149
+ "@sanity/pkg-utils": "6.11.7"
150
150
  },
151
151
  "peerDependencies": {
152
152
  "babel-plugin-react-compiler": "*",
@@ -72,7 +72,7 @@ export interface TSDocCustomTag {
72
72
  }
73
73
 
74
74
  /**
75
- * Until these types are on npm: https://github.com/facebook/react/blob/2ba462b665bb4691067e67db3cfbffc56959b788/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts#L34-L120
75
+ * Until these types are on npm: https://github.com/facebook/react/blob/0bc30748730063e561d87a24a4617526fdd38349/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts#L39-L122
76
76
  * @alpha
77
77
  */
78
78
  export interface ReactCompilerOptions {
@@ -105,6 +105,14 @@ export interface ReactCompilerOptions {
105
105
  eslintSuppressionRules?: Array<string> | null | undefined
106
106
 
107
107
  sources?: Array<string> | ((filename: string) => boolean) | null
108
+
109
+ /**
110
+ * The minimum major version of React that the compiler should emit code for. If the target is 19
111
+ * or higher, the compiler emits direct imports of React runtime APIs needed by the compiler. On
112
+ * versions prior to 19, an extra runtime package react-compiler-runtime is necessary to provide
113
+ * a userspace approximation of runtime APIs.
114
+ */
115
+ target: '17' | '18' | '19'
108
116
  }
109
117
 
110
118
  /**