babel-plugin-react-compiler 19.0.0-beta-ebf51a3-20250411 → 19.1.0-rc.1-rc-af1b7da-20250421

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 (2) hide show
  1. package/dist/index.js +17 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -114927,6 +114927,9 @@ function isSetActionStateType(id) {
114927
114927
  function isDispatcherType(id) {
114928
114928
  return id.type.kind === "Function" && id.type.shapeId === "BuiltInDispatch";
114929
114929
  }
114930
+ function isFireFunctionType(id) {
114931
+ return id.type.kind === "Function" && id.type.shapeId === "BuiltInFireFunction";
114932
+ }
114930
114933
  function isStableType(id) {
114931
114934
  return isSetStateType(id) || isSetActionStateType(id) || isDispatcherType(id) || isUseRefType(id) || isStartTransitionType(id);
114932
114935
  }
@@ -118098,6 +118101,7 @@ var BuiltInUseContextHookId = "BuiltInUseContextHook";
118098
118101
  var BuiltInUseTransitionId = "BuiltInUseTransition";
118099
118102
  var BuiltInStartTransitionId = "BuiltInStartTransition";
118100
118103
  var BuiltInFireId = "BuiltInFire";
118104
+ var BuiltInFireFunctionId = "BuiltInFireFunction";
118101
118105
  var BUILTIN_SHAPES = /* @__PURE__ */ new Map();
118102
118106
  addObject(BUILTIN_SHAPES, BuiltInPropsId, [
118103
118107
  ["ref", { kind: "Object", shapeId: BuiltInUseRefId }]
@@ -123545,7 +123549,12 @@ var REACT_APIS = [
123545
123549
  {
123546
123550
  positionalParams: [],
123547
123551
  restParam: null,
123548
- returnType: { kind: "Primitive" },
123552
+ returnType: {
123553
+ kind: "Function",
123554
+ return: { kind: "Poly" },
123555
+ shapeId: BuiltInFireFunctionId,
123556
+ isConstructor: false
123557
+ },
123549
123558
  calleeEffect: "read" /* Read */,
123550
123559
  returnValueKind: "frozen" /* Frozen */
123551
123560
  },
@@ -136486,7 +136495,7 @@ function inferEffectDependencies(fn) {
136486
136495
  });
136487
136496
  }
136488
136497
  for (const dep of scopeInfo.deps) {
136489
- if ((isUseRefType(dep.identifier) || isSetStateType(dep.identifier)) && !reactiveIds.has(dep.identifier.id)) {
136498
+ if ((isUseRefType(dep.identifier) || isSetStateType(dep.identifier)) && !reactiveIds.has(dep.identifier.id) || isFireFunctionType(dep.identifier)) {
136490
136499
  continue;
136491
136500
  }
136492
136501
  const { place, instructions } = writeDependencyToInstructions(
@@ -142218,6 +142227,12 @@ var Context4 = class {
142218
142227
  callee.identifier.id,
142219
142228
  () => createTemporaryPlace(__privateGet(this, _env3), GeneratedSource)
142220
142229
  );
142230
+ fireFunctionBinding.identifier.type = {
142231
+ kind: "Function",
142232
+ shapeId: BuiltInFireFunctionId,
142233
+ return: { kind: "Poly" },
142234
+ isConstructor: false
142235
+ };
142221
142236
  __privateGet(this, _capturedCalleeIdentifierIds).set(callee.identifier.id, {
142222
142237
  fireFunctionBinding,
142223
142238
  capturedCalleeIdentifier: callee.identifier,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-react-compiler",
3
- "version": "19.0.0-beta-ebf51a3-20250411",
3
+ "version": "19.1.0-rc.1-rc-af1b7da-20250421",
4
4
  "description": "Babel plugin for React Compiler.",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",