Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@nuxtjs/strapi

nuxt-modules22.1kMIT2.0.0TypeScript support: included

Strapi module for Nuxt

readme

@nuxtjs/strapi

Nuxt Strapi

npm version npm downloads License Nuxt Volta

Strapi module for Nuxt.

Features

  • Nuxt 3 ready
  • Strapi v5/v4/v3 compatible
  • Authentication support
  • RESTful methods
  • Handle errors with hooks
  • TypeScript support

📖  Read the documentation

If you want to use this module for Nuxt 2, check out the documentation of the v0 of the module: http://strapi-v0.nuxtjs.org/.

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Build module using yarn build or npm run build to build once
    • Use yarn build --stub or npm run build --stub during active development
  4. Start development server using yarn dev or npm run dev

License

MIT License

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.0.0 (2024-11-04)

⚠ BREAKING CHANGES

  • composables: remove deprecated wrappers
  • module: default version to v5 (#436)

Features

Bug Fixes

1.12.0 (2024-04-02)

Bug Fixes

  • export runtime types (#403) (d0f8416)
  • module: import CookieOptions from nuxt/app (95a521c)
  • module: update compatibility to ^3.7.0 (caec416)
  • opt in to import.meta.* properties (#401) (53bb585)

1.11.0 (2024-01-13)

Features

1.10.1 (2023-11-30)

Bug Fixes

  • useStrapiClient: import dns module only in development (#370) (8c696de)
  • useStrapiClient: move logic to plugin to prevent vite warn (13aa063)

1.10.0 (2023-11-27)

Features

  • find/findOne: allow fetch options as third param (#360) (b360ad3)

Bug Fixes

1.9.3 (2023-06-01)

1.9.2 (2023-05-26)

1.9.1 (2023-04-20)

Bug Fixes

1.9.0 (2023-03-13)

Features

  • add option to add Strapi admin in Nuxt Devtools (#323) (3726b66)

1.8.1 (2023-02-16)

Bug Fixes

1.8.0 (2023-02-16)

Features

1.7.1 (2023-01-23)

Bug Fixes

1.7.0 (2023-01-16)

Features

Bug Fixes

1.6.3 (2022-11-16)

Bug Fixes

  • example: use modules instead of buildModules (b590af0)
  • module: upgrade to nuxt rc.14 (2ce994d)

1.6.2 (2022-11-16)

1.6.1 (2022-09-29)

Bug Fixes

  • useStrapi: methods typings (ac986de)

1.6.0 (2022-09-27)

Features

  • add useStrapi composable with correct types (#279) (43f76a7)

1.5.1 (2022-09-05)

Bug Fixes

  • example: missing app.vue (df0f757)

1.5.0 (2022-07-18)

Features

  • make cookie name configurable (#265) (e52e97d)
  • module: add auth.populate option for fetchUser (#260) (f9fa58b)

Bug Fixes

  • docs: hydration issue on changelog (cc39098)
  • docs: rename buildModules to modules (#263) (0c6de92)

1.4.0 (2022-06-09)

Features

  • module: support server-specific runtime configuration (#247) (3ee5b2a)
  • useStrapiGraphQL: support for imported graphql files (#249) (0dfee89)

Bug Fixes

  • useStrapiClient: prevent ? suffix with undefined params (14eaac5)
  • useStrapiGraphQL: add missing header preventing successful graphql requests (#248) (7fb2755)

1.3.2 (2022-04-13)

Bug Fixes

  • module: defu default import after v6 upgrade (97dcc4e)
  • module: update runtime config override (#244) (b7adc16)

1.3.1 (2022-03-02)

Bug Fixes

1.3.0 (2022-02-07)

Features

Bug Fixes

  • client: Update returned error (#222) (f99c6e8)
  • module: improve bridge compatibility (70f73af)
  • useStrapiAuth: getProviderAuthenticationUrl fails to concat with prefix (2f087f1)

1.2.0 (2022-01-20)

Features

Bug Fixes

1.1.0 (2022-01-11)

Features

  • add useStrapiGraphQL composable (11402ee)

1.0.0 (2022-01-10)

Features

  • migrate module to nuxt3 + support strapi v4 (#183) (0d8d49b)
  • module improvements (#188) (bceac81)
  • move auth methods into own useStrapiAuth composable (b150c2f)

Bug Fixes

  • example: module import (c460617)
  • module: defu config priority (a340a7a)
  • plugins: missing defineNuxtPlugin (d05ace9)
  • plugins: missing imports (d5edd08)
  • plugins: use new useStrapiAuth composable (e7115f1)
  • provide exports without condition (27afa67)
  • useStrapi4: id is not optional (0e22989)
  • useStrapiToken: implement caching (6e25a4a)

0.3.4 (2021-11-10)

0.3.3 (2021-10-15)

0.3.2 (2021-10-15)

Features

  • strapi: handle query params in findOne method (#167) (1c82fd6)

Bug Fixes

  • broken links to Strapi API parameters page (#140) (4cda013)

0.3.1 (2021-03-25)

Bug Fixes

0.3.0 (2021-01-19)

0.1.13 (2021-01-19)

0.1.12 (2021-01-19)

0.1.11 (2021-01-19)

Features

  • added typescript support and updated docs accordingly (#94) (64f1927)
  • module improvements (#96) (de5be3b)

0.1.10 (2021-01-08)

Features

  • added typescript support and updated docs accordingly (#94) (64f1927)

0.1.9 (2020-12-18)

Features

  • support proxy and add localStorage (#87) (2e08ec6)

0.1.8 (2020-11-02)

Bug Fixes

  • lib: dont fetch user on server with target static (#68) (0a74b5a)

0.1.7 (2020-10-08)

Features

  • Tiny change to plugin.js to reduce the size of lodash on build (#45) (8b59046)

Bug Fixes

  • lib: better error handling (58a9d17)

0.1.6 (2020-08-25)

0.1.5 (2020-08-21)

Features

Bug Fixes

  • plugin: reactivity on hydatation (#34) (b7e764f)

0.1.4 (2020-08-18)

0.1.3 (2020-07-28)

Bug Fixes

  • avoid redefine property if exists (4ac979c)

0.1.2 (2020-07-16)

Features

  • use runtimeConfig to avoid building when changing Strapi URL (4442467)

Bug Fixes

  • update test with new example (404fdca)

0.1.1 (2020-07-08)

Bug Fixes

  • lib: use findOne to get users me (50ca41c)

0.1.0 (2020-07-06)

0.0.1 (2020-06-24)

Features

Bug Fixes