upgrade-rspeedy-canary 0.11.8-canary-20251030-c1225ac8 → 0.11.8-canary-20251030-53eed0a5

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # upgrade-rspeedy
2
2
 
3
- ## 0.11.8-canary-20251030025611-c1225ac8c28cd440adf3013101bf77c822707e71
3
+ ## 0.11.8-canary-20251030071334-53eed0a562fb32455214a94d198f1516cb4359eb
4
4
 
5
5
  ## 0.11.7
6
6
 
@@ -2276,9 +2276,12 @@ function __webpack_require__(moduleId) {
2276
2276
  return module.exports;
2277
2277
  }
2278
2278
  (()=>{
2279
- var webpackQueues = "function" == typeof Symbol ? Symbol("webpack queues") : "__webpack_queues__";
2280
- var webpackExports = "function" == typeof Symbol ? Symbol("webpack exports") : "__webpack_exports__";
2281
- var webpackError = "function" == typeof Symbol ? Symbol("webpack error") : "__webpack_error__";
2279
+ var hasSymbol = "function" == typeof Symbol;
2280
+ var webpackQueues = hasSymbol ? Symbol("webpack queues") : "__webpack_queues__";
2281
+ var webpackExports = __webpack_require__.aE = hasSymbol ? Symbol("webpack exports") : "__webpack_exports__";
2282
+ var webpackError = hasSymbol ? Symbol("webpack error") : "__webpack_error__";
2283
+ var webpackDone = hasSymbol ? Symbol("webpack done") : "__webpack_done__";
2284
+ var webpackDefer = __webpack_require__.zS = hasSymbol ? Symbol("webpack defer") : "__webpack_defer__";
2282
2285
  var resolveQueue = (queue)=>{
2283
2286
  if (queue && queue.d < 1) {
2284
2287
  queue.d = 1;
@@ -2288,6 +2291,20 @@ function __webpack_require__(moduleId) {
2288
2291
  };
2289
2292
  var wrapDeps = (deps)=>deps.map((dep)=>{
2290
2293
  if (null !== dep && "object" == typeof dep) {
2294
+ if (!dep[webpackQueues] && dep[webpackDefer]) {
2295
+ var asyncDeps = dep[webpackDefer];
2296
+ var hasUnresolvedAsyncSubgraph = asyncDeps.some((id)=>{
2297
+ var cache = __webpack_module_cache__[id];
2298
+ return !cache || false === cache[webpackDone];
2299
+ });
2300
+ if (!hasUnresolvedAsyncSubgraph) return dep;
2301
+ var d = dep;
2302
+ dep = {
2303
+ then (callback) {
2304
+ Promise.all(asyncDeps.map(__webpack_require__)).then(()=>callback(d));
2305
+ }
2306
+ };
2307
+ }
2291
2308
  if (dep[webpackQueues]) return dep;
2292
2309
  if (dep.then) {
2293
2310
  var queue = [];
@@ -2300,6 +2317,7 @@ function __webpack_require__(moduleId) {
2300
2317
  resolveQueue(queue);
2301
2318
  });
2302
2319
  var obj = {};
2320
+ obj[webpackDefer] = false;
2303
2321
  obj[webpackQueues] = (fn)=>fn(queue);
2304
2322
  return obj;
2305
2323
  }
@@ -2326,10 +2344,11 @@ function __webpack_require__(moduleId) {
2326
2344
  queue && fn(queue), depQueues.forEach(fn), promise["catch"](function() {});
2327
2345
  };
2328
2346
  module.exports = promise;
2329
- body((deps)=>{
2347
+ var handle = (deps)=>{
2330
2348
  currentDeps = wrapDeps(deps);
2331
2349
  var fn;
2332
2350
  var getResult = ()=>currentDeps.map((d)=>{
2351
+ if (d[webpackDefer]) return d;
2333
2352
  if (d[webpackError]) throw d[webpackError];
2334
2353
  return d[webpackExports];
2335
2354
  });
@@ -2337,10 +2356,12 @@ function __webpack_require__(moduleId) {
2337
2356
  fn = ()=>resolve(getResult);
2338
2357
  fn.r = 0;
2339
2358
  var fnQueue = (q)=>q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn)));
2340
- currentDeps.map((dep)=>dep[webpackQueues](fnQueue));
2359
+ currentDeps.map((dep)=>dep[webpackDefer] || dep[webpackQueues](fnQueue));
2341
2360
  });
2342
2361
  return fn.r ? promise : getResult();
2343
- }, (err)=>(err ? reject(promise[webpackError] = err) : outerResolve(exports), resolveQueue(queue)));
2362
+ };
2363
+ var done = (err)=>(err ? reject(promise[webpackError] = err) : outerResolve(exports), resolveQueue(queue), promise[webpackDone] = true);
2364
+ body(handle, done);
2344
2365
  queue && queue.d < 0 && (queue.d = 0);
2345
2366
  };
2346
2367
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "upgrade-rspeedy-canary",
3
- "version": "0.11.8-canary-20251030-c1225ac8",
3
+ "version": "0.11.8-canary-20251030-53eed0a5",
4
4
  "description": "Upgrade Rspeedy-related packages",
5
5
  "keywords": [
6
6
  "webpack",
@@ -41,11 +41,11 @@
41
41
  "rslog": "^1.2.11",
42
42
  "type-fest": "^5.0.1",
43
43
  "@lynx-js/qrcode-rsbuild-plugin": "npm:@lynx-js/qrcode-rsbuild-plugin-canary@0.4.2",
44
- "@lynx-js/react-rsbuild-plugin": "npm:@lynx-js/react-rsbuild-plugin-canary@0.11.3-canary-20251030-c1225ac8",
45
- "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.11.8-canary-20251030-c1225ac8",
46
- "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.9",
47
- "@lynx-js/web-core": "npm:@lynx-js/web-core-canary@0.18.1",
48
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.114.3"
44
+ "@lynx-js/react-rsbuild-plugin": "npm:@lynx-js/react-rsbuild-plugin-canary@0.11.3-canary-20251030-53eed0a5",
45
+ "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.11.8-canary-20251030-53eed0a5",
46
+ "@lynx-js/web-core": "npm:@lynx-js/web-core-canary@0.18.2-canary-20251030-53eed0a5",
47
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.114.3",
48
+ "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.9"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=18"