Reactpy

Latest version: v1.1.0

Safety actively analyzes 688554 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 15

0.35.2

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.

0.35.1

Re-add accidentally deleted `py.typed` file to distribution. See [PEP-561](https://www.python.org/dev/peps/pep-0561/#packaging-type-information) for info on this marker file.

0.35.0

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

0.34.0

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

0.33.3

------

Contains a small number of bug fixes and improvements. The most significant change is the addition of a warning stating that `IDOM_FEATURE_INDEX_AS_DEFAULT_KEY=1` will become the default in a future release. Beyond that, a lesser improvement makes it possible to use the default export from a Javascript module when calling `module_from_template` by specifying `exports_default=True` as a parameter.

**Closed Issues**

- Memory leak in SharedClientStateServer - 511
- Cannot use default export in react template - 502
- Add warning that element index will be used as the default key in a future release - 428

**Pull Requests**

- warn that IDOM_FEATURE_INDEX_AS_DEFAULT_KEY=1 will be the default - 515
- clean up patch queues after exit - 514
- Remove Reconnecting WS alert - 513
- Fix 502 - 503

0.33.2

A release to fix a memory leak caused by event handlers that were not being removed
when components updated.

**Closed Issues**

- Non-root component event handlers cause memory leaks - 510

Page 6 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.