Skip to content

Latest commit

 

History

History
461 lines (362 loc) · 24.6 KB

CHANGELOG.md

File metadata and controls

461 lines (362 loc) · 24.6 KB

CHANGELOG

0.23.4 - 16.06.2026

  • Updates TR restriction params - PR #238
    • use OJP 1.0 / 2.0 specific restriction params
    • no more change for ContinuousLeg/Service in OJP 1.0

0.23.3 - 24.04.2026

  • use latest ojp-shared-types - PR #237

0.23.2 - 24.04.2026

0.23.1 - 24.04.2026

  • Updates TR API - PR #234
    • updates setOriginDurationDistanceRestrictions, setDestinationDurationDistanceRestrictions APIs, use transportMode
    • adds setMonomodalRequest, setTaxiRequest APIs

0.22.6 - 21.04.2026

  • use latest ojp-shared-types - PR #233

0.22.5 - 16.03.2026

  • updates TR
    • adds setWalkRequest payload modifier - PR #232

0.22.4 - 13.03.2026

  • use latest ojp-shared-types - PR #231

0.22.3 - 25.02.2026

0.22.2 - 18.02.2026

  • Fix OJPv1 TR params - PR #227
    • fix OJPv1 TR setCarRequest()
    • use OJPv1 ContinousService
  • Fix departures-cli example - PR #228
    • use OJP spec, adapt the calls, use new SDK to perform request / response

0.22.1 - 03.02.2026

  • Promote ojp-sdk-next as main - PR #225
    • change package name back to ojp-sdk
    • cleans up README

0.21.5 - 03.02.2026

  • Fix OperatorRef - PR #224
    • removes ns change hacks, OpenAPI specs are used now

0.21.4 - 02.02.2026

  • Fix TR OJPv1 - PR #223
    • removes the hack that was also prepending "ojp:" to the OperatorRef values

0.21.3 - 30.01.2026

  • TR requests - PR #221
    • adds support for TR OJPv1, v2
    • enforce schema arrays per OJP version
    • adds more TR params tweaking: setMaxDurationWalkingTime, setNumberOfResults, setOrigin/Destination DurationDistanceRestrictions, setViaPlace

0.21.2 - 22.01.2026

  • updates API - PR #219
    • updates TRR refine params
    • use latest ojp-shared-types

0.21.1 - 25.11.2025

  • refactor SDK - PR #210
    • package
      • bumps minor version to 0.21.x
      • declare ojp-shared-types as peerDependency
    • SDK constructor is now private and uses generics to differentiate between OJP versions
      • use OJP.SDK.create() to create a OJP 2.0 instance
      • or OJP.SDK.v1() to create a OJP 1.0
    • update requests
      • refactor creation to allow a clear separation between OJP v1 and OJP v2, adds request per OJP version/request type
      • old static inits are kept, however a new construct mode is recommended
    const ojpSDK = OJP.SDK.create('my_requestor_ref', httpConfig, 'de');
    const request = ojpSDK.requests.LocationInformationRequest.initWithLocationName('Bern');
    // instead of
    // const request = OJP.LocationInformationRequest.initWithLocationName('Bern');
    
    • update requests (continued)
      • requests dont conform to XSD schemas anymore, a property .payload is used for that
      • updated requests, added LIR, SER for OJPv1
      • request fetching + parsing is done now via await request.fetchResponse(sdkInstance) call
      • see more changes in this short gist
    • updates XML parser
      • changed parser, improve handling of the #text nodes generated by fast-xml-parser
      • requests dont conform to XSD schemas anymore, a property .payload is used for that, therefore no more need for the MapModelKeepPropertiesXML lookup hack in ojp-shared-types dependency

0.20.33 - 23.11.2025

  • use latest ojp-shared-types - PR #215

0.20.32 - 13.11.2025

  • Fix OJPv1 GeneralAttribute - PR #213
    • use new OJP_Types GeneralAttributeSchema

