@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.js CHANGED
@@ -7455,7 +7455,9 @@ var RecentFeedbackResponseSchema = z9.object({
7455
7455
  location: z9.string(),
7456
7456
  wasHelpful: z9.boolean(),
7457
7457
  userFeedback: z9.string(),
7458
- feedbackType: z9.string().optional()
7458
+ feedbackType: z9.string().optional(),
7459
+ /** URL of the docs page the feedback was submitted on. */
7460
+ url: z9.string().optional()
7459
7461
  })
7460
7462
  ),
7461
7463
  hasMore: z9.boolean()
@@ -20217,9 +20219,6 @@ function toUnversionedSlug(slug, versionSlug) {
20217
20219
  return Slug(slug.replace(new RegExp(`^${(0, import_string9.escapeRegExp)(versionSlug)}(/|$)`), ""));
20218
20220
  }
20219
20221
 
20220
- // src/navigation/utils/pruneNavigationTree.ts
20221
- var import_structured_clone = __toESM(require("@ungap/structured-clone"), 1);
20222
-
20223
20222
  // src/utils/traversers/prunetree.ts
20224
20223
  function prunetree(root, opts) {
20225
20224
  const { predicate, getChildren: getChildren3, deleter, getPointer = (node) => node } = opts;
@@ -20356,11 +20355,20 @@ function mutableDeleteChild(parent, node) {
20356
20355
  // src/navigation/utils/pruneNavigationTree.ts
20357
20356
  var Pruner = class _Pruner {
20358
20357
  static from(tree) {
20358
+ return new _Pruner(structuredClone(tree));
20359
+ }
20360
+ /**
20361
+ * Skips the defensive clone `from` makes: the caller transfers ownership of
20362
+ * `tree` and must not read it afterwards. Use when the tree is already a
20363
+ * private copy (e.g. cloned one step earlier in the same pipeline) — cloning
20364
+ * a megabyte-scale nav tree twice per page dominates static-build GC.
20365
+ */
20366
+ static fromOwned(tree) {
20359
20367
  return new _Pruner(tree);
20360
20368
  }
20361
20369
  tree;
20362
20370
  constructor(tree) {
20363
- this.tree = (0, import_structured_clone.default)(tree);
20371
+ this.tree = tree;
20364
20372
  }
20365
20373
  keep(predicate) {
20366
20374
  if (this.tree == null) {