From 5223f5a215b1918c48a1ab9fcb04f13994528ebb Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 24 May 2023 14:45:40 +0200 Subject: [PATCH] refactor: remove deprecated notice from sync resolve utils https://github.com/wooorm/import-meta-resolve/pull/15 --- src/resolve.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/resolve.ts b/src/resolve.ts index eb18e67..cb831ec 100644 --- a/src/resolve.ts +++ b/src/resolve.ts @@ -124,9 +124,6 @@ function _resolve(id: string, options: ResolveOptions = {}): string { return pathToFileURL(realPath).toString(); } -/** - * @deprecated please use `resolve` instead of `resolveSync` - */ export function resolveSync(id: string, options?: ResolveOptions): string { return _resolve(id, options); } @@ -135,9 +132,6 @@ export function resolve(id: string, options?: ResolveOptions): Promise { return pcall(resolveSync, id, options); } -/** - * @deprecated please use `resolvePath` instead of `resolvePathSync` - */ export function resolvePathSync(id: string, options?: ResolveOptions) { return fileURLToPath(resolveSync(id, options)); }