@loaders.gl/excel 5.0.0-alpha.4 → 5.0.0-alpha.6

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/dist.dev.js CHANGED
@@ -42054,6 +42054,12 @@ return true;`);
42054
42054
  type: "list",
42055
42055
  children: [serializeArrowField(listField)]
42056
42056
  };
42057
+ case LargeList2:
42058
+ const largeListType = arrowType;
42059
+ return {
42060
+ type: "large-list",
42061
+ children: [serializeArrowField(largeListType.valueField)]
42062
+ };
42057
42063
  case FixedSizeList2:
42058
42064
  const fixedSizeList = arrowType;
42059
42065
  return {
@@ -42067,6 +42073,15 @@ return true;`);
42067
42073
  type: "struct",
42068
42074
  children: structType.children.map((arrowField) => serializeArrowField(arrowField))
42069
42075
  };
42076
+ case SparseUnion:
42077
+ case DenseUnion:
42078
+ const unionType = arrowType;
42079
+ return {
42080
+ type: unionType instanceof DenseUnion ? "dense-union" : "sparse-union",
42081
+ typeIds: unionType.typeIds,
42082
+ children: unionType.children.map((arrowField) => serializeArrowField(arrowField)),
42083
+ typeIdToChildIndex: { ...unionType.typeIdToChildIndex }
42084
+ };
42070
42085
  case Dictionary:
42071
42086
  const dictionaryType = arrowType;
42072
42087
  return {
@@ -42095,6 +42110,10 @@ return true;`);
42095
42110
  const field = deserializeArrowField(dataType.children[0], options);
42096
42111
  return new List2(field);
42097
42112
  }
42113
+ case "large-list": {
42114
+ const field = deserializeArrowField(dataType.children[0], options);
42115
+ return new LargeList2(field);
42116
+ }
42098
42117
  case "fixed-size-list": {
42099
42118
  const child = deserializeArrowField(dataType.children[0], options);
42100
42119
  return new FixedSizeList2(dataType.listSize, child);
@@ -42107,6 +42126,13 @@ return true;`);
42107
42126
  );
42108
42127
  return new Struct(children);
42109
42128
  }
42129
+ case "sparse-union":
42130
+ case "dense-union": {
42131
+ const children = dataType.children.map(
42132
+ (arrowField) => deserializeArrowField(arrowField, options)
42133
+ );
42134
+ return dataType.type === "dense-union" ? new DenseUnion(dataType.typeIds, children) : new SparseUnion(dataType.typeIds, children);
42135
+ }
42110
42136
  case "dictionary": {
42111
42137
  return new Dictionary(
42112
42138
  deserializeArrowType(dataType.dictionary, options),