Skip to content

2.0.1

Choose a tag to compare

@ocmachineuser ocmachineuser released this 05 Oct 06:39
· 51 commits to master since this release

See changelog and completed issues

API changes

Previously Select could be imported via import Select from '@opuscapita/react-select' which is a umd file with react-select bundled within, which is useful if someone wants to load it via browser script tag. But this is not ideal for Node.js environment, because in this case it's better to import only actually needed code, without any dependencies copied inside.

So, now available options include:

  • import Select from '@opuscapita/react-select' as previously, without changes
  • import Creatable from '@opuscapita/react-select/lib/Creatable'
  • import Async from '@opuscapita/react-select/lib/Async'
  • import AsyncCreatable from '@opuscapita/react-select/lib/AsyncCreatable'
  • import Select from '@opuscapita/react-select/lib/Select'

New individual imports are commonjs bundles without dependencies inside. Intended for usage in Node.js environment.