File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414` ip-address ` is a library for validating and manipulating IPv4 and IPv6
1515addresses in JavaScript.
1616
17-
18- ### Migrating from 6.x to 7.x
19-
20- ` ip-address ` was rewritten in TypeScript for version 7. If you were using
21- version 6 you'll need to make these changes to upgrade:
22-
23- - Instead of checking ` isValid() ` , which has been removed, you'll need to use a
24- ` try ` /` catch ` if you're accepting unknown input. This made the TypeScript
25- types substantially easier as well as allowed the use of an ` AddressError `
26- class which will contain a ` parseMessage ` if an error occurred in the parsing
27- step.
28- - Instead of using the ` error ` , ` parseError ` , and ` valid ` attributes you'll
29- need to use the ` message ` and ` parseMessage ` of the thrown ` AddressError ` .
30-
3117### Documentation
3218
3319Documentation is available at [ ip-address.js.org] ( http://ip-address.js.org/ ) .
You can’t perform that action at this time.
0 commit comments