0.20.31 - 13.11.2025

  • Params Updates - PR #212
    • TR - adds filter helper for RailSubmode
    • Place - adds support for OJP v1 init, adds initWithOJPv1XMLSchema static initializer
    • use latest ojp-shared-types
      • TR restriction mode filter requires now ptMode, personalMode arrays

0.20.30 - 31.10.2025

  • TR with IndividualTransportOption - PR #205
    • adds setMaxDurationWalkingTimemethod for TR requests with longer walking (at origin / destination)
    • adds Github workflow for npm publish automation

0.20.29 - 16.10.2025

  • use latest ojp-shared-types - PR #201

0.20.28 - 26.09.2025

  • use latest ojp-shared-types - PR #200

0.20.27 - 17.09.2025

0.20.26 - 01.09.2025

  • use latest ojp-shared-types - PR #193

0.20.25 - 20.08.2025

  • use latest ojp-shared-types - PR #191

0.20.24 - 08.07.2025

  • use latest ojp-shared-types - PR #189

0.20.23 - 24.06.2025

0.20.22 - 24.06.2025

  • use latest ojp-shared-types - PR #184

0.20.21 - 12.06.2025

  • LIR filter with PtMode - PR #182
    • use latest ojp-shared-types package
    • updates examples for PtMode filter (TR, LIR)

0.20.20 - 11.06.2025

  • updates SDK - PR #181
    • adds TRR, FareRequest initialisers with mock request / response
    • adds tests for FareRequest

0.20.19 - 11.06.2025

  • updates SDK - PR #180
    • updates ojp-shared-types (TR params walkSpeed)

0.20.18 - 06.06.2025

  • Improve serialising - PR #178
    • improve internal buildXML, adds XmlSerializer for outside SDK serialising objects to XML
    • harmonise FareRequest response, adds fetchFareRequestResponse with FareDeliverySchema
    • remove Trip.rawXML property
    • updates playground associated app

0.20.17 - 02.06.2025

  • harmonise SDK Response - PR #171
    • harmonise SDK response, use Promise<OJP_Response<OJP_Types.(LIR | TR | SER TIR), Error>> response type
    • deprecate older methods (i.e. the ones fetching individual Trip[])
    • adds tests for SIRI-SX situation models

0.20.16 - 29.05.2025

  • adds TripInfoRequest request / response - PR #170
  • dynamically build MapParentArrayTags, dont rely on ojp-shared-types package

0.20.15 - 27.05.2025

0.20.14 - 14.05.2025

  • export RequestInfo

0.20.13 - 13.05.2025

0.20.11 - 13.05.2025

0.20.10 - 17.04.2025

0.20.8 - 15.04.2025

0.20.7 - 14.04.2025

  • refactor/next version of the SDK (continued) - PR #139
    • fixed JSON (xml-parsed) traverse, catch case for expected empty arrays

0.20.5 - 13.04.2025

  • refactor/next version of the SDK (continued) - PR #139
    • use dual builds (CommonJS and ESM) via tsup

0.20.4 - 12.04.2025

  • refactor/next version of the SDK (continued) - PR #139
    • revert to use CJS module style

0.20.3 - 12.04.2025

  • refactor/next version of the SDK (continued) - PR #139
    • use NodeNext, ESM style
    • more robust NS parsing

0.20.2 - 01.04.2025

  • refactor/next version of the SDK (continued) - PR #139

0.20.1 - 26.03.2025

0.16.3 - 14.03.2025

  • internal change, refactor params/request implementation - PR #137
  • adds hack for OJP-SI to allow Trip nodes without Transfer children node - PR #138

0.16.2 - 3.03.2025

  • Changes namespaces - PR #135
    • make siri: default namespace
    • patch LIR PointOfInterest to allow also none categories (support for OJP-SI)

0.16.1 - 6.02.2025

  • Updates OJP Fare - PR #134
    • refactor ApiConfig, removes default stages from SDK

0.15.2 - 21.01.2025

  • updates package, adds dependencies, disable request logs by default - PR #132

0.15.1 - 15.12.2024

0.14.2 - 09.12.2024

