@fern-api/fdr-sdk 1.2.91-ddab979b89 → 1.2.92-44ed75bcdd

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.
@@ -14953,9 +14953,6 @@ function toUnversionedSlug(slug, versionSlug) {
14953
14953
  return Slug(slug.replace(new RegExp(`^${(0, import_string6.escapeRegExp)(versionSlug)}(/|$)`), ""));
14954
14954
  }
14955
14955
 
14956
- // src/navigation/utils/pruneNavigationTree.ts
14957
- var import_structured_clone = __toESM(require("@ungap/structured-clone"), 1);
14958
-
14959
14956
  // src/utils/traversers/prunetree.ts
14960
14957
  function prunetree(root, opts) {
14961
14958
  const { predicate, getChildren: getChildren3, deleter, getPointer = (node) => node } = opts;
@@ -15092,11 +15089,20 @@ function mutableDeleteChild(parent, node) {
15092
15089
  // src/navigation/utils/pruneNavigationTree.ts
15093
15090
  var Pruner = class _Pruner {
15094
15091
  static from(tree) {
15092
+ return new _Pruner(structuredClone(tree));
15093
+ }
15094
+ /**
15095
+ * Skips the defensive clone `from` makes: the caller transfers ownership of
15096
+ * `tree` and must not read it afterwards. Use when the tree is already a
15097
+ * private copy (e.g. cloned one step earlier in the same pipeline) — cloning
15098
+ * a megabyte-scale nav tree twice per page dominates static-build GC.
15099
+ */
15100
+ static fromOwned(tree) {
15095
15101
  return new _Pruner(tree);
15096
15102
  }
15097
15103
  tree;
15098
15104
  constructor(tree) {
15099
- this.tree = (0, import_structured_clone.default)(tree);
15105
+ this.tree = tree;
15100
15106
  }
15101
15107
  keep(predicate) {
15102
15108
  if (this.tree == null) {