diff --git a/.changeset/pre.json b/.changeset/pre.json index 890b8b05..400c48d7 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -19,6 +19,7 @@ "dev-gate-diagnostics", "drop-leaving-section-gate", "drop-scroll-growth-chasing", + "exact-optional-route-definition", "expect-server-function-data-address", "export-default-search-types", "fix-navigate-commit-window-drop", diff --git a/CHANGELOG.md b/CHANGELOG.md index e63301b0..36e9586b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @solidjs/router +## 2.0.0-next.23 + +### Patch Changes + +- 12a2500: Accept an explicit `undefined` on every optional `RouteDefinition` property (and on the optional properties of `defineRoute`, `defineFileRoute`, and their returned config types), so route trees produced under `exactOptionalPropertyTypes` — notably `fileRoutes()` applied to `filesystem-routing`'s generated manifest types, whose leaves carry `children: undefined` — type-check. The runtime already treated absent and `undefined` alike; the one presence check (`hasOwnProperty("path")`) now treats an explicit `path: undefined` as a pathless route too (#598). + ## 2.0.0-next.22 ### Patch Changes diff --git a/package.json b/package.json index 61ea6a70..6e4bbb0e 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "Ryan Turnquist" ], "license": "MIT", - "version": "2.0.0-next.22", + "version": "2.0.0-next.23", "homepage": "https://github.com/solidjs/solid-router#readme", "repository": { "type": "git",