Skip to content

Commit 1eb6c03

Browse files
committed
bump version
- update changelog deps: bump all to latest
1 parent 4290c6d commit 1eb6c03

18 files changed

Lines changed: 167 additions & 119 deletions

.prettierrc.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
66

77
### Unreleased
88

9+
### [0.8.3] - 2026-03-13
10+
11+
- ns: NSD -> nsd
12+
- user: user is now an array
13+
- prettier: move config into package.json
14+
- zone: last publish can be all zeroes
15+
- zone_rec: expanded valid RR types & all the fields that go with them
16+
- ESM: dual export with wrapper
17+
- deps: bump all to latest
18+
919
### [0.8.2] - 2025-04-08
1020

1121
- feat(zone_record): added GET, POST, and DELETE formats
@@ -77,13 +87,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
7787
[0.5.0]: https://github.com/NicTool/validate/releases/tag/0.5.0
7888
[0.6.0]: https://github.com/NicTool/validate/releases/tag/0.6.0
7989
[0.6.1]: https://github.com/NicTool/validate/releases/tag/0.6.1
80-
[0.6.3]: https://github.com/NicTool/validate/releases/tag/0.6.3
90+
[0.6.3]: https://github.com/NicTool/validate/releases/tag/v0.6.3
8191
[0.7.0]: https://github.com/NicTool/validate/releases/tag/0.7.0
82-
[0.7.1]: https://github.com/NicTool/validate/releases/tag/0.7.1
92+
[0.7.1]: https://github.com/NicTool/validate/releases/tag/v0.7.1
8393
[0.7.2]: https://github.com/NicTool/validate/releases/tag/0.7.2
8494
[0.7.3]: https://github.com/NicTool/validate/releases/tag/0.7.3
85-
[0.7.4]: https://github.com/NicTool/validate/releases/tag/0.7.4
86-
[0.8.0]: https://github.com/NicTool/validate/releases/tag/0.8.0
95+
[0.7.4]: https://github.com/NicTool/validate/releases/tag/v0.7.4
96+
[0.8.0]: https://github.com/NicTool/validate/releases/tag/v0.8.0
8797
[0.8.1]: https://github.com/NicTool/validate/releases/tag/v0.8.1
8898
[0.8.2]: https://github.com/NicTool/validate/releases/tag/v0.8.2
89-
[1.0.0]: https://github.com/NicTool/validate/releases/tag/1.0.0
99+
[0.8.3]: https://github.com/NicTool/validate/releases/tag/v0.8.3

CONTRIBUTORS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Contributors
22

3-
This handcrafted artisinal software is brought to you by:
3+
This handcrafted artisanal software is brought to you by:
44

5-
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/NicTool/validate/commits?author=msimerson">21</a>) |
5+
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/NicTool/validate/commits?author=msimerson">22</a>) |
66
| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
77