0.14.1 - 05.12.2024

  • remove @types/mapbox-gl - PR #125
  • flexible TimedLeg Service init - PR #126
  • expose OJP backend version (1.0 or 2.0) - PR #127

0.13.2 - 26.11.2024

0.13.1 - 19.11.2024

0.12.7 - 30.10.2024

  • Fix Service real-time info parsing - PR #117

0.12.6 - 29.10.2024

0.12.5 - 07.10.2024

  • TripRequest updates - PR #111
    • implement custom additional restrictions min/max Duration/Distance, they can be turned on/off on individual basis
    • adds via DwellTime support - PR #110
    • adds foot IndividualTransportMode, is used by OJP 2.0
    • fares: expose FareProductName

0.12.4 - 17.09.2024

  • Customize NumberOfResults - PR #108

0.12.3 - 17.09.2024

  • Remove ModeAndModeOfOperationFilter/siri:WaterSubmode which is for OJP2 - PR #106

0.12.2 - 17.09.2024

  • Fix Via TripRequest params - PR #104

0.12.1 - 16.09.2024

  • Adds support for Via locations - PR #102
  • Complete the TripRequest.initWithTripLocationsAndDate constructor to use all params - PR #102
  • BREAKING CHANGE - remove JourneyRequest API, no more need for this, was added to support via using multiple TripRequest requests - PR #102
  • Adds Cancelled, Deviation, Unplanned support for Service - PR #101
  • BREAKING CHANGE - updates situations model - PR #101
  • Update StopEvent situations: use also line/route situations from Service - PR #100

0.11.1 - 28.08.2024

  • OJP localization support - PR #96
    • BREAKING CHANGE - adds language param to all request API calls
  • log OJP requests for DEBUG envs - PR #98

0.10.2 - 27.08.2024

  • Fix situations parser - PR #94
    • In v1 there is no <SituationFullRefs> container
    • validate situations on DEBUG stages
    • allow situations with empty description / detail
  • Fix TripInfoRequest params - PR #93

0.10.1 - 27.08.2024

  • Updates situations/traffic/real-time info #91
    • BREAKING CHANGE - SIRI-SX situations model changed
    • BREAKING CHANGE - StationBoardModel is removed from the SDK, should be implemented in the integrator
    • for TR send UseRealtimeData=explanatory to capture real-time info
    • adds support for trips with Cancelled, Infeasable Trip status
    • adds support for NotServicedStop property for TimedLeg points

0.9.36 - 26.08.2024

  • updates SDK version to 0.9.36 - PR #90
  • adds TripInfoRequest support - PR #87
  • adds NumberOfResultsType to handle previous / next TripResult connections - PR #86
  • adds Trip and TripRequestResponse XML serialization support- PR #89
  • fix circular dependency - PR #85

0.9.35 - 27.06.2024

  • updates SDK version to 0.9.35 - PR #84
  • adds support for car water-ferry / car-shuttle train - PR #80, PR #82
  • remove sorting of trips for special cases, should be done in the integrators - PR #83

0.9.34 - 21.06.2024

  • updates SDK version to 0.9.34 - PR #79
  • add support for TransferMode, improve LegTransportMode - PR #78

0.9.33 - 17.05.2024

  • updates SDK version to 0.9.33 - PR #77
  • BREAKING CHANGE: change restriction type in LocationInformationRequest: update types and use an array for restriction types (i.e. [stop, address]) - PR #73
  • adds GeoRestriction/Circle to LIR - PR #74
  • adds support for car-shuttle-train (Autoverladezug) - PR #75
  • improve Location/Address - PR #71
  • improve requests: allow LIR requests to use mocked XMLs, adds generic XMLParser, adds center min, max long/lat members for GeoPositionBBOX - PR #72

0.9.32 - 24.03.2024

  • updates SDK version to 0.9.32 - PR #70
  • allow StageConfig to be passed to mock requests - PR #69

0.9.31 - 10.03.2024

0.9.30 - 09.03.2024

