From ae60b427f179ddea7f80cccef200677de04e2657 Mon Sep 17 00:00:00 2001
From: Birte Kristina Friesel <derf@finalrewind.org>
Date: Tue, 21 Nov 2023 21:00:59 +0100
Subject: [PATCH] Release v5.00

---
 Changelog                                | 15 +++++++++++++++
 bin/hafas-m                              |  4 ++--
 lib/Travel/Status/DE/DeutscheBahn.pm     |  4 ++--
 lib/Travel/Status/DE/HAFAS.pm            |  4 ++--
 lib/Travel/Status/DE/HAFAS/Journey.pm    |  4 ++--
 lib/Travel/Status/DE/HAFAS/Location.pm   |  4 ++--
 lib/Travel/Status/DE/HAFAS/Message.pm    |  4 ++--
 lib/Travel/Status/DE/HAFAS/Polyline.pm   |  2 +-
 lib/Travel/Status/DE/HAFAS/Stop.pm       |  4 ++--
 lib/Travel/Status/DE/HAFAS/StopFinder.pm |  4 ++--
 10 files changed, 32 insertions(+), 17 deletions(-)

diff --git a/Changelog b/Changelog
index 7c9364f..625b8cc 100644
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,18 @@
+Travel::Status::DE::DeutscheBahn 5.00 - Tue Nov 21 2023
+
+    * hafas-m: Add --raw-json option (useful for HAFAS client development)
+    * hafas-m: Add train search support, e.g. "hafas-m '!EC 6'"
+    * HAFAS->new, HAFAS->new_p: Add journeyMatch flag
+    * Add Travel::Status::DE::HAFAS::Location module
+    * HAFAS::Stop: Fix some documented accessors not being provided by the
+      module
+    * HAFAS::Stop: Add "loc" accessor that returns the corresponding Location
+      instance
+    * HAFAS::Stop: Breaking change: The "eva", "name", "lat", "lon",
+      "distance_m", and "weight" accessors are no longer supported. Use the
+      (identically named) Location accessors instead, i.e., "$stop->loc->name"
+      instead of "$stop->name", etc.
+
 Travel::Status::DE::DeutscheBahn 4.19 - Sat Nov 11 2023
 
     * hafas-m: Fall back to locationSearch if StopFinder is unavailable
diff --git a/bin/hafas-m b/bin/hafas-m
index ac076f6..d47e4d3 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -3,7 +3,7 @@ use strict;
 use warnings;
 use 5.014;
 
-our $VERSION = '4.19';
+our $VERSION = '5.00';
 
 use utf8;
 use DateTime;
@@ -438,7 +438,7 @@ B<hafas-m> [B<-s> I<service>] [B<-l> I<language>] B<!>I<query>|I<journeyID>
 
 =head1 VERSION
 
-version 4.19
+version 5.00
 
 =head1 DESCRIPTION
 
diff --git a/lib/Travel/Status/DE/DeutscheBahn.pm b/lib/Travel/Status/DE/DeutscheBahn.pm
index 3204376..6e7c1a5 100644
--- a/lib/Travel/Status/DE/DeutscheBahn.pm
+++ b/lib/Travel/Status/DE/DeutscheBahn.pm
@@ -6,7 +6,7 @@ use 5.014;
 
 use parent 'Travel::Status::DE::HAFAS';
 
