Package detail

unimport

unjs7.2mMIT5.0.0

Unified utils for auto importing APIs in modules

readme

unimport

npm version npm downloads Codecov

Unified utils for auto importing APIs in modules, used in nuxt and unplugin-auto-import

Features

  • Auto import register APIs for Vite, Webpack or esbuild powered by unplugin
  • TypeScript declaration file generation
  • Auto import for custom APIs defined under specific directories
  • Auto import for Vue template

Install

# npm
npm install unimport

# yarn
yarn add unimport

# pnpm
pnpm install unimport

Usage

Plugin Usage

Powered by unplugin, unimport provides a plugin interface for bundlers.

Vite / Rollup

// vite.config.js / rollup.config.js
import Unimport from 'unimport/unplugin'

export default {
  plugins: [
    Unimport.vite({ /* plugin options */ })
  ]
}

Webpack

// webpack.config.js
import Unimport from 'unimport/unplugin'

module.exports = {
  plugins: [
    Unimport.webpack({ /* plugin options */ })
  ]
}

Programmatic Usage

// ESM
import { createUnimport } from 'unimport'

// CommonJS
const { createUnimport } = require('unimport')
const { injectImports } = createUnimport({
  imports: [{ name: 'fooBar', from: 'test-id' }]
})

// { code: "import { fooBar } from 'test-id';console.log(fooBar())" }
console.log(injectImports('console.log(fooBar())'))

Configurations

Imports Item

Named import
imports: [
  { name: 'ref', from: 'vue' },
  { name: 'useState', as: 'useSignal', from: 'react' },
]

Will be injected as:

import { useState as useSignal } from 'react'
import { ref } from 'vue'
Default import
imports: [
  { name: 'default', as: '_', from: 'lodash' }
]

Will be injected as:

import _ from 'lodash'
Namespace import
imports: [
  { name: '*', as: '_', from: 'lodash' }
]

Will be injected as:

import * as _ from 'lodash'
Export assignment import

This is a special case for libraries authored with TypeScript's export = syntax. You don't need it the most of the time.

imports: [
  { name: '=', as: 'browser', from: 'webextension-polyfill' }
]

Will be injected as:

import browser from 'webextension-polyfill'

And the type declaration will be added as:

const browser: typeof import('webextension-polyfill')
Custom Presets

Presets are provided as a shorthand for declaring imports from the same package:

presets: [
  {
    from: 'vue',
    imports: [
      'ref',
      'reactive',
      // ...
    ]
  }
]

Will be equivalent as:

imports: [
  { name: 'ref', from: 'vue' },
  { name: 'reactive', from: 'vue' },
  // ...
]
Built-in Presets

unimport also provides some builtin presets for common libraries:

presets: [
  'vue',
  'pinia',
  'vue-i18n',
  // ...
]

You can check out src/presets for all the options available or refer to the type declaration.

Exports Auto Scan

Since unimport v0.7.0, we also support auto scanning the examples from a local installed package, for example:

presets: [
  {
    package: 'h3',
    ignore: ['isStream', /^[A-Z]/, /^[a-z]*$/, r => r.length > 8]
  }
]

This will be expanded into:

imports: [
  {
    from: 'h3',
    name: 'appendHeader',
  },
  {
    from: 'h3',
    name: 'appendHeaders',
  },
  {
    from: 'h3',
    name: 'appendResponseHeader',
  },
  // ...
]

The ignore option is used to filter out the exports, it can be a string, regex or a function that returns a boolean.

By default, the result is strongly cached by the version of the package. You can disable this by setting cache: false.

Type Declarations

Unimport.vite({
  dts: true // or a path to generated file
})

Directory Auto Import

Unimport.vite({
  dirs: [
    './composables/*',
  ]
})

Scan for modules under ./composables and auto-import the named exports.

Nested Directories

Unimport.vite({
  dirs: [
    './composables/**/*',
    {
      glob: './composables/nested/**/*',
      types: false // disable scan the type declarations
    }
  ]
})

Named exports for modules under ./composables/**/* will be registered for auto imports, and filter out the types in ./composables/nested/**/*.

Directory Scan Options

You can also provide custom options for directory scan, for example:

Unimport.vite({
  dirsScanOptions: {
    filePatterns: ['*.ts'], // optional, default `['*.{ts,js,mjs,cjs,mts,cts}']`, glob patterns for matching files
    fileFilter: file => file.endsWith('.ts'), // optional, default `() => true`, filter files
    types: true, // optional, default `true`, enable/disable scan the type declarations
    cwd: process.cwd(), // optional, default `process.cwd()`, custom cwd for directory scan
  },
  dirs: [
    './composables/**/*',
    {
      glob: './composables/nested/**/*',
      types: false
    }
  ]
})

Opt-out Auto Import

You can opt-out auto-import for specific modules by adding a comment:

// @unimport-disable

