diff --git a/.changeset/happy-kids-enjoy.md b/.changeset/happy-kids-enjoy.md new file mode 100644 index 0000000..7d34cc9 --- /dev/null +++ b/.changeset/happy-kids-enjoy.md @@ -0,0 +1,5 @@ +--- +"@solid-mediakit/auth-plugin": patch +--- + +rename cache to query diff --git a/packages/auth/plugin/src/compiler/utils.ts b/packages/auth/plugin/src/compiler/utils.ts index 00313f0..0a48e82 100644 --- a/packages/auth/plugin/src/compiler/utils.ts +++ b/packages/auth/plugin/src/compiler/utils.ts @@ -33,7 +33,7 @@ export const addMissingImports = ( opts: AuthPluginOptions, args: ReturnType, ) => { - babelUtils.importIfNotThere(path, t, 'cache', '@solidjs/router') + babelUtils.importIfNotThere(path, t, 'query', '@solidjs/router') babelUtils.importIfNotThere(path, t, 'createAsync', '@solidjs/router') babelUtils.importIfNotThere(path, t, 'getRequestEvent', 'solid-js/web') babelUtils.importIfNotThere(path, t, 'getSession', '@solid-mediakit/auth')