ocpp-rpc
    Preparing search index...

    Upgrading

    Breaking changes:

    • This module now requires Nodejs >= 20.
    • This module now uses ESM instead of the CJS module system. (This should not affect your project if you are using Nodejs >= 20.19.0).
    • Custom schemas made for version 2.X no longer work for 3.0.0. The urn of each JSON Schema $id now requires an nid component (as per spec, and enforced by Ajv >= 8.16). This has always been a requirement that was ignored by ocpp-rpc. See examples of working schema urns in schemas/test/ and refer to the new options for createValidator() to specify the nid you wish to use. Standard OCPP schemas should continue to work as before.

    Breaking changes:

    • The RPCClient event 'strictValidationFailure' now fires for both inbound & outbound requests & responses.
    • The RPCClient event 'strictValidationFailure' emits an object containing more information than was previously available. The Error which was previously emitted is now a member of this object.
    • The password option in the RPCClient constructor can now be supplied as a Buffer. If a string is provided, it will be encoded as utf8.
    • The password field of RPCServerClient's handshake object is now always provided as a Buffer instead of a string. Use password.toString('utf8') to convert back to a string as per previous versions.