|
| 1 | +## v2.0.1 (Mar 29, 2021) |
| 2 | + |
| 3 | +### Bugfixes |
| 4 | + |
| 5 | +* Add checks on spaces before and after bytes |
| 6 | + * 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 '. |
| 7 | + |
| 8 | +### Internal Changes |
| 9 | + |
| 10 | +* Rewrite byte parsing without using JS `parseInt()` |
| 11 | +* Avoid some useless memory allocations |
| 12 | +* New Mocha testing suite, thanks @kaoudis [#36](https://github.com/rs/node-netmask/pull/36) |
| 13 | + |
| 14 | +## v2.0.0 (Mar 19, 2021) |
| 15 | + |
| 16 | +### Breaking Change |
| 17 | + |
| 18 | +Previous API was treating IPs with less than for bytes as IP with a |
| 19 | +netmask of the size of the provided bytes (1=8, 2=16, 3=24) and was |
| 20 | +interpreting the IP as if it was completed with 0s on the right side. |
| 21 | + |
| 22 | +*Proper IP parsing for these is to consider missing bytes as being 0s on |
| 23 | +the left side.* |
| 24 | + |
| 25 | +Mask size is no longer infered by the number of bytes provided. |
| 26 | + |
| 27 | +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`, |
| 28 | +as per convention. |
| 29 | + |
| 30 | +See [the change](https://github.com/rs/node-netmask/commit/9f9fc38c6db1a682d23289b5c9dc2009d957a00b). |
| 31 | + |
| 32 | +### Bugfixes |
| 33 | + |
| 34 | +* Fix improper parsing of hex bytes |
| 35 | + |
| 36 | +## v1.1.0 (Mar 18, 2021) |
| 37 | + |
| 38 | +### IMPORTANT: Security Fix |
| 39 | + |
| 40 | +> This version contains an important security fix. If you are using netmask `<=1.0.6`, please upgrade to `1.1.0` or above. |
| 41 | +
|
| 42 | +* Fix improper parsing of octal bytes ([commit](https://github.com/rs/node-netmask/commit/4678fd840ad0b4730dbad2d415712c0782e886cc)) |
| 43 | + * This is [CVE-2021-28918](https://sick.codes/sick-2021-011). |
| 44 | + * See also the [npm advisory](https://www.npmjs.com/advisories/1658) |
| 45 | + |
| 46 | +### Other Changes |
| 47 | + |
| 48 | +* Performance: Avoid large allocations when provided large netmasks (like `/8`) |
| 49 | + * Thanks @dschenkelman [#34](https://github.com/rs/node-netmask/pull/34) |
| 50 | + |
| 51 | +## v1.0.6 (May 30, 2016) |
| 52 | + |
| 53 | +* Changes before this release are not documented here. Please see [the commit list](https://github.com/rs/node-netmask/commits/master) |
| 54 | + or the [compare view](https://github.com/rs/node-netmask/compare/1.0.5...rs:1.0.6). |
0 commit comments