Shadaj Slinky Versions Save

Write Scala.js React apps just like you would in ES6

v0.7.4

9 months ago

Highlights :tada:

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

v0.7.3

1 year ago

Highlights :tada:

  • 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 :warning:

  • 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 :bug:

  • 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

2 years ago

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

v0.7.1

2 years ago

Bug Fixes :bug:

  • 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

2 years ago

Highlights :tada:

  • 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 :warning:

  • 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 :bug:

  • 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

2 years ago

Bug Fixes :bug:

  • 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

3 years ago

Highlights :tada:

Bug Fixes :bug:

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

v0.6.6

3 years ago

Highlights :tada:

  • 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 :bug:

  • 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 :warning:

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

v0.6.5

4 years ago

Highlights :tada:

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

Bug Fixes :bug:

  • 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

4 years ago

Highlights :tada:

  • 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 :bug:

  • 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