@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.
@@ -16267,9 +16267,6 @@ function toUnversionedSlug(slug, versionSlug) {
16267
16267
  return Slug(slug.replace(new RegExp(`^${(0, import_string7.escapeRegExp)(versionSlug)}(/|$)`), ""));
16268
16268
  }
16269
16269
 
16270
- // src/navigation/utils/pruneNavigationTree.ts
16271
- var import_structured_clone = __toESM(require("@ungap/structured-clone"), 1);
16272
-
16273
16270
  // src/utils/traversers/prunetree.ts
16274
16271
  function prunetree(root, opts) {
16275
16272
  const { predicate, getChildren: getChildren3, deleter, getPointer = (node) => node } = opts;
@@ -16406,11 +16403,20 @@ function mutableDeleteChild(parent, node) {
16406
16403
  // src/navigation/utils/pruneNavigationTree.ts
16407
16404
  var Pruner = class _Pruner {
16408
16405
  static from(tree) {
16406
+ return new _Pruner(structuredClone(tree));
16407
+ }
16408
+ /**
16409
+ * Skips the defensive clone `from` makes: the caller transfers ownership of
16410
+ * `tree` and must not read it afterwards. Use when the tree is already a
16411
+ * private copy (e.g. cloned one step earlier in the same pipeline) — cloning
16412
+ * a megabyte-scale nav tree twice per page dominates static-build GC.
16413
+ */
16414
+ static fromOwned(tree) {
16409
16415
  return new _Pruner(tree);
16410
16416
  }
16411
16417
  tree;
16412
16418
  constructor(tree) {
16413
- this.tree = (0, import_structured_clone.default)(tree);
16419
+ this.tree = tree;
16414
16420
  }
16415
16421
  keep(predicate) {
16416
16422
  if (this.tree == null) {