Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: neotraverse/legacy; v0.6.14 #756

Merged
merged 4 commits into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [18.x, 20.x, 22.5.1]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand All @@ -18,9 +18,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm install
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"debug": "^4.3.5",
"graphql": "^16.9.0",
"lodash": "^4.17.21",
"neotraverse": "^0.6.11"
"neotraverse": "^0.6.14"
},
"devDependencies": {
"@feathers-plus/batch-loader": "^0.3.6",
Expand Down
2 changes: 1 addition & 1 deletion src/common/traverse.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import traverser from 'neotraverse';
import traverser from 'neotraverse/legacy';

export function traverse<T extends Record<string, any>>(
items: T | T[],
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/mongo-keys.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { HookContext } from '@feathersjs/feathers';
import traverse from 'neotraverse';
import traverse from 'neotraverse/legacy';
import { checkContext } from '../utils/check-context';

/**
Expand All @@ -26,7 +26,7 @@ export function mongoKeys<H extends HookContext = HookContext>(
checkContext(context, 'before', null, 'mongoKeys');
const query = context.params.query || {};

traverse(query).forEach(function (this: any, node: any) {
traverse(query).forEach(function (node: any) {
const typeofNode = typeof node;
const key = this.key;
const path = this.path;
Expand Down