Skip to content

Releases: pwwang/python-varname

1.0.0a1

16 Apr 20:34

Choose a tag to compare

Full Changelog: 0.15.1...1.0.0a1

1.0.0

16 Apr 20:37

Choose a tag to compare

  • chore: migrate poetry to uv for dep management
  • feat: drop Python 3.8 support
  • fix: fix named expressions in assignment types
  • style: fix type annotations
  • chore: update __all__ exports in __init__.py and helpers.py

Full Changelog: 0.15.1...1.0.0

0.15.1

01 Dec 15:53

Choose a tag to compare

  • chore: bump executing to v2.2.1
  • feat: enhanced Subscript Support for Dynamic Indexing for varname (#119)
import varname

def func():
    print(varname.varname())

x = 0
a = [object]  * 5
# Before: ImproperUseError
# Now: prints a[x + 1]
a[x + 1] = func()  

# Supported now:
a[x + 1 + 2] = func()
a[x == 0] = func()
a[x < 1] = func()
a[0 < x < 1] = func()
a[-x] = func()

Full Changelog: 0.15.0...0.15.1

0.15.0

20 Jun 18:00

Choose a tag to compare

  • revert: bring nameof back (#117)

Full Changelog: 0.14.0...0.15.0

0.14.0

15 Jan 20:02

Choose a tag to compare

  • BREAKING CHANGE: deprecate nameof (see #117 (comment))
  • docs: remove deprecated nameof examples from README
  • chore(deps): update asttokens to version 3.0.0 and adjust dependencies
  • style: clean up unused imports and add spacing for readability for test files
  • ci: update build workflow to use Ubuntu 24.04 and adjust Python version conditions
  • chore(deps): add ipykernel dev dependency version 6.29.5 to run playground notebook
  • chore(deps): update content-hash in poetry.lock after dependency changes

Full Changelog: 0.13.5...0.14.0

0.13.5

11 Oct 18:26

Choose a tag to compare

  • deps: bump up executing to ^2.1 to fix issues with python3.13

Full Changelog: 0.13.4...0.13.5

0.13.4

09 Oct 18:52

Choose a tag to compare

  • core: switch to poetry-core (#113)
  • deps: bump up dependencies
  • feat: support python 3.13 (#116)
  • ci: use latest CI actions
  • DEPRECATED: add warning to deprecate nameof in the future

What's Changed

New Contributors

Full Changelog: 0.13.3...0.13.4

0.13.3

18 Jul 21:32

Choose a tag to compare

  • feat: support frame to allow wrapping for helpers.jsobj() (#111)

Full Changelog: 0.13.2...0.13.3

0.13.2

18 Jul 21:04

Choose a tag to compare

  • deps: bump up pytest to v8
  • feat: support vars_only to keep parents of an attribute for helpers.jsobj() (#110)

Full Changelog: 0.13.1...0.13.2

0.13.1

05 May 13:56

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.13.0...0.13.1