@esri/solution-common 6.6.1-next.21 → 6.6.1-next.22

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.
@@ -828,7 +828,12 @@ function addFeatureServiceDefinition(serviceUrl, listToAdd, templateDictionary,
828
828
  removeLayerOptimization(item);
829
829
  // this can still chunk layers
830
830
  options = _updateAddOptions(itemTemplate, options, layerChunks, isSelfReferential, authentication);
831
- if (item.type === "Feature Layer") {
831
+ // Route based on the discriminator set by getLayersAndTables (which derives from
832
+ // properties.layers vs properties.tables) rather than the layer object's own `type`
833
+ // field. The latter may be missing when users supply custom layer JSON via
834
+ // params (e.g. {{params.buildSolution.items.<id>.service.layers}}), which would
835
+ // otherwise cause every layer to be pushed into the `tables` array.
836
+ if (toAdd.type === "layer" || item.type === "Feature Layer") {
832
837
  options.layers.push(item);
833
838
  }
834
839
  else {
@@ -802,7 +802,12 @@ export function addFeatureServiceDefinition(serviceUrl, listToAdd, templateDicti
802
802
  removeLayerOptimization(item);
803
803
  // this can still chunk layers
804
804
  options = _updateAddOptions(itemTemplate, options, layerChunks, isSelfReferential, authentication);
805
- if (item.type === "Feature Layer") {
805
+ // Route based on the discriminator set by getLayersAndTables (which derives from
806
+ // properties.layers vs properties.tables) rather than the layer object's own `type`
807
+ // field. The latter may be missing when users supply custom layer JSON via
808
+ // params (e.g. {{params.buildSolution.items.<id>.service.layers}}), which would
809
+ // otherwise cause every layer to be pushed into the `tables` array.
810
+ if (toAdd.type === "layer" || item.type === "Feature Layer") {
806
811
  options.layers.push(item);
807
812
  }
808
813
  else {
@@ -1,10 +1,10 @@
1
- Built 04/28/2026 20:42:16.70
1
+ Built 04/29/2026 20:42:20.71
2
2
  develop
3
- commit 78e030ce65b30542f556e345cd3d88c844709774
4
- Merge: bbf8f3423 11e7f7511
3
+ commit 4eeb9ac61a1286354f309f0c39518d87c563dc6e
4
+ Merge: 2db5006bb 331225baf
5
5
  Author: John Hauck <jhauck@esri.com>
6
- Date: Tue Apr 28 16:00:26 2026 -0600
6
+ Date: Wed Apr 29 13:56:18 2026 -0600
7
7
 
8
- Merge pull request #1582 from Esri/dev-build
8
+ Merge pull request #1583 from Esri/layers-vs-tables
9
9
 
10
- tests
10
+ update layer type check
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solution-common",
3
- "version": "6.6.1-next.21",
3
+ "version": "6.6.1-next.22",
4
4
  "description": "Provides general helper functions for @esri/solution.js.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -96,5 +96,5 @@
96
96
  "esri",
97
97
  "ES6"
98
98
  ],
99
- "gitHead": "78e030ce65b30542f556e345cd3d88c844709774"
99
+ "gitHead": "4eeb9ac61a1286354f309f0c39518d87c563dc6e"
100
100
  }