# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [2.0.0] - 2021-07-11

### Added

- type inference for event parameters (fixes #8)

## [1.1.0] - 2021-04-02

### Added

- **docs:** add deprecation note about exotic components

### Changed

- **docs:** simplify forwarded ref type

## [1.0.3] - 2020-12-27

### Fixed

- **docs:** fix `HeadingDefaultElement` references
- **docs:** fix ref forwarding example

## [1.0.2] - 2020-12-27

### Changed

- block external access to auxiliary types
- reference `@types/react` explicitly

## [1.0.1] - 2020-12-27

### Removed

- **readme:** misleading bundle size badge

## [1.0.0] - 2020-12-27

### Added

- `PolymorphicPropsWithoutRef` and `PolymorphicPropsWithRef` types for appending `as` to component props
- `PolymorphicForwardRefExoticComponent`, `PolymorphicMemoExoticComponent` and `PolymorphicLazyExoticComponent` types to support exotic components

[unreleased]: https://github.com/kripod/react-polymorphic-types/compare/v2.0.0...HEAD
[2.0.0]: https://github.com/kripod/react-polymorphic-types/compare/v1.1.0...v2.0.0
[1.1.0]: https://github.com/kripod/react-polymorphic-types/compare/v1.0.3...v1.1.0
[1.0.3]: https://github.com/kripod/react-polymorphic-types/compare/v1.0.2...v1.0.3
[1.0.2]: https://github.com/kripod/react-polymorphic-types/compare/v1.0.1...v1.0.2
[1.0.1]: https://github.com/kripod/react-polymorphic-types/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/kripod/react-polymorphic-types/releases/tag/v1.0.0
