You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Version release to support ReactPy v2.0.0 (beta)
- Modifications to support the latest version of docs dependencies (Python / mkdocs / mkdocs-material / etc)
Copy file name to clipboardExpand all lines: CHANGELOG.md
+55-40Lines changed: 55 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,106 +19,121 @@ Don't forget to remove deprecated code on each major release!
19
19
20
20
## [Unreleased]
21
21
22
+
### Added
23
+
24
+
- Support for ReactPy v2.x (beta). The initial URL is now sourced from the ReactPy executor (`use_connection().location`) instead of a JS-side `popstate` effect, removing a redundant network round-trip on first load.
25
+
22
26
### Changed
23
27
24
-
- Bump required ReactPy version to `2.x`
28
+
-**Breaking:** Bumped minimum ReactPy version to `2.0.0b12`.
29
+
-**Breaking:** Migrated to Hatch `src/` layout — the package now lives at `src/reactpy_router/` (previously `reactpy_router/` at the repository root).
30
+
-**Breaking:** JavaScript build pipeline switched from `Rollup` (CommonJS) to `Bun` + `TypeScript`. The prebuilt bundle ships at `src/reactpy_router/static/bundle.js`.
31
+
-**Breaking:** Top-level re-exports trimmed. `Route`, `MatchedRoute`, `CompiledRoute`, `RouteState`, `ConversionInfo`, `ConverterMapping`, `Resolver`, and `Router` are no longer importable from `reactpy_router`. Import them from `reactpy_router.types` instead.
32
+
-**Breaking:** The `link` component no longer accepts the legacy underscore `class_name` attribute — use `className` only.
33
+
-**Breaking:** The internal `History` JavaScript callback was renamed from `onHistoryChangeCallback` to `onHistoryPreviousCallback` to reflect that it now fires only on browser history navigation events.
34
+
-`@reactpy/client` bumped to `^1.2.0`.
35
+
- The `uuid` route converter is now case-insensitive (previously matched only lowercase hex).
36
+
37
+
### Removed
38
+
39
+
-`StarletteResolver` and the `simple.py` / `core.py` modules that accompanied it (these were already removed in 2.0.0 in favor of `ReactPyResolver`; this release also drops the old `core.py`/`simple.py` modules).
25
40
26
41
## [2.0.0] - 2025-06-14
27
42
28
43
### Added
29
44
30
-
-Support for custom routers.
45
+
- Support for custom routers.
31
46
32
47
### Changed
33
48
34
-
-Set maximum ReactPy version to `<2.0.0`.
35
-
-Set minimum ReactPy version to `1.1.0`.
36
-
-`link` element now calculates URL changes using the client.
37
-
-Refactoring related to `reactpy>=1.1.0` changes.
38
-
-Changed ReactPy-Router's method of waiting for the initial URL to be deterministic.
39
-
-Rename `StarletteResolver` to `ReactPyResolver`.
49
+
- Set maximum ReactPy version to `<2.0.0`.
50
+
- Set minimum ReactPy version to `1.1.0`.
51
+
-`link` element now calculates URL changes using the client.
52
+
- Refactoring related to `reactpy>=1.1.0` changes.
53
+
- Changed ReactPy-Router's method of waiting for the initial URL to be deterministic.
54
+
- Rename `StarletteResolver` to `ReactPyResolver`.
40
55
41
56
### Removed
42
57
43
-
-`StarletteResolver` is removed in favor of `ReactPyResolver`.
58
+
-`StarletteResolver` is removed in favor of `ReactPyResolver`.
44
59
45
60
### Fixed
46
61
47
-
-Fixed bug where `link` element sometimes would sometimes not retrieve the correct `href` attribute.
62
+
- Fixed bug where `link` element sometimes would sometimes not retrieve the correct `href` attribute.
48
63
49
64
## [1.0.3] - 2024-11-21
50
65
51
66
### Fixed
52
67
53
-
-Fix behavior where the page would be rendered twice on initial load
68
+
- Fix behavior where the page would be rendered twice on initial load
54
69
55
70
## [1.0.2] - 2024-10-24
56
71
57
72
### Fixed
58
73
59
-
-Fix python `wheel` missing `bundle.js` file.
74
+
- Fix python `wheel` missing `bundle.js` file.
60
75
61
76
## [1.0.1] - 2024-10-24
62
77
63
78
### Changed
64
79
65
-
-JavaScript bundle is now created using [`Bun`](https://bun.sh/).
66
-
-Python package is now built using [`Hatch`](https://hatch.pypa.io/).
80
+
- JavaScript bundle is now created using [`Bun`](https://bun.sh/).
81
+
- Python package is now built using [`Hatch`](https://hatch.pypa.io/).
67
82
68
83
## [1.0.0] - 2024-10-18
69
84
70
85
### Changed
71
86
72
-
-Rename `use_query` to `use_search_params`.
73
-
-Rename `simple.router` to `browser_router`.
74
-
-Rename `SimpleResolver` to `StarletteResolver`.
75
-
-Rename `CONVERSION_TYPES` to `CONVERTERS`.
76
-
-Change "Match Any" syntax from a star `*` to `{name:any}`.
77
-
-Rewrite `reactpy_router.link` to be a server-side component.
78
-
-Simplified top-level exports that are available within `reactpy_router.*`.
87
+
- Rename `use_query` to `use_search_params`.
88
+
- Rename `simple.router` to `browser_router`.
89
+
- Rename `SimpleResolver` to `StarletteResolver`.
90
+
- Rename `CONVERSION_TYPES` to `CONVERTERS`.
91
+
- Change "Match Any" syntax from a star `*` to `{name:any}`.
92
+
- Rewrite `reactpy_router.link` to be a server-side component.
93
+
- Simplified top-level exports that are available within `reactpy_router.*`.
79
94
80
95
### Added
81
96
82
-
-Add debug log message for when there are no router matches.
83
-
-Add slug as a supported type.
84
-
-Add `reactpy_router.navigate` component that will force the client to navigate to a new URL (when rendered).
85
-
-New error for ReactPy router elements being used outside router context.
86
-
-Configurable/inheritable `Resolver` base class.
97
+
- Add debug log message for when there are no router matches.
98
+
- Add slug as a supported type.
99
+
- Add `reactpy_router.navigate` component that will force the client to navigate to a new URL (when rendered).
100
+
- New error for ReactPy router elements being used outside router context.
101
+
- Configurable/inheritable `Resolver` base class.
87
102
88
103
### Fixed
89
104
90
-
-Fix bug where changing routes could cause render failure due to key identity.
91
-
-Fix bug where "Match Any" pattern wouldn't work when used in complex or nested paths.
92
-
-Fix bug where `link` elements could not have `@component` type children.
93
-
-Fix bug where the ReactPy would not detect the current URL after a reconnection.
94
-
-Fix bug where `ctrl` + `click` on a `link` element would not open in a new tab.
95
-
-Fix test suite on Windows machines.
105
+
- Fix bug where changing routes could cause render failure due to key identity.
106
+
- Fix bug where "Match Any" pattern wouldn't work when used in complex or nested paths.
107
+
- Fix bug where `link` elements could not have `@component` type children.
108
+
- Fix bug where the ReactPy would not detect the current URL after a reconnection.
109
+
- Fix bug where `ctrl` + `click` on a `link` element would not open in a new tab.
110
+
- Fix test suite on Windows machines.
96
111
97
112
## [0.1.1] - 2023-12-13
98
113
99
114
### Fixed
100
115
101
-
-Fixed relative navigation.
116
+
- Fixed relative navigation.
102
117
103
118
## [0.1.0] - 2023-06-16
104
119
105
120
### Added
106
121
107
-
-Automatically handle client-side history changes.
122
+
- Automatically handle client-side history changes.
0 commit comments