diff --git a/src/core/tree.ts b/src/core/tree.ts index 904400a9e..856e68038 100644 --- a/src/core/tree.ts +++ b/src/core/tree.ts @@ -312,13 +312,6 @@ export class PrefixTree extends TreeNode { } } -/** - * @deprecated Use `new PrefixTree()` instead. - */ -export function createPrefixTree(options: ResolvedOptions) { - return new PrefixTree(options) -} - /** * Splits a path into by finding the first '/' and returns the tail and segment. If it has an extension, it removes it. * If it contains a named view, it returns the view name as well (otherwise it's default). diff --git a/src/data-fetching/defineColadaLoader.ts b/src/data-fetching/defineColadaLoader.ts index ee235f2cf..eaa3f3adc 100644 --- a/src/data-fetching/defineColadaLoader.ts +++ b/src/data-fetching/defineColadaLoader.ts @@ -469,6 +469,8 @@ export interface DefineDataLoaderOptions< DataLoaderContext, _RouteLocationNormalizedLoaded > + + // TODO: option to skip refresh if the used properties of the route haven't changed } export interface DataLoaderContext extends DataLoaderContextBase {} diff --git a/src/index.ts b/src/index.ts index bb66f3ef8..18fe0e43d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -139,19 +139,9 @@ export { createRoutesContext } export { getFileBasedRouteName, getPascalCaseRouteName } from './core/utils' // Route Tree and edition -// FIXME: deprecated, remove in next major -export { createPrefixTree } from './core/tree' export { createTreeNodeValue } from './core/treeNodeValue' export { EditableTreeNode } from './core/extendRoutes' -// FIXME: deprecated, remove in next major -/** - * @deprecated use `VueRouterAutoImports` instead - */ -export const VueRouterExports: Array< - string | [importName: string, alias: string] -> = ['useRoute', 'useRouter', 'onBeforeRouteUpdate', 'onBeforeRouteLeave'] - /** * Adds useful auto imports to the AutoImport config: * @example