@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.
package/dist/js/index.mjs CHANGED
@@ -7392,7 +7392,9 @@ var RecentFeedbackResponseSchema = z9.object({
7392
7392
  location: z9.string(),
7393
7393
  wasHelpful: z9.boolean(),
7394
7394
  userFeedback: z9.string(),
7395
- feedbackType: z9.string().optional()
7395
+ feedbackType: z9.string().optional(),
7396
+ /** URL of the docs page the feedback was submitted on. */
7397
+ url: z9.string().optional()
7396
7398
  })
7397
7399
  ),
7398
7400
  hasMore: z9.boolean()
@@ -20154,9 +20156,6 @@ function toUnversionedSlug(slug, versionSlug) {
20154
20156
  return Slug(slug.replace(new RegExp(`^${escapeRegExp4(versionSlug)}(/|$)`), ""));
20155
20157
  }
20156
20158
 
20157
- // src/navigation/utils/pruneNavigationTree.ts
20158
- import structuredClone from "@ungap/structured-clone";
20159
-
20160
20159
  // src/utils/traversers/prunetree.ts
20161
20160
  function prunetree(root, opts) {
20162
20161
  const { predicate, getChildren: getChildren3, deleter, getPointer = (node) => node } = opts;
@@ -20293,11 +20292,20 @@ function mutableDeleteChild(parent, node) {
20293
20292
  // src/navigation/utils/pruneNavigationTree.ts
20294
20293
  var Pruner = class _Pruner {
20295
20294
  static from(tree) {
20295
+ return new _Pruner(structuredClone(tree));
20296
+ }
20297
+ /**
20298
+ * Skips the defensive clone `from` makes: the caller transfers ownership of
20299
+ * `tree` and must not read it afterwards. Use when the tree is already a
20300
+ * private copy (e.g. cloned one step earlier in the same pipeline) — cloning
20301
+ * a megabyte-scale nav tree twice per page dominates static-build GC.
20302
+ */
20303
+ static fromOwned(tree) {
20296
20304
  return new _Pruner(tree);
20297
20305
  }
20298
20306
  tree;
20299
20307
  constructor(tree) {
20300
- this.tree = structuredClone(tree);
20308
+ this.tree = tree;
20301
20309
  }
20302
20310
  keep(predicate) {
20303
20311
  if (this.tree == null) {