Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@squide/[email protected]
Major Changes
#93
d66a196
Thanks @patricklafrance!Addition
parentName
option toregisterRoute
.Updated
layoutPath
option ofregisterRoute
has been renamed toparentPath
.registerNavigationItems
has been renamed toregisterNavigationItem
and now only accepts a single item by call.label
,additionalProps
andpriority
fields has been renamed to$label
,$additionalProps
and$priority
. This is part of an effort to ensure no future release of React Router introduced new properties with names that are conflicting with Squide.register
function can now beasync
. This is useful if you want for example to conditionally to a dynamicimport
to load a dependency such as msw.Removed
@squide/[email protected]
Major Changes
#93
d66a196
Thanks @patricklafrance! - This is a new package to help with Mock Service Worker in a federated application.It helps to register their request handlers:
In module:
In the host app:
And offer an utility to wait for MSW to be started before rendering the app:
Patch Changes
d66a196
]:@squide/[email protected]
Major Changes
#93
d66a196
Thanks @patricklafrance!Addition
$visibility
field to theRoute
type. This new field indicates that the route doesn't depend on the initial global data (authenticated data) and can be rendered before that data is loaded. The accepted values arepublic
andprotected
. By default, every route isprotected
.$name
field to theRoute
type. This new field allow a nested route to be named so other routes can be configured to be nested under this route with theparentName
option.ManagedRoutes
placeholder, allowing the application to indicates where managed routes should be rendered. A managed route is a route that is neither hoisted or nested with aparentPath
orparentName
option.useRouteMatch
anduseIsRouteMatchProtected
hooks.Updated
registerRoutes
has been renamed toregisterRoute
and now only accepts a single route by call.hoist
option from the route definition to an option ofregisterRoute
.Before:
After:
Before the changes, only an index for the
"/root"
route would have been created. This means that consumers could add nested routes under"/root"
route with theparentPath
option but couldn't nest routes under the"/root/another-level"
and"/root/another-level/deeply-nested-route"
with theparentPath
option because there was no indexes for these routes.Now the following is possible:
Removed
RootRoute
has been removed, there's now only a singleRoute
type.useHoistedRoutes
has been removed. Hoisting is now supported by default with thehoist
option of theregisterRoute
function and theManagedRoutes
placeholder.Patch Changes
d66a196
]:@squide/[email protected]
Major Changes
d66a196
Thanks @patricklafrance!- Remote modules
register
functions can now beasync
.Patch Changes
d66a196
]:@squide/[email protected]
Patch Changes
d66a196
]: