From accbdf35d2c31a77a419686e8d2b278f95006451 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Wed, 8 Nov 2023 12:29:59 +0100 Subject: [PATCH] use api.osm.org also for map calls, release as v2.27.3 --- CHANGELOG.md | 6 ++++++ modules/services/osm.js | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd87ad5f32..230fa23223 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,12 @@ _Breaking developer changes, which may affect downstream projects or sites that [@xxxx]: https://github.com/xxxx --> +# 2.27.3 +##### 2023-Nov-08 + +* Use `api.openstreetmap.org` domain also for _map_ API calls + + # 2.27.2 ##### 2023-Nov-08 diff --git a/modules/services/osm.js b/modules/services/osm.js index ca435ebdb1..a912a6d171 100644 --- a/modules/services/osm.js +++ b/modules/services/osm.js @@ -673,10 +673,10 @@ export default { return oauth.xhr({ method: 'GET', prefix: false, - path: urlroot + path + path: apiUrlroot + path }, done); } else { - var url = urlroot + path; + var url = apiUrlroot + path; var controller = new AbortController(); var fn; if (path.indexOf('.json') !== -1) { diff --git a/package-lock.json b/package-lock.json index f7f10710f1..30c328076e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "iD", - "version": "2.27.2", + "version": "2.27.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "iD", - "version": "2.27.2", + "version": "2.27.3", "license": "ISC", "dependencies": { "@mapbox/geojson-area": "^0.2.2", diff --git a/package.json b/package.json index 9a69881bbb..2839739184 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iD", - "version": "2.27.2", + "version": "2.27.3", "description": "A friendly editor for OpenStreetMap", "main": "dist/iD.min.js", "repository": "github:openstreetmap/iD",