-our $VERSION = '4.19';
+our $VERSION = '5.00';
 
 sub new {
 	my ( $class, %opt ) = @_;
@@ -49,7 +49,7 @@ monitor operated by Deutsche Bahn
 
 =head1 VERSION
 
-version 4.19
+version 5.00
 
 =head1 DESCRIPTION
 
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm
index 2c60435..fa81af8 100644
--- a/lib/Travel/Status/DE/HAFAS.pm
+++ b/lib/Travel/Status/DE/HAFAS.pm
@@ -20,7 +20,7 @@ use Travel::Status::DE::HAFAS::Message;
 use Travel::Status::DE::HAFAS::Polyline qw(decode_polyline);
 use Travel::Status::DE::HAFAS::StopFinder;
 
-our $VERSION = '4.19';
+our $VERSION = '5.00';
 
 # {{{ Endpoint Definition
 
@@ -963,7 +963,7 @@ monitors
 
 =head1 VERSION
 
-version 4.19
+version 5.00
 
 =head1 DESCRIPTION
 
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm
index 62e089a..9295cae 100644
--- a/lib/Travel/Status/DE/HAFAS/Journey.pm
+++ b/lib/Travel/Status/DE/HAFAS/Journey.pm
@@ -11,7 +11,7 @@ use DateTime::Format::Strptime;
 use List::Util qw(any);
 use Travel::Status::DE::HAFAS::Stop;
 
-our $VERSION = '4.19';
+our $VERSION = '5.00';
 
 Travel::Status::DE::HAFAS::Journey->mk_ro_accessors(
 	qw(datetime sched_datetime rt_datetime
@@ -401,7 +401,7 @@ journey received by Travel::Status::DE::HAFAS
 
 =head1 VERSION
 
-version 4.19
+version 5.00
 
 =head1 DESCRIPTION
 
diff --git a/lib/Travel/Status/DE/HAFAS/Location.pm b/lib/Travel/Status/DE/HAFAS/Location.pm
index d3be67b..d2ce112 100644
--- a/lib/Travel/Status/DE/HAFAS/Location.pm
+++ b/lib/Travel/Status/DE/HAFAS/Location.pm
@@ -6,7 +6,7 @@ use 5.014;
 
 use parent 'Class::Accessor';
 
-our $VERSION = '4.19';
+our $VERSION = '5.00';
 
 Travel::Status::DE::HAFAS::Location->mk_ro_accessors(
 	qw(lid type name eva state lat lon distance_m weight));
@@ -57,7 +57,7 @@ Travel::Status::DE::HAFAS::Location - A single public transit location
 
 =head1 VERSION
 
-version 4.19
+version 5.00
 
 =head1 DESCRIPTION
 
diff --git a/lib/Travel/Status/DE/HAFAS/Message.pm b/lib/Travel/Status/DE/HAFAS/Message.pm
index 5f437ae..9e81f5c 100644
--- a/lib/Travel/Status/DE/HAFAS/Message.pm
+++ b/lib/Travel/Status/DE/HAFAS/Message.pm
@@ -6,7 +6,7 @@ use 5.014;
 
 use parent 'Class::Accessor';
 
-our $VERSION = '4.19';
+our $VERSION = '5.00';
 
 Travel::Status::DE::HAFAS::Message->mk_ro_accessors(
 	qw(short type text code prio is_him ref_count));
@@ -69,7 +69,7 @@ Travel::Status::DE::HAFAS::Message - An arrival/departure-related message.
 
 =head1 VERSION
 
-version 4.19
+version 5.00
 
 =head1 DESCRIPTION
 
diff --git a/lib/Travel/Status/DE/HAFAS/Polyline.pm b/lib/Travel/Status/DE/HAFAS/Polyline.pm
index 6248b2a..5795d48 100644
--- a/lib/Travel/Status/DE/HAFAS/Polyline.pm
+++ b/lib/Travel/Status/DE/HAFAS/Polyline.pm
@@ -16,7 +16,7 @@ use 5.014;
 use parent 'Exporter';
 our @EXPORT_OK = qw(decode_polyline);
 
-our $VERSION = '4.19';
+our $VERSION = '5.00';
 
 # Translated this php script
 # <http://unitstep.net/blog/2008/08/02/decoding-google-maps-encoded-polylines-using-php/>
diff --git a/lib/Travel/Status/DE/HAFAS/Stop.pm b/lib/Travel/Status/DE/HAFAS/Stop.pm
index 4353a8a..5763465 100644
--- a/lib/Travel/Status/DE/HAFAS/Stop.pm
+++ b/lib/Travel/Status/DE/HAFAS/Stop.pm
@@ -8,7 +8,7 @@ use 5.014;
 
 use parent 'Class::Accessor';
 
-our $VERSION = '4.19';
+our $VERSION = '5.00';
 
 Travel::Status::DE::HAFAS::Stop->mk_ro_accessors(
 	qw(loc
@@ -157,7 +157,7 @@ Travel::Status::DE::HAFAS::Stop - Information about a HAFAS stop.
 
 =head1 VERSION
 
-version 4.19
+version 5.00
 
 =head1 DESCRIPTION
 
diff --git a/lib/Travel/Status/DE/HAFAS/StopFinder.pm b/lib/Travel/Status/DE/HAFAS/StopFinder.pm
index 3acd24e..6d79b62 100644
--- a/lib/Travel/Status/DE/HAFAS/StopFinder.pm
+++ b/lib/Travel/Status/DE/HAFAS/StopFinder.pm
@@ -10,7 +10,7 @@ use Encode qw(decode);
 use JSON;
 use LWP::UserAgent;
 
-our $VERSION = '4.19';
+our $VERSION = '5.00';
 
 # {{{ Constructors
 
@@ -180,7 +180,7 @@ finder services
 
 =head1 VERSION
 
-version 4.19
+version 5.00
 
 =head1 DESCRIPTION
 
-- 
GitLab