Comparing version 3.10.1 to 3.11.0
@@ -49,4 +49,4 @@ 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'; | ||
const version = "3.10.1"; | ||
const version = "3.11.0"; | ||
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 }; |
{ | ||
"name": "unimport", | ||
"type": "module", | ||
"version": "3.10.1", | ||
"version": "3.11.0", | ||
"packageManager": "pnpm@9.7.1", | ||
@@ -63,5 +63,5 @@ "description": "Unified utils for auto importing APIs in modules", | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^2.26.0", | ||
"@antfu/eslint-config": "^2.27.0", | ||
"@types/estree": "^1.0.5", | ||
"@types/node": "^22.4.1", | ||
"@types/node": "^22.5.0", | ||
"@vitest/coverage-v8": "^2.0.5", | ||
@@ -68,0 +68,0 @@ "bumpp": "^9.5.1", |
@@ -130,2 +130,24 @@ # unimport | ||
###### Export assignment import | ||
This is a special case for libraries authored with [TypeScript's `export =` syntax](https://www.typescriptlang.org/docs/handbook/modules/reference.html#export--and-import--require). You don't need it the most of the time. | ||
```ts | ||
imports: [ | ||
{ name: '=', as: 'browser', from: 'webextension-polyfill' } | ||
] | ||
``` | ||
Will be injected as: | ||
```ts | ||
import browser from 'webextension-polyfill' | ||
``` | ||
And the type declaration will be added as: | ||
```ts | ||
const browser: typeof import('webextension-polyfill') | ||
``` | ||
###### Custom Presets | ||
@@ -132,0 +154,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
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
180790
340