Comparing version 3.11.1 to 3.12.0
@@ -1,2 +0,2 @@ | ||
import { p as Addon } from './shared/unimport.e1e7fe3e.js'; | ||
import { p as Addon } from './shared/unimport.ead2fc37.js'; | ||
import 'magic-string'; | ||
@@ -3,0 +3,0 @@ import 'mlly'; |
@@ -1,11 +0,33 @@ | ||
import { P as Preset, I as Import, B as BuiltinPresetName, a as InlinePreset, T as TypeDeclarationOptions, M as MagicStringResult, U as UnimportOptions, b as Unimport, c as InstallGlobalOptions, S as ScanDirExportsOptions } from './shared/unimport.e1e7fe3e.js'; | ||
export { p as Addon, A as AddonsOptions, D as DetectImportResult, g as ImportCommon, q as ImportInjectionResult, f as ImportName, n as InjectImportsOptions, k as InjectionUsageRecord, e as ModuleId, i as PackagePreset, m as PathFromResolver, h as PresetImport, o as Thenable, j as UnimportContext, l as UnimportMeta, d as builtinPresets } from './shared/unimport.e1e7fe3e.js'; | ||
export { vueTemplateAddon } from './addons.js'; | ||
import { U as UnimportOptions, a as Unimport, I as Import, b as InstallGlobalOptions, S as ScanDirExportsOptions, P as Preset, B as BuiltinPresetName, c as InlinePreset, T as TypeDeclarationOptions, M as MagicStringResult } from './shared/unimport.ead2fc37.js'; | ||
export { p as Addon, A as AddonsOptions, D as DetectImportResult, g as ImportCommon, q as ImportInjectionResult, f as ImportName, n as InjectImportsOptions, k as InjectionUsageRecord, e as ModuleId, i as PackagePreset, m as PathFromResolver, h as PresetImport, o as Thenable, j as UnimportContext, l as UnimportMeta, d as builtinPresets } from './shared/unimport.ead2fc37.js'; | ||
import { StripLiteralOptions } from 'strip-literal'; | ||
import MagicString from 'magic-string'; | ||
import { StripLiteralOptions } from 'strip-literal'; | ||
export { vueTemplateAddon } from './addons.js'; | ||
import 'mlly'; | ||
const version = "3.12.0"; | ||
declare function createUnimport(opts: Partial<UnimportOptions>): Unimport; | ||
declare function installGlobalAutoImports(imports: Import[] | Unimport, options?: InstallGlobalOptions): Promise<any>; | ||
declare function scanFilesFromDir(dir: string | string[], options?: ScanDirExportsOptions): Promise<string[]>; | ||
declare function scanDirExports(dir: string | string[], options?: ScanDirExportsOptions): Promise<Import[]>; | ||
declare function dedupeDtsExports(exports: Import[]): Import[]; | ||
declare function scanExports(filepath: string, includeTypes: boolean, seen?: Set<string>): Promise<Import[]>; | ||
declare function resolvePreset(preset: Preset): Promise<Import[]>; | ||
declare function resolveBuiltinPresets(presets: (BuiltinPresetName | Preset)[]): Promise<Import[]>; | ||
declare const excludeRE: RegExp[]; | ||
declare const importAsRE: RegExp; | ||
declare const separatorRE: RegExp; | ||
/** | ||
* | | | ||
* destructing case&ternary non-call inheritance | id | | ||
* ↓ ↓ ↓ ↓ | | | ||
*/ | ||
declare const matchRE: RegExp; | ||
declare function stripCommentsAndStrings(code: string, options?: StripLiteralOptions): string; | ||
declare function defineUnimportPreset(preset: InlinePreset): InlinePreset; | ||
@@ -29,24 +51,2 @@ declare function stringifyImports(imports: Import[], isCJS?: boolean): string; | ||
declare const excludeRE: RegExp[]; | ||
declare const importAsRE: RegExp; | ||
declare const separatorRE: RegExp; | ||
/** | ||
* | | | ||
* destructing case&ternary non-call inheritance | id | | ||
* ↓ ↓ ↓ ↓ | | | ||
*/ | ||
declare const matchRE: RegExp; | ||
declare function stripCommentsAndStrings(code: string, options?: StripLiteralOptions): string; | ||
declare function createUnimport(opts: Partial<UnimportOptions>): Unimport; | ||
declare function installGlobalAutoImports(imports: Import[] | Unimport, options?: InstallGlobalOptions): Promise<any>; | ||
declare function scanFilesFromDir(dir: string | string[], options?: ScanDirExportsOptions): Promise<string[]>; | ||
declare function scanDirExports(dir: string | string[], options?: ScanDirExportsOptions): Promise<Import[]>; | ||
declare function dedupeDtsExports(exports: Import[]): Import[]; | ||
declare function scanExports(filepath: string, includeTypes: boolean, seen?: Set<string>): Promise<Import[]>; | ||
const version = "3.11.1"; | ||
export { BuiltinPresetName, Import, InlinePreset, InstallGlobalOptions, MagicStringResult, Preset, ScanDirExportsOptions, TypeDeclarationOptions, Unimport, UnimportOptions, addImportToCode, createUnimport, dedupeDtsExports, dedupeImports, defineUnimportPreset, excludeRE, getMagicString, getString, importAsRE, installGlobalAutoImports, matchRE, normalizeImports, resolveBuiltinPresets, resolveIdAbsolute, resolvePreset, scanDirExports, scanExports, scanFilesFromDir, separatorRE, stringifyImports, stripCommentsAndStrings, stripFileExtension, toExports, toImports, toTypeDeclarationFile, toTypeDeclarationItems, toTypeReExports, version }; |
import * as unplugin from 'unplugin'; | ||
import { FilterPattern } from '@rollup/pluginutils'; | ||
import { U as UnimportOptions } from './shared/unimport.e1e7fe3e.js'; | ||
import { U as UnimportOptions } from './shared/unimport.ead2fc37.js'; | ||
import 'magic-string'; | ||
@@ -5,0 +5,0 @@ import 'mlly'; |
{ | ||
"name": "unimport", | ||
"type": "module", | ||
"version": "3.11.1", | ||
"packageManager": "pnpm@9.8.0", | ||
"version": "3.12.0", | ||
"packageManager": "pnpm@9.10.0", | ||
"description": "Unified utils for auto importing APIs in modules", | ||
@@ -60,20 +60,20 @@ "license": "MIT", | ||
"strip-literal": "^2.1.0", | ||
"unplugin": "^1.12.2" | ||
"unplugin": "^1.14.1" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^2.27.1", | ||
"@antfu/eslint-config": "^3.6.0", | ||
"@types/estree": "^1.0.5", | ||
"@types/node": "^22.5.0", | ||
"@types/node": "^22.5.4", | ||
"@vitest/coverage-v8": "^2.0.5", | ||
"bumpp": "^9.5.2", | ||
"conventional-changelog-cli": "^5.0.0", | ||
"eslint": "^9.9.1", | ||
"eslint": "^9.10.0", | ||
"h3": "^1.12.0", | ||
"jquery": "^3.7.1", | ||
"lit": "^3.2.0", | ||
"typescript": "^5.5.4", | ||
"typescript": "^5.6.2", | ||
"unbuild": "^2.0.0", | ||
"vitest": "^2.0.5", | ||
"vue-tsc": "^2.0.29" | ||
"vue-tsc": "^2.1.6" | ||
} | ||
} |
@@ -98,4 +98,4 @@ # unimport | ||
```ts | ||
import { useState as useSignal } from 'react' | ||
import { ref } from 'vue' | ||
import { useState as useSignal } from 'react' | ||
``` | ||
@@ -102,0 +102,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
181010
4637
Updatedunplugin@^1.14.1