88
<sub>this file is generated by [.release](https://github.com/msimerson/.release).

eslint.config.mjs

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
import globals from 'globals'
2-
import path from 'node:path'
3-
import { fileURLToPath } from 'node:url'
42
import js from '@eslint/js'
5-
import { FlatCompat } from '@eslint/eslintrc'
6-
7-
const __filename = fileURLToPath(import.meta.url)
8-
const __dirname = path.dirname(__filename)
9-
const compat = new FlatCompat({
10-
baseDirectory: __dirname,
11-
recommendedConfig: js.configs.recommended,
12-
allConfig: js.configs.all,
13-
})
3+
import prettier from 'eslint-config-prettier'
144

155
export default [
166
{
17-
ignores: ['**/package-lock.json'],
7+
ignores: ['**/package-lock.json', 'node_modules/**', '.release/**'],
188
},
19-
...compat.extends('eslint:recommended', 'prettier'),
9+
js.configs.recommended,
10+
prettier,
2011
{
2112
languageOptions: {
2213
globals: {

index.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
for (const l of [
2-
'group',
3-
'nameserver',
4-
'permission',
5-
'session',
6-
'user',
7-
'zone',
8-
'zone_record',
9-
]) {
1+
for (const l of ['group', 'nameserver', 'permission', 'session', 'user', 'zone', 'zone_record']) {
102
module.exports[l] = require(`./lib/${l}`)
113
}

index.mjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { createRequire } from 'node:module'
2+
3+
const require = createRequire(import.meta.url)
4+
const validate = require('./index.js')
5+
6+
export default validate
7+
8+
export const group = validate.group
9+
export const nameserver = validate.nameserver
10+
export const permission = validate.permission
11+
export const session = validate.session
12+
export const user = validate.user
13+
export const zone = validate.zone
14+
export const zone_record = validate.zone_record

lib/group.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ describe('group', function () {
2828

2929
const { error, value } = schema.validate(testCase)
3030

31-
assert.strictEqual(
32-
error.message,
33-
'"name" length must be at least 3 characters long',
34-
)
31+
assert.strictEqual(error.message, '"name" length must be at least 3 characters long')
3532
assert.deepEqual(value, testCase)
3633
})
3734

lib/nameserver.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,7 @@ exports.name = Joi.string()
1010
.domain({ allowFullyQualified: true, tlds: false })
1111
.pattern(/\.$/)
1212

13-
exports.type = Joi.string().valid(
14-
'bind',
15-
'djbdns',
16-
'knot',
17-
'NSD',
18-
'maradns',
19-
'powerdns',
20-
'dynect',
21-
)
13+
exports.type = Joi.string().valid('bind', 'djbdns', 'knot', 'nsd', 'maradns', 'powerdns', 'dynect')
2214

2315
exports.remote_login = Joi.string().empty('').max(127)
2416

lib/nameserver.test.js

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ describe('nameserver', function () {
3535
})
3636
}
3737

38-
const errMsgs = [
39-
'"name" must be a valid hostname',
40-
'"name" must contain a valid domain name',
41-
]
38+
const errMsgs = ['"name" must be a valid hostname', '"name" must contain a valid domain name']
4239

4340
const invalid_names = [
4441
'-bad_ns',
@@ -77,15 +74,7 @@ describe('nameserver', function () {
7774
assert.deepEqual(value, testCase)
7875
})
7976

80-
for (const n of [
81-
'bind',
82-
'djbdns',
83-
'knot',
84-
'NSD',
85-
'maradns',
86-
'powerdns',
87-
'dynect',
88-
]) {
77+
for (const n of ['bind', 'djbdns', 'knot', 'nsd', 'maradns', 'powerdns', 'dynect']) {
8978
it(`accepts valid: ${n}`, () => {
9079
const testCase = JSON.parse(JSON.stringify(testNS))
9180
testCase.export.type = n
@@ -97,16 +86,7 @@ describe('nameserver', function () {
9786
})
9887
}
9988

100-
for (const n of [
101-
'cryptic',
102-
'fuzzy',
103-
'yitizg',
104-
'bin',
105-
'djbs',
106-
'DJB',
107-
'BIND',
108-
'NT',
109-
]) {
89+
for (const n of ['cryptic', 'fuzzy', 'yitizg', 'bin', 'djbs', 'DJB', 'BIND', 'NT']) {
11090
it(`rejects invalid: ${n}`, () => {
11191
const testCase = JSON.parse(JSON.stringify(testNS))
11292
testCase.export.type = n
@@ -115,7 +95,7 @@ describe('nameserver', function () {
11595

11696
assert.strictEqual(
11797
error.message,
118-
'"export.type" must be one of [bind, djbdns, knot, NSD, maradns, powerdns, dynect]',
98+
'"export.type" must be one of [bind, djbdns, knot, nsd, maradns, powerdns, dynect]',
11999
)
120100
assert.deepEqual(value, testCase)
121101
})

0 commit comments

Comments
 (0)