From 947c4662e5a73c7006e68ea1d1dd2b6a24c752ed Mon Sep 17 00:00:00 2001 From: David Oyinbo Date: Mon, 25 May 2026 21:30:23 +0100 Subject: [PATCH 1/3] chore: add conventional release to release config --- release.config.js | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/release.config.js b/release.config.js index 9bd8349..06b4120 100644 --- a/release.config.js +++ b/release.config.js @@ -1,23 +1,30 @@ export default { branches: [{ name: "v1", channel: "v1" }, "main"], plugins: [ - "@semantic-release/commit-analyzer", + [ + "@semantic-release/commit-analyzer", + { + preset: "conventionalcommits", // 👈 Add this + }, + ], + [ + "@semantic-release/release-notes-generator", + { + preset: "conventionalcommits", // 👈 Add this for consistent notes + }, + ], "@semantic-release/release-notes-generator", [ "@semantic-release/changelog", { - "changelogFile": "CHANGELOG.md" - } + changelogFile: "CHANGELOG.md", + }, ], "@semantic-release/npm", [ "@semantic-release/git", { - assets: [ - "CHANGELOG.md", - "package.json", - "docs", - ], + assets: ["CHANGELOG.md", "package.json", "docs"], message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}", }, From 232bbc940e6443ab0de151d6d3baef0601f26714 Mon Sep 17 00:00:00 2001 From: David Oyinbo Date: Mon, 25 May 2026 21:31:13 +0100 Subject: [PATCH 2/3] feat!: bump version to 2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 58cafd6..b366d39 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@workmate/nuxt-auth", "version": "2.0.0", - "description": "Authentication module for Nuxt 3 and Nuxt 4 with local credentials, GitHub, and Google OAuth — Zod schema validation, refresh tokens, cookie management, route middleware, and typed composables.", + "description": "Authentication module for Nuxt 3 and Nuxt 4 with local credentials, GitHub, and Google OAuth — Zod schema validation, refresh tokens, cookie management, route middleware, and typed composables.", "repository": "https://github.com/work-mate/nuxt-auth-module", "license": "MIT", "type": "module", From 0e9139e4a4694b4a95cf43ca844a97a5c68490ab Mon Sep 17 00:00:00 2001 From: David Oyinbo Date: Mon, 25 May 2026 21:33:13 +0100 Subject: [PATCH 3/3] chore: update changelog --- CHANGELOG.md | 49 ++++++++++++------------------------------------- 1 file changed, 12 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77ee12d..e082830 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,67 +1,42 @@ -# [1.6.0](https://github.com/work-mate/nuxt-auth-module/compare/v1.5.1...v1.6.0) (2026-05-25) - - -### Bug Fixes - -* update semantic-release branches to main and v1 ([3f3660a](https://github.com/work-mate/nuxt-auth-module/commit/3f3660a8d1571f5a607fd9e93d8bf4dd758aad88)) - - -### Features - -* add data from the login function ([f405ea3](https://github.com/work-mate/nuxt-auth-module/commit/f405ea32e66e9f8c7ec208b4b091e272bc3b49f3)) -* add debug logs ([8bc0c31](https://github.com/work-mate/nuxt-auth-module/commit/8bc0c3124899f3f7e296339ce5c1bbed14c8b546)) -* endpoint schemas ([9e480bc](https://github.com/work-mate/nuxt-auth-module/commit/9e480bc9aeb6edec867bab1b9e6f98fa73189a5f)) -* remove strict types for signin and introduce schema ([cb7a277](https://github.com/work-mate/nuxt-auth-module/commit/cb7a27707900bcb364196eb7a282a3740fc94c39)) -* rename functions and add useAuthToken and useAuthUser ([a0e0307](https://github.com/work-mate/nuxt-auth-module/commit/a0e0307abbd78fc04da68593e1f80f3014702e30)) -* update build ([11fb963](https://github.com/work-mate/nuxt-auth-module/commit/11fb963a2878596d8e075da14144cd911d8580ca)) -* update types to have hints ([6884375](https://github.com/work-mate/nuxt-auth-module/commit/6884375abf89fa7f5ce3511e8caf2e20a3e8174d)) -* zod schema validations ([8972b17](https://github.com/work-mate/nuxt-auth-module/commit/8972b17a0ebfed77dc9b533c33859ac53490f1d5)) - ## [1.5.1](https://github.com/work-mate/nuxt-auth-module/compare/v1.5.0...v1.5.1) (2025-10-12) - ### Bug Fixes -* generate keys for useFetch when using useAuthFetch ([aa6ea8f](https://github.com/work-mate/nuxt-auth-module/commit/aa6ea8ff6160806af92a96a672c56ad10db040c4)) +- generate keys for useFetch when using useAuthFetch ([aa6ea8f](https://github.com/work-mate/nuxt-auth-module/commit/aa6ea8ff6160806af92a96a672c56ad10db040c4)) # [1.5.0](https://github.com/work-mate/nuxt-auth-module/compare/v1.4.0...v1.5.0) (2025-09-30) - ### Bug Fixes -* invalidates cache data after login and logout ([b87e2b0](https://github.com/work-mate/nuxt-auth-module/commit/b87e2b063a470145a58a8b8ec820f6f774363879)) -* lint ([c0d4ddb](https://github.com/work-mate/nuxt-auth-module/commit/c0d4ddb5172103f895a8130df7229e1554d0ef4d)) - +- invalidates cache data after login and logout ([b87e2b0](https://github.com/work-mate/nuxt-auth-module/commit/b87e2b063a470145a58a8b8ec820f6f774363879)) +- lint ([c0d4ddb](https://github.com/work-mate/nuxt-auth-module/commit/c0d4ddb5172103f895a8130df7229e1554d0ef4d)) ### Features -* migrate to nuxt 4 and npm ([4b952ea](https://github.com/work-mate/nuxt-auth-module/commit/4b952ea21f743c55338c995a0d4a3fead3b86d3a)) -* refactor auth fetch ([7553f65](https://github.com/work-mate/nuxt-auth-module/commit/7553f65751ebc8af13c399e2b79ffa0a84590599)) -* refactor auth.ts ([e34f1f2](https://github.com/work-mate/nuxt-auth-module/commit/e34f1f2f0c4b5bc8c555918c61da8aed0449cb85)) -* support for nuxt 4 ([ed33399](https://github.com/work-mate/nuxt-auth-module/commit/ed333996d38dc57af628292b9150cfea394de27d)) -* types definition ([9c3f6e3](https://github.com/work-mate/nuxt-auth-module/commit/9c3f6e38ea831de30c202a3ef8195a1c42f021ea)) -* update type definition for useAuthFetch ([0af3dbc](https://github.com/work-mate/nuxt-auth-module/commit/0af3dbcadda6cc17f38cc736bace28caab62efda)) +- migrate to nuxt 4 and npm ([4b952ea](https://github.com/work-mate/nuxt-auth-module/commit/4b952ea21f743c55338c995a0d4a3fead3b86d3a)) +- refactor auth fetch ([7553f65](https://github.com/work-mate/nuxt-auth-module/commit/7553f65751ebc8af13c399e2b79ffa0a84590599)) +- refactor auth.ts ([e34f1f2](https://github.com/work-mate/nuxt-auth-module/commit/e34f1f2f0c4b5bc8c555918c61da8aed0449cb85)) +- support for nuxt 4 ([ed33399](https://github.com/work-mate/nuxt-auth-module/commit/ed333996d38dc57af628292b9150cfea394de27d)) +- types definition ([9c3f6e3](https://github.com/work-mate/nuxt-auth-module/commit/9c3f6e38ea831de30c202a3ef8195a1c42f021ea)) +- update type definition for useAuthFetch ([0af3dbc](https://github.com/work-mate/nuxt-auth-module/commit/0af3dbcadda6cc17f38cc736bace28caab62efda)) # [1.4.0](https://github.com/work-mate/nuxt-auth-module/compare/v1.3.2...v1.4.0) (2025-01-22) - ### Features -* AuthUser as an interface ([03215e4](https://github.com/work-mate/nuxt-auth-module/commit/03215e4b0f4ffc489b8ed389a64f60993d45db4b)) +- AuthUser as an interface ([03215e4](https://github.com/work-mate/nuxt-auth-module/commit/03215e4b0f4ffc489b8ed389a64f60993d45db4b)) ## [1.3.2](https://github.com/work-mate/nuxt-auth-module/compare/v1.3.1...v1.3.2) (2025-01-22) - ### Bug Fixes -* Fix the prepack error ([0fbd83f](https://github.com/work-mate/nuxt-auth-module/commit/0fbd83fe686a3ca967262f13fcf37d6e5ff2fd6a)) +- Fix the prepack error ([0fbd83f](https://github.com/work-mate/nuxt-auth-module/commit/0fbd83fe686a3ca967262f13fcf37d6e5ff2fd6a)) ## [1.3.1](https://github.com/work-mate/nuxt-auth-module/compare/v1.3.0...v1.3.1) (2024-06-14) - ### Bug Fixes -* Update docs ([ecbe945](https://github.com/work-mate/nuxt-auth-module/commit/ecbe94540c1584222723f1a79851408d9b356892)) +- Update docs ([ecbe945](https://github.com/work-mate/nuxt-auth-module/commit/ecbe94540c1584222723f1a79851408d9b356892)) # Changelog