Skip to content

Releases: shadaj/slinky

v0.7.4

30 Jul 21:23
Compare
Choose a tag to compare

Highlights 🎉

  • Improve compatibility when using sbt-tpolecat (PR #630)
  • Support IntelliJ 2023.1 (PR #638)

v0.7.3

22 Dec 23:05
Compare
Choose a tag to compare

Highlights 🎉

  • Includes the core set of changes required to make Slinky work well with Next.js (including module splitting). The Slinky docs site now is built with Next.js! (PR #588)

Breaking Changes ⚠️

  • Slinky now requires Scala.js 1.9.0 or higher, but libraries published against older versions of Slinky should continue to work (PR #588)
  • The interface to createPortal has changed, but libraries should not be affected since this is typically intended for end-users (PR #594)

Bug Fixes 🐛

  • Fix stale version of components being rendered when hot reloading is used with module splitting (PR #588)
  • Add support for the key parameter of createPortal (PR #594)
  • Allow the cx and cy SVG attributes to be assigned to Strings instead of just Double (PR #617)

v0.7.2

27 Feb 19:21
Compare
Choose a tag to compare

See changelog for v0.7.1. Second release due to bugs in the publishing logic.

v0.7.1 (cancelled)

26 Feb 21:03
Compare
Choose a tag to compare

Bug Fixes 🐛

  • Inline functional component creation to improve stack traces (PR #551)
  • Fix issue with readers not being available in dev mode on Scala 3 (PR #552)

New Contributors

v0.7.0

20 Dec 21:05
Compare
Choose a tag to compare

Highlights 🎉

  • Added preliminary Scala 3 support PR #494
    • no @react/Props-apply sugar
    • expected to require -source:3.0-migration and produce warnings
    • may not encode the same props in the same way as Scala 2 version due to different encoder generation mechanism.

Breaking Changes ⚠️

  • Dropped Scala.js 0.6 and upgraded 1.x line to 1.6.0 to simplify building with Scala 3 PR #494
  • Updated scalajs-dom to v2.0.0 which is cross-published for Scala 3 PR #511

Bug Fixes 🐛

  • Support returning js.Function as the cleanup handler for effect hooks PR #525
  • Support using React.memo on a component created with React.forwardRef PR #530
  • Support the dependencies parameter of useImperativeHandle PR #531

v0.6.8

12 Sep 03:49
Compare
Choose a tag to compare

Bug Fixes 🐛

  • Bring back the missing dd and dt tags PR #477
  • Allow the Props type in an @react component to have its own annotations PR #476
  • Support the readOnly attribute on textarea elements PR #492
  • Remove an extra println in an element conversion PR #507

v0.6.7

04 Feb 06:45
Compare
Choose a tag to compare

Highlights 🎉

Bug Fixes 🐛

  • Add missing inherited props to native FlatList component PR #422

v0.6.6

26 Aug 22:14
Compare
Choose a tag to compare

Highlights 🎉

  • Updated scalajs-dom to 1.0.0 PR #362
  • Add facades for the React.Profiler component PR #372
  • Add facades for the act funcion in react-test-renderer PR #376

Bug Fixes 🐛

  • Fix compilation errors on Scala 2.13 when Any is involved in Props/State types PR #388
  • Allow exporting external component definitions as instances of ReactComponentClass PR #377
  • Update prop type definitions for the React Native Image component to support local images PR #411

Breaking Changes ⚠️

  • Due to the update of scalajs-dom to 1.0.0 a support for dd and dt tags has been dropped.

v0.6.5

10 Apr 20:22
Compare
Choose a tag to compare

Highlights 🎉

  • Add docs for the new Electron app template PR #339

Bug Fixes 🐛

  • Fix crashes with class components when emitting ES2015 code PR #335
  • Support hot reloading when using Scala.js 1.0 PR #336
  • Correct props type definition for the React Native FlatList component PR #352

v0.6.4

25 Feb 00:59
Compare
Choose a tag to compare

Highlights 🎉

  • Add slinky-react-router and slinky-history as separate subprojects, to provide interfaces to react-router and the html5 history api PR #305
  • Add apply method for constructing CustomTag and CustomAttributes PR #318
  • Rewrite the class component logic to patch the component definition once to handle JS data instead of on every initialization PR #321

Bug Fixes 🐛

  • Add ARIA role attribute PR #309
  • Support className and role attributes for SVG PR #314
  • Add novalidate attribute to form PR #315
  • Fix types for the useCallback hook and fix its reference equality behavior PR #302
  • Use js.Object instead of js.Dynamics on attribute style PR #322
  • Add missing inherited props to native ScrollView component PR #326

Internal Infrastructure

  • Fix project build in Windows OS and add automated testing in Windows to CI workflow. You can now build Slinky and run tests in Windows PR #308