Skip to content

Drupal Menu and Menu item Druxt components, with support for the JSON:API Menu Items module.

Release notes

View source on GitHub

0.21.1-dev.20260921034536

Patch Changes

  • Druxt components no longer flicker on the first load of a production build. Each module now registers its components as synchronous imports, so a server-rendered block or field is kept after hydration and does not fetch its data a second time. Sites that added a components:extend hook to work around this can remove it. (8b47d6f)
  • Updated dependencies. (#698, a1d6708)
  • The README banner renders on npm. repository.directory only changes the Repository link on the npm page, so npm's registry still resolved a relative image path against the monorepo root, where the banner does not exist. Each package's banner is now an absolute URL naming its own directory. (d963bcb)
  • The README banner now renders on npm. Each package's repository field names its own directory in the monorepo, so npm resolves the banner image against packages/<name> instead of the repository root, where it did not exist. (a8f4ed6)
  • Menu results are now cached per client and process, concurrent requests for one menu share a fetch, and the Nuxt plugin reuses the app.$druxt client when available instead of creating a second DruxtClient. (43ddd7b)
  • Updated dependencies: druxt@0.25.0-dev.20260922051029, druxt-blocks@0.17.4-dev.20260922051029.

0.21.0 - 2024-01-08

Minor Changes

  • Added the druxtMenu/flushEntities Vuex mutation, so cached menus can be flushed, for example on logout. (#684, 26b1bc6)

0.20.0 - 2023-11-08

Minor Changes

  • Fixed menus not updating with authenticated links when logged in on a statically generated site. (#679, 6298025)

0.19.3 - 2023-11-02

Patch Changes

  • Added Nuxt Auth Axios instance to the DruxtMenu plugin to ensure correct results are provided when authenticated. (#679)

0.19.2 - 2023-07-25

Patch Changes

0.19.1 - 2023-07-05

Patch Changes

0.19.0 - 2022-11-03

Minor Changes

  • Updated components to support the DruxtDevelTemplate tool. (#578, f6b4a66)

Patch Changes

0.18.0 - 2022-08-12

Minor Changes

  • Changed the default menu data source to the JSON:API Menu Items module, which covers the system and plugin menus that core JSON:API menu items cannot provide; set menu.jsonApiMenuItems: false for the old behaviour. (#539, 3330187)
  • Enabled dependencies when only using Nuxt druxt-menu module. (54c8ece)

Patch Changes

0.17.1 - 2022-07-08

Patch Changes

0.17.0 - 2022-05-23

Minor Changes

  • Added multilingual support to the DruxtMenu component. (be21952)

    example:

    <DruxtMenu name="main" langcode="es" />
    
  • Added langcode to component mixins. (be21952)

  • Added multilingual support to Block components. (be21952)

Patch Changes

0.16.3 - 2022-04-14

Patch Changes

0.16.2 - 2022-03-17

Patch Changes

0.16.1 - 2022-02-23

Patch Changes

0.16.0 - 2022-02-07

Minor Changes

  • Improved DruxtMenu storybook stories and documentation. (#249, b79701c)

Patch Changes

0.15.3 - 2021-12-30

Patch Changes

0.15.2 - 2021-12-11

Patch Changes

0.15.1 - 2021-12-04

Patch Changes

0.15.0 - 2021-11-10

Minor Changes

Patch Changes

0.14.3 - 2021-10-13

  • Republish of 0.14.2; no package changes.

0.14.2 - 2021-10-13

Patch Changes

0.14.1 - 2021-10-10

Patch Changes

0.14.0 - 2021-09-29

Minor Changes

  • Added module-level options. (dae345e)
  • Updated storybook integration. (8d28c18)

Patch Changes

0.13.0 - 2021-09-19

Minor Changes

  • Updated component registration method to use the Nuxt components:dirs hook. (715e5ef)

Patch Changes

0.12.1 - 2021-09-14

Patch Changes

0.12.0 - 2021-09-13

Minor Changes

  • Moved Vue components out of bundle. (21170fb)

    ⚠ Potential breaking change

    Note: This only effects custom Druxt modules and implementations.

    -import { DruxtMenu } from 'druxt-menu'
    +import DruxtMenu from 'druxt-menu/dist/components/DruxtMenu.vue'
    

Patch Changes

0.11.0 - 2021-07-07

Minor Changes

  • Added support for default template injection.

  • Added support for v-model.

  • Updated dependencies.

0.10.3 - 2021-06-12

Patch Changes

  • Added fetchKey to fix hydration issue.

0.10.2 - 2021-06-03

Patch Changes

  • Fixed hydration issue.

0.10.1 - 2021-05-11

Patch Changes

  • Added parentId prop.
  • Fixed issue with missing $attrs / propsData.

0.10.0 - 2021-05-09

Minor Changes

  • Refactored DruxtMenu component for DruxtModule.
  • Added ability to filter JSON:API fields.

0.9.0 - 2021-03-07

Minor Changes

  • Added Storybook integration.
  • Fixed bug with parent template.

0.8.0 - 2021-02-27

Minor Changes

  • Added support for DruxtClient and DruxtStore.

0.7.0 - 2021-01-14

Minor Changes

0.6.2 - 2021-01-07

Patch Changes

  • Updated dependencies.

0.6.1 - 2020-11-15

Patch Changes

  • Updated dependencies.

0.6.0 - 2020-11-14

Minor Changes

  • Updated DruxtMenu for Druxt component system.
  • Added $attrs passthrough.

0.5.0 - 2020-09-17

Minor Changes

  • Improved support for JSON:API Menu Item subtrees.
  • Updated dependencies.

0.4.0 - 2020-09-07

Minor Changes

0.3.0 - 2020-07-12

Minor Changes

0.2.0 - 2020-06-14

Minor Changes

0.1.1 - 2020-04-28

Patch Changes

0.1.0 - 2020-04-28

Initial release