Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 14, 2022

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)

Bumps [pyais](https://github.com/M0r13n/pyais) from 1.4.0 to 2.0.1.
- [Release notes](https://github.com/M0r13n/pyais/releases)
- [Changelog](https://github.com/M0r13n/pyais/blob/master/CHANGELOG.txt)
- [Commits](M0r13n/pyais@v1.4.0...v2.0.1)

---
updated-dependencies:
- dependency-name: pyais
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Mar 14, 2022
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 28, 2022

Superseded by #187.

@dependabot dependabot bot closed this Mar 28, 2022
@dependabot dependabot bot deleted the dependabot/pip/pyais-2.0.1 branch March 28, 2022 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants