Skip to content

Commit

Permalink
build(deps)!: update react-datepicker to v6
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Require date-fns 4
BREAKING CHANGE: bump react-datepicker from v4 to v7
List of breaking changes:
- v5: Hacker0x01/react-datepicker#4393
- v6: Hacker0x01/react-datepicker#4481
- v7: https://github.com/Hacker0x01/react-datepicker/releases/tag/v7.0.0
BREAKING CHANGE: remove includeTime prop in favor of showTimeSelect
BREAKING CHANGE: remove timeLabel prop in favor of timeCaption
Refs: CDS-206
  • Loading branch information
beawar committed Oct 15, 2024
1 parent 211bb2b commit f9ceeb4
Show file tree
Hide file tree
Showing 19 changed files with 1,499 additions and 1,373 deletions.
9 changes: 8 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ const config: StorybookConfig = {
options: {}
},
typescript: {
reactDocgen: 'react-docgen-typescript'
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
// Makes string and boolean types that can be undefined appear as inputs and switches
shouldRemoveUndefinedFromOptional: true,
// Filter out third-party props from node_modules except react-datepicker package
propFilter: (prop) =>
prop.parent ? !/node_modules\/(?!react-datepicker)/.test(prop.parent.fileName) : true,
},
},
webpackFinal: async (config) => {
return {
Expand Down
3 changes: 2 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ const config: Config = {
// A map from regular expressions to module names that allow to stub out resources with a single module
moduleNameMapper: {
'@testing-library/user-event/dist/cjs/keyboard/keyMap':
'<rootDir>/node_modules/@testing-library/user-event/dist/cjs/keyboard/keyMap'
'<rootDir>/node_modules/@testing-library/user-event/dist/cjs/keyboard/keyMap',
'\\.(css|less)$': 'identity-obj-proxy'
},

// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
Expand Down
Loading

0 comments on commit f9ceeb4

Please sign in to comment.