Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Conversation

@todofixthis
Copy link
Contributor

IMPORTANT: This version includes several changes that are not backwards-compatible with v1.0.x!

Backwards-Incompatible Changes

  • Dropped support for IRI nodes below v1.1.2.4.
  • [udp is not a valid protocol for HttpAdapter #13] Removed support for udp:// API URLs. Use http:// instead.
  • getNewAddresses now returns a dict. All API commands now have consistent return types.
  • Restricted which commands each API class can create (StrictIota can only create core commands; Iota can create core+extended).
    • __getattr__ now raises an InvalidCommand error if an unsupported command is requested (previously it would return a CustomCommand instance).
    • Implemented create_command method to create CustomCommand objects.
  • Removed LogWrapper.
    • To attach a logger to an adapter, invoke its (new) set_logger method.
    • Adapters will now log more information about HTTP requests, including URL and request/response headers.

New Features

Enhancements/Fixes

  • [Neighbor URIs must use udp protocol #6] addNeighbors and removeNeighbors now only accept udp:// URIs.
  • [Support https node URIs  #7] Added support for https:// API URLs.
  • Improved handling of non-200 responses from nodes.
  • Adapters now use urlsplit to parse URIs.
  • Adapters now provide more context vars when raising BadApiResponse.
  • discover_commands now also returns all command objects that it finds.
  • Changed requests dependency to requests[security].
  • Cleaned up code in examples/shell.py.
  • General documentation cleanup and fixes.

@todofixthis todofixthis merged commit 569b052 into master Jan 28, 2017
@todofixthis todofixthis deleted the release/1.1.0 branch January 28, 2017 21:48
marko-k0 pushed a commit to marko-k0/iota.lib.py that referenced this pull request Jul 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants