Skip to content

Releases: yuanchuan/sveltekit-autoimport

v1.8.0

15 Mar 07:48
Compare
Choose a tag to compare
  • Update peer dependency to support SK >= 1.0.0.
  • Feat: better error message when an unexpected error occurs when parsing. (#37 by @Refzlund)

v1.7.0

17 Mar 00:27
Compare
Choose a tag to compare
  • Support reading transition, animation, and action names.

    <Component in:fly />
    <Component animate:flip />
    <Component use:action />
  • Print parse error in detail.

v1.6.2

21 Apr 05:29
Compare
Choose a tag to compare
  • Fixes issues where import broken with lang="ts". (Thanks to @stolinski )
  • Add unit tests and CI.
  • Add support for use as svelte preprocessor.

v1.5.0

12 Apr 15:43
Compare
Choose a tag to compare
  • Components now will be namespaced with its directory names by default.

      <FormInput />
      <!-- form/input.svelte -->
      
      <ChartPie />
      <!-- charts/pie.svelte -->
  • New prefix option for adding custom prefix for components.

     autoImport({
       components: [{ name: './src/components', prefix: 'shared' } ],
     })

    So that

     <SharedFormInput />
     <!-- form/input.svelte -->
  • New flat option for turning off the namespace feature.

     autoImport({
       components: [{ name: './src/components', flat: true } ],
     })

    So that

     <Popup />
     <!-- modal/inline/popup.svelte -->