Skip to content

Commit

Permalink
update change log
Browse files Browse the repository at this point in the history
  • Loading branch information
s-cork committed Nov 23, 2023
1 parent da3774b commit 5ea320d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Unreleased

## Minor Changes
- augment - use python implementation
https://github.com/anvilistas/anvil-extras/pull/488

## Deprecations
- augment - trigger("writeback") is now deprecated - use the native version instead `raise_event('x-anvil-write-back-<property-name>)`
https://github.com/anvilistas/anvil-extras/issues/429


# v2.5.4 15-Nov-2023

## Enhancements
Expand All @@ -10,6 +21,7 @@
- routing - preserve properties when changing templates
https://github.com/anvilistas/anvil-extras/discussions/486


# v2.5.2 25-Oct-2023
* storage - fix bug with deserializing

Expand Down
16 changes: 6 additions & 10 deletions client_code/augment.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from anvil import js as _js
from anvil.js.window import jQuery as _S

from .utils._deprecated import deprecated

__version__ = "2.5.4"

__all__ = ["add_event", "add_event_handler", "set_event_handler", "trigger"]
Expand Down Expand Up @@ -78,16 +80,11 @@ def remove_event_handler(component: _Component, event: str, func: _Callable) ->
component.remove_event_handler(event, func)


_warned = {"writeback": False}


@deprecated(
"trigger('writeback') is no longer supported\nYou can now trigger a writeback using component.raise_event('x-anvil-write-back-<property>')"
)
def _trigger_writeback(self):
if _warned["writeback"]:
return
_warned["writeback"] = True
print(
"Deprecated: trigger('writeback') is no longer supported\nYou can now trigger a writeback using component.raise_event('x-anvil-write-back-<property>')"
)
return


def trigger(self: _Component, event: str):
Expand Down Expand Up @@ -124,7 +121,6 @@ def _noop(**e):
_native = set()


# TODO this is hacking with anvil internals
def _add_event(self, event_name):
key = (type(self), event_name)
if key in _native or key in _remap:
Expand Down
2 changes: 1 addition & 1 deletion client_code/uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import anvil.js
from anvil.js import window as _W

from utils._deprecated import deprecated
from .utils._deprecated import deprecated

__version__ = "2.5.4"

Expand Down

0 comments on commit 5ea320d

Please # to comment.