-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Renaming route registrations options (#206)
* Some stuff * Added changeset files
- Loading branch information
1 parent
bdc2564
commit 8ee26fd
Showing
16 changed files
with
117 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@squide/react-router": minor | ||
"@squide/core": minor | ||
--- | ||
|
||
- Renamed a route definition `$name` option to `$id`. | ||
- Renamed the `registerRoute` `$parentName` option to `$parentId`. | ||
|
||
These changes should have been a major version but since Squide firefly v9 has been released a few days ago and no applications already migrated, it's include as part of v9 breaking changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import type { NonIndexRoute, Route } from "./routeRegistry.ts"; | ||
|
||
export const PublicRoutesOutletName = "__squide-public-routes-outlet__"; | ||
export const PublicRoutesOutletId = "__squide-public-routes-outlet__"; | ||
|
||
export const PublicRoutes: NonIndexRoute = { | ||
$visibility: "public", | ||
$name: PublicRoutesOutletName | ||
$id: PublicRoutesOutletId | ||
}; | ||
|
||
export function isPublicRoutesOutletRoute(route: Route) { | ||
return route.$name === PublicRoutesOutletName; | ||
return route.$id === PublicRoutesOutletId; | ||
} | ||
|
||
export const ProtectedRoutesOutletName = "__squide-protected-routes-outlet__"; | ||
export const ProtectedRoutesOutletId = "__squide-protected-routes-outlet__"; | ||
|
||
export const ProtectedRoutes: NonIndexRoute = { | ||
$visibility: "protected", | ||
$name: ProtectedRoutesOutletName | ||
$id: ProtectedRoutesOutletId | ||
}; | ||
|
||
export function isProtectedRoutesOutletRoute(route: Route) { | ||
return route.$name === ProtectedRoutesOutletName; | ||
return route.$id === ProtectedRoutesOutletId; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.