It can be customized by setting commentsDisable:

Unimport.vite({
  commentsDisable: [
    '@unimport-disable',
    '@custom-imports-disable',
  ]
})

Acorn Parser

By default, unimport uses RegExp to detect unimport entries. In some cases, RegExp might not be able to detect all the entries (false positive & false negative).

We introduced a new AST-based parser powered by acorn, providing a more accurate result. The limitation is when using Acorn, it assumes all input code are valid and vanilla JavaScript code.

Unimport.vite({
  parser: 'acorn'
})

Vue Template Auto Import

In Vue's template, the usage of API is in a different context than plain modules. Thus some custom transformations are required. To enable it, set addons.vueTemplate to true:

Unimport.vite({
  addons: {
    vueTemplate: true
  }
})

Caveats

When auto-import a ref, inline operations won't be auto-unwrapped.

export const counter = ref(0)
<template>
  <!-- this is ok -->
  <div>{{ counter }}</div>

  <!-- counter here is a ref, this won't work, volar will throw -->
  <div>{{ counter + 1 }}</div>

  <!-- use this instead -->
  <div>{{ counter.value + 1 }}</div>
</template>

We recommend using Volar for type checking, which will help you to identify the misusage.

Vue Directives Auto Import and TypeScript Declaration Generation

In Vue's template, the usage of directives is in a different context than plain modules. Thus some custom transformations are required. To enable it, set addons.vueDirectives to true:

Unimport.vite({
  addons: {
    vueDirectives: true
  }
})

Library Authors

When including directives in your presets, you should:

  • provide the corresponding imports with meta.vueDirective set to true, otherwise, unimport will not be able to detect your directives.
  • use named exports for your directives, or use default export and use as in the Import.
  • set dtsDisabled to true if you provide a type declaration for your directives.
import type { InlinePreset } from 'unimport'
import { defineUnimportPreset } from 'unimport'

export const composables = defineUnimportPreset({
  from: 'my-unimport-library/composables',
  /* imports and other options */
})

export const directives = defineUnimportPreset({
  from: 'my-unimport-library/directives',
  // disable dts generation globally
  dtsEnabled: false,
  // you can declare the vue directive globally
  meta: {
    vueDirective: true
  },
  imports: [{
    name: 'ClickOutside',
    // disable dts generation per import
    dtsEnabled: false,
    // you can declare the vue directive per import
    meta: {
      vueDirective: true
    }
  }, {
    name: 'default',
    // you should declare `as` for default exports
    as: 'Focus'
  }]
})

Using Directory Scan and Local Directives

If you add a directory scan for your local directives in the project, you need to:

  • provide isDirective in the vueDirectives: unimport will use it to detect them (will never be called for imports with meta.vueDirective set to true).
  • use always named exports for your directives.
Unimport.vite({
  dirs: ['./directives/**'],
  addons: {
    vueDirectives: {
      isDirective: (normalizedImportFrom, _importEntry) => {
        return normalizedImportFrom.includes('/directives/')
      }
    }
  }
})

💻 Development

  • Clone this repository
  • Enable Corepack using corepack enable (use npm i -g corepack for Node.js < 16.10)
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Made with 💛

Published under MIT License.

changelog

5.0.0 (2025-04-08)

4.2.0 (2025-04-08)

