Skip to content

Commit 846dcfa

Browse files
authored
fix: add js extension to lodash imports (#684)
* fix: add js extension to lodash imports * chore: update dependencies
1 parent 4c0d713 commit 846dcfa

20 files changed

+2972
-742
lines changed

package-lock.json

Lines changed: 2930 additions & 700 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
},
1515
"scripts": {
16-
"compile": "shx rm -rf dist/ && tsup src/index.ts --format cjs,esm --dts",
16+
"compile": "shx rm -rf dist/ && tsup src/index.ts --format cjs,esm --dts --treeshake",
1717
"docs": "vuepress dev docs",
1818
"docs:build": "vuepress build docs",
1919
"prepublishOnly": "npm run compile",
@@ -86,25 +86,25 @@
8686
"@types/debug": "^4.1.7",
8787
"@types/lodash": "^4.14.182",
8888
"@types/mocha": "^9.1.1",
89-
"@types/node": "^17.0.35",
89+
"@types/node": "^18.6.3",
9090
"@types/traverse": "^0.6.32",
91-
"@typescript-eslint/eslint-plugin": "^5.25.0",
92-
"@typescript-eslint/parser": "^5.25.0",
93-
"c8": "^7.11.3",
91+
"@typescript-eslint/eslint-plugin": "^5.31.0",
92+
"@typescript-eslint/parser": "^5.31.0",
93+
"c8": "^7.12.0",
9494
"chai": "^4.3.6",
9595
"clone": "^2.1.2",
96-
"eslint": "^8.16.0",
96+
"eslint": "^8.20.0",
9797
"eslint-plugin-import": "^2.26.0",
9898
"eslint-plugin-prefer-arrow": "^1.2.3",
9999
"feathers-memory": "^4.1.0",
100100
"mocha": "^10.0.0",
101101
"mongodb": "^4.6.0",
102-
"npm-check-updates": "^13.0.3",
102+
"npm-check-updates": "^16.0.3",
103103
"shx": "^0.3.4",
104104
"sift": "^16.0.0",
105-
"ts-node": "^10.8.0",
106-
"tsup": "^5.12.8",
107-
"typescript": "^4.6.4",
105+
"ts-node": "^10.9.1",
106+
"tsup": "^6.2.1",
107+
"typescript": "^4.7.4",
108108
"vuepress": "^1.9.7",
109109
"vuepress-theme-default-prefers-color-scheme": "^2.0.0"
110110
},

src/common/pluck.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import _pick from 'lodash/pick';
1+
import _pick from 'lodash/pick.js';
22

33
export function pluck <T extends Record<string, any>> (
44
items: T,

src/common/set-fields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import _set from 'lodash/set';
1+
import _set from 'lodash/set.js';
22

33
export function setFields <T extends Record<string, any>> (
44
items: T | T[],

src/common/transform-items.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import _get from 'lodash/get';
1+
import _get from 'lodash/get.js';
22

33
export function transformItems <T extends Record<string, any>> (
44
items: T | T[],

src/hooks/de-populate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Hook } from '@feathersjs/feathers';
2-
import _omit from 'lodash/omit';
2+
import _omit from 'lodash/omit.js';
33
import { getItems } from '../utils/get-items';
44
import { replaceItems } from '../utils/replace-items';
55

src/hooks/discard-query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Hook } from '@feathersjs/feathers';
2-
import _omit from 'lodash/omit';
2+
import _omit from 'lodash/omit.js';
33
import { checkContext } from '../utils/check-context';
44

55
/**

src/hooks/discard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Hook } from '@feathersjs/feathers';
2-
import _omit from 'lodash/omit';
2+
import _omit from 'lodash/omit.js';
33
import { checkContextIf } from './check-context-if';
44
import { getItems } from '../utils/get-items';
55
import { replaceItems } from '../utils/replace-items';

src/hooks/keep-in-array.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import errors from '@feathersjs/errors';
22
const { BadRequest } = errors;
3-
import _get from 'lodash/get';
4-
import _set from 'lodash/set';
5-
import _has from 'lodash/has';
3+
import _get from 'lodash/get.js';
4+
import _set from 'lodash/set.js';
5+
import _has from 'lodash/has.js';
66
import { getItems } from '../utils/get-items';
77
import type { Hook } from '@feathersjs/feathers';
88

src/hooks/keep-query-in-array.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { checkContext } from '../utils/check-context';
22
import errors from '@feathersjs/errors';
33
const { BadRequest } = errors;
4-
import _get from 'lodash/get';
5-
import _set from 'lodash/set';
6-
import _has from 'lodash/has';
4+
import _get from 'lodash/get.js';
5+
import _set from 'lodash/set.js';
6+
import _has from 'lodash/has.js';
77
import type { Hook } from '@feathersjs/feathers';
88

99
/**

0 commit comments

Comments
 (0)