@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/client/FdrClient.js +3 -1
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +3 -1
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/converters/index.js +10 -4
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +10 -4
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/index.js +13 -5
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +13 -5
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +10 -4
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +10 -4
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +3 -1
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +3 -1
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/types/navigation/utils/pruneNavigationTree.d.ts +7 -0
- package/dist/types/navigation/utils/pruneNavigationTree.d.ts.map +1 -1
- package/dist/types/orpc-client/dashboard-agent/contract.d.ts +12 -0
- package/dist/types/orpc-client/dashboard-agent/contract.d.ts.map +1 -1
- package/package.json +3 -5
|
@@ -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 =
|
|
15105
|
+
this.tree = tree;
|
|
15100
15106
|
}
|
|
15101
15107
|
keep(predicate) {
|
|
15102
15108
|
if (this.tree == null) {
|