Skip to content

Commit d06a0c3

Browse files
committed
0.36.1 release
1 parent 0f8d31f commit d06a0c3

File tree

12 files changed

+86
-77
lines changed

12 files changed

+86
-77
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.36.0
1+
0.36.1

docs/source/developing-idom/changelog.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,23 @@ team are working on, or have feedback on how issues should be prioritized, feel
77
:discussion-type:`open up a discussion <question>`.
88

99

10+
0.36.1
11+
------
12+
13+
Inclused bug fixes and renames the configuration option `IDOM_WED_MODULES_DIR` to
14+
`IDOM_WEB_MODULES_DIR` with a corresponding deprecation warning.
15+
16+
**Closed Issues**
17+
18+
- Fix Key Error When Cleaning Up Event Handlers - #640
19+
- Update Script Tag Behavior - #628
20+
21+
**Merged Pull Requests**
22+
23+
- mark old state as None if unmounting - #641
24+
- rename IDOM_WED_MODULES_DIR to IDOM_WEB_MODULES_DIR - #638
25+
26+
1027
0.36.0
1128
------
1229

docs/source/developing-idom/contributor-guide.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ following commands using the ``<format>`` of your choosing (``rst``, ``md``, ``t
297297

298298
.. code-block:: bash
299299
300-
nox -s latest_closed_issues -- <format>
301-
nox -s latest_pull_requests -- <format>
300+
nox -s changes_since_release -- <format>
302301
303302
Once the version has been updated and the changelog entry completed, you should commit
304303
the changes.

noxfile.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -350,17 +350,10 @@ def update_version(session: Session) -> None:
350350

351351

352352
@nox.session(reuse_venv=True)
353-
def latest_pull_requests(session: Session) -> None:
354-
"""A basic script for outputing changelog info"""
353+
def changes_since_release(session: Session) -> None:
354+
"""Output the latest changes since the last release"""
355355
session.install("requests", "python-dateutil")
356-
session.run("python", "scripts/latest_pull_requests.py", *session.posargs)
357-
358-
359-
@nox.session(reuse_venv=True)
360-
def latest_closed_issues(session: Session) -> None:
361-
"""A basic script for outputing changelog info"""
362-
session.install("requests", "python-dateutil")
363-
session.run("python", "scripts/latest_closed_issues.py", *session.posargs)
356+
session.run("python", "scripts/changes_since_release.py", *session.posargs)
364357

365358

366359
def install_requirements_file(session: Session, name: str) -> None:

scripts/changes_since_release.py

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
from __future__ import annotations
2+
3+
import sys
4+
5+
from common.github_utils import (
6+
REPO_NAME,
7+
date_range_query,
8+
last_release_date,
9+
search_idom_repo,
10+
)
11+
12+
13+
SECTION_FORMAT_TEMPLATES = {
14+
"md": lambda title: f"# {title}",
15+
"rst": lambda title: f"**{title}**",
16+
"text": lambda title: f"{title}\n{'-' * len(title)}",
17+
}
18+
19+
20+
ISSUE_FORMAT_TEMPLATES = {
21+
"md": lambda title, number, **_: f"- {title} - [#{number}](https://github.com/{REPO_NAME}/issues/{number})",
22+
"rst": lambda title, number, **_: f"- {title} - :pull:`{number}`",
23+
"text": lambda title, number, **_: f"- {title} - #{number}",
24+
}
25+
26+
PULL_REQUEST_FORMAT_TEMPLATES = {
27+
"md": lambda title, number, **_: f"- {title} - [#{number}](https://github.com/{REPO_NAME}/pull/{number})",
28+
"rst": lambda title, number, **_: f"- {title} - :issue:`{number}`",
29+
"text": lambda title, number, **_: f"- {title} - #{number}",
30+
}
31+
32+
33+
def show_issues(format: str):
34+
print(SECTION_FORMAT_TEMPLATES[format]("Closed Issues"))
35+
template = ISSUE_FORMAT_TEMPLATES[format]
36+
query = f"type:issue closed:{date_range_query(last_release_date())}"
37+
for issue in search_idom_repo(query):
38+
print(template(**issue))
39+
40+
41+
def show_pull_requests(format: str = "text"):
42+
print(SECTION_FORMAT_TEMPLATES[format]("Merged Pull Requests"))
43+
template = PULL_REQUEST_FORMAT_TEMPLATES[format]
44+
query = f"type:pr merged:{date_range_query(last_release_date())}"
45+
for pull in search_idom_repo(query):
46+
print(template(**pull))
47+
48+
49+
def main(format: str = "text"):
50+
for func in [show_issues, show_pull_requests]:
51+
func(format)
52+
print()
53+
54+
55+
if __name__ == "__main__":
56+
main(*sys.argv[1:])

scripts/latest_closed_issues.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

scripts/latest_pull_requests.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/client/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"publish": "npm --workspaces publish",
1515
"test": "npm --workspaces test"
1616
},
17-
"version": "0.36.0",
17+
"version": "0.36.1",
1818
"workspaces": [
1919
"./packages/*"
2020
]

src/client/packages/idom-app-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
"format": "prettier --write ./src",
2222
"test": "echo 'no tests'"
2323
},
24-
"version": "0.36.0"
24+
"version": "0.36.1"
2525
}

src/client/packages/idom-client-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
"test": "uvu tests"
3232
},
3333
"type": "module",
34-
"version": "0.36.0"
34+
"version": "0.36.1"
3535
}

src/idom/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
__author__ = "idom-team"
24-
__version__ = "0.36.0" # DO NOT MODIFY
24+
__version__ = "0.36.1" # DO NOT MODIFY
2525

2626
__all__ = [
2727
"component",

0 commit comments

Comments
 (0)