@uniformdev/canvas-next-rsc 20.66.5-alpha.3 → 20.66.6-alpha.13

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/handler.js CHANGED
@@ -389,6 +389,7 @@ var isSvixMessage = async (request) => {
389
389
  };
390
390
  };
391
391
  var processCompositionChange = async (compositionId) => {
392
+ var _a;
392
393
  const projectMapClient = getProjectMapClient({
393
394
  cache: {
394
395
  type: "no-cache"
@@ -405,12 +406,15 @@ var processCompositionChange = async (compositionId) => {
405
406
  if (composition == null ? void 0 : composition.pattern) {
406
407
  tags.push("route");
407
408
  }
409
+ const config = getServerConfig();
408
410
  if (nodes) {
409
411
  for (let i = 0; i < nodes.length; i++) {
410
412
  const node = nodes[i];
411
- await processEdgeConfigChange({
412
- source_url: node.path
413
- });
413
+ if ((_a = config.experimental) == null ? void 0 : _a.edgeCompositions) {
414
+ await processEdgeConfigChange({
415
+ source_url: node.path
416
+ });
417
+ }
414
418
  const result = buildProjectMapNodePaths(node.path);
415
419
  tags.push(...result.tags);
416
420
  if (result.paths) {
package/dist/handler.mjs CHANGED
@@ -356,6 +356,7 @@ var isSvixMessage = async (request) => {
356
356
  };
357
357
  };
358
358
  var processCompositionChange = async (compositionId) => {
359
+ var _a;
359
360
  const projectMapClient = getProjectMapClient({
360
361
  cache: {
361
362
  type: "no-cache"
@@ -372,12 +373,15 @@ var processCompositionChange = async (compositionId) => {
372
373
  if (composition == null ? void 0 : composition.pattern) {
373
374
  tags.push("route");
374
375
  }
376
+ const config = getServerConfig();
375
377
  if (nodes) {
376
378
  for (let i = 0; i < nodes.length; i++) {
377
379
  const node = nodes[i];
378
- await processEdgeConfigChange({
379
- source_url: node.path
380
- });
380
+ if ((_a = config.experimental) == null ? void 0 : _a.edgeCompositions) {
381
+ await processEdgeConfigChange({
382
+ source_url: node.path
383
+ });
384
+ }
381
385
  const result = buildProjectMapNodePaths(node.path);
382
386
  tags.push(...result.tags);
383
387
  if (result.paths) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next-rsc",
3
- "version": "20.66.5-alpha.3+b7b53292c2",
3
+ "version": "20.66.6-alpha.13+fe28111153",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -60,15 +60,15 @@
60
60
  "react-dom": "19.2.1"
61
61
  },
62
62
  "dependencies": {
63
- "@uniformdev/canvas": "20.66.5-alpha.3+b7b53292c2",
64
- "@uniformdev/canvas-next-rsc-client": "^20.66.5-alpha.3+b7b53292c2",
65
- "@uniformdev/canvas-next-rsc-shared": "^20.66.5-alpha.3+b7b53292c2",
66
- "@uniformdev/canvas-react": "20.66.5-alpha.3+b7b53292c2",
67
- "@uniformdev/context": "20.66.5-alpha.3+b7b53292c2",
68
- "@uniformdev/project-map": "20.66.5-alpha.3+b7b53292c2",
69
- "@uniformdev/redirect": "20.66.5-alpha.3+b7b53292c2",
70
- "@uniformdev/richtext": "20.66.5-alpha.3+b7b53292c2",
71
- "@uniformdev/webhooks": "20.66.5-alpha.3+b7b53292c2",
63
+ "@uniformdev/canvas": "20.66.6-alpha.13+fe28111153",
64
+ "@uniformdev/canvas-next-rsc-client": "^20.66.6-alpha.13+fe28111153",
65
+ "@uniformdev/canvas-next-rsc-shared": "^20.66.6-alpha.13+fe28111153",
66
+ "@uniformdev/canvas-react": "20.66.6-alpha.13+fe28111153",
67
+ "@uniformdev/context": "20.66.6-alpha.13+fe28111153",
68
+ "@uniformdev/project-map": "20.66.6-alpha.13+fe28111153",
69
+ "@uniformdev/redirect": "20.66.6-alpha.13+fe28111153",
70
+ "@uniformdev/richtext": "20.66.6-alpha.13+fe28111153",
71
+ "@uniformdev/webhooks": "20.66.6-alpha.13+fe28111153",
72
72
  "@vercel/edge-config": "^0.4.0",
73
73
  "encoding": "^0.1.13",
74
74
  "server-only": "^0.0.1",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "b7b53292c2920fc1b21e12c2f8aafc38f39b3ff3"
88
+ "gitHead": "fe28111153c9c1db9a7025cc18512fc4239c2b5c"
89
89
  }