Skip to content

Commit

Permalink
feat: neotraverse/legacy; v0.6.14 (#756)
Browse files Browse the repository at this point in the history
* Push

* Remove this type for traverse

* ci: update gh actions versions

* ci: use [email protected] explicitly

---------

Co-authored-by: Puru Vijay <[email protected]>
  • Loading branch information
fratzinger and PuruVJ authored Jul 21, 2024
1 parent 24bf949 commit c0aaff1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
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

0 comments on commit c0aaff1

Please sign in to comment.