fix(deps): update dependency dateformat to v5 (#884)

* fix(deps): update dependency dateformat to v5

* Fix transformIgnorePattern

* Update

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nathan Bierema <nbierema@gmail.com>
This commit is contained in:
renovate[bot] 2023-01-02 19:58:10 -05:00 committed by GitHub
parent 935460457b
commit 0833fa1622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 24 additions and 81 deletions

View File

@ -5,6 +5,7 @@ module.exports = {
moduleNameMapper: { moduleNameMapper: {
'\\.css$': '<rootDir>/test/__mocks__/styleMock.ts', '\\.css$': '<rootDir>/test/__mocks__/styleMock.ts',
}, },
transformIgnorePatterns: ['<rootDir>/node_modules/(?!(d3)/)'], transformIgnorePatterns: [
resolver: '<rootDir>/jestResolver.js', 'node_modules/(?!.pnpm|d3|dateformat|delaunator|nanoid|robust-predicates|uuid)',
],
}; };

View File

@ -1,15 +0,0 @@
module.exports = (path, options) => {
return options.defaultResolver(path, {
...options,
packageFilter: (pkg) => {
if (pkg.name === 'nanoid') {
pkg.exports['.'].browser = pkg.exports['.'].require;
}
if (pkg.name === 'uuid' && pkg.version.startsWith('8.')) {
delete pkg.exports;
delete pkg.module;
}
return pkg;
},
});
};

View File

@ -9,6 +9,7 @@ module.exports = {
'^.+\\.jsx?$': 'babel-jest', '^.+\\.jsx?$': 'babel-jest',
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }], '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
}, },
transformIgnorePatterns: ['<rootDir>/node_modules/(?!(d3)/)'], transformIgnorePatterns: [
resolver: '<rootDir>/jestResolver.js', 'node_modules/(?!.pnpm|d3|dateformat|delaunator|nanoid|robust-predicates|uuid)',
],
}; };

View File

@ -1,15 +0,0 @@
module.exports = (path, options) => {
return options.defaultResolver(path, {
...options,
packageFilter: (pkg) => {
if (pkg.name === 'nanoid') {
pkg.exports['.'].browser = pkg.exports['.'].require;
}
if (pkg.name === 'uuid' && pkg.version.startsWith('8.')) {
delete pkg.exports;
delete pkg.module;
}
return pkg;
},
});
};

View File

@ -5,7 +5,8 @@ module.exports = {
'\\.css$': '<rootDir>/test/__mocks__/styleMock.ts', '\\.css$': '<rootDir>/test/__mocks__/styleMock.ts',
}, },
transform: { transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }], '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
}, },
resolver: '<rootDir>/jestResolver.js', transformIgnorePatterns: ['node_modules/(?!.pnpm|nanoid)'],
}; };

View File

@ -1,11 +0,0 @@
module.exports = (path, options) => {
return options.defaultResolver(path, {
...options,
packageFilter: (pkg) => {
if (pkg.name === 'nanoid') {
pkg.exports['.'].browser = pkg.exports['.'].require;
}
return pkg;
},
});
};

View File

@ -39,7 +39,7 @@
"@types/dragula": "^3.7.1", "@types/dragula": "^3.7.1",
"@types/lodash": "^4.14.191", "@types/lodash": "^4.14.191",
"@types/prop-types": "^15.7.5", "@types/prop-types": "^15.7.5",
"dateformat": "^4.6.3", "dateformat": "^5.0.3",
"hex-rgba": "^1.0.2", "hex-rgba": "^1.0.2",
"immutable": "^4.1.0", "immutable": "^4.1.0",
"javascript-stringify": "^2.1.0", "javascript-stringify": "^2.1.0",
@ -62,7 +62,7 @@
"@babel/preset-react": "^7.18.6", "@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6", "@babel/preset-typescript": "^7.18.6",
"@redux-devtools/core": "^3.13.1", "@redux-devtools/core": "^3.13.1",
"@types/dateformat": "^3.0.1", "@types/dateformat": "^5.0.0",
"@types/hex-rgba": "^1.0.1", "@types/hex-rgba": "^1.0.1",
"@types/history": "^4.7.11", "@types/history": "^4.7.11",
"@types/lodash.debounce": "^4.0.7", "@types/lodash.debounce": "^4.0.7",

View File

@ -5,7 +5,8 @@ module.exports = {
'\\.css$': '<rootDir>/test/__mocks__/styleMock.ts', '\\.css$': '<rootDir>/test/__mocks__/styleMock.ts',
}, },
transform: { transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }], '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
}, },
resolver: '<rootDir>/jestResolver.js', transformIgnorePatterns: ['node_modules/(?!.pnpm|nanoid)'],
}; };

View File

@ -1,11 +0,0 @@
module.exports = (path, options) => {
return options.defaultResolver(path, {
...options,
packageFilter: (pkg) => {
if (pkg.name === 'nanoid') {
pkg.exports['.'].browser = pkg.exports['.'].require;
}
return pkg;
},
});
};

View File

@ -5,7 +5,8 @@ module.exports = {
'\\.css$': '<rootDir>/test/__mocks__/styleMock.ts', '\\.css$': '<rootDir>/test/__mocks__/styleMock.ts',
}, },
transform: { transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }], '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
}, },
resolver: '<rootDir>/jestResolver.js', transformIgnorePatterns: ['node_modules/(?!.pnpm|nanoid)'],
}; };

View File

