@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
|
@@ -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 =
|
|
16419
|
+
this.tree = tree;
|
|
16414
16420
|
}
|
|
16415
16421
|
keep(predicate) {
|
|
16416
16422
|
if (this.tree == null) {
|