Skip to content

Migrating from v9

Breaking changes

  • date-fns library is updated to version 4
  • data-test attribute is renamed to data-test-id
  • alt-position now accepts any returned style and won't do any conversion

date-fns update

If you are using date-fns in your project, please refer to date-fns v4 changelog for any potential changes or conflicts. Otherwise, no need for any action

data-test-id

This attribute is used internally for unit testing, however it is exposed for convenience if you need to do any further unit/integration testing

js
document.querySelector('[data-test="dp-input"]'); 
document.querySelector('[data-test-id="dp-input"]'); 

alt-position

The custom function passed via prop can return any value and won't do any custom parsing

ts
const myAltPositioning = (el: HTMLElement) => {
  return {
    top: 10, 
    left: 50,
    top: '10px', 
    left: '50px', 
    // ... any other style
  }  
}

Released under the MIT License.