Skip to content

Commit

Permalink
fix: migrate bloated 'traverse' to 'neotraverse'
Browse files Browse the repository at this point in the history
  • Loading branch information
fratzinger committed Jul 17, 2024
1 parent fc9f5e4 commit 62550ec
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 19 deletions.
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"search.exclude": {
"**/node_modules": true,
"**/dist": true,
"**/package-lock.json": true,
"**/pnpm-lock.yaml": true
},
}

33 changes: 18 additions & 15 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"debug": "^4.3.4",
"graphql": "^16.8.1",
"lodash": "^4.17.21",
"traverse": "^0.6.8"
"neotraverse": "^0.6.11"
},
"devDependencies": {
"@feathers-plus/batch-loader": "^0.3.6",
Expand All @@ -84,7 +84,6 @@
"@types/debug": "^4.1.12",
"@types/lodash": "^4.14.202",
"@types/node": "^20.11.4",
"@types/traverse": "^0.6.36",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"@vitest/coverage-v8": "^1.2.0",
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 'traverse';
import traverser from 'neotraverse';

export function traverse<T extends Record<string, any>>(
items: T | T[],
Expand Down
2 changes: 1 addition & 1 deletion 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 'traverse';
import traverse from 'neotraverse';
import { checkContext } from '../utils/check-context';

/**
Expand Down

0 comments on commit 62550ec

Please sign in to comment.