strapi

Design APIs fast and manage content easily using REST or GraphQL.

v1.9.2 by benjamincanacbenjamincanac

v1.9.1 by benjamincanacbenjamincanac

What's Changed

Full Changelog: https://github.com/nuxt-modules/strapi/compare/v1.9.0...v1.9.1

v1.9.0 by benjamincanacbenjamincanac

What's Changed

Full Changelog: https://github.com/nuxt-modules/strapi/compare/v1.8.1...v1.9.0

v1.8.0 by benjamincanacbenjamincanac

What's Changed

Full Changelog: https://github.com/nuxt-modules/strapi/compare/v1.7.1...v1.8.0

v1.7.1 by benjamincanacbenjamincanac

What's Changed

Full Changelog: https://github.com/nuxt-modules/strapi/compare/v1.7.0...v1.7.1

v1.7.0 by benjamincanacbenjamincanac

What's Changed

New Contributors

Full Changelog: https://github.com/nuxt-modules/strapi/compare/v1.6.3...v1.7.0

v1.6.0 by benjamincanacbenjamincanac

What's Changed

New Contributors

Full Changelog: https://github.com/nuxt-modules/strapi/compare/v1.5.1...v1.6.0

v1.5.0 by benjamincanacbenjamincanac

What's Changed

New Contributors

Full Changelog: https://github.com/nuxt-community/strapi-module/compare/v1.4.0...v1.5.0

v1.4.0 by benjamincanacbenjamincanac

What's Changed

Full Changelog: https://github.com/nuxt-community/strapi-module/compare/v1.3.2...v1.4.0

v1.3.2 by benjamincanacbenjamincanac

Bug Fixes

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

Full Changelog: https://github.com/nuxt-community/strapi-module/compare/v1.3.1...v1.3.2

v1.3.1 by benjamincanacbenjamincanac

What's Changed

Full Changelog: https://github.com/nuxt-community/strapi-module/compare/v1.3.0...v1.3.1

v1.3.0 by benjamincanacbenjamincanac

What's Changed

Full Changelog: https://github.com/nuxt-community/strapi-module/compare/v1.2.0...v1.3.0

v1.2.0 by benjamincanacbenjamincanac

What's Changed

New Contributors

Full Changelog: https://github.com/nuxt-community/strapi-module/compare/v1.1.0...v1.2.0

v1.1.0 by benjamincanacbenjamincanac

v1.0.0 by benjamincanacbenjamincanac

What's Changed

Old documentation for nuxt 2 module available at https://strapi-v0.nuxtjs.org/

Full Changelog: https://github.com/nuxt-community/strapi-module/compare/v0.3.4...v1.0.0

v0.3.1 by benjamincanacbenjamincanac

Bug Fixes

v0.3.0 by AtinuxAtinux

TypeScript

The module has been rewritten with TypeScript and using Siroc as bundler.

Session options

This PR also add a properties into the module to configure the session:

export default {
  strapi: {
    key: 'strapi_jwt',
    expires: 'session',
    cookie: {}
  }
}

Resolves #92 and #85

key

  • Type: String
  • Default: 'strapi_jwt'

Key used for the cookie name as well as LocalStorage/SessionStorage key.

expires

  • Type: String or Number or 'session'
  • Default: 'session'

When expires === 'session', the sessionStorage will be used to act like the cookie.

Otherwise, the value is a string, it will be parsed using ms, ex: expires: '7d'

A number can also be provided as milliseconds, ex: expires: 7 * 24 * 3600 * 1000

It would be possible also to configure during runtime the expiration, example:

if (form.rememberMe) {
  this.$strapi.options.expires = 31 * 24 * 3600 * 1000; // Only number is possible
}
await this.$strapi.login({ identifier: '...', password: '...' })
  • Type: Object
  • Default: {}

Options to forward to the cookie#options module, the expires property will be overwritten.

Resolved #70

Misc

  • The error returned by $strapi also include .original to list the error code, resolves #89

Learn more at https://strapi.nuxtjs.org

v0.1.10 by AtinuxAtinux

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

v0.1.9 by AtinuxAtinux

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

v0.1.8 by benjamincanacbenjamincanac

🐛 Bug Fixes

#68 Prevent user fetch on server with target static

v0.1.7 by benjamincanacbenjamincanac

🐛 Bug Fixes

  • #45 Reduce the size of lodash on build
  • 58a9d17 Better error handling

v0.1.6 by benjamincanacbenjamincanac

🚀 Features

  • #37 Add userUpdated hook

v0.1.5 by benjamincanacbenjamincanac

🚀 Features

  • #35 Handle Single Type entities

🐛 Bug Fixes

  • #34 Reactivity of $strapi.user on client-side hydratation

v0.1.4 by benjamincanacbenjamincanac

🚀 Features

  • #28 New method to make requests to GraphQL API

🐛 Bug Fixes

  • #29 Authorization header not present in request object

v0.1.3 by AtinuxAtinux

🐛 Bug Fixes

  • Avoid redefine property if exists (4ac979c)

v0.1.2 by AtinuxAtinux

🚀 Features

  • Support Nuxt runtimeConfig so you can change your process.env.STRAPI_URL in production without having to run nuxt build ✨ (4442467)

v0.1.1 by benjamincanacbenjamincanac

🐛 Bug Fixes

  • fetchUser now uses correct method

v0.1.0 by benjamincanacbenjamincanac

The official version is out ✨

Read more on https://strapi.nuxtjs.org