Skip to content

Latest commit

 

History

History
107 lines (61 loc) · 4.91 KB

CHANGELOG.md

File metadata and controls

107 lines (61 loc) · 4.91 KB

@astrojs/alpinejs

0.4.0

Minor Changes

  • #9751 1153331cbbaa66a88645d15c6e949432210d4acc Thanks @florian-lefebvre! - Allows extending Alpine using the new entrypoint configuration

    You can extend Alpine by setting the entrypoint option to a root-relative import specifier (for example, entrypoint: "/src/entrypoint").

    The default export of this file should be a function that accepts an Alpine instance prior to starting, allowing the use of custom directives, plugins and other customizations for advanced use cases.

    // astro.config.mjs
    import { defineConfig } from 'astro/config';
    import alpine from '@astrojs/alpinejs';
    
    export default defineConfig({
      // ...
      integrations: [alpine({ entrypoint: '/src/entrypoint' })],
    });
    // src/entrypoint.ts
    import type { Alpine } from 'alpinejs'
    
    export default (Alpine: Alpine) => {
        Alpine.directive('foo', el => {
            el.textContent = 'bar';
        })
    }

0.3.2

Patch Changes

0.3.1

Patch Changes

0.3.0

Minor Changes

  • #8188 d0679a666 Thanks @ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.

  • #8179 6011d52d3 Thanks @matthewp! - Astro 3.0 Release Candidate

0.3.0-rc.1

Minor Changes

0.3.0-beta.0

Minor Changes

  • 1eae2e3f7 Thanks @Princesseuh! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.

0.2.2

Patch Changes

0.2.1

Patch Changes

0.2.0

Minor Changes

0.1.3

Patch Changes

0.1.2

Patch Changes

0.1.1

Patch Changes

0.1.0

Minor Changes