Skip to content

Commit

Permalink
Release v1.2.0 (#40)
Browse files Browse the repository at this point in the history
- feat(index): export typeMap (lookup table for type to id)
- feat(NXT): added bind support
- feat(TSIG, WKS): added stub class
- doc(README): move synopsis section into table (#38)
- chore(style): set up prettier
  • Loading branch information
msimerson authored Mar 7, 2024
1 parent 9e438d4 commit a31222e
Show file tree
Hide file tree
Showing 82 changed files with 2,304 additions and 1,744 deletions.
8 changes: 4 additions & 4 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ checks:
plugins:
eslint:
enabled: true
channel: "eslint-8"
channel: 'eslint-8'
config:
config: ".eslintrc.yaml"
config: '.eslintrc.yaml'

ratings:
paths:
- "**.js"
paths:
- '**.js'
27 changes: 6 additions & 21 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ env:
node: true
mocha: true
es2020: true
es2024: true

root: true

Expand All @@ -13,31 +14,15 @@ extends:
- eslint:recommended

rules:
quotes: [ error, single, { avoidEscape: true, allowTemplateLiterals: true } ]
semi: [ error, never ]
semi-style: [ error, last ]
no-unused-vars: [ error, { args: none } ]
array-bracket-spacing: [ warn, always, { arraysInArrays: false, objectsInArrays: false } ]
no-trailing-spaces: [ error ]
space-before-function-paren: [ error, always ]
object-curly-spacing: [ error, always ]
indent: [ error, 2, { SwitchCase: 1 } ]
key-spacing:
- warn
- singleLine:
beforeColon: false
afterColon: true
multiLine:
beforeColon: false
afterColon: true
align: colon
mode: minimum
quotes: [error, single, { avoidEscape: true, allowTemplateLiterals: true }]
no-unused-vars: [error, { args: none }]
no-trailing-spaces: [error]
object-curly-spacing: [error, always]
comma-dangle:
- warn
- arrays: always-multiline
objects: always-multiline
functions: only-multiline
arrow-parens: [ error, as-needed ]
brace-style: [ error, stroustrup ]
dot-notation: error
prefer-const: warn
no-extra-semi: off
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: msimerson
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test

get-lts:
needs: lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: CodeQL

on:
push:
branches: [ main ]
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
branches: [main]
schedule:
- cron: '18 7 * * 4'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ env:
jobs:
publish:
uses: NicTool/.github/.github/workflows/publish.yml@main
secrets: inherit
secrets: inherit
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ codecov.yml
.travis.yml
.eslintrc.yaml
.eslintrc.json
.codeclimate.yml
test/
DEVELOP.md
3 changes: 3 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
trailingComma: 'all'
semi: false
singleQuote: true
2 changes: 1 addition & 1 deletion .release
Submodule .release updated 6 files
+12 −5 CHANGELOG.md
+1 −1 LICENSE
+11 −9 README.md
+7 −6 npm/prepend-scope.cjs
+5 −7 start.sh
+13 −4 submit.sh
60 changes: 17 additions & 43 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,45 @@

Notable changes to this project are documented in this file.


#### Unreleased

### [1.2.0] - 2024-03-07

- feat(index): export typeMap (lookup table for type to id)
- feat(NXT): added bind support
- feat(TSIG, WKS): added stub class
- doc(README): move synopsis section into table (#38)
- chore(style): set up prettier

### [1.1.6] - 2022-06-21

- doc(sshfp): added RFC 7479, 8709


### [1.1.5] - 2022-06-03

- ci: auto-populate node LTS versions to run CI tests with


### [1.1.4] - 2022-05-29

- doc(README): improved develop notes
- doc(CHANGELOG): make version numbers links


### [1.1.3] - 2022-05-29

- chore: publish npm package in @nictool namespace


### [1.1.2] - 2022-05-28

- chore(ci): replace .release with submodule
- chore(ci): use GHA with shared workflows


### [1.1.1] - 2022-04-28

- feat(DNSKEY): expanded algo from 1-5 to 1-16 (RFC 8624)
- warn if outside that range, not error
- warn if outside that range, not error
- feat(HINFO): added to/from tinydns
- test(dnskey): update fail test


### [1.1.0] - 2022-04-22

- feat(tinydns): add ipv4toOctal, octalToIPv4, base64toOctal, octalToBase64
Expand All @@ -54,7 +54,6 @@ Notable changes to this project are documented in this file.
- test(IPSECKEY): expand test coverage
- tinydns.unpackdomain: return fqdn + length, for RRs where the FQDN is part of the byte stream


### [1.0.1] - 2022-04-19

- feat(IPSECKEY): added basic support
Expand All @@ -65,15 +64,13 @@ Notable changes to this project are documented in this file.
- test(CERT): added two test cases
- test(KEY): added valid test


### [1.0.0] - 2022-04-18

- style: move rr/index to ./rr
- test: add base.getRdataFields
- style(esm): convert from CJS to ESM (ES6 module)
- test: add base.getRdataFields


### [0.9.9] - 2022-04-14

- feat: parser improvements (DNSKEY, HINFO, NAPTR, SOA, TLSA, TXT)
Expand All @@ -83,27 +80,24 @@ Notable changes to this project are documented in this file.
- test/rr: update tests with expected error messages
- README: move some content to web links


### [0.9.8] - 2022-04-07

- url updates
- fix: txt records
- feat: add index.citeRFC
- docs: updates


### [0.9.7] - 2022-03-29

- index
- previousName -> previousOwner
- export a TYPE_MAP (id => name)
- previousName -> previousOwner
- export a TYPE_MAP (id => name)
- isValidHostname: allow \ char
- add the word 'RFC' in error messages citing RFCs
- when rejecting hostname, show the rejected character
- maradns: add export support
- add index.citeRFC


### [0.9.6] - 2022-03-27

- rr\*: rename name -> owner (not overloaded)
Expand All @@ -113,7 +107,6 @@ Notable changes to this project are documented in this file.
- add macos testing
- add CERT, KEY, NSEC, NSEC3, NSEC3PARAM, OPENPGPKEY, SIG


### [0.9.5] - 2022-03-26

- README: add docs for getRFCs()
Expand All @@ -123,23 +116,21 @@ Notable changes to this project are documented in this file.
- master: NODE_ENV=cov when running coverage
- TXT: pass along zone_opts


### [0.9.4] - 2022-03-24

- add: getComment
- zone_opts, for influencing output of toBind
- normalize hostnames to lower case
- add tests: fullyQualify, getFQDN
- AAAA
- compress: rewrote per RFC 5952, added tests
- internally store address in expanded notation
- compress: rewrote per RFC 5952, added tests
- internally store address in expanded notation
- fromTinydns: apply correct semantics for 'x' handling
- fullyQualify
- special handling for @
- consider $ORIGIN
- special handling for @
- consider $ORIGIN
- add uc hex chars to ip6 compress


### [0.9.3] - 2022-03-22

- hasValidLabels: remove trailing dot, else split returns empty string
Expand All @@ -155,7 +146,6 @@ Notable changes to this project are documented in this file.
- TXT: import BIND format w/o mangling WS
- SPF inherits from TXT


### [0.9.2] - 2022-03-18

- mx: weight -> preference
Expand All @@ -168,12 +158,10 @@ Notable changes to this project are documented in this file.
- validHostname: allow / char
- use \_\_dirname to find RR mods


### [0.9.1] - 2022-03-14

- TLSA, SMIMEA: add BIND support #13


### [0.9.0] - 2022-03-10

- added null object instantiation
Expand All @@ -187,66 +175,56 @@ Notable changes to this project are documented in this file.
- tests: more signal, less noise
- tests: import tests from nictool 2


### [0.8.1] - 2022-03-08

- use RFC example IPs and zone names


### [0.8.0] - 2022-02-01

- fromBind for: A, AAAA, CNAME, TXT, CNAME, TXT, LOC, MX, NS, SOA, PTR, SPF, SSHFP, URI, CAA, DNAME, NAPTR
- add fromTinydns: LOC
- rr/\*: add getFields


### [0.7.0] - 2021-10-26

- tinydns: added octalToHex, octalToUInt16, unpackDomainName, octalToInt8
- AAAA: added fromTinydns, compress, expand
- CAA, CNAME, DNAME, SPF, SSHFP, SRV, URI: added fromTinydns
- add tests for getRFCs


### [0.6.0] - 2021-10-25

- tinydns: added octalToChar
- A, MX, NS, PTR, SOA, TXT: added fromTinydns


### [0.5.1] - 2021-10-25

- LOC: added toTinydns
- tinydns: add UInt32toOctal
- SRV: added support


### [0.5.0] - 2021-10-24

- NAPTR: add toTinydns
- tinydns: remove sprintf-js dependency


### [0.4.0] - 2021-10-22

- CAA, DNAME, SSHFP, URI: add toTinydns
- lib/tinydns: added packHex and UInt16AsOctal


### [0.3.1] - 2021-10-21

- update index.js to also export RR sub classes
- update README examples


### [0.3.0] - 2021-10-21

- add getRFCs to all RR types
- populate this.id with IANA type ID
- toBind: use tabs for exported WS
- CAA, DNAME, NAPTR, SSHFP, URI: add toBind, tests


### [0.2.3] - 2021-10-21

- refactored classes into separate files
Expand All @@ -255,30 +233,25 @@ Notable changes to this project are documented in this file.
- lib/tinydns: added escapeOct & packDomainName
- PTR, SRV: added tests


### [0.2.2] - 2021-10-20

- add tests/*
- add tests/\*
- A, AAAA, add toBind and toTinydns()
- add .release


### [0.2.1] - 2021-10-16

- additional RR formats started, weakly validated


### [0.2.0] - 2021-10-16

- initial release & name grab


# References

- [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
+ fix, feature, BREAKING CHANGE, build, chore, ci, docs, style, test

- fix, feature, BREAKING CHANGE, build, chore, ci, docs, style, test

[1.1.3]: https://github.com/NicTool/dns-resource-record/releases/tag/1.1.3
[1.1.2]: https://github.com/NicTool/dns-resource-record/releases/tag/1.1.2
Expand Down Expand Up @@ -312,3 +285,4 @@ Notable changes to this project are documented in this file.
[1.1.4]: https://github.com/NicTool/dns-resource-record/releases/tag/1.1.4
[1.1.5]: https://github.com/NicTool/dns-resource-record/releases/tag/1.1.5
[1.1.6]: https://github.com/NicTool/dns-resource-record/releases/tag/1.1.6
[1.1.8]: https://github.com/NicTool/dns-resource-record/releases/tag/1.1.8
Loading

0 comments on commit a31222e

Please sign in to comment.