Skip to content

Commit

Permalink
Merge pull request #39 from STRML/docs/changelog
Browse files Browse the repository at this point in the history
Add CHANGELOG
  • Loading branch information
rs authored Mar 30, 2021
2 parents fe5ec55 + 6dcd6a8 commit fb14b4f
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
## v2.0.1 (Mar 29, 2021)

### Bugfixes

* Add checks on spaces before and after bytes
* This will now throw an exception when spaces are present like ' 1.2.3.4' or '1. 2.3.4' or '1.2.3.4 '.

### Internal Changes

* Rewrite byte parsing without using JS `parseInt()`
* Avoid some useless memory allocations
* New Mocha testing suite, thanks @kaoudis [#36](https://github.com/rs/node-netmask/pull/36)

## v2.0.0 (Mar 19, 2021)

### Breaking Change

Previous API was treating IPs with less than for bytes as IP with a
netmask of the size of the provided bytes (1=8, 2=16, 3=24) and was
interpreting the IP as if it was completed with 0s on the right side.

*Proper IP parsing for these is to consider missing bytes as being 0s on
the left side.*

Mask size is no longer infered by the number of bytes provided.

This means that the input `216.240` will no longer be interpreted as `216.240.0.0/16`, but as `0.0.216.240/32`,
as per convention.

See [the change](https://github.com/rs/node-netmask/commit/9f9fc38c6db1a682d23289b5c9dc2009d957a00b).

### Bugfixes

* Fix improper parsing of hex bytes

## v1.1.0 (Mar 18, 2021)

### IMPORTANT: Security Fix

> This version contains an important security fix. If you are using netmask `<=1.0.6`, please upgrade to `1.1.0` or above.
* Fix improper parsing of octal bytes ([commit](https://github.com/rs/node-netmask/commit/4678fd840ad0b4730dbad2d415712c0782e886cc))
* This is [CVE-2021-28918](https://sick.codes/sick-2021-011).
* See also the [npm advisory](https://www.npmjs.com/advisories/1658)

### Other Changes

* Performance: Avoid large allocations when provided large netmasks (like `/8`)
* Thanks @dschenkelman [#34](https://github.com/rs/node-netmask/pull/34)

## v1.0.6 (May 30, 2016)

* Changes before this release are not documented here. Please see [the commit list](https://github.com/rs/node-netmask/commits/master)
or the [compare view](https://github.com/rs/node-netmask/compare/1.0.5...rs:1.0.6).

0 comments on commit fb14b4f

Please sign in to comment.