Skip to content

Latest commit

 

History

History
1153 lines (649 loc) · 43 KB

CHANGELOG.md

File metadata and controls

1153 lines (649 loc) · 43 KB

Changelog

v2.5.0

compare changes

🚀 Enhancements

  • Upgrade @directus/sdk to v18 (fd94381)

🩹 Fixes

  • auth: Fix failed token refresh on SSR (Cookie mode) (b533837)

🏡 Chore

❤️ Contributors

v2.4.5

compare changes

🩹 Fixes

  • auth: Avoid params sanitization on login redirection (8ec53b0)

🏡 Chore

  • directus: Upgrade to latest (4cfb731)
  • Allow compatibility with nuxt v4 (238bb49)
  • playground: Run on nuxt 4 (152685c)

❤️ Contributors

v2.4.4

compare changes

🩹 Fixes

  • Remove encoding of redirect query param (b22c44c)

💅 Refactors

  • Assing names for built-in plugins (#86)

🏡 Chore

  • Add directus .db to gitignore (29a3327)
  • playground: Fix import.meta not allowed (a56dd56)
  • Add directus .db to gitignore (3ab82f2)
  • No significant change (350f9d7)

❤️ Contributors

v2.4.3

compare changes

🩹 Fixes

  • Solve potential infinite redirections on Vercel (c33edf3)
  • Prioritize guest middleware over global auth middleware` (dda5b72)

🌊 Types

  • Set PageMeta middleware type for auth and guest (67572b6)

🏡 Chore

❤️ Contributors

v2.4.2

compare changes

💅 Refactors

  • Change refreshTimeout scope (18132b8)

📖 Documentation

🏡 Chore

  • lint: Migrate to @nuxt/eslint (9062618)
  • Add directus server (1237e2d)
  • playground: Rewrite with multi-pages (67732e7)
  • Split test scripts (5b068cf)

✅ Tests

❤️ Contributors

v2.4.1

compare changes

🌊 Types

  • useDirectusRest: Set unset DirectusSchema type to any #84 (#84)

❤️ Contributors

v2.4.0

compare changes

🚀 Enhancements

  • Upgrade @directus/sdk to v16 (2f1a01d)

❤️ Contributors

v2.3.1

compare changes

🏡 Chore

  • Move nuxt-apollo from dev deps (9598eed)

❤️ Contributors

v2.3.0

compare changes

🚀 Enhancements

  • auth: Support session mode (#81)

🌊 Types

❤️ Contributors

v2.2.3

compare changes

🏡 Chore

❤️ Contributors

v2.2.2

compare changes

🩹 Fixes

  • auth: Avoid auto-logout when page not found (#79)

💅 Refactors

  • auth: No significant change (41fbc4c)
  • auth: Remove extra token check (c9fa3c7)
  • No significant change (d4fb37e)

📖 Documentation

  • Update README.md (1886a81)
  • Mention SSO login setup for directus +v10.10 (#77)

🏡 Chore

  • deps-dev: Bump undici from 5.28.2 to 5.28.3 in /playground (37d6034)
  • deps-dev: Bump ip from 2.0.0 to 2.0.1 in /playground (881387a)
  • Refresh lockfile (663f891)
  • playground: Remove register page link (b84a9f9)
  • playground: Remove unused deps (cd93cd9)
  • playground: Add missing config options (dc0e172)

❤️ Contributors

v2.2.1

compare changes

🩹 Fixes

  • Fix failed to find "useDirectusSession" (93dcc98)

🏡 Chore

  • playground: Add GrapQL query check (79b200d)
  • playground: No significant change (e0bccfd)

❤️ Contributors

v2.2.0

compare changes

🚀 Enhancements

  • Upgrade @directus/sdk to v15 (05fef5f)

💅 Refactors

  • Avoid auto-import of useDirectusAuth useDirectusSession if auth disabled (416b483)

🌊 Types

❤️ Contributors

v2.1.11

compare changes

🩹 Fixes

  • auth: Solve failed refresh on Cloudflare workers (613f831)

❤️ Contributors

v2.1.10

compare changes

💅 Refactors

  • Use $fetch instead of fetch (b4c5870)

❤️ Contributors

v2.1.9

compare changes

🩹 Fixes

  • refresh: Wait until previous refresh call is completed (27f0631)

💅 Refactors

  • refresh: Only pass cookies on SSR (612c6fd)

❤️ Contributors

v2.1.8

compare changes

💅 Refactors

  • Replace _loggedIn with _loggedInFlag (32b3014)
  • No significant change (e31c039)
  • auth plugin: Implement new method for initialization check (c46979e)
  • middleware: Replace user with access token to check logged in status (dcd7769)

🏡 Chore

  • Move memory-storage utility to useDirectusToken source file (3b89ce0)
  • No significant change (56448ae)

❤️ Contributors

v2.1.7

compare changes

💅 Refactors

  • composables: Create useDirectusToken (95c617b)
  • accessToken: Migrate from cookie storage to in-memory storage (71b9c4f)
  • Minor refactoring (fd5c5aa)
  • Exclude useDirectusToken from auto-import (6a07b0f)
  • Reload window when logged in from other tab (49c19d9)

📖 Documentation

  • Remove accessTokenCookieName config option (c8eda58)

🏡 Chore

  • Remove outdated design folder (e0b57cf)

❤️ Contributors

v2.1.6

compare changes

🩹 Fixes

  • Sync login on multiple tabs (d69cf01)
  • Delete refresh token cookie on server-side refresh fail (12f87bf)
  • refresh: Fix undefined setCookie (a7e14a5)

💅 Refactors

  • Verify user state on _login _logout handlers (939fee6)
  • useDirectusSession: Minor refactoring (8141262)

❤️ Contributors

v2.1.5

compare changes

🔥 Performance

  • Fix bfcache failed warning (b565f58)

💅 Refactors

  • composables: Use named exports (ae44470)
  • Add loggedInFlagName config option (5ca0181)

❤️ Contributors

v2.1.4

compare changes

🔥 Performance

  • Avoid relying on useCookie for multi-tabs auto logout (3f8ae1b)

💅 Refactors

  • Create a broadcastChannel (45af7cc)
  • Listen to channel on vue app mounted (3f2e27d)

❤️ Contributors

v2.1.3

compare changes

🩹 Fixes

  • Remove access token cookie on logout (c0f90b4)

🏡 Chore

  • Format with nuxt eslint config (6728d73)

❤️ Contributors

v2.1.2

compare changes

🩹 Fixes

  • Add missing imports (#66)

❤️ Contributors

v2.1.1

compare changes

🩹 Fixes

  • Auto logout when loggedIn and access token cookie removed (d3dd90a)

💅 Refactors

  • useDirectusAuth: Create _onLogin and _onLogout handlers for post fetch call (09d053e)
  • useDirectusSession: Refactor _accessToken (ba1da9e)
  • auth plugin: Replace useNuxtApp with the provided nuxtApp argument (1edd02a)

🏡 Chore

  • Follow jwt-decode v4 import (2890bcc)

❤️ Contributors

v2.1.0

compare changes

🚀 Enhancements

  • ⬆️ update directus-sdk to v 13 (0b6407b)

🏡 Chore

  • deps-dev: Bump @babel/traverse in /playground (a203165)
  • deps-dev: Bump postcss from 8.4.28 to 8.4.31 in /playground (f66be99)
  • deps-dev: Bump undici from 5.25.2 to 5.27.0 (aabb2a5)
  • deps-dev: Bump undici from 5.23.0 to 5.27.0 in /playground (551ab82)

❤️ Contributors

v2.0.5

compare changes

💅 Refactors

  • Add aggregate command for auto-import (#53)

📖 Documentation

  • Remove version-1 warning (687ea86)

🏡 Chore

❤️ Contributors

v2.0.4

compare changes

💅 Refactors

  • Replace 127.0.0.1 default with localhost (882eec4)

📖 Documentation

  • Add localhost note in Auth section (623cb5c)
  • Update localhost note in Auth section (abd57a8)

❤️ Contributors

v2.0.3

compare changes

💅 Refactors

  • useDirectusSession: Prefix internal apis with underscore (27dfb77)

📖 Documentation

  • readme: Update REST section (104093e)

🌊 Types

  • useDirectusAuth: Mark user state as Readonly (a7953a7)
  • useDirectusSession: Set getToken return type (827c62e)
  • useDirectusFetch: Return dynamic type instead of object (972c9e8)

🏡 Chore

❤️ Contributors

v2.0.2

compare changes

🩹 Fixes

  • Fix access token getter on server-side (80f3f8f)

💅 Refactors

  • Refactor useDirectusSession (2b11d7e)

🏡 Chore

❤️ Contributors

v2.0.1

compare changes

🩹 Fixes

  • Reset user state on fetchUser fail (3b1e6d3)
  • Fix nuxt instance not available on SSR (5b9d617)

🏡 Chore

❤️ Contributors

v2.3.1-beta

compare changes

💅 Refactors

  • refresh: Reset auth states with useState (b453743)
  • Always set loggedIn to localStorage on page load (e83a001)

📖 Documentation

❤️ Contributors

v2.3.0-beta

compare changes

🚀 Enhancements

  • Add directus:loggedIn hook (8a6419b)

🩹 Fixes

  • refresh: Clear user state on refresh fail (d3c7fb1)

💅 Refactors

  • Pass cookies from server-side on SSR response as suggested by docs (0fbf849)
  • refresh: Some refactoring (c5b4cbc)
  • Create useDirectusStorage to handle auth session (a6461c6)
  • Rename useDirectusStorage to useDirectusSession (40b7b38)
  • Check loggedIn status from user state on route middlewares (409738d)

📖 Documentation

🏡 Chore

❤️ Contributors

v2.2.6-beta

compare changes

💅 Refactors

  • Pass cookies from server-side on SSR response as suggested by docs (0fbf849)
  • refresh: Some refactoring (c5b4cbc)
  • Create useDirectusStorage to handle auth session (a6461c6)

📖 Documentation

🏡 Chore

❤️ Contributors

v2.2.5-beta

compare changes

🩹 Fixes

  • Keep user loggedIn after browser session ends (471e66b)
  • Prevent localStorage calls on SSR (97b88da)
  • Prevent concurrent refresh calls (f73ada0)
  • logout: Clear storage & redirect regardless of fetch result (a6d3a8b)

💅 Refactors

  • Name useState keys in kebab-case (04fd6a4)
  • Remove accessTokenCookieMaxAge config option (44e63f4)

❤️ Contributors

v2.2.4-beta

compare changes

🩹 Fixes

  • Store access token in long-lived cookie (7e992de)

📖 Documentation

  • Add notes section (1bf7278)
  • Add accessTokenCookieMaxAge config option (1dfc4eb)

🏡 Chore

  • Add accessTokenCookieMaxAge config option (1deba60)

❤️ Contributors

v2.2.3-beta

compare changes

🩹 Fixes

  • auth: Add opt input option to login (1e9bb16)

💅 Refactors

  • auth: Set userFields default value on fetchUser (937dc4b)

📖 Documentation

  • Update starter URL (976227b)
  • Replace npm with pnpm (e1b7359)
  • Add userFields to config options (e644f4c)

🌊 Types

  • Extend user type with DirectusSchema (6913adb)

🏡 Chore

❤️ Contributors

v2.2.2-beta

compare changes

🩹 Fixes

  • auth: Fix duplicate fetchUser calls on SSO login (793e1b2)

📖 Documentation

❤️ Contributors

v2.2.1-beta

compare changes

💅 Refactors

  • Set access token cookie to session and store max-age on another cookie (4431e71)
  • Check access token expiration from payload (159def7)

📖 Documentation

🏡 Chore

  • demo: Upgrade dependencies (1ed2666)

❤️ Contributors

v2.2.0-beta

compare changes

🚀 Enhancements

  • rest: Auto-import commonly used commands (de5149d)
  • auth: Add requestPasswordReset & resetPassword methods (280a4e2)

🔥 Performance

  • Conditional usage of extensions with enabled config option (b059945)

🩹 Fixes

  • auth: Redirect to logout page on refresh fail (f02d79a)

💅 Refactors

  • Update plugins names and paths (3b39434)
  • Move baseUrl & nuxtBaseUrl under rest config option (4325a1f)
  • rest: Create rest client on plugin (a7db7ee)

🌊 Types

  • Set graphql & auth types based on enabled value (ddebc14)

🏡 Chore

  • demo: Upgrade dependencies (2bfec36)

❤️ Contributors

v2.1.2-beta

compare changes

📖 Documentation

🏡 Chore

  • demo: Upgrade dependencies (0ca9779)

❤️ Contributors

v2.1.1-beta

compare changes

🩹 Fixes

  • Replace @nuxtjs/apollo with nuxt-apollo (df1d5eb)

📖 Documentation

🏡 Chore

  • demo: Update dependencies (e78a1e4)

❤️ Contributors

v2.1.0-beta

compare changes

🚀 Enhancements

  • graphql: Add apollo authentication hook (3b6aebc)

🩹 Fixes

  • graphql: Add missing @vue/apollo-composable module (dd38d03)

💅 Refactors

  • auth: Add getToken to get fresh access token (6bc141d)
  • Add graphql endpoints config options (dff06e2)

📖 Documentation

🏡 Chore

  • demo: Upgrade dependencies (77b5f09)
  • demo: UI refactor (ed61bb7)
  • graphql: Add @nuxtjs/apollo module (d65d1eb)
  • graphql: Add codegen & graphql vscode extension config files (0844074)
  • graphql: Test codegen and query auto suggestion (4b06c03)
  • demo: Test graphql subscription (0df47e6)

❤️ Contributors

v2.0.1-beta

compare changes

🏡 Chore

❤️ Contributors

v0.2.1-beta

compare changes

📖 Documentation

🏡 Chore

❤️ Contributors

v0.1.1-next

compare changes

🚀 Enhancements

  • rest: Set useDirectusRest as wrapper for request method (35e9aa6)
  • auth: Implement login & logout from REST (45426ad)
  • auth: Implement refresh from REST (531b8e7)
  • auth: Implement custom storage (0c7b6aa)
  • auth: Implement client side auto refresh (a87b4f9)
  • auth: Implement universal auto refresh (82f3032)
  • auth: Add loginWithProvider for SSO login (51c9551)

🩹 Fixes

  • auth: Clear storage of refresh fail (0e88b8b)
  • auth: On SSR share access token via �vent object (29d34d9)
  • auth: Update conditions for fetchUser on initilization (41c489b)
  • auth: Add delay between login & fetchUser to insure access token cookie is set (ceb9791)

💅 Refactors

  • Insure config variable always refer to module options (5218e10)
  • init plugin: Remove unnecessary useInitialized method (4fc44a9)
  • Remove useDirectus as it might be misleading (90da8bb)
  • auth: Update login signature to match sdk (061b43a)
  • Add accessTokenCookieName config option (03fef2c)
  • Add msRefreshBeforeExpires config option to account for network latency (9e63941)

📖 Documentation

  • Update todos list (fef5051)
  • readme: Remove new sdk beta warning (964cf20)
  • readme: Update Todos & config options (88c4e85)
  • readme: Update new sdk url (5e10844)

🌊 Types

  • Add $directus helper type (e8460e6)
  • Rename MyDirectusTypes to DirectusSchema, check readme (176509a)
  • Update AuthStorage type definition (9102f78)

🏡 Chore

  • Upgrade to latest @directus/sdk (234d7dc)
  • demo: Test schema type injection (9edfcd9)
  • demo: Test auth (5951d57)

❤️ Contributors

v0.0.2-next

compare changes

🚀 Enhancements

  • Create $directus helper (e497fcb)
  • Create useDirectusRest composable (c398690)
  • Create useDirectusAuth composable (ee8c21c)
  • auth: Add login & logout methods (80f5e25)
  • auth: Add page middlewares (3dfba09)
  • auth: Implement storage getter/setter (52f83ff)
  • auth: Update loggedIn on page reload (f1debcf)
  • auth: Add user state (ec0f8ac)

🩹 Fixes

  • auth: Add authorization header when token available (f2bea83)
  • auth: Update user state on page load (54ded9f)
  • auth: Call refresh method on initialization (5f03756)
  • auth: Add missing imports (c5f5b59)
  • rest: Add client type (45c1c43)

💅 Refactors

  • Group types under /types (f3b3fcc)

📖 Documentation

🌊 Types

  • auth: Add loggedIn type (f555760)

🏡 Chore

❤️ Contributors

v0.0.1-next

compare changes

🩹 Fixes

  • deps: Update dependency @bg-dev/nuxt-directus to v0.1.6 (ca6bed4)

📖 Documentation

  • readme: Add ext version note (03ef8d7)
  • Update installation section (2e15860)

🏡 Chore

❤️ Contributors

v0.1.6

compare changes

🩹 Fixes

  • deps: Update dependency @bg-dev/nuxt-directus to v0.1.5 (a0d62d3)
  • deps: Update all non-major dependencies (bb4551d)
  • deps: Update nuxt 3 to v3.5.3 (2537e30)
  • Fix middleware from.path to to.path(8586e22)

❤️ Contributors

v0.1.5

compare changes

🩹 Fixes

  • demo: Update arg on loginWithProvider (b7f1813)
  • logout: Deleted cache of fetched data on logout (fd25afa)

🏡 Chore

  • demo: Upgrade dependencies (d6faf44)

❤️ Contributors

  • Becem-gharbi

v0.1.4

compare changes

🚀 Enhancements

  • Add cutom redirect path on login (adec1ae)

🩹 Fixes

  • Place useRoute outside route middlewares (381d41b)

💅 Refactors

  • Use ufo utilities for url manipulations (1486d87)

❤️ Contributors

  • Becem-gharbi

v0.1.3

compare changes

🩹 Fixes

📖 Documentation

🏡 Chore

❤️ Contributors

  • Becem-gharbi

v0.1.2

compare changes

💅 Refactors

📖 Documentation

🏡 Chore

❤️ Contributors

  • Becem-gharbi

v0.1.1

compare changes

🔥 Performance

  • Remove qs and use native ofetch query serialization (33c9797)

💅 Refactors

  • Remove extra logging in useDirectusAuth (e7382a7)

📖 Documentation

  • Add userFields module options in README (7104b72)

🏡 Chore

  • Remove semantic-release & github workflow (2c88138)

❤️ Contributors

  • Becem-gharbi