@vitejs/plugin-rsc 0.5.22 → 0.5.23

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.
@@ -4901,10 +4901,10 @@
4901
4901
  return hook.checkDCE ? !0 : !1;
4902
4902
  })({
4903
4903
  bundleType: 1,
4904
- version: "19.2.4",
4904
+ version: "19.2.5",
4905
4905
  rendererPackageName: "react-server-dom-webpack",
4906
4906
  currentDispatcherRef: ReactSharedInternals,
4907
- reconcilerVersion: "19.2.4",
4907
+ reconcilerVersion: "19.2.5",
4908
4908
  getCurrentComponentInfo: function () {
4909
4909
  return currentOwnerInDEV;
4910
4910
  }
@@ -4394,23 +4394,20 @@
4394
4394
  function createMap(response, model) {
4395
4395
  if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
4396
4396
  if (!0 === model.$$consumed) throw Error("Already initialized Map.");
4397
- response = new Map(model);
4398
4397
  model.$$consumed = !0;
4399
- return response;
4398
+ return new Map(model);
4400
4399
  }
4401
4400
  function createSet(response, model) {
4402
4401
  if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
4403
4402
  if (!0 === model.$$consumed) throw Error("Already initialized Set.");
4404
- response = new Set(model);
4405
4403
  model.$$consumed = !0;
4406
- return response;
4404
+ return new Set(model);
4407
4405
  }
4408
4406
  function extractIterator(response, model) {
4409
4407
  if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
4410
4408
  if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
4411
- response = model[Symbol.iterator]();
4412
4409
  model.$$consumed = !0;
4413
- return response;
4410
+ return model[Symbol.iterator]();
4414
4411
  }
4415
4412
  function createModel(response, model, parentObject, key) {
4416
4413
  return "then" === key && "function" === typeof model ? null : model;
@@ -2807,23 +2807,20 @@ function getOutlinedModel(
2807
2807
  function createMap(response, model) {
2808
2808
  if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
2809
2809
  if (!0 === model.$$consumed) throw Error("Already initialized Map.");
2810
- response = new Map(model);
2811
2810
  model.$$consumed = !0;
2812
- return response;
2811
+ return new Map(model);
2813
2812
  }
2814
2813
  function createSet(response, model) {
2815
2814
  if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
2816
2815
  if (!0 === model.$$consumed) throw Error("Already initialized Set.");
2817
- response = new Set(model);
2818
2816
  model.$$consumed = !0;
2819
- return response;
2817
+ return new Set(model);
2820
2818
  }
2821
2819
  function extractIterator(response, model) {
2822
2820
  if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
2823
2821
  if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
2824
- response = model[Symbol.iterator]();
2825
2822
  model.$$consumed = !0;
2826
- return response;
2823
+ return model[Symbol.iterator]();
2827
2824
  }
2828
2825
  function createModel(response, model, parentObject, key) {
2829
2826
  return "then" === key && "function" === typeof model ? null : model;
@@ -4465,23 +4465,20 @@
4465
4465
  function createMap(response, model) {
4466
4466
  if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
4467
4467
  if (!0 === model.$$consumed) throw Error("Already initialized Map.");
4468
- response = new Map(model);
4469
4468
  model.$$consumed = !0;
4470
- return response;
4469
+ return new Map(model);
4471
4470
  }
4472
4471
  function createSet(response, model) {
4473
4472
  if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
4474
4473
  if (!0 === model.$$consumed) throw Error("Already initialized Set.");
4475
- response = new Set(model);
4476
4474
  model.$$consumed = !0;
4477
- return response;
4475
+ return new Set(model);
4478
4476
  }
4479
4477
  function extractIterator(response, model) {
4480
4478
  if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
4481
4479
  if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
4482
- response = model[Symbol.iterator]();
4483
4480
  model.$$consumed = !0;
4484
- return response;
4481
+ return model[Symbol.iterator]();
4485
4482
  }
4486
4483
  function createModel(response, model, parentObject, key) {
4487
4484
  return "then" === key && "function" === typeof model ? null : model;
@@ -2803,23 +2803,20 @@ function getOutlinedModel(
2803
2803
  function createMap(response, model) {
2804
2804
  if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
2805
2805
  if (!0 === model.$$consumed) throw Error("Already initialized Map.");
2806
- response = new Map(model);
2807
2806
  model.$$consumed = !0;
2808
- return response;
2807
+ return new Map(model);
2809
2808
  }
2810
2809
  function createSet(response, model) {
2811
2810
  if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
2812
2811
  if (!0 === model.$$consumed) throw Error("Already initialized Set.");
2813
- response = new Set(model);
2814
2812
  model.$$consumed = !0;
2815
- return response;
2813
+ return new Set(model);
2816
2814
  }
2817
2815
  function extractIterator(response, model) {
2818
2816
  if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
2819
2817
  if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
2820
- response = model[Symbol.iterator]();
2821
2818
  model.$$consumed = !0;
2822
- return response;
2819
+ return model[Symbol.iterator]();
2823
2820
  }
2824
2821
  function createModel(response, model, parentObject, key) {
2825
2822
  return "then" === key && "function" === typeof model ? null : model;
@@ -4868,23 +4868,20 @@
4868
4868
  function createMap(response, model) {
4869
4869
  if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
4870
4870
  if (!0 === model.$$consumed) throw Error("Already initialized Map.");
4871
- response = new Map(model);
4872
4871
  model.$$consumed = !0;
4873
- return response;
4872
+ return new Map(model);
4874
4873
  }
4875
4874
  function createSet(response, model) {
4876
4875
  if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
4877
4876
  if (!0 === model.$$consumed) throw Error("Already initialized Set.");
4878
- response = new Set(model);
4879
4877
  model.$$consumed = !0;
4880
- return response;
4878
+ return new Set(model);
4881
4879
  }
4882
4880
  function extractIterator(response, model) {
4883
4881
  if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
4884
4882
  if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
4885
- response = model[Symbol.iterator]();
4886
4883
  model.$$consumed = !0;
4887
- return response;
4884
+ return model[Symbol.iterator]();
4888
4885
  }
4889
4886
  function createModel(response, model, parentObject, key) {
4890
4887
  return "then" === key && "function" === typeof model ? null : model;
@@ -2832,23 +2832,20 @@ function getOutlinedModel(
2832
2832
  function createMap(response, model) {
2833
2833
  if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
2834
2834
  if (!0 === model.$$consumed) throw Error("Already initialized Map.");
2835
- response = new Map(model);
2836
2835
  model.$$consumed = !0;
2837
- return response;
2836
+ return new Map(model);
2838
2837
  }
2839
2838
  function createSet(response, model) {
2840
2839
  if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
2841
2840
  if (!0 === model.$$consumed) throw Error("Already initialized Set.");
2842
- response = new Set(model);
2843
2841
  model.$$consumed = !0;
2844
- return response;
2842
+ return new Set(model);
2845
2843
  }
2846
2844
  function extractIterator(response, model) {
2847
2845
  if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
2848
2846
  if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
2849
- response = model[Symbol.iterator]();
2850
2847
  model.$$consumed = !0;
2851
- return response;
2848
+ return model[Symbol.iterator]();
2852
2849
  }
2853
2850
  function createModel(response, model, parentObject, key) {
2854
2851
  return "then" === key && "function" === typeof model ? null : model;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-server-dom-webpack",
3
3
  "description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
4
- "version": "19.2.4",
4
+ "version": "19.2.5",
5
5
  "keywords": [
6
6
  "react"
7
7
  ],
@@ -84,8 +84,8 @@
84
84
  "node": ">=0.10.0"
85
85
  },
86
86
  "peerDependencies": {
87
- "react": "^19.2.4",
88
- "react-dom": "^19.2.4",
87
+ "react": "^19.2.5",
88
+ "react-dom": "^19.2.5",
89
89
  "webpack": "^5.59.0"
90
90
  },
91
91
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitejs/plugin-rsc",
3
- "version": "0.5.22",
3
+ "version": "0.5.23",
4
4
  "description": "React Server Components (RSC) support for Vite.",
5
5
  "keywords": [
6
6
  "react",
@@ -60,9 +60,9 @@
60
60
  "@vitejs/test-dep-cjs-and-esm": "./test-dep/cjs-and-esm",
61
61
  "@vitejs/test-dep-cjs-falsy-primitive": "./test-dep/cjs-falsy-primitive",
62
62
  "picocolors": "^1.1.1",
63
- "react": "^19.2.4",
64
- "react-dom": "^19.2.4",
65
- "react-server-dom-webpack": "^19.2.4",
63
+ "react": "^19.2.5",
64
+ "react-dom": "^19.2.5",
65
+ "react-server-dom-webpack": "^19.2.5",
66
66
  "tinyexec": "^1.0.4",
67
67
  "tsdown": "^0.21.7"
68
68
  },