You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
## 4.0.0 (----------)
11
+
12
+
- 💥 BREAKING CHANGE: `uploadChangeset` now returns a object instead of a single changeset ID. This is because:
13
+
1. the function supports chunking uploads into multiple changesets if it exceeds the limit of 10,000 features per changeset.
14
+
2. For each feature that was created, the response now includes a mapping between the temporary ID used by the uploader, and the permanent ID allocated by the server.
15
+
- 💥 BREAKING CHANGE: The type defintions for `Changeset` have been changed to mark several properties as optional. (see [#14](https://github.com/osmlab/osm-api-js/issues/14))
16
+
- 💥 BREAKING CHANGE: `Changeset.created_at`, `Changeset.closed_at`, and `ChangesetComment.date` are now a `string`, not a `Date`. This makes it more consistent with the XML format, and easier to serialise to JSON.
17
+
- 💥 BREAKING CHANGE: `ChangesetComment.uid` is now a `number`, not a `string`. This matches the behaviour of OSM's new json API.
18
+
- 💥 BREAKING CHANGE: `Changeset.discussion` has been renamed to `Changeset.comments`. This matches the behaviour of OSM's new json API.
19
+
10
20
## 3.3.0 (2025-09-18)
11
21
12
22
-[uploadChangeset] add an `onProgress` callback, so that apps can show a progress bar while uploading
Copy file name to clipboardExpand all lines: examples/uploadChangeset.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,12 +26,17 @@ await uploadChangeset(
26
26
27
27
Response:
28
28
29
-
```json
30
-
12345
29
+
```jsonc
30
+
{
31
+
// 12345 is the changeset number
32
+
"12345": {
33
+
// the contents of this object is the diff result.
34
+
// - for created features, this object allows you to map the temporary ID used by the uploader, to the permananet ID that the server allocated to this feature.
35
+
// - for updated & deleted features, it includes the new version number
0 commit comments