frenchbread / private-ip

Check if IP address is private.
MIT License
33 stars 16 forks source link

Bump netmask from 1.0.6 to 2.0.1 #11

Closed dependabot[bot] closed 3 years ago

dependabot[bot] commented 3 years ago

Bumps netmask from 1.0.6 to 2.0.1.

Changelog

Sourced from netmask's changelog.

v2.0.1 (Mar 29, 2021)

IMPORTANT: Security Fix

This version contains an important security fix. If you are using netmask <=2.0.0, please upgrade to 2.0.1 or above.

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

  • Avoid some useless memory allocations
  • New Mocha testing suite, thanks @​kaoudis #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.

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.

... (truncated)

Commits
  • d1bd7d3 Bump revision to 2.0.1
  • 2052165 Avoid some useless allocs
  • 3f19a05 Rewrite byte parsing in full JS without depending on parseInt
  • 6a3169c Add checks on spaces before and after bytes
  • accd535 Merge pull request #36 from kaoudis/master
  • 1af3bb4 message
  • 04ecdc4 adds CREDITS, plus mocha tests for transpiled node
  • 7008f45 Set version in package.json
  • 9f9fc38 BREAKING CHANGE: fix parsing of IPs with less than 4 bytes
  • ec1b5b5 Fix improper parsing of hex bytes
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/frenchbread/private-ip/network/alerts).