reactpy

It's React, but in Python

MIT License

Downloads
6.3K
Stars
7.7K

Bot releases are visible (Hide)

reactpy - 0.38.0

Published by rmorshea over 2 years ago

What's Changed

Full Changelog: https://github.com/idom-team/idom/compare/0.37.2...0.38.0

reactpy - 0.38.0-a4

Published by rmorshea over 2 years ago

What's Changed

Full Changelog: https://github.com/idom-team/idom/compare/0.38.0-a3...0.38.0-a4

reactpy - 0.38.0-a3

Published by rmorshea over 2 years ago

What's Changed

Full Changelog: https://github.com/idom-team/idom/compare/0.38.0-a2...0.38.0-a3

reactpy - 0.38.0-a2

Published by rmorshea over 2 years ago

What's Changed

Full Changelog: https://github.com/idom-team/idom/compare/0.38.0-a1...0.38.0-a2

reactpy - 0.38.0-a1

Published by rmorshea over 2 years ago

What's Changed

Full Changelog: https://github.com/idom-team/idom/compare/0.37.2...0.38.0-a1

reactpy - 0.37.2

Published by rmorshea over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/idom-team/idom/compare/0.37.1...0.37.2

reactpy - 0.37.1

Published by rmorshea over 2 years ago

What's Changed

Nothing has changed since 0.37.1-a2, but this is what's changed since 0.37.0:

Full Changelog: https://github.com/idom-team/idom/compare/0.37.0...0.37.1

reactpy - 0.37.1-a2

Published by rmorshea over 2 years ago

What's Changed

Full Changelog: https://github.com/idom-team/idom/compare/0.37.0...0.37.1-a2

reactpy - 0.37.1-a1

Published by rmorshea over 2 years ago

What's Changed

Full Changelog: https://github.com/idom-team/idom/compare/0.37.0...0.37.1-a1

reactpy - 0.37.0

Published by rmorshea over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/idom-team/idom/compare/0.36.3...0.37.0

reactpy - 0.36.3

Published by rmorshea over 2 years ago

Misc bug fixes along with a minor improvement that allows components to return None
to render nothing.

Closed Issues

  • All child states wiped upon any child key change - #652
  • Allow NoneType returns within components - #538

Merged Pull Requests

  • fix #652 - #672
  • Fix 663 - #667
reactpy - 0.36.2

Published by rmorshea over 2 years ago

Hot fix for newly introduced DeprecatedOption:

  • c146dfb264cbc3d2256a62efdfe9ccf62c795b01
reactpy - 0.36.1

Published by rmorshea over 2 years ago

Includes bug fixes and renames the configuration option IDOM_WED_MODULES_DIR to IDOM_WEB_MODULES_DIR with a corresponding deprecation warning.

Closed Issues

  • Fix Key Error When Cleaning Up Event Handlers - #640
  • Update Script Tag Behavior - #628

Merged Pull Requests

  • mark old state as None if unmounting - #641
  • rename IDOM_WED_MODULES_DIR to IDOM_WEB_MODULES_DIR - #638
reactpy - 0.36.0

Published by rmorshea over 2 years ago

This release includes an important fix for errors produced after #623 was merged. In addition there is not a new http.script element which can behave similarly to a standard HTML <script> or, if no attributes are given, operate similarly to an effect. If no attributes are given, and when the script evaluates to a function, that function will be called the first time it is mounted and any time the content of the script is subsequently changed. If the function then returns another function, that returned function will be called when the script is removed from the view, or just before the content of the script changes.

Closed Issues

  • #629
  • #544

Pull Requests

  • #632
  • #631
  • #617
reactpy - 0.35.4

Published by rmorshea over 2 years ago

Keys for elements at the root of a component were not being tracked. Thus key changes for elements at the root did not trigger unmounts.

Closed Issues

  • #622

Pull Requests

  • #623
reactpy - 0.35.3

Published by rmorshea over 2 years ago

As part of #614, elements which changed type were not deeply unmounted. This behavior is probably undesirable though since the state for children of the element in question would persist (probably unexpectedly).

Pull Requests

  • Always deeply unmount - #620
reactpy - 0.35.2

Published by rmorshea over 2 years ago

This release includes several bug fixes. The most significant of which is the ability to change the type of an element in the try (i.e. to and from being a component) without getting an error. Originally the errors were introduced because it was though changing element type would not be desirable. This was not the case though - swapping types turns out to be quite common and useful.

reactpy - 0.35.1

Published by rmorshea over 2 years ago

Re-add accidentally deleted py.typed file to distribution. See PEP-561 for info on this marker file.

reactpy - 0.35.0

Published by rmorshea over 2 years ago

The highlight of this release is that the default "key" of all elements will be their index amongst their neighbors. Previously this behavior could be engaged by setting IDOM_FEATURE_INDEX_AS_DEFAULT_KEY=1 when running IDOM. In this release though, you will need to explicitely turn off this feature (i.e. =0) to return to the old behavior. With this change, some may notice additional error logs which warn that:

Key not specified for child in list ...

This is saying is that an element or component which was created in a list does not have a unique key. For more information on how to mitigate this warning refer to the docs on "Organizing Items With Keys".

Closed Issues

  • #588
  • #584
  • #562
  • #556
  • #542
  • #475
  • #440
  • #351

Pull Requests

  • #593
  • #590
  • #586
  • #579
  • #564
  • #563
  • #554
reactpy - 0.34.0

Published by rmorshea almost 3 years ago

This release contains a variety of minor fixes and improvements which came out of rewriting the documentation. The most significant of these changes is the remove of target element attributes from the top-level of event data dictionaries. For example,
instead of being able to find the value of an input at event["value"] it willinstead be found at event["target"]["value"]. For a short period we will issue a DeprecationWarning when target attributes are requested at the top-level of the event dictionary. As part of this change we also add event["currentTarget"] and event["relatedTarget"] keys to the event dictionary as well as a
event[some_target]["boundingClientRect"] where some_target may be "target", "currentTarget" or "relatedTarget".

Closed Issues

  • Move target attributes to event['target'] - #548

Pull Requests

  • Correctly Handle Target Event Data - #550
  • Clean up WS console logging - #522
  • automatically infer closure arguments - #520
  • Documentation Rewrite - #519
  • add option to replace existing when creating a module - #516