Skip to content

Commit

Permalink
Release 0.8.5 (#11)
Browse files Browse the repository at this point in the history
- updated to work with dns-rr as ES6 module
  • Loading branch information
msimerson authored Apr 19, 2022
1 parent 91ddd32 commit b62eb16
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

#### 1.N.N - YYYY-MM-DD

#### 0.8.5 - 2022-04-18

- updated to work with dns-rr as ES6 module


#### 0.8.0 - 2022-04-14

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Examples
#### import from STDIN to human

````
➜ cat test/fixtures/bind/example.com| ./bin/dns-zone.js -i bind -f - --origin=example.com.
➜ cat example.com| ./bin/dns-zone.js -i bind -f - --origin=example.com.
$ORIGIN example.com.
$TTL 3600
example.com. 3600 SOA ns.example.com. username.example.com. 2020091025 7200 3600 1209600 3600
Expand All @@ -78,7 +78,7 @@ mail3.example.com. 3600 A 192.0.2.5
#### from bind file to bind

````
➜ ./bin/dns-zone.js -i bind -e bind -f test/fixtures/bind/isi.edu --origin=isi.edu.
➜ ./bin/dns-zone.js -i bind -e bind -f isi.edu --origin=isi.edu.
isi.edu. 60 IN SOA venera.isi.edu. action\.domains.isi.edu. 20 7200 600 3600000 60
isi.edu. 60 IN NS a.isi.edu.
isi.edu. 60 IN NS venera.isi.edu.
Expand All @@ -95,7 +95,7 @@ vaxa.isi.edu. 60 IN A 128.9.0.33
#### from bind to bind (relative)

````
➜ ./bin/dns-zone.js -i bind -e bind -f test/fixtures/bind/isi.edu --ttl=60 \
➜ ./bin/dns-zone.js -i bind -e bind -f isi.edu --ttl=60 \
--origin=isi.edu. --hide-ttl --hide-class --hide-origin --hide-same-owner
@ 60 IN SOA venera action\.domains 20 7200 600 3600000 60
NS a
Expand Down
2 changes: 1 addition & 1 deletion lib/bind.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import os from 'os'

import RR from 'dns-resource-record'
import * as RR from 'dns-resource-record'

import * as dz from '../index.js'

Expand Down
2 changes: 1 addition & 1 deletion lib/maradns.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import os from 'os'

import RR from 'dns-resource-record'
import * as RR from 'dns-resource-record'

import * as dz from '../index.js'

Expand Down
2 changes: 1 addition & 1 deletion lib/tinydns.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import RR from 'dns-resource-record'
import * as RR from 'dns-resource-record'

const rr = new RR.A(null)

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dns-zone-validator",
"version": "0.8.0",
"version": "0.8.5",
"description": "DNS Zone",
"main": "index.js",
"type": "module",
Expand All @@ -24,7 +24,8 @@
"import",
"export",
"validator",
"validation"
"validation",
"nictool"
],
"author": "Matt Simerson <matt@tnpi.net>",
"license": "BSD-3-Clause",
Expand All @@ -39,6 +40,6 @@
"dependencies": {
"command-line-args": "^5.2.1",
"command-line-usage": "^6.1.1",
"dns-resource-record": "^0.9.7"
"dns-resource-record": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion test/bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import assert from 'assert'
import fs from 'fs/promises'

import RR from 'dns-resource-record'
import * as RR from 'dns-resource-record'
import bind from '../lib/bind.js'

beforeEach(() => {
Expand Down
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import assert from 'assert'

import { ZONE } from '../index.js'
import * as dz from '../index.js'
import RR from 'dns-resource-record'
import * as RR from 'dns-resource-record'

const testSOA = new RR.SOA({
owner : 'example.com.',
Expand Down Expand Up @@ -130,7 +130,7 @@ describe('dns-zone', function () {
owner : 'a2.example.com.',
ttl : 3600,
class : 'IN',
type : 'NS',
type : 'A',
address: '192.0.2.128',
})
this.zone.addRR(a2)
Expand Down Expand Up @@ -223,4 +223,4 @@ describe('dns-zone', function () {
assert.strictEqual(dz.hasUnquoted('this is a string "of ( quoted" text', '"', '('), false)
})
})
})
})
2 changes: 1 addition & 1 deletion test/maradns.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import assert from 'assert'
import fs from 'fs/promises'

import RR from 'dns-resource-record'
import * as RR from 'dns-resource-record'
import mara from '../lib/maradns.js'

beforeEach(function () {
Expand Down

0 comments on commit b62eb16

Please sign in to comment.