feat: implement visit function for safe traversal of nested structures #111
Annotations
10 errors and 8 warnings
|
test/safe.test.ts > cross-cutting semantics > mapSet descends recursively at every level:
packages/neotraverse/test/safe.test.ts#L200
TypeError: visit(...).map is not a function
❯ test/safe.test.ts:200:46
|
|
test/safe.test.ts > cross-cutting semantics > maxDepth bounds untrusted input with RangeError:
packages/neotraverse/test/safe.test.ts#L195
AssertionError: expected error to be instance of RangeError
- Expected:
[Function RangeError]
+ Received:
TypeError {
"message": "(0 , __vite_ssr_import_1__.visit) is not a function or its return value is not iterable",
}
❯ test/safe.test.ts:195:51
|
|
test/safe.test.ts > cross-cutting semantics > no recursion limit on deep input (visit is iterative):
packages/neotraverse/test/safe.test.ts#L189
TypeError: visit is not a function or its return value is not iterable
❯ test/safe.test.ts:189:19
|
|
test/safe.test.ts > invariants I1–I8 > I7 round-trip: get(root, v.path) === v.value:
packages/neotraverse/test/safe.test.ts#L153
TypeError: visit is not a function or its return value is not iterable
❯ test/safe.test.ts:153:19
|
|
test/safe.test.ts > invariants I1–I8 > I3 prune via skip:
packages/neotraverse/test/safe.test.ts#L119
TypeError: visit is not a function or its return value is not iterable
❯ test/safe.test.ts:119:19
|
|
test/safe.test.ts > invariants I1–I8 > I2 single visit; back-edge flagged, not descended:
packages/neotraverse/test/safe.test.ts#L112
TypeError: visit is not a function or its return value is not iterable
❯ test/safe.test.ts:112:23
|
|
test/safe.test.ts > invariants I1–I8 > I1 order: pre, post, breadth:
packages/neotraverse/test/safe.test.ts#L104
TypeError: visit is not a function or its return value is not iterable
❯ test/safe.test.ts:104:14
|
|
test/safe.test.ts > the 8 common tasks > 8. find the path of a value:
packages/neotraverse/test/safe.test.ts#L86
TypeError: visit(...).find is not a function
❯ test/safe.test.ts:86:28
|
|
test/safe.test.ts > the 8 common tasks > 7. deep freeze (post-order):
packages/neotraverse/test/safe.test.ts#L77
TypeError: visit is not a function or its return value is not iterable
❯ test/safe.test.ts:77:19
|
|
test/safe.test.ts > the 8 common tasks > 2. collect all values of a key (lazy):
packages/neotraverse/test/safe.test.ts#L37
TypeError: visit(...).map is not a function
❯ test/safe.test.ts:37:30
|
|
test (22)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683, actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af, pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
test (22)
Failed to save: <h2>Our services aren't available right now</h2><p>We're working to restore all services as soon as possible. Please check back soon.</p>0+pMqagAAAAC14XtjEQRQS6a6xoaX/gFrUEhMMzBFREdFMDIyMgBFZGdl
|
|
test (22)
Failed to restore: Cache service responded with 400
|
|
test (24)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683, actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af, pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
test (24)
Failed to save: <h2>Our services aren't available right now</h2><p>We're working to restore all services as soon as possible. Please check back soon.</p>0/pMqagAAAADhq6b+IaoYQqPN4ZkYWcrtUEhMMzBFREdFMDQxMQBFZGdl
|
|
test (24)
Failed to restore: Cache service responded with 400
|
|
test (20)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683, actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af, pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
test (20)
Failed to restore: Cache service responded with 400
|