- Added support for
ip neighbour get. - Updated badges in README.
- Merged dependabot PR.
- Added missing CAN export for documentation purposes.
- (@cordellcalitz) Added support for CAN link interfaces.
- Removed
package-lock.jsonto uploaded files to npm (npm ignore it anyway).
- Added
package-lock.jsonto uploaded files to npm.
- Changed keyless properties support removing the need to specify a trailing dash
_.
- Minor updates to README file to fix npm styles.
- Release v2.
- Added examples snippets to each command documentation block.
- Improved
monitorcommand.
- Added support for specifying family shortcut global options, like
-4. - Added support for batch mode.
- Added more commands:
addrlabel,neighbour,ntable,tunnel,tuntap,maddress,mroute. - Add support for an array of tables to
routingTables.{add|del}methods. - Added support for specifying family shortcut global options, like
-4.
- Fixed badge links URL.
- Updated README image style to look good on npm.
- Refactored project to typescript.
- Added full documented interfaces and constants.
- Added input options validations with
ajv. - Added almost all the operations (with some minor exceptions like
link {xstats|afstats|property}) and all the missing options for the already supported commands from version1.0.0. - Added tests checking the
cmdgeneration and the real command execution. - Now all
showcommands use the nativeiproute-jsonflag, which prevents many parsing errors.
-
Treat this version as a new library, though I will document several changes you need to take into account.
-
After modifying the routing tables by using the module
utils, you need now to flush the routing table cache by yourself:import { route } from 'iproute'; await route.flush({ table: RouteRoutingTables.Cache // 'cache' }); -
Some methods were renamed, fi,
deletetodel,utils.routingTables.flushtoutils.routingTables.clear. -
Since now all
showcommands use the nativeiproute-jsonflag, the output interface is different that the one provided byv1.0.0. -
The native
monitorcommand doesn't support the-jsonflag yet, and since all the manual stdout parsing was removed the librarymonitorwill only give you the actualstdoutlines for now, not a parsed object.
- Added excluded file to
.gitignore.
- Added simple clarification on README.
- (@damoclark) Fix for link devices being deleted in monitor output.
- As module was very stable, bumped version to
1.0.0so is marked as stable for registries. - Added EditorConfig support.
- (@steirico) Fixed missing declaration.
- Fixed typo in docs.
- Removed year in license.
- Improved error logging: changed to use default
Error()constructor so the stack do not get lost.
ip-address: Changedutils.scopesfrom an array type to a map (object) type.ip-rule: Added two new parameters added toiproute:suppress_prefixlengthandsuppress_ifgroup.ip-route: Added one new parameters fromiproute:quickackand fixedonlinkone to behave correctly as a boolean flag.
- Added initial
ip-monitorsupport for links.
-
Added
ip-routesupport. -
Added
ip-utilsutility functions to provide extra functionality that complementsiproute.
- Added
ip-rulesupport.
-
Improved error logging.
-
Improved options handling.
- Added
ip-addresssupport.
- Added
ip-linksupport.