-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update entur packages (major) #120
base: master
Are you sure you want to change the base?
Conversation
Visit the preview URL for this PR (updated for commit 15a7b22): https://ent-shamash-dev--pr120-renovate-major-entur-j17s6dw9.web.app (expires Wed, 05 Jun 2024 11:19:42 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 500c97a3b6e3042f8d1f2786e215b2cda18eccce |
f830d5b
to
926f869
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
926f869
to
6c143ba
Compare
6c143ba
to
01d3adb
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
ab1067d
to
7731011
Compare
f580850
to
8a6a97a
Compare
8821441
to
1631652
Compare
317efc6
to
9ab518e
Compare
9ab518e
to
fa9f70f
Compare
fa9f70f
to
2566771
Compare
2566771
to
15a7b22
Compare
Quality Gate passedIssues Measures |
This PR contains the following updates:
3.4.7
->7.1.10
1.20.0
->6.17.1
1.11.1
->5.3.0
Release Notes
entur/sdk (@entur/sdk)
v5.3.0
Compare Source
added missing vehicleType field in getVehicles
v5.2.2
Compare Source
v5.2.1
Compare Source
v5.2.0
Compare Source
v5.1.0
Compare Source
v5.0.0
Compare Source
💥 Breaking
getStopPlaceFacilities
is removed. (#247) usegetStopPlace
from the NsrClient instead: https://sdk.entur.org/interfaces/NsrClient.htmlgetScootersByPosition
and friends are removed (#243). UsegetVehicles
from the MobilityClient instead: https://sdk.entur.org/interfaces/MobilityClient.html👋 Deprecations
The times they are a-changing! With this release, we have deprecated all of the methods and types related to the deprecated JourneyPlanner v1 API. #257 That's most of this SDK!
We encourage all users to migrate to the next version of the API, JourneyPlanner v3. We will not migrate the the existing methods of this SDK to v3. Instead, we recommend you to write your own, tailor-made queries and use your GraphQL library of choice, like Apollo. This way, you can leverage the full power of GraphQL and get optimized requests and responses.
You can still use our generated
JourneyPlannerTypes
for usage with TypeScript, or even generate your own response types using a generator like GraphQL Code Generator. That's the one we're using to makeJourneyPlannerTypes
.🔧 Docs and Maintenance
We've swapped Docz with TypeDoc (#252) and released a brand new documentation website: https://sdk.entur.org. Now we generate the documentation based on our TypeScript types and TSDoc comments. This way our documentation will be more correct and any documentation we write will also be available in your editor through your TypeScript plugin.
v4.4.0
Compare Source
We now expose generated TypeScript client types for JourneyPlanner v3. You can use these to type your responses from custom GraphQL queries against JourneyPlanner v3.
v4.3.0
Compare Source
This one adds
vehicleTypesAvailable
to Station. #240Use this to know which vehicle types are serviced by a station.
v4.2.2
Compare Source
Include repository details in package.json. #239
v4.2.1
Compare Source
The type of
focus.scale
was incorrectly set to string, but should be number. This is now fixed. (#238)v4.2.0
Compare Source
getStationsById
getStationsById is a new method for getting station info based on a list of IDs. (#236 thanks @bendiksk)
While getStations is good for finding all stations within a certain area,
getStationsById
works in the case where you have a set of IDs beforehand, which you want to get updated data about.v4.1.1
Compare Source
This release fixes the crashing
geocoder.reverse
method and adds some validation of its mandatorypoint
parameter. #234v4.1.0
Compare Source
GeocoderClient
A new GeocoderClient implementation is here: #232.
The new geocoder methods (
autocomplete
andreverse
) will replace thegetFeatures
andgetFeaturesReverse
methods. The new methods have the following benefits:@types/geojson
), improving compatibility with other GeoJSON-based libraries.If you are using
getFeatures
and/orgetFeaturesReverse
you should consider migrating to the new geocoder methods.getFeatures
andgetFeaturesReverse
will be deprecated in a future minor version, and therefore also removed in a future major versjon.EnturService -> EnturClient
We have been using the term EnturService, createEnturService in our docs and code. This is now EnturClient and createEnturClient. #233
v4.0.0
Compare Source
Breaking Changes 💥
isRail
,isBus
, etc.) #229v3.8.0
Compare Source
Deprecated getStopPlaceFacilities #228
Use the NSR methods you need instead, like getStopPlace and getParkingsForStopPlace.
v3.7.0
Compare Source
Implemented methods for the NSR Read API #224
You will find documentation under the "NSR" menu: https://sdk.entur.org/nsr/getFareZone
If you are using
getStopPlaceFacilities
you should consider replacing it with the newnsr
methods, as it will get deprecated in an upcoming version.v3.6.2
Compare Source
Improvements
Ability to set custom headers in API requests
v3.6.1
Compare Source
Improvements
Vehicles from the mobility API will now include the field "rentalApps".
The field include links to operator's applications on different platforms such as iOS and Android.
v3.6.0
Compare Source
New Features
Mobility v2
Support for the new Mobility v2 API is added, with the following three methods:
Improvements
LIFT mode is now one of the default search modes https://github.com/entur/sdk/pull/219
Deprecations
Situation.lines
is deprecated, and its TypeScript type made optional (although you will always get an array). https://github.com/entur/sdk/pull/217. If you rely on this information on situations, you should use the JourneyPlanner API directly.The
getScootersByPosition
method is effectively deprecated as the Scooters API is deprecated. You should use the new Mobility v2 methods (introduced in this version) instead.v3.5.0
Compare Source
v3.4.0
Compare Source
v3.3.0
Compare Source
Updated BookingArrangements fields, and added the fields to serviceJourney and estimatedCalls.
BookingAccess-type was converted from boolean to enum. May be breaking change, but the field was never queried.
v3.2.0
Compare Source
All request functions takes fetch options as last argument. Currently only AbortSignal is supported
v3.1.0
Compare Source
StandardScooter
. This interface is similar to the two existing ones, but without any battery information (it has neither a battery nor batteryLevel field). It is currently only used by the new operator: Bolt.v3.0.1
Compare Source
BatteryScooter
andBatteryLevelScooter
interfaces are now exported.v3.0.0
Compare Source
💥 Breaking Changes
New Mode enums #188
Will likely change how you are using the LegMode, QueryMode and TransportMode types if you're using TypeScript. These mode types are now enums instead of union types. This might make them slightly harder to use in some cases, as TypeScript says
QueryMode.BUS !== LegMode.BUS
, although they are actually the same string"bus"
. But the good thing about this is that it forces you have a better understanding of what the different mode types mean, which will likely mean you're not using QueryMode for everything or using LegMode where you should be using TransportMode, and so on.Leg
can have in the result fromfindTrips
,getTripPatterns
modes
parameter ofgetTripPatterns
Removed situations from EstimatedCall query #194
This field was deprecated in v2.1.0. Removing it is breaking, but will significantly reduce network payloads for
getTripPatterns
.Deleted deprecated
Category
typeUse
FeatureCategory
instead.Deleted
libdef.flow.js
#195The Flow types were deprecated in v2 and including them in the repo now will be misleading. Flow definitions for versions < 3 can be found in the flow-typed repo: https://github.com/flow-typed/flow-typed/tree/master/definitions/npm/%40entur
Deprecations
isRail
,isBus
, ...) are deprecated. Write your own if needed. (#188)🔧 Improvements
Auto-generated libdef #189
Hopefully non-breaking, but some types might be exported a slightly different way.
v2.1.1
Compare Source
tariff_zones
is now added to theFeature.properties
type. Thanks @torfjor #197v2.1.0
Compare Source
Deprecated:
startTime
andendTime
on TripPattern #184Use
expectedStartTime
andexpectedEndTime
instead.getDeparturesBetweenStopPlaces performance boost #190
The query for getDeparturesBetweenStopPlaces asked for many fields on Leg that weren't used. The legToDepartureMapper function only took a certain set of fields from Leg and turned it into a Departure. With this change, only the fields used by the mapper are requested. This will lead to smaller network payloads and hopefully slightly faster calls.
Separated EstimatedCall and Departure types #186
Departure
has been an alias forEstimatedCall
, but now they mean different things and got a slight difference in thesituation
field.The problem is that the same data is requested for an EstimatedCall on the trip calls (getTripPatterns) as for the departure calls (
getDeparturesXxx
methods). One rarily needs this much data on a trip call, which leads to unnecessarily big payloads for getTripPatterns.One example is that
situations
is being aggregated on the Leg level, and therefore also requesting situations per fromEstimatedCall, toEstimatedCall and intermediateEstimatedCalls is unlikely to be very useful.Removing situations from EstimatedCall is a breaking change which requires a major version bump. In this version,
EstimatedCall.situation
is simply deprecated. We will remove it, probably already in the next major version.EstimatedCall.situations
is set to be optional in the TypeScript declaration, although it will still always be returned as an array. You might have to make some code changes to satisfy TypeScript. This is arguably a breaking type change, but we want to give you an extra heads-up that this field is deprecated.Migrating away from
EstimatedCall.situations
In most cases using
Leg.situations
should be sufficient. These will also consider the validity period of the situations.If you need more details about specific departures, you should check out the
getDeparturesXxx
methods.v2.0.0
Compare Source
Breaking Changes 💥
This release removes a deprecated query field and some deprecated constants.
detail
is removed, useadvice
instead #181The field
detail
on Situations is now removed. Migration is simple: Replace your usage ofsituation.detail
withsituation.advice
:FeatureCategory constants are removed, use enum instead #182
We have exported feature category constants both as individual constants and as an object/enum. Now the individual exports are gone. Please use the
FeatureCategory
enum instead:Flow Definitions are now Deprecated 👋
We will no longer update
libdef.flow.js
. Instead, we will move it to theflow-typed
repo: https://github.com/flow-typed/flow-typed/pull/3945.libdef.flow.js
will be removed in a future major version.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.