Skip to content

Drupal router for Nuxt, powered by the Drupal Decoupled Router module.

Release notes

View source on GitHub

0.32.0 - 2026-10-23

Minor Changes

  • The new druxtRouter/flushRoutes mutation removes one stored route, or all of them. druxt/clearCache uses it. (#885, 75b3768)
  • vue and vuex are now peer dependencies, so the packages use the site's own copy. A second copy stopped Nuxt at startup with a version mismatch. (#875, 46e77f7)

Patch Changes

  • Components no longer flicker or fetch their data again on the first load of a production build. Remove any components:extend hook added to work around it. (#854, 8b47d6f)
  • A route fetched across a flush is no longer stored, but the page still renders it, so the title, breadcrumb and block regions follow the page shown. druxtRouter/setRoute also takes { path, route }. (#885, 75b3768)
    this.$store.commit('druxtRouter/setRoute', { path, route });
    
  • druxt-router depends on drupal-jsonapi-params ^2.3.2, where it declared a * peer. (#877, 1f55b29)
  • Each package exports its package.json, so require('druxt/package.json') works. (#835, 14dca08)
  • Package READMEs show their banner on npm. (#863, d963bcb)
  • Route errors such as 403 and 404 render through Nuxt's error(), and the plugin reuses the site's $druxt client, when it has one, instead of creating another. (#846, 4be5c92)
  • The home path / no longer redirects to /<langcode>. (#825, 27e7c50)
  • A route lookup that fails without a 4xx, such as a network error, is no longer stored, so the next visit tries again. (#881, e485374)
  • Updated dependencies: druxt@0.25.0.

0.31.0 - 2023-11-02

Patch Changes

  • Updated dependencies: druxt@0.24.0.

0.30.0 - 2023-07-25

Minor Changes

  • Added @nuxtjs/axios support to the Router plugin, so requests to the Decoupled Router carry the app Axios configuration, including authentication headers. (#660, 8609410)

Patch Changes

  • Updated dependencies: druxt@0.23.0.

0.29.1 - 2023-07-05

Patch Changes

  • Updated dependencies: druxt@0.22.0.

0.29.0 - 2022-11-03

Minor Changes

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

Patch Changes

  • Updated dependencies: druxt@0.21.0.

0.28.0 - 2022-08-12

Minor Changes

  • Enabled dependencies when only using Nuxt druxt-router module. (54c8ece)

Patch Changes

  • Added DruxtModule props to component module stories. (fc811db)
  • Updated dependencies: druxt@0.20.0.

0.27.4 - 2022-07-08

Patch Changes

  • Fixed support for nuxt/storybook. (45e14b8)
  • Updated dependencies: druxt@0.19.3.

0.27.3 - 2022-05-30

Patch Changes

  • Fixed issue with single-lingual sites using JSON:API Extras. (9819eee)
  • Updated dependencies: druxt@0.19.2.

0.27.2 - 2022-05-27

Patch Changes

  • Fixed issues on single-lingual sites. (f86b372)

0.27.1 - 2022-05-24

Patch Changes

  • Fixed issues on single-lingual sites. (4150e25)
  • Updated dependencies: druxt@0.19.1.

0.27.0 - 2022-05-23

Minor Changes

  • Added langcode support to the DruxtRouter. (be21952)
  • Added langcode to component mixins. (be21952)

Patch Changes

  • Updated dependencies: druxt@0.19.0.

0.26.1 - 2022-02-23

Patch Changes

  • Added support for the @nuxtjs/axios module. (#63, e3d5238)
  • Updated dependencies: druxt@0.18.0.

0.26.0 - 2022-02-07

Minor Changes

  • Added debug and default slots to the DruxtRouter component. (b79701c)
  • Improved DruxtRouter storybook stories and documentation. (#249, b79701c)

Patch Changes

  • Updated dependencies: druxt@0.17.0.

0.25.0 - 2021-12-30

Minor Changes

  • Added improved error handling. (7b749bd)

Patch Changes

  • Updated dependencies: druxt@0.16.0.

0.24.2 - 2021-12-11

Patch Changes

  • Updated dependencies: druxt@0.15.0.

0.24.1 - 2021-12-04

Patch Changes

  • Updated dependencies: druxt@0.14.0.

0.24.0 - 2021-11-24

Minor Changes

  • Added Storybook integration for the DruxtRouter component. (9161b38)

  • Added ability to render a specific route using the Path property. (9161b38)

    <DruxtRouter path="/node/1" />
    
  • Added fetch hook to DruxtRouter component. (9161b38)

  • Added option to disable the DruxtRouter page middleware. (9161b38)

    export default {
      druxt: {
        router: {
          middleware: false,
        },
      },
    };
    

    Note: This is experimental and your results may vary.

0.23.0 - 2021-11-10

Minor Changes

  • Added support for API Proxy. (77ab204)

Patch Changes

  • Updated dependencies: druxt@0.13.0.

0.22.0 - 2021-10-10

Minor Changes

  • Throw Error on router errors. (c7b267a)

Patch Changes

  • Updated dependencies: druxt@0.12.0.

0.21.0 - 2021-09-29

Minor Changes

  • Set router pages option default based on presence of pages/ directory. (9d905e8)

  • Moved Nuxt module to druxt-router/nuxt. (9d905e8)

    ⚠ Potential breaking change

    -modules: ['druxt-router']
    +modules: ['druxt-router/nuxt']
    
  • Added module-level options. (dae345e)

Patch Changes

  • Updated dependencies: druxt@0.11.0.

0.20.0 - 2021-09-19

Minor Changes

  • Enabled Nuxt Vuex store by default. (1ab762c)
  • Added option to disable wildcard route. (ecefef5)
  • Updated component registration method to use the Nuxt components:dirs hook. (715e5ef)
  • Added option to disable pages/ routes. (cbc66cd)

Patch Changes

  • Updated dependencies: druxt@0.10.0.

0.19.1 - 2021-09-14

Patch Changes

0.19.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 { DruxtRouter } from 'druxt-router'
    +import DruxtRouter from 'druxt-router/dist/components/DruxtRouter.vue'
    

Patch Changes

  • Updated dependencies: druxt@0.9.0.

0.18.1 - 2021-04-28

Patch Changes

  • Added hid to canonical meta tag.
  • Fixed issue with metatags.

0.18.0 - 2021-02-09

Minor Changes

  • Deprecated client methods in favour of DruxtClient.

0.17.3 - 2021-02-02

Patch Changes

  • Fixed issue with querystring and getRedirect().

0.17.2 - 2021-01-08

Patch Changes

  • Updated dependencies.

0.17.1 - 2020-12-17

Patch Changes

  • Fixed issue with permission check.

0.17.0 - 2020-12-04

Minor Changes

  • Added support for DruxtComponentMixin.

0.16.1 - 2020-11-14

Patch Changes

  • Updated Nuxt module.
  • Updated dependencies.

0.16.0 - 2020-08-27

Minor Changes

  • Added documentation.
  • Updated dependencies.

0.15.0 - 2020-07-12

Minor Changes

  • Added resolved path to router information.
  • Added all option to getResources.

0.14.0 - 2020-07-07

Minor Changes

  • Added support for Drupal JSON:API Params.
  • Added addHeaders() method.

0.13.0 - 2020-06-30

Minor Changes

  • Added resource index.
  • Added support for remapped resources.
  • Added getResources method.

0.12.0 - 2020-06-13

Minor Changes

  • Added support for customisable endpoint.
  • Added type and uuid data.
  • Fixed hydration issue.

0.11.1 - 2020-06-05

Patch Changes

  • Fixed hydration issue.

0.11.0 - 2020-06-05

Minor Changes

  • Added support for additional router types.
  • Added support for JSON:API Views routes.

0.10.1 - 2020-06-01

Patch Changes

  • Fixed router WSOD error.

0.10.0 - 2020-05-17

Minor Changes

  • Added configurable Router component.
  • Refactored DruxtRouterEntityMixin.
  • Removed support for JSON API Deserializer.

0.9.0 - 2020-04-28

Minor Changes

  • Updated module to use shared Druxt configuration.

0.8.0 - 2020-03-31

Minor Changes

  • Improved error handling for missing routes.

0.7.0 - 2020-03-26

Minor Changes

  • Added getRoute action to Vuex store.
  • Refactored Nuxt plugin.

0.6.0 - 2020-03-19

Minor Changes

  • Added Axios settings support.

0.5.0 - 2020-03-18

Minor Changes

  • Added support for redirects.
  • Added support for JSON API resourceName.

0.4.2 - 2020-03-13

Patch Changes

  • Fixed various issues.

0.4.1 - 2020-03-13

Patch Changes

  • Fixed various issues.

0.4.0 - 2020-03-13

Minor Changes

0.3.0 - 2020-03-04

Minor Changes

0.2.2 - 2020-03-03

Patch Changes

0.2.1 - 2020-03-02

Patch Changes

0.2.0 - 2020-02-27

Minor Changes

0.1.0 - 2019-12-04

Initial release