Skip to content

Commit 539360b

Browse files
chore!: drop Node.js 10, update dependency filter-obj to v3 (#528)
1 parent c0058c5 commit 539360b

File tree

6 files changed

+23
-19
lines changed

6 files changed

+23
-19
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [macos-latest, ubuntu-latest, windows-latest]
18-
node-version: ['lts/*']
18+
node-version: ['12.20.0', 'lts/*']
1919

2020
steps:
2121
- uses: actions/checkout@v2

jest.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-env node */
2+
const esModules = ['filter-obj'].join('|');
3+
24
module.exports = {
35
roots: ['<rootDir>/src'],
4-
transform: {
5-
'^.+\\.tsx?$': 'ts-jest',
6-
},
6+
preset: 'ts-jest/presets/js-with-ts',
77
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
8-
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
8+
transformIgnorePatterns: [`node_modules/(?!${esModules})`],
99
};

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@
6767
"dependencies": {
6868
"aws-sdk": "^2.678.0",
6969
"axios": "^0.25.0",
70-
"filter-obj": "^2.0.1",
70+
"filter-obj": "^3.0.0",
7171
"jest-diff": "^27.0.0",
7272
"uuid": "^8.0.0"
7373
},
7474
"engines": {
75-
"node": ">=v8.17.0"
75+
"node": "^12.20.0 || ^14.14.0 || >=16.0.0"
7676
}
7777
}

src/common/dynamoDb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import filterObject = require('filter-obj');
1+
import filterObject from 'filter-obj';
22
import { AttributeMap } from 'aws-sdk/clients/dynamodb';
33
import { ICommonProps } from './';
44

tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"compilerOptions": {
33
"sourceMap": true,
4-
"lib": ["esnext"],
4+
"lib": ["ES2019"],
55
"module": "commonjs",
6-
"target": "es2017",
6+
"target": "ES2019",
77
"forceConsistentCasingInFileNames": true,
88
"noImplicitReturns": true,
99
"strict": true,
1010
"noUnusedLocals": true,
1111
"declaration": true,
12-
"outDir": "./lib"
12+
"outDir": "./lib",
13+
"allowJs": true
1314
},
1415
"include": ["src/**/*"],
1516
"exclude": ["node_modules", "**/*.test.ts"]

0 commit comments

Comments
 (0)