Bug Fixes

  • dynamically import pkg-types for cjs compat (#442) (c20f9fb)

Features

  • add Slot and Slots types to Vue preset (#444) (dddc219)

4.1.3 (2025-03-28)

4.1.2 (2025-02-18)

Features

  • switch to tinyglobby 0.2.11 addressing previous performance issues (#431) (5c16f58), closes #396

4.1.1 (2025-02-11)

Bug Fixes

  • revert engine requirement change (764694f)

4.1.0 (2025-02-07)

Bug Fixes

  • vue-directives: remove resolveDirective import when needed (#428) (7110ef0)

Features

4.0.0 (2025-01-22)

3.14.6 (2025-01-14)

Bug Fixes

  • detect-acorn: identifiers variable not being properly assigned (#415) (d36d8e2)

3.14.5 (2024-12-10)

Bug Fixes

3.14.4 (2024-12-06)

Bug Fixes

3.14.3 (2024-12-03)

Bug Fixes

  • scan-dirs: correctly add the file pattern to the dirs glob. (#400) (3db6721)

3.14.2 (2024-11-29)

Bug Fixes

  • scan-dirs: add tsx and jsx into default file extensions (#397) (1c0aaeb)

3.14.1 (2024-11-29)

Bug Fixes

3.14.0 (2024-11-29)

Features

  • scan-dirs: support exclude glob and set dirs exclude types (#395) (5978277)

Performance Improvements

3.13.4 (2024-11-27)

Bug Fixes

  • upgrade string-literal to fix injecting import for the code with /a[/]bcd/ (#393) (8c03bf6)

3.13.3 (2024-11-23)

Bug Fixes

  • distinguish class by declarationType (#391) (250b001)

3.13.2 (2024-11-14)

Bug Fixes

  • Remove non-existing 'locale' from date-fns preset (#388) (f67b88d)

3.13.1 (2024-09-27)

Bug Fixes

  • addon: wrong vue directives transform filter (#380) (cf374a5)

3.13.0 (2024-09-26)

Bug Fixes

Features

3.12.0 (2024-09-12)

Features

3.11.1 (2024-08-24)

Bug Fixes

  • regexp: from named import false-negative (e2b7fe5)

3.11.0 (2024-08-21)

Features

  • support libraries with export = syntax (#363) (d877d50)

3.10.1 (2024-08-20)

Bug Fixes

  • match imported/exported variables correctly in minified code, fix #362 (#366) (194bcfc)

3.10.0 (2024-08-03)

Bug Fixes

3.9.1 (2024-07-27)

Bug Fixes

  • resolve module path conversion issue in scanExports on Windows (#356) (b134001)

3.9.0 (2024-07-17)

Bug Fixes

  • correct path handling for * exports in scanExports when exporting from module (#354) (9d4ffb0), closes #353

3.8.0 (2024-07-16)

Bug Fixes

Features

3.7.2 (2024-05-25)

Bug Fixes

3.7.1 (2023-12-28)

Bug Fixes

  • do not stripe file extension when a custom resolvePath is provided, close #306 (1d31ff2)

3.7.0 (2023-12-22)

Bug Fixes

  • vue-template: support auto import with $, close #298 (656756c)

Features

3.6.1 (2023-12-06)

Bug Fixes

  • always remove file extension by default in toTypeDeclarationItems (#303) (7ec41c2)

3.6.0 (2023-11-22)

Bug Fixes

  • improve global types exports on type-only module (17f2894)

3.5.0 (2023-11-09)

Bug Fixes

Features

3.4.0 (2023-09-26)

Bug Fixes

Features

  • presets: add more types to vue preset (#281) (9b8dac5)
  • utils: name used import on duplicate on warning (#271) (28cf011)

3.3.0 (2023-09-04)

Features

  • support scanning types export under dirs (#268) (a57d863)

3.2.0 (2023-08-23)

Features

3.1.3 (2023-08-03)

Bug Fixes

  • do not remove side-effects on transform (e7b3677)

3.1.2 (2023-08-02)

Bug Fixes

  • virtual importing uses stripped code (988f20d)

3.1.1 (2023-08-02)

Bug Fixes

  • edge case when backtick in regexp (ce760a7)

3.1.0 (2023-07-20)

Features

  • add rxjs to preset (#256) (2458d18)
  • add version in context (5342993)
  • expose code and id to injectImportsStringified hook (3fecc3f)

3.0.14 (2023-07-04)

Bug Fixes

  • vue-template: respect hooks from other addons (ab31293)

3.0.13 (2023-07-04)

Features

  • add two injection hooks for addons (3204262)

3.0.12 (2023-07-03)

Features

  • allow addons to extend the imports (35a5726)

3.0.11 (2023-06-28)

Bug Fixes

  • regex detect for multiple line declaration (cdb8466), closes #250

3.0.10 (2023-06-26)

Bug Fixes

3.0.9 (2023-06-26)

Features

  • toExports supports exporting types (5e2f288)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

Features

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Bug Fixes

  • do not auto import referencing to self (de820c3)

Features

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.1 (2022-11-15)

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

Features

0.7.0 (2022-10-26)

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

Features

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

Performance Improvements

  • decrease processing time for exclude regexp (#107) (aa75ae2)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

0.5.0 (2022-07-21)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

Features

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

0.2.10 (2022-06-22)

Bug Fixes

Features

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

0.2.1 (2022-05-10)

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

Features

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

Performance Improvements

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Bug Fixes

  • dedupe imports from same source (7faa56f)

Features

  • expose clearDynamicImports to context (2f82f0a)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

Bug Fixes

Features

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

Features

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Bug Fixes

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

3.3.0 (2023-09-04)

Features

  • support scanning types export under dirs (#268) (a57d863)

3.2.0 (2023-08-23)

Features

3.1.3 (2023-08-03)

Bug Fixes

  • do not remove side-effects on transform (e7b3677)

3.1.2 (2023-08-02)

Bug Fixes

  • virtual importing uses stripped code (988f20d)

3.1.1 (2023-08-02)

Bug Fixes

  • edge case when backtick in regexp (ce760a7)

3.1.0 (2023-07-20)

Features

  • add rxjs to preset (#256) (2458d18)
  • add version in context (5342993)
  • expose code and id to injectImportsStringified hook (3fecc3f)

3.0.14 (2023-07-04)

Bug Fixes

  • vue-template: respect hooks from other addons (ab31293)

3.0.13 (2023-07-04)

Features

  • add two injection hooks for addons (3204262)

3.0.12 (2023-07-03)

Features

  • allow addons to extend the imports (35a5726)

3.0.11 (2023-06-28)

Bug Fixes

  • regex detect for multiple line declaration (cdb8466), closes #250

3.0.10 (2023-06-26)

Bug Fixes

3.0.9 (2023-06-26)

Features

  • toExports supports exporting types (5e2f288)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

Features

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Bug Fixes

  • do not auto import referencing to self (de820c3)

Features

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.1 (2022-11-15)

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

Features

0.7.0 (2022-10-26)

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

Features

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

Performance Improvements

  • decrease processing time for exclude regexp (#107) (aa75ae2)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

0.5.0 (2022-07-21)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

Features

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

0.2.10 (2022-06-22)

Bug Fixes

Features

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

0.2.1 (2022-05-10)

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

Features

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

Performance Improvements

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Bug Fixes

  • dedupe imports from same source (7faa56f)

Features

  • expose clearDynamicImports to context (2f82f0a)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

Bug Fixes

Features

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

Features

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Bug Fixes

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

3.2.0 (2023-08-23)

Features

3.1.3 (2023-08-03)

Bug Fixes

  • do not remove side-effects on transform (e7b3677)

3.1.2 (2023-08-02)

Bug Fixes

  • virtual importing uses stripped code (988f20d)

3.1.1 (2023-08-02)

Bug Fixes

  • edge case when backtick in regexp (ce760a7)

3.1.0 (2023-07-20)

Features

  • add rxjs to preset (#256) (2458d18)
  • add version in context (5342993)
  • expose code and id to injectImportsStringified hook (3fecc3f)

3.0.14 (2023-07-04)

Bug Fixes

  • vue-template: respect hooks from other addons (ab31293)

3.0.13 (2023-07-04)

Features

  • add two injection hooks for addons (3204262)

3.0.12 (2023-07-03)

Features

  • allow addons to extend the imports (35a5726)

3.0.11 (2023-06-28)

Bug Fixes

  • regex detect for multiple line declaration (cdb8466), closes #250

3.0.10 (2023-06-26)

Bug Fixes

3.0.9 (2023-06-26)

Features

  • toExports supports exporting types (5e2f288)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

Features

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Bug Fixes

  • do not auto import referencing to self (de820c3)

Features

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.1 (2022-11-15)

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

Features

0.7.0 (2022-10-26)

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

Features

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

Performance Improvements

  • decrease processing time for exclude regexp (#107) (aa75ae2)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

0.5.0 (2022-07-21)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

Features

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

0.2.10 (2022-06-22)

Bug Fixes

Features

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

0.2.1 (2022-05-10)

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

Features

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

Performance Improvements

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Bug Fixes

  • dedupe imports from same source (7faa56f)

Features

  • expose clearDynamicImports to context (2f82f0a)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

Bug Fixes

Features

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

Features

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Bug Fixes

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

3.1.3 (2023-08-03)

Bug Fixes

  • do not remove side-effects on transform (e7b3677)

3.1.2 (2023-08-02)

Bug Fixes

  • virtual importing uses stripped code (988f20d)

3.1.1 (2023-08-02)

Bug Fixes

  • edge case when backtick in regexp (ce760a7)

3.1.0 (2023-07-20)

Features

  • add rxjs to preset (#256) (2458d18)
  • add version in context (5342993)
  • expose code and id to injectImportsStringified hook (3fecc3f)

3.0.14 (2023-07-04)

Bug Fixes

  • vue-template: respect hooks from other addons (ab31293)

3.0.13 (2023-07-04)

Features

  • add two injection hooks for addons (3204262)

3.0.12 (2023-07-03)

Features

  • allow addons to extend the imports (35a5726)

3.0.11 (2023-06-28)

Bug Fixes

  • regex detect for multiple line declaration (cdb8466), closes #250

3.0.10 (2023-06-26)

Bug Fixes

3.0.9 (2023-06-26)

Features

  • toExports supports exporting types (5e2f288)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

Features

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Bug Fixes

  • do not auto import referencing to self (de820c3)

Features

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.1 (2022-11-15)

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

Features

0.7.0 (2022-10-26)

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

Features

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

Performance Improvements

  • decrease processing time for exclude regexp (#107) (aa75ae2)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

0.5.0 (2022-07-21)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

Features

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

0.2.10 (2022-06-22)

Bug Fixes

Features

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

0.2.1 (2022-05-10)

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

Features

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

Performance Improvements

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Bug Fixes

  • dedupe imports from same source (7faa56f)

Features

  • expose clearDynamicImports to context (2f82f0a)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

Bug Fixes

Features

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

Features

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Bug Fixes

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

3.1.2 (2023-08-02)

Bug Fixes

  • virtual importing uses stripped code (988f20d)

3.1.1 (2023-08-02)

Bug Fixes

  • edge case when backtick in regexp (ce760a7)

3.1.0 (2023-07-20)

Features

  • add rxjs to preset (#256) (2458d18)
  • add version in context (5342993)
  • expose code and id to injectImportsStringified hook (3fecc3f)

3.0.14 (2023-07-04)

Bug Fixes

  • vue-template: respect hooks from other addons (ab31293)

3.0.13 (2023-07-04)

Features

  • add two injection hooks for addons (3204262)

3.0.12 (2023-07-03)

Features

  • allow addons to extend the imports (35a5726)

3.0.11 (2023-06-28)

Bug Fixes

  • regex detect for multiple line declaration (cdb8466), closes #250

3.0.10 (2023-06-26)

Bug Fixes

3.0.9 (2023-06-26)

Features

  • toExports supports exporting types (5e2f288)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

Features

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Bug Fixes

  • do not auto import referencing to self (de820c3)

Features

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.1 (2022-11-15)

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

Features

0.7.0 (2022-10-26)

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

Features

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

Performance Improvements

  • decrease processing time for exclude regexp (#107) (aa75ae2)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

0.5.0 (2022-07-21)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

Features

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

0.2.10 (2022-06-22)

Bug Fixes

Features

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

0.2.1 (2022-05-10)

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

Features

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

Performance Improvements

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Bug Fixes

  • dedupe imports from same source (7faa56f)

Features

  • expose clearDynamicImports to context (2f82f0a)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

Bug Fixes

Features

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

Features

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Bug Fixes

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

3.1.1 (2023-08-02)

Bug Fixes

  • edge case when backtick in regexp (ce760a7)

3.1.0 (2023-07-20)

Features

  • add rxjs to preset (#256) (2458d18)
  • add version in context (5342993)
  • expose code and id to injectImportsStringified hook (3fecc3f)

3.0.14 (2023-07-04)

Bug Fixes

  • vue-template: respect hooks from other addons (ab31293)

3.0.13 (2023-07-04)

Features

  • add two injection hooks for addons (3204262)

3.0.12 (2023-07-03)

Features

  • allow addons to extend the imports (35a5726)

3.0.11 (2023-06-28)

Bug Fixes

  • regex detect for multiple line declaration (cdb8466), closes #250

3.0.10 (2023-06-26)

Bug Fixes

3.0.9 (2023-06-26)

Features

  • toExports supports exporting types (5e2f288)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

Features

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Bug Fixes

  • do not auto import referencing to self (de820c3)

Features

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.1 (2022-11-15)

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

Features

0.7.0 (2022-10-26)

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

Features

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

Performance Improvements

  • decrease processing time for exclude regexp (#107) (aa75ae2)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

0.5.0 (2022-07-21)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

Features

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

0.2.10 (2022-06-22)

Bug Fixes

Features

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

0.2.1 (2022-05-10)

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

Features

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

Performance Improvements

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Bug Fixes

  • dedupe imports from same source (7faa56f)

Features

  • expose clearDynamicImports to context (2f82f0a)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

Bug Fixes

Features

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

Features

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Bug Fixes

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

3.1.0 (2023-07-20)

Features

  • add rxjs to preset (#256) (2458d18)
  • add version in context (5342993)
  • expose code and id to injectImportsStringified hook (3fecc3f)

3.0.14 (2023-07-04)

Bug Fixes

  • vue-template: respect hooks from other addons (ab31293)

3.0.13 (2023-07-04)

Features

  • add two injection hooks for addons (3204262)

3.0.12 (2023-07-03)

Features

  • allow addons to extend the imports (35a5726)

3.0.11 (2023-06-28)

Bug Fixes

  • regex detect for multiple line declaration (cdb8466), closes #250

3.0.10 (2023-06-26)

Bug Fixes

3.0.9 (2023-06-26)

Features

  • toExports supports exporting types (5e2f288)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

Features

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Bug Fixes

  • do not auto import referencing to self (de820c3)

Features

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.1 (2022-11-15)

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

Features

0.7.0 (2022-10-26)

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

Features

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

Performance Improvements

  • decrease processing time for exclude regexp (#107) (aa75ae2)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

0.5.0 (2022-07-21)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

Features

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

0.2.10 (2022-06-22)

Bug Fixes

Features

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

0.2.1 (2022-05-10)

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

Features

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

Performance Improvements

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Bug Fixes

  • dedupe imports from same source (7faa56f)

Features

  • expose clearDynamicImports to context (2f82f0a)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

Bug Fixes

Features

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

Features

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Bug Fixes

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

3.0.14 (2023-07-04)

Bug Fixes

  • vue-template: respect hooks from other addons (ab31293)

3.0.13 (2023-07-04)

Features

  • add two injection hooks for addons (3204262)

3.0.12 (2023-07-03)

Features

  • allow addons to extend the imports (35a5726)

3.0.11 (2023-06-28)

Bug Fixes

  • regex detect for multiple line declaration (cdb8466), closes #250

3.0.10 (2023-06-26)

Bug Fixes

3.0.9 (2023-06-26)

Features

  • toExports supports exporting types (5e2f288)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

Features

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Bug Fixes

  • do not auto import referencing to self (de820c3)

Features

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.1 (2022-11-15)

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

Features

0.7.0 (2022-10-26)

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

Features

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

Performance Improvements

  • decrease processing time for exclude regexp (#107) (aa75ae2)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

0.5.0 (2022-07-21)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

Features

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

0.2.10 (2022-06-22)

Bug Fixes

Features

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

0.2.1 (2022-05-10)

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

Features

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

Performance Improvements

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Bug Fixes

  • dedupe imports from same source (7faa56f)

Features

  • expose clearDynamicImports to context (2f82f0a)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

Bug Fixes

Features

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

Features

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Bug Fixes

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

3.0.13 (2023-07-04)

Features

  • add two injection hooks for addons (3204262)

3.0.12 (2023-07-03)

Features

  • allow addons to extend the imports (35a5726)

3.0.11 (2023-06-28)

Bug Fixes

  • regex detect for multiple line declaration (cdb8466), closes #250

3.0.10 (2023-06-26)

Bug Fixes

3.0.9 (2023-06-26)

Features

  • toExports supports exporting types (5e2f288)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

Features

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Bug Fixes

  • do not auto import referencing to self (de820c3)

Features

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.1 (2022-11-15)

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

Features

0.7.0 (2022-10-26)

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

Features

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

Performance Improvements

  • decrease processing time for exclude regexp (#107) (aa75ae2)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

0.5.0 (2022-07-21)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

Features

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

0.2.10 (2022-06-22)

Bug Fixes

Features

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

0.2.1 (2022-05-10)

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

Features

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

Performance Improvements

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Bug Fixes

  • dedupe imports from same source (7faa56f)

Features

  • expose clearDynamicImports to context (2f82f0a)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

Bug Fixes

Features

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

Features

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Bug Fixes

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

3.0.12 (2023-07-03)

Features

  • allow addons to extend the imports (35a5726)

3.0.11 (2023-06-28)

Bug Fixes

  • regex detect for multiple line declaration (cdb8466), closes #250

3.0.10 (2023-06-26)

Bug Fixes

3.0.9 (2023-06-26)

Features

  • toExports supports exporting types (5e2f288)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

Features

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Bug Fixes

  • do not auto import referencing to self (de820c3)

Features

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.1 (2022-11-15)

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

Features

0.7.0 (2022-10-26)

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

Features

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

Performance Improvements

  • decrease processing time for exclude regexp (#107) (aa75ae2)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

0.5.0 (2022-07-21)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

Features

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

0.2.10 (2022-06-22)

Bug Fixes

Features

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

0.2.1 (2022-05-10)

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

Features

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

Performance Improvements

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Bug Fixes

  • dedupe imports from same source (7faa56f)

Features

  • expose clearDynamicImports to context (2f82f0a)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

Bug Fixes

Features

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

Features

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Bug Fixes

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

3.0.11 (2023-06-28)

Bug Fixes

  • regex detect for multiple line declaration (cdb8466), closes #250

3.0.10 (2023-06-26)

Bug Fixes

3.0.9 (2023-06-26)

Features

  • toExports supports exporting types (5e2f288)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

Features

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Bug Fixes

  • do not auto import referencing to self (de820c3)

Features

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.1 (2022-11-15)

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

Features

0.7.0 (2022-10-26)

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

Features

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

Performance Improvements

  • decrease processing time for exclude regexp (#107) (aa75ae2)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

0.5.0 (2022-07-21)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

Features

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

0.2.10 (2022-06-22)

Bug Fixes

Features

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

0.2.1 (2022-05-10)

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

Features

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

Performance Improvements

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Bug Fixes

  • dedupe imports from same source (7faa56f)

Features

  • expose clearDynamicImports to context (2f82f0a)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

Bug Fixes

Features

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

Features

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Bug Fixes

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

3.0.10 (2023-06-26)

Bug Fixes

3.0.9 (2023-06-26)

Features

  • toExports supports exporting types (5e2f288)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

Features

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Bug Fixes

  • do not auto import referencing to self (de820c3)

Features

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.1 (2022-11-15)

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

Features

0.7.0 (2022-10-26)

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

Features

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

Performance Improvements

  • decrease processing time for exclude regexp (#107) (aa75ae2)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

0.5.0 (2022-07-21)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

Features

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

0.2.10 (2022-06-22)

Bug Fixes

Features

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

0.2.1 (2022-05-10)

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

Features

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

Performance Improvements

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Bug Fixes

  • dedupe imports from same source (7faa56f)

Features

  • expose clearDynamicImports to context (2f82f0a)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

Bug Fixes

Features

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

Features

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Bug Fixes

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

3.0.9 (2023-06-26)

Features

  • toExports supports exporting types (5e2f288)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

Features

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Bug Fixes

  • do not auto import referencing to self (de820c3)

Features

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.1 (2022-11-15)

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

Features

0.7.0 (2022-10-26)

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

Features

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

Performance Improvements

  • decrease processing time for exclude regexp (#107) (aa75ae2)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

0.5.0 (2022-07-21)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

Features

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

0.2.10 (2022-06-22)

Bug Fixes

Features

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

0.2.1 (2022-05-10)

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

Features

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

Performance Improvements

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Bug Fixes

  • dedupe imports from same source (7faa56f)

Features

  • expose clearDynamicImports to context (2f82f0a)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

Bug Fixes

Features

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

Features

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Bug Fixes

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

3.0.8 (2023-06-09)

Features

  • unplugin: support disabling autoImport option (c8c0fcc)

3.0.7 (2023-05-20)

Bug Fixes

  • presets: add the new toValue method in vue 3 (#241) (64d0f95)
  • workaround for Vue 3.3 template auto import (88b9e34)

3.0.6 (2023-04-05)

Bug Fixes

3.0.5 (2023-04-04)

Bug Fixes

  • expose getImportMap (#237) (4bd5ee0)
  • only camel-case default exports if they're transformable (#234) (96146d4)

3.0.4 (2023-03-24)

Bug Fixes

3.0.3 (2023-03-16)

Bug Fixes

  • scan-dir: handle re-export from folder index (#229) (7d0c4e2)

Features

3.0.2 (2023-02-24)

Bug Fixes

  • dts: always remove .ts extension in dts (03288a9)

3.0.1 (2023-02-23)

Bug Fixes

  • do not resolve named namespace exports (8bf58b8)

3.0.0 (2023-02-23)

Features

2.2.4 (2023-02-07)

Bug Fixes

  • do not generate type only exports in vue template (9146e97)
  • improve type export compatibility (8ee5a1d)

2.2.3 (2023-02-07)

Bug Fixes

  • add missing vue exports (05ee56c)

2.2.2 (2023-02-07)

Features

  • expose getInternalContext (17bb37f)

2.2.1 (2023-02-07)

Features

  • add vue-router composables preset (5a6f36f)
  • expose replaceImports method (6ae3952)

2.2.0 (2023-02-07)

Features

2.1.0 (2023-01-29)

Features

  • support injectAtLast option (6b1ba91)

2.0.1 (2023-01-24)

Bug Fixes

  • expose imports from scanImportsFromDir (e09252a)
  • vue-template: stable transform across multiple pass (46f314f)

2.0.0 (2023-01-24)

⚠ BREAKING CHANGES

  • vue-template: prioritize local variable over auto import (#214)

Features

Bug Fixes

  • vue-template: prioritize local variable over auto import (#214) (446f0bf)

1.3.0 (2023-01-20)

Features

1.2.0 (2023-01-06)

Features

  • support metadata collecting (3429ff5)

1.1.0 (2022-12-20)

Features

Bug Fixes

  • do not auto import referencing to self (de820c3)

1.0.2 (2022-12-12)

1.0.1 (2022-11-16)

Bug Fixes

  • scan: glob construction (6d93244)

1.0.0 (2022-11-15)

0.7.2 (2022-11-15)

0.7.1 (2022-11-15)

Features

Bug Fixes

  • presets: path resolveModule on vueuse preset (#138) (d1e0c4b)

0.7.0 (2022-10-26)

⚠ BREAKING CHANGES

  • auto extract exports (#104)

Features

Bug Fixes

  • ternary match (5a62a5d)
  • vue template ComponentCustomProperties interface (#126) (726d12c)

0.6.8 (2022-09-30)

Bug Fixes

  • improve exsiting identifier detection (#123) (3fb5274)

0.6.7 (2022-08-10)

0.6.6 (2022-08-10)

Bug Fixes

  • rename transformVirtualImoports to transformVirtualImports (#106) (9e72ffc)

0.6.5 (2022-08-04)

Bug Fixes

0.6.4 (2022-07-27)

0.6.3 (2022-07-24)

Bug Fixes

  • normalize path for windows (4849f77)
  • scan: normlaize directories (aa5a354)

0.6.2 (2022-07-22)

Features

  • toExports support relative path (c34f027)

0.6.1 (2022-07-21)

Bug Fixes

  • scan: sort glob for stable result (5fd42aa)

0.6.0 (2022-07-21)

⚠ BREAKING CHANGES

  • scan: options for custom filePatterns, remove nested glob by default (#95)

Features

  • scan: options for custom filePatterns, remove nested glob by default (#95) (bbec5c0)

0.5.0 (2022-07-21)

⚠ BREAKING CHANGES

  • dir: support glob pattern in dirs (#86)

Features

  • dir: support glob pattern in dirs (#86) (08bc27a)

0.4.7 (2022-07-21)

0.4.6 (2022-07-21)

0.4.5 (2022-07-14)

0.4.4 (2022-07-08)

Bug Fixes

0.4.3 (2022-07-07)

Features

Bug Fixes

  • don't auto-import for exports from other modules (#87) (4c345a4)

0.4.2 (2022-07-06)

Bug Fixes

  • regex replacement false-negative (1f9e35d)

0.4.1 (2022-07-01)

Bug Fixes

  • improve switch detection (2fb10ef)

0.4.0 (2022-06-24)

Bug Fixes

  • spelling of declaration (#81) (f371b9b)
  • vue-template: augmente types with @vue/runtime-core (#80) (7c83d44)

0.3.0 (2022-06-22)

⚠ BREAKING CHANGES

  • vue-template: auto unwrap (#72)

Features

0.2.10 (2022-06-22)

Features

Bug Fixes

0.2.9 (2022-06-14)

Bug Fixes

0.2.8 (2022-06-13)

Bug Fixes

  • use regex as fallback of strip-literal (c43ffe3)

0.2.7 (2022-06-10)

Bug Fixes

  • strict cjs syntax detection (efd81c7)

0.2.6 (2022-05-31)

Bug Fixes

  • nested quotes in template string, multiline template string (#49) (#58) (d5921ae)
  • use strip-literal for more correct comments removal (#60) (087407e)

0.2.5 (2022-05-29)

Bug Fixes

0.2.4 (2022-05-25)

Bug Fixes

  • exclude existing class define (94c3a7d)
  • regexes break with unbalanced backticks (#51) (c6764ba)

0.2.3 (2022-05-24)

Bug Fixes

  • types: redirect sub module types (5314d44)

0.2.2 (2022-05-24)

Features

  • allow modifyDynamicImports to replace array (abcb52c)
  • expose addons (a954785)
  • improve addons API (bd92eac)
  • improve coverage (37d39a0)
  • support importing side-effects (0d2da20)

Bug Fixes

  • don't match identifiers starts with . (6cddef4)
  • improve match regex (0e68fd7)
  • sort dts entries (3d71eef)

0.2.1 (2022-05-10)

Features

Bug Fixes

  • vue-template: webpack compatibility (ffc71dc)

0.2.0 (2022-05-10)

Features

  • auto import for template working! (3453042)
  • dts generation (2e4dcdc)
  • introduce addon system (c788851)
  • options for vue template auto import (c242918)
  • unplugin: support auto import fomr directory (a8d17c2)

Bug Fixes

  • support auto import for variables (4059581)

0.1.9 (2022-05-09)

Bug Fixes

  • detect function argument ends with comma (29365cd)

0.1.8 (2022-04-28)

Bug Fixes

0.1.7 (2022-04-26)

Features

  • expose clearDynamicImports to context (2f82f0a)

Bug Fixes

  • dedupe imports from same source (7faa56f)

0.1.6 (2022-04-20)

Bug Fixes

0.1.5 (2022-04-13)

Bug Fixes

0.1.4 (2022-04-05)

Bug Fixes

  • template literal detection (3ea56ff)

0.1.3 (2022-03-24)

Bug Fixes

  • remove disabled imports before deduplicating (#14) (d17b29d)

0.1.2 (2022-03-23)

Features

  • supports disabled flag on Import (#13) (2cf781d)

0.1.1 (2022-03-19)

Bug Fixes

  • improve dection for object props (736111a)

0.1.0 (2022-03-15)

⚠ BREAKING CHANGES

  • use options for generateTypeDeclarations

Features

  • scanDirExports utils, close #9 (#10) (e6f7c71)
  • resolve priority from presets (2353807)
  • use options for generateTypeDeclarations (4c9c4dc)

Bug Fixes

0.0.8 (2022-03-09)

Bug Fixes

0.0.7 (2022-03-09)

Bug Fixes

0.0.6 (2022-03-09)

Bug Fixes

0.0.5 (2022-03-03)

0.0.4 (2022-02-25)

Features

  • path resolver for dts generation (14598a5)

0.0.3 (2022-02-25)

Features

Bug Fixes

  • clear internal map (8232a44)
  • unplugin: async transform support (efc2a66)

0.0.2 (2022-02-25)

Bug Fixes

0.0.1 (2022-02-25)

Features

  • add built-in presets from unplugin-auto-import (d3e5830)
  • dts generation (96b44b6)
  • imports priority and dedupe (6036220)
  • merging with an existing import declaration, close #7 (b42ad88)
  • support default and import all syntax (#3) (2e7cf40)
  • unplugin: include / exclude option (5da4e16)
  • unplugin: dts generation (a03f6c7)

Bug Fixes