From aed3279ccc15ff21d769c2edad7d78b2bfd570dd Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Sun, 29 Mar 2026 17:55:42 -0700 Subject: [PATCH 1/5] chore(release): v0.8.9 --- lib/group.js | 18 ++++++++++++++++++ lib/user.js | 10 ++++++++++ 2 files changed, 28 insertions(+) diff --git a/lib/group.js b/lib/group.js index 0e2e3cd..4f4ce23 100644 --- a/lib/group.js +++ b/lib/group.js @@ -73,6 +73,24 @@ export const GET_list_res = Joi.object({ meta: shared.meta, }) +export const GET_list_req = Joi.object({ + parent_gid: pid, + name: name, + deleted: Joi.boolean(), +}) + +export const GET_list_res = Joi.object({ + group: Joi.array().items( + Joi.object({ + id: pid, + name: name, + parent_gid: pid, + deleted: Joi.boolean(), + }), + ), + meta: shared.meta, +}) + export const POST = Joi.object({ id: id, name: name, diff --git a/lib/user.js b/lib/user.js index 91d8cc1..7cfef73 100644 --- a/lib/user.js +++ b/lib/user.js @@ -74,6 +74,16 @@ export const PUT = Joi.object({ inherit_group_permissions: Joi.boolean(), }) +export const PUT = Joi.object({ + first_name: Joi.string().min(1), + last_name: Joi.string().min(1), + username: username, + email: email, + password: password, + is_admin: Joi.boolean(), + deleted: Joi.boolean(), +}) + export const DELETE = Joi.object({ id: id, }) From 0e258f0f56610a025d7712c5704e932cedb2148a Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Mon, 13 Apr 2026 09:04:24 -0500 Subject: [PATCH 2/5] doc(CHANGELOG): add commit messages for 0.8.10 --- .release | 2 +- CHANGELOG.md | 8 ++++++++ package.json | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.release b/.release index 6ad30e5..a6911a9 160000 --- a/.release +++ b/.release @@ -1 +1 @@ -Subproject commit 6ad30e5df5fc026b332bbae7a0a4dfd47baf5898 +Subproject commit a6911a90f1b15486fb319d844341421c78035b2a diff --git a/CHANGELOG.md b/CHANGELOG.md index 736616c..aa55751 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ### Unreleased +### [0.8.10] - 2026-04-13 + +#### Changed + +- v0.8.9 + + ### [0.8.9] - 2026-03-29 - group: GET can return one group or array @@ -128,3 +135,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). [0.8.7]: https://github.com/NicTool/validate/releases/tag/v0.8.7 [0.8.8]: https://github.com/NicTool/validate/releases/tag/v0.8.8 [0.8.9]: https://github.com/NicTool/validate/releases/tag/v0.8.9 +[0.8.10]: https://github.com/NicTool/validate/releases/tag/v0.8.10 diff --git a/package.json b/package.json index 20ac64c..a371b97 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nictool/validate", - "version": "0.8.9", + "version": "0.8.10", "description": "NicTool Object Validation", "type": "module", "files": [ From a910e2f0547c645915dfdaf2abf8d901225005b8 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Mon, 13 Apr 2026 09:04:26 -0500 Subject: [PATCH 3/5] doc(CONTRIBUTORS): updated --- CONTRIBUTORS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 6fd2b97..549c44c 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -2,8 +2,8 @@ This handcrafted artisanal software is brought to you by: -|
msimerson (28) | -| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | +|
msimerson (29)| +| :---: | this file is generated by [.release](https://github.com/msimerson/.release). Contribute to this project to get your GitHub profile included here. From 48b2d45aa8a280fc1b4bb873ebcc47c9c0eec4e4 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Mon, 13 Apr 2026 09:10:11 -0500 Subject: [PATCH 4/5] deps: bump versions, update ci with perms --- .github/workflows/ci.yml | 6 ++++++ .github/workflows/codeql.yml | 14 -------------- .github/workflows/publish.yml | 4 ++++ CHANGELOG.md | 3 --- package.json | 10 +++++----- 5 files changed, 15 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6382271..7c1fbee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,11 +10,17 @@ env: jobs: lint: uses: NicTool/.github/.github/workflows/lint.yml@main + permissions: + contents: read coverage: uses: NicTool/.github/.github/workflows/coverage.yml@main secrets: inherit + permissions: + contents: read test: uses: NicTool/.github/.github/workflows/test.yml@main secrets: inherit + permissions: + contents: read diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index 46e21d1..0000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: CodeQL - -on: - push: - branches: [main] - pull_request: - # The branches below must be a subset of the branches above - branches: [main] - schedule: - - cron: '18 7 * * 4' - -jobs: - codeql: - uses: NicTool/.github/.github/workflows/codeql.yml@main diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7a266d6..10e1cfa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,3 +11,7 @@ jobs: publish: uses: NicTool/.github/.github/workflows/publish.yml@main secrets: inherit + permissions: + contents: read + packages: write + id-token: write diff --git a/CHANGELOG.md b/CHANGELOG.md index aa55751..71dddfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,9 +8,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ### [0.8.10] - 2026-04-13 -#### Changed - -- v0.8.9 ### [0.8.9] - 2026-03-29 diff --git a/package.json b/package.json index a371b97..9bef9b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nictool/validate", - "version": "0.8.10", + "version": "0.8.9", "description": "NicTool Object Validation", "type": "module", "files": [ @@ -48,13 +48,13 @@ }, "homepage": "https://github.com/NicTool/validate#readme", "devDependencies": { - "eslint": "^10.1.0", + "eslint": "^10.2.0", "@eslint/js": "^10.0.1", "eslint-config-prettier": "^10.1.8", - "globals": "^17.4.0" + "globals": "^17.5.0" }, "dependencies": { - "joi": "^18.1.1", + "joi": "^18.1.2", "joi-password": "^4.3.0" }, "prettier": { @@ -63,4 +63,4 @@ "trailingComma": "all", "printWidth": 100 } -} +} \ No newline at end of file From f3340881c7a52a8ea0d6dc6ba41f166cfbe64fde Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Mon, 13 Apr 2026 09:20:18 -0500 Subject: [PATCH 5/5] resolve dupes --- lib/group.js | 18 ------------------ lib/test/user.json | 2 +- lib/user.js | 10 ---------- test/fixtures/v2/user.json | 2 +- 4 files changed, 2 insertions(+), 30 deletions(-) diff --git a/lib/group.js b/lib/group.js index 4f4ce23..0e2e3cd 100644 --- a/lib/group.js +++ b/lib/group.js @@ -73,24 +73,6 @@ export const GET_list_res = Joi.object({ meta: shared.meta, }) -export const GET_list_req = Joi.object({ - parent_gid: pid, - name: name, - deleted: Joi.boolean(), -}) - -export const GET_list_res = Joi.object({ - group: Joi.array().items( - Joi.object({ - id: pid, - name: name, - parent_gid: pid, - deleted: Joi.boolean(), - }), - ), - meta: shared.meta, -}) - export const POST = Joi.object({ id: id, name: name, diff --git a/lib/test/user.json b/lib/test/user.json index 77c8399..dbdb745 100644 --- a/lib/test/user.json +++ b/lib/test/user.json @@ -4,6 +4,6 @@ "password": "(t0ps3kREt)", "email": "matt@example.com", "first_name": "Matt", - "last_name": "Simerson", + "last_name": "Testerson", "deleted": false } diff --git a/lib/user.js b/lib/user.js index 7cfef73..91d8cc1 100644 --- a/lib/user.js +++ b/lib/user.js @@ -74,16 +74,6 @@ export const PUT = Joi.object({ inherit_group_permissions: Joi.boolean(), }) -export const PUT = Joi.object({ - first_name: Joi.string().min(1), - last_name: Joi.string().min(1), - username: username, - email: email, - password: password, - is_admin: Joi.boolean(), - deleted: Joi.boolean(), -}) - export const DELETE = Joi.object({ id: id, }) diff --git a/test/fixtures/v2/user.json b/test/fixtures/v2/user.json index 6c8e002..ea94d59 100644 --- a/test/fixtures/v2/user.json +++ b/test/fixtures/v2/user.json @@ -3,5 +3,5 @@ "password": "(t0ps3kREt)", "email": "matt@example.com", "first_name": "Matt", - "last_name": "Simerson" + "last_name": "Testerson" }