Skip to content

Commit

Permalink
chore!: drop Node.js 10, update dependency filter-obj to v3 (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Jan 23, 2022
1 parent c0058c5 commit 539360b
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: ['lts/*']
node-version: ['12.20.0', 'lts/*']

steps:
- uses: actions/checkout@v2
Expand Down
8 changes: 4 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-env node */
const esModules = ['filter-obj'].join('|');

module.exports = {
roots: ['<rootDir>/src'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
preset: 'ts-jest/presets/js-with-ts',
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
transformIgnorePatterns: [`node_modules/(?!${esModules})`],
};
19 changes: 11 additions & 8 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@
"dependencies": {
"aws-sdk": "^2.678.0",
"axios": "^0.25.0",
"filter-obj": "^2.0.1",
"filter-obj": "^3.0.0",
"jest-diff": "^27.0.0",
"uuid": "^8.0.0"
},
"engines": {
"node": ">=v8.17.0"
"node": "^12.20.0 || ^14.14.0 || >=16.0.0"
}
}
2 changes: 1 addition & 1 deletion src/common/dynamoDb.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import filterObject = require('filter-obj');
import filterObject from 'filter-obj';
import { AttributeMap } from 'aws-sdk/clients/dynamodb';
import { ICommonProps } from './';

Expand Down
7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"compilerOptions": {
"sourceMap": true,
"lib": ["esnext"],
"lib": ["ES2019"],
"module": "commonjs",
"target": "es2017",
"target": "ES2019",
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"strict": true,
"noUnusedLocals": true,
"declaration": true,
"outDir": "./lib"
"outDir": "./lib",
"allowJs": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.test.ts"]
Expand Down

0 comments on commit 539360b

Please sign in to comment.