diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aaf3312..6382271 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,5 @@ jobs: secrets: inherit test: - needs: lint uses: NicTool/.github/.github/workflows/test.yml@main secrets: inherit diff --git a/.release b/.release index d106d83..03a6c1a 160000 --- a/.release +++ b/.release @@ -1 +1 @@ -Subproject commit d106d83e69d5d8c99e4d6be4ba98ddde550d082b +Subproject commit 03a6c1ae3688bb05c658a775ec5d66086aa18bba diff --git a/CHANGELOG.md b/CHANGELOG.md index d7a2efc..25e626e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ### Unreleased +### [0.8.4] - 2026-03-14 + +- disable domain validation, until joi.string.domain supports / + - related: hapijs/address#48 + ### [0.8.3] - 2026-03-13 - ns: NSD -> nsd @@ -97,3 +102,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). [0.8.1]: https://github.com/NicTool/validate/releases/tag/v0.8.1 [0.8.2]: https://github.com/NicTool/validate/releases/tag/v0.8.2 [0.8.3]: https://github.com/NicTool/validate/releases/tag/v0.8.3 +[0.8.4]: https://github.com/NicTool/validate/releases/tag/v0.8.4 diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index f3b0392..c2e6fcf 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -2,7 +2,7 @@ This handcrafted artisanal software is brought to you by: -|
msimerson (22) | +|
msimerson (23) | | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | this file is generated by [.release](https://github.com/msimerson/.release). diff --git a/lib/zone.js b/lib/zone.js index c1bd6ee..84d63a5 100644 --- a/lib/zone.js +++ b/lib/zone.js @@ -4,7 +4,8 @@ const shared = require('./shared') exports.id = shared.uint32 -exports.zone = Joi.string().min(3).max(255).domain({ allowFullyQualified: true, tlds: false }) +exports.zone = Joi.string().min(3).max(255) +// .domain({ allowFullyQualified: true, allowUnderscore: true, tlds: false }) exports.v3 = Joi.object({ id: exports.id, diff --git a/lib/zone.test.js b/lib/zone.test.js index 6307cd2..61567a2 100644 --- a/lib/zone.test.js +++ b/lib/zone.test.js @@ -30,7 +30,7 @@ describe('zone', function () { .map((a) => `thisis${a}atest.com.`) for (const char of invalid_chars) { - it(`rejects invalid: ${char}`, () => { + it.skip(`rejects invalid: ${char}`, () => { const testCase = JSON.parse(JSON.stringify(testZone)) testCase.zone = char diff --git a/package.json b/package.json index 234913a..5adeada 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nictool/validate", - "version": "0.8.3", + "version": "0.8.4", "description": "NicTool Object Validation", "files": [ "lib", @@ -66,4 +66,4 @@ "trailingComma": "all", "printWidth": 100 } -} \ No newline at end of file +}