Skip to content

v0.4.0

Compare
Choose a tag to compare
@shadaj shadaj released this 02 May 04:07
· 315 commits to main since this release

Highlights 🎉

Breaking Changes

  • The ErrorBoundary trait has been removed, because it is no longer needed to implement an error boundary component
  • The DefinitionBase class now takes an additional type parameter Snapshot, for use with the new snapshot-based lifecycle API
  • The BuildingComponent case class has been simplified into a regular class, so the new keyword is now required when creating instances
  • The React object has been refactored to take regular Scala types instead of JS types, so any dependency on the original JS types (js.FunctionN) will not work

Details

  • The @react macro now produces nicer APIs for external components that have default values for all props parameters. PR #119
  • Add more variations for ExternalComponent that support providing a statically-typed interface for the component instance: ExternalComponentWithRefType, ExternalComponentWithAttributesWithRefType, ExternalComponentNoPropsWithRefType, ExternalComponentNoPropsWithAttributesWithRefType PR #119
  • Bring back the WithRaw trait, which makes it possible to access the original object of a read value PR #122
  • Fix exceptions when declaring custom tags and attributes in a component class PR #118
  • Fix exceptions when reading the null-prototype in Node.js PR #121