@ -1,11 +0,0 @@
module.exports = (path, options) => {
return options.defaultResolver(path, {
...options,
packageFilter: (pkg) => {
if (pkg.name === 'nanoid') {
pkg.exports['.'].browser = pkg.exports['.'].require;
}
return pkg;
},
});
};

View File

@ -30,7 +30,7 @@
"build": "pnpm run build:lib && pnpm run build:storybook", "build": "pnpm run build:lib && pnpm run build:storybook",
"build:lib": "pnpm run build:cjs && pnpm run build:esm && pnpm run build:types && pnpm run build:css", "build:lib": "pnpm run build:cjs && pnpm run build:esm && pnpm run build:types && pnpm run build:css",
"build:cjs": "babel src --extensions \".ts,.tsx\" --out-dir lib/cjs", "build:cjs": "babel src --extensions \".ts,.tsx\" --out-dir lib/cjs",
"build:esm": "babel src --config-file ./babel.config.esm.json --no-babelrc --extensions \".ts,.tsx\" --out-dir lib/esm", "build:esm": "babel src --config-file ./babel.config.esm.json --extensions \".ts,.tsx\" --out-dir lib/esm",
"build:types": "tsc --emitDeclarationOnly", "build:types": "tsc --emitDeclarationOnly",
"build:css": "ncp fonts lib/fonts", "build:css": "ncp fonts lib/fonts",
"clean": "rimraf lib storybook-static", "clean": "rimraf lib storybook-static",

View File

@ -1132,7 +1132,7 @@ importers:
'@babel/preset-typescript': ^7.18.6 '@babel/preset-typescript': ^7.18.6
'@babel/runtime': ^7.20.6 '@babel/runtime': ^7.20.6
'@redux-devtools/core': ^3.13.1 '@redux-devtools/core': ^3.13.1
'@types/dateformat': ^3.0.1 '@types/dateformat': ^5.0.0
'@types/dragula': ^3.7.1 '@types/dragula': ^3.7.1
'@types/hex-rgba': ^1.0.1 '@types/hex-rgba': ^1.0.1
'@types/history': ^4.7.11 '@types/history': ^4.7.11
@ -1144,7 +1144,7 @@ importers:
'@types/redux-devtools-themes': ^1.0.0 '@types/redux-devtools-themes': ^1.0.0
'@typescript-eslint/eslint-plugin': ^5.47.0 '@typescript-eslint/eslint-plugin': ^5.47.0
'@typescript-eslint/parser': ^5.47.0 '@typescript-eslint/parser': ^5.47.0
dateformat: ^4.6.3 dateformat: ^5.0.3
eslint: ^8.30.0 eslint: ^8.30.0
eslint-config-prettier: ^8.5.0 eslint-config-prettier: ^8.5.0
eslint-plugin-react: ^7.31.11 eslint-plugin-react: ^7.31.11
@ -1170,7 +1170,7 @@ importers:
'@types/dragula': 3.7.1 '@types/dragula': 3.7.1
'@types/lodash': 4.14.191 '@types/lodash': 4.14.191
'@types/prop-types': 15.7.5 '@types/prop-types': 15.7.5
dateformat: 4.6.3 dateformat: 5.0.3
hex-rgba: 1.0.2 hex-rgba: 1.0.2
immutable: 4.1.0 immutable: 4.1.0
javascript-stringify: 2.1.0 javascript-stringify: 2.1.0
@ -1192,7 +1192,7 @@ importers:
'@babel/preset-react': 7.18.6_@babel+core@7.20.5 '@babel/preset-react': 7.18.6_@babel+core@7.20.5
'@babel/preset-typescript': 7.18.6_@babel+core@7.20.5 '@babel/preset-typescript': 7.18.6_@babel+core@7.20.5
'@redux-devtools/core': link:../redux-devtools '@redux-devtools/core': link:../redux-devtools
'@types/dateformat': 3.0.1 '@types/dateformat': 5.0.0
'@types/hex-rgba': 1.0.1 '@types/hex-rgba': 1.0.1
'@types/history': 4.7.11 '@types/history': 4.7.11
'@types/lodash.debounce': 4.0.7 '@types/lodash.debounce': 4.0.7
@ -8325,8 +8325,8 @@ packages:
'@types/d3-transition': 2.0.2 '@types/d3-transition': 2.0.2
'@types/d3-zoom': 2.0.3 '@types/d3-zoom': 2.0.3
/@types/dateformat/3.0.1: /@types/dateformat/5.0.0:
resolution: {integrity: sha512-KlPPdikagvL6ELjWsljbyDIPzNCeliYkqRpI+zea99vBBbCIA5JNshZAwQKTON139c87y9qvTFVgkFd14rtS4g==} resolution: {integrity: sha512-SZg4JdHIWHQGEokbYGZSDvo5wA4TLYPXaqhigs/wH+REDOejcJzgH+qyY+HtEUtWOZxEUkbhbdYPqQDiEgrXeA==}
dev: true dev: true
/@types/debug/4.1.7: /@types/debug/4.1.7:
@ -12159,8 +12159,9 @@ packages:
engines: {node: '>=0.11'} engines: {node: '>=0.11'}
dev: false dev: false
/dateformat/4.6.3: /dateformat/5.0.3:
resolution: {integrity: sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==} resolution: {integrity: sha512-Kvr6HmPXUMerlLcLF+Pwq3K7apHpYmGDVqrxcDasBg86UcKeTSNWbEzU8bwdXnxnR44FtMhJAxI4Bov6Y/KUfA==}
engines: {node: '>=12.20'}
dev: false dev: false
/debug/2.6.9: /debug/2.6.9: