rhaamo / pyAirwaves

pyAirwaves is an ADS-B and AIS processing, storage (planned), and display application with Leaflets integration.
GNU Affero General Public License v3.0
10 stars 4 forks source link

Bump pyais from 1.4.0 to 2.0.1 #185

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps pyais from 1.4.0 to 2.0.1.

Release notes

Sourced from pyais's releases.

Bug fix: Rename shipname to name for type 21

See #52

Release version 2.0.0

  • WARNING: The v2 release will introduce breaking changes
  • Introduces the possibility to encode messages
  • decoding has been rewritten and implements an iterative decoding approach
  • The following fields were renamed:
    • message_fragments -> frag_cnt
    • fragment_number -> frag_num
    • message_id -> seq_id
    • type -> msg_type
    • shiptype -> ship_type
  • msg.decode() does not return a pyais.messages.AISMessage instance anymore
    • instead an instance of pyais.messages.MessageTypeX is returned, where X is the type of the message (1-27)
  • in v1 you called decoded.content to get the decoded message as a dictionary - this is now decoded.asdict()

Add bounds check for variable length messages

  • Correctly handles variable length messages (M0r13n/pyais#40)
    • prior versions were missing required length checks
    • therefore some messages were not correctly decoded
    • this affects Type 7, 15, 16, 20, 22, 24, 25 and 26

Better error messages for decode_msg

No release notes provided.

Bugfixes

This release fixes two bugs:

  1. allows empty channel
  2. limits payload to 82 chars

Make NMEAMessage subscriptable

  • Makes NMEAMessage subscribable
  • Adds documentation on readthedocs.org
  • Renames instance attributes of NMEAMessage:
    • msg_type to type
    • count to message_fragments
    • index to fragment_number
    • seq_id to message_id
    • data to payload#
  • Adds fill_bits field to NMEAMessage

Improve stability

This release improves the stability. This includes:

  • more gentle stream like objects
  • invalid checksums are logged but do not cause errors
  • the class NMEAMessage is more restrictive in what it accepts

... (truncated)

Changelog

Sourced from pyais's changelog.

Version 2.0.1 6 Feb 2022


Version 2.0.0-alpha 6 Feb 2022

  • WARNING: The v2 release will introduce breaking changes
  • Introduces the possibility to encode messages
  • decoding has been rewritten and implements an iterative decoding approach
  • The following fields were renamed:
    • message_fragments -> frag_cnt
    • fragment_number -> frag_num
    • message_id -> seq_id
    • type -> msg_type
    • shiptype -> ship_type
  • msg.decode() does not return a pyais.messages.AISMessage instance anymore
    • instead an instance of pyais.messages.MessageTypeX is returned, where X is the type of the message (1-27)
  • in v1 you called decoded.content to get the decoded message as a dictionary - this is now decoded.asdict()

Version 1.6.2 2 May 2021

  • Improves decode_msg by adding meaningful error messages

Version 1.6.0 2 May 2021

  • Makes NMEAMessage subscribable
  • Adds documentation on readthedocs.org
  • Renames instance attributes of NMEAMessage:
    • msg_type to type
    • count to message_fragments
    • index to fragment_number
    • seq_id to message_id
    • data to payload#
  • Adds fill_bits field to NMEAMessage

Commits
  • cc47fb1 Merge pull request #53 from M0r13n/52-rename-ship-to-shipname-for-type-22
  • 7148bb6 Renames shipname to name for type 21
  • 6ca6d96 Merge pull request #48 from M0r13n/iterative-decoding
  • c78a5b8 Merge branch 'iterative-decoding' of github.com:M0r13n/pyais into iterative-d...
  • 6c863b6 Update changelog
  • 44e99e7 Merge branch 'master' into iterative-decoding
  • fc8a7af Prevent out of bounds array access for very short messages
  • 774a199 Add a migration notice from v1 to v2
  • 5e1c529 Fix some remaining bugs thanks to @​Inrixia's contributions
  • 81b315c improves readability of 'asdict()' and adds a unittest for enums with None value
  • 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[bot] commented 2 years ago

Superseded by #187.