CHANGELOGadded.onDedicatedmethod that determines if the current environment is a Platform.sh Dedicated environment. Replaces deprecatedonEnterprisemethod.
- Deprecates
onEnterprisemethod - which is for now made to wrap around the addedonDedicatedmethod.onEnterprisewill be removed in a future release, so update your projects to useonDedicatedinstead as soon as possible.
getPrimaryRoutemethod for accessing routes marked "primary" inroutes.yaml.getUpstreamRoutesmethod returns an object map that includes only those routes that point to a valid upstream.
- Updates
routesmethod to useroutesDefinstead ofvariablesDefwhile checking if routes are defined in a Platform.sh environment. - Updates
getRoutemethod documentation inREADME.
- Guard on the
variablesmethod.
- Improved the error handling for missing property variables.
- Route URL addition moved to constructor.
- Switch to more permissive checking of variable availability.
- Adds
hasRelationshipmethod, which determines if a relationship is defined, and thus has credentials available.