0.9.29 - 02.03.2024

  • expose JourneyService attributes - PR #53
  • adds Dep/Arr option for TripRequest requests - PR #54
  • updates SDK version to 0.9.29 - PR #55

0.9.28 - 16.02.2024

0.9.25 - 15.02.2024

  • improve OJP APIs parser - PR #43
  • adds platform assistance - PR #44
  • updates SDK version to 0.9.25 - PR #45

0.9.24 - 14.01.2024

  • migrate to a SAX-based parser for handling OJP API responses - PR #41

0.9.23 - 09.01.2024

  • add support to compute the trip distance from the individual legs - PR #40

0.9.22 - 11.12.2023

0.9.21 - 11.12.2023

  • cleanup left-overs

0.9.20 - 28.10.2023

  • improve handling of coordinates in Location objects - PR #34

0.9.19 - 15.10.2023

0.9.18 - 08.10.2023

0.9.17 - 10.09.2023

0.9.16 - 16.07.2023

  • adds support for others-drive-car (limo) IndividualTransportMode - see #87
  • remove La Beta stage hack for number of results in OJP.TripRequest calls

0.9.15 - 02.07.2023

  • PR #27
  • pretty print the XML payload in the OJP APIs calls
  • NumberOfResultsAfter is now default in the OJP.TripRequest calls
  • use PrivateModeFilter for the OJP APIs calls
  • add helpers for reuse of the OJP.StopEventRequest calls

0.9.14 - 23.05.2023

  • OJP.TripRequest changes - see PR #26
    • restore ojp:DepArrTime
    • allow toggling of the <ojp:IncludeLegProjection> param
    • allow usage of either ojp:NumberOfResultsAfter or ojp:NumberOfResults param

0.9.13 - 14.05.2023

  • use strings for StageConfig.key, dont force the consumer to use only predefined OJP stages - see #24
  • adds support for taxi mode in OJP.TripRequest - see #87, see PR #25

0.9.12 - 23.04.2023

  • small changes - see #23
    • exports Duration for external usage
    • adds support for taxi IndividualTransportMode in TripRequest calls

0.9.11 - 07.04.2023

  • fix dependencies inclusion - see #20
    • avoid usage of allowSyntheticDefaultImports by using import * as
    • declare GeoJSON types
    • no need to import the heavy mapbox-gl lib, just need the TS @types
  • adds default stage to be used without registering a new key - see #21
  • adds ./examples projects

0.9.10 - 02.04.2023

  • fix xmldom inclusion - see #19

0.9.9 - 02.04.2023

  • various small fixes - see #18

0.9.8 - 02.04.2023

  • use cross-fetch and xmldom to enable usage also from command line - see #17
    • use ES6 for both target and module
  • add plus functionality to duration - see #16

0.9.7 - 12.03.2023

  • adds Location Probability and OriginSystem - see #15

0.9.6 - 12.03.2023

  • improve TripRequest - see #14
    • removed ojp:NumberOfResults, keep it only for TEST LA
    • IndividualTransportOptions is used only for monomodal, walk | cycle (own bicyicle) modes - with different max duration params
    • use ItModesToCover for walk | self drive | cycle modes
    • use OJP Extension for bicycle_rental | car_sharing | escooter_rental modes
  • other changes - see #13
    • use self-drive-car type for car sharing response types
    • fix on-demand bus mode that was matching also the normal bus routes
    • add types to Location object so we can differentiate between Stop, POI, TopographicPlace and Address
    • LIR name lookup requests can also filter by type, i.e. Stop
    • adjust BBOX for the trips to include also the leg polylines

0.9.5 - 19.02.2023

0.9.4 - 19.02.2023

0.9.3 - 22.01.2023

  • Show transfer path guidance on the map - see #5
  • Updates documentation - see #6
  • Adds support for Location TopographicPlace - see #7

0.9.2 - 14.01.2023

  • keep app stages in the OJP Demo app, outside of the SDK

0.9.1 - 23.11.2022

  • updates documentation

0.9.0 - 20.11.2022

  • initial commit