react-server-dom-webpack 18.3.0-next-0b974418c-20230106 → 18.3.0-next-0f4a83596-20230110

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.
@@ -175,7 +175,7 @@ var BLOCKED = 'blocked';
175
175
  var RESOLVED_MODEL = 'resolved_model';
176
176
  var RESOLVED_MODULE = 'resolved_module';
177
177
  var INITIALIZED = 'fulfilled';
178
- var ERRORED = 'rejected';
178
+ var ERRORED = 'rejected'; // $FlowFixMe[missing-this-annot]
179
179
 
180
180
  function Chunk(status, value, reason, response) {
181
181
  this.status = status;
@@ -515,7 +515,8 @@ function createModelResolver(chunk, parentObject, key) {
515
515
  deps: 1,
516
516
  value: null
517
517
  };
518
- }
518
+ } // $FlowFixMe[missing-local-annot]
519
+
519
520
 
520
521
  return function (value) {
521
522
  parentObject[key] = value;
@@ -788,6 +789,7 @@ function processBinaryChunk(response, chunk) {
788
789
  }
789
790
 
790
791
  function createFromJSONCallback(response) {
792
+ // $FlowFixMe[missing-this-annot]
791
793
  return function (key, value) {
792
794
  if (typeof value === 'string') {
793
795
  // We can't use .bind here because we need the "this" value.
@@ -60,6 +60,7 @@ module.exports = function register() {
60
60
  // If this module is expected to return a Promise (such as an AsyncModule) then
61
61
  // we should resolve that with a client reference that unwraps the Promise on
62
62
  // the client.
63
+ // $FlowFixMe[missing-local-annot]
63
64
  var then = function then(resolve, reject) {
64
65
  var moduleReference = {
65
66
  $$typeof: MODULE_REFERENCE,
@@ -120,6 +121,7 @@ module.exports = function register() {
120
121
 
121
122
 
122
123
  var originalResolveFilename = Module._resolveFilename; // $FlowFixMe[prop-missing] found when upgrading Flow
124
+ // $FlowFixMe[missing-this-annot]
123
125
 
124
126
  Module._resolveFilename = function (request, parent, isMain, options) {
125
127
  var resolved = originalResolveFilename.apply(this, arguments);
@@ -110,7 +110,7 @@ class ReactFlightWebpackPlugin {
110
110
  compiler.hooks.thisCompilation.tap(PLUGIN_NAME, function (compilation, _ref2) {
111
111
  var normalModuleFactory = _ref2.normalModuleFactory;
112
112
  compilation.dependencyFactories.set(ClientReferenceDependency, normalModuleFactory);
113
- compilation.dependencyTemplates.set(ClientReferenceDependency, new NullDependency.Template());
113
+ compilation.dependencyTemplates.set(ClientReferenceDependency, new NullDependency.Template()); // $FlowFixMe[missing-local-annot]
114
114
 
115
115
  var handler = function (parser) {
116
116
  // We need to add all client references as dependency of something in the graph so
@@ -163,7 +163,7 @@ class ReactFlightWebpackPlugin {
163
163
  compilation.chunkGroups.forEach(function (chunkGroup) {
164
164
  var chunkIds = chunkGroup.chunks.map(function (c) {
165
165
  return c.id;
166
- });
166
+ }); // $FlowFixMe[missing-local-annot]
167
167
 
168
168
  function recordModule(id, module) {
169
169
  // TODO: Hook into deps instead of the target module.
@@ -1120,8 +1120,7 @@ var DefaultCacheDispatcher = {
1120
1120
  var entry = cache.get(createSignal);
1121
1121
 
1122
1122
  if (entry === undefined) {
1123
- entry = createSignal(); // $FlowFixMe[incompatible-use] found when upgrading Flow
1124
-
1123
+ entry = createSignal();
1125
1124
  cache.set(createSignal, entry);
1126
1125
  }
1127
1126
 
@@ -1133,7 +1132,6 @@ var DefaultCacheDispatcher = {
1133
1132
 
1134
1133
  if (entry === undefined) {
1135
1134
  entry = resourceType(); // TODO: Warn if undefined?
1136
- // $FlowFixMe[incompatible-use] found when upgrading Flow
1137
1135
 
1138
1136
  cache.set(resourceType, entry);
1139
1137
  }
@@ -1201,6 +1199,7 @@ function createRequest(model, bundlerConfig, onError, context, identifierPrefix)
1201
1199
  identifierPrefix: identifierPrefix || '',
1202
1200
  identifierCount: 1,
1203
1201
  onError: onError === undefined ? defaultErrorHandler : onError,
1202
+ // $FlowFixMe[missing-this-annot]
1204
1203
  toJSON: function (key, value) {
1205
1204
  return resolveModelToJSON(request, this, key, value);
1206
1205
  }
@@ -1984,8 +1983,7 @@ function resolveModelToJSON(request, parent, key, value) {
1984
1983
  emitSymbolChunk(request, symbolId, name);
1985
1984
  writtenSymbols.set(value, symbolId);
1986
1985
  return serializeByValueID(symbolId);
1987
- } // $FlowFixMe: bigint isn't added to Flow yet.
1988
-
1986
+ }
1989
1987
 
1990
1988
  if (typeof value === 'bigint') {
1991
1989
  throw new Error("BigInt (" + value + ") is not yet supported in Client Component props." + describeObjectForErrorMessage(parent, key));
@@ -1186,8 +1186,7 @@ var DefaultCacheDispatcher = {
1186
1186
  var entry = cache.get(createSignal);
1187
1187
 
1188
1188
  if (entry === undefined) {
1189
- entry = createSignal(); // $FlowFixMe[incompatible-use] found when upgrading Flow
1190
-
1189
+ entry = createSignal();
1191
1190
  cache.set(createSignal, entry);
1192
1191
  }
1193
1192
 
@@ -1199,7 +1198,6 @@ var DefaultCacheDispatcher = {
1199
1198
 
1200
1199
  if (entry === undefined) {
1201
1200
  entry = resourceType(); // TODO: Warn if undefined?
1202
- // $FlowFixMe[incompatible-use] found when upgrading Flow
1203
1201
 
1204
1202
  cache.set(resourceType, entry);
1205
1203
  }
@@ -1267,6 +1265,7 @@ function createRequest(model, bundlerConfig, onError, context, identifierPrefix)
1267
1265
  identifierPrefix: identifierPrefix || '',
1268
1266
  identifierCount: 1,
1269
1267
  onError: onError === undefined ? defaultErrorHandler : onError,
1268
+ // $FlowFixMe[missing-this-annot]
1270
1269
  toJSON: function (key, value) {
1271
1270
  return resolveModelToJSON(request, this, key, value);
1272
1271
  }
@@ -2050,8 +2049,7 @@ function resolveModelToJSON(request, parent, key, value) {
2050
2049
  emitSymbolChunk(request, symbolId, name);
2051
2050
  writtenSymbols.set(value, symbolId);
2052
2051
  return serializeByValueID(symbolId);
2053
- } // $FlowFixMe: bigint isn't added to Flow yet.
2054
-
2052
+ }
2055
2053
 
2056
2054
  if (typeof value === 'bigint') {
2057
2055
  throw new Error("BigInt (" + value + ") is not yet supported in Client Component props." + describeObjectForErrorMessage(parent, key));
package/package.json CHANGED
@@ -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": "18.3.0-next-0b974418c-20230106",
4
+ "version": "18.3.0-next-0f4a83596-20230110",
5
5
  "keywords": [
6
6
  "react"
7
7
  ],
@@ -49,8 +49,8 @@
49
49
  "node": ">=0.10.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "react": "18.3.0-next-0b974418c-20230106",
53
- "react-dom": "18.3.0-next-0b974418c-20230106",
52
+ "react": "18.3.0-next-0f4a83596-20230110",
53
+ "react-dom": "18.3.0-next-0f4a83596-20230110",
54
54
  "webpack": "^5.59.0"
55
55
  },
56
56
  "dependencies": {
@@ -172,7 +172,7 @@
172
172
  var RESOLVED_MODEL = 'resolved_model';
173
173
  var RESOLVED_MODULE = 'resolved_module';
174
174
  var INITIALIZED = 'fulfilled';
175
- var ERRORED = 'rejected';
175
+ var ERRORED = 'rejected'; // $FlowFixMe[missing-this-annot]
176
176
 
177
177
  function Chunk(status, value, reason, response) {
178
178
  this.status = status;
@@ -512,7 +512,8 @@
512
512
  deps: 1,
513
513
  value: null
514
514
  };
515
- }
515
+ } // $FlowFixMe[missing-local-annot]
516
+
516
517
 
517
518
  return function (value) {
518
519
  parentObject[key] = value;
@@ -785,6 +786,7 @@
785
786
  }
786
787
 
787
788
  function createFromJSONCallback(response) {
789
+ // $FlowFixMe[missing-this-annot]
788
790
  return function (key, value) {
789
791
  if (typeof value === 'string') {
790
792
  // We can't use .bind here because we need the "this" value.
@@ -1116,8 +1116,7 @@
1116
1116
  var entry = cache.get(createSignal);
1117
1117
 
1118
1118
  if (entry === undefined) {
1119
- entry = createSignal(); // $FlowFixMe[incompatible-use] found when upgrading Flow
1120
-
1119
+ entry = createSignal();
1121
1120
  cache.set(createSignal, entry);
1122
1121
  }
1123
1122
 
@@ -1129,7 +1128,6 @@
1129
1128
 
1130
1129
  if (entry === undefined) {
1131
1130
  entry = resourceType(); // TODO: Warn if undefined?
1132
- // $FlowFixMe[incompatible-use] found when upgrading Flow
1133
1131
 
1134
1132
  cache.set(resourceType, entry);
1135
1133
  }
@@ -1197,6 +1195,7 @@
1197
1195
  identifierPrefix: identifierPrefix || '',
1198
1196
  identifierCount: 1,
1199
1197
  onError: onError === undefined ? defaultErrorHandler : onError,
1198
+ // $FlowFixMe[missing-this-annot]
1200
1199
  toJSON: function (key, value) {
1201
1200
  return resolveModelToJSON(request, this, key, value);
1202
1201
  }
@@ -1980,8 +1979,7 @@
1980
1979
  emitSymbolChunk(request, symbolId, name);
1981
1980
  writtenSymbols.set(value, symbolId);
1982
1981
  return serializeByValueID(symbolId);
1983
- } // $FlowFixMe: bigint isn't added to Flow yet.
1984
-
1982
+ }
1985
1983
 
1986
1984
  if (typeof value === 'bigint') {
1987
1985
  throw new Error("BigInt (" + value + ") is not yet supported in Client Component props." + describeObjectForErrorMessage(parent, key));