Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

osm-p2p-server

Package Overview
Dependencies
Maintainers
4
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osm-p2p-server - npm Package Versions

1
7

2.0.4

Diff

Changelog

Source

[2.0.4]

Fixed

  • Correctly respect json output when ?forks=true for /map endpoint
  • Do not return 'ghost points' from forked ways when forks are not returned
gmaclennan
published 2.0.3 •

Changelog

Source

[2.0.3]

Changed

  • Add callback to server cleanup/teardown in tests - necessary for osm-p2p-server-sw tests
gmaclennan
published 2.0.2 •

Changelog

Source

[2.0.2]

Fixed

  • Additional query string parameters do not break route matching (previously route matching was dependent on the order of query string parameters and including any query string parameter would cause route matching to 404)
  • All routes should return the correct charset (utf-8) on content-type, including error responses. This avoids strange bugs that might have resulted from the assumed charset of ISO-8859-1.

Changed

  • Update split_delete_way.js test so that it will run in the browser for osm-p2p-server-sw.
gmaclennan
published 2.0.1 •

Changelog

Source

[2.0.1]

Fixed

  • Validate bbox on map requests, avoid uncaught error on invalid bbox.
gmaclennan
published 2.0.0 •

Changelog

Source

[2.0.0]

  • Release.
gmaclennan
published 2.0.0-beta4 •

Changelog

Source

[2.0.0-beta4]

Fixed

  • For changeset uploads, only check placeholder uniqueness within types. Previously we expected all placeholder ids to be unique within a changeset upload, but the OSM API v0.6 does not expect this, and clients (e.g. iD) can send the same placeholder id for both a node and a way in an upload. See https://github.com/openstreetmap/openstreetmap-website/blob/fc0aebc1a8ccad4ae9a3ac6435df00328e5a98e5/test/controllers/changeset_controller_test.rb#L398-L424
gmaclennan
published 2.0.0-beta3 •

Changelog

Source

[2.0.0-beta3]

Added

  • Return OsmJSON from /map endpoint if request Accept is application/json

Fixed

  • Value returned by changeset creation should not terminate in a newline
gmaclennan
published 2.0.0-beta2 •

Changelog

Source

[2.0.0-beta2]

Changed

  • BREAKING: Roll back change to URL prefix, keep /api/0.6/ since it is hard-coded in several clients (e.g. iD)
gmaclennan
published 2.0.0-beta •

Changelog

Source

[2.0.0-beta]

Added

  • Add timestamp to newly created elements.
  • Add created_at timestamp to new changesets.
  • Use as Expresss.js middleware

Changed

  • BREAKING (Possibly): Empty nodes in returned xml are self-closing tags rather than empty e.g. <node id="1" /> vs <node id="1"></node>. This matches OSM Ruby Port, and is likely not breaking but it did break our tests.
  • BREAKING: Closed changesets now have attribute created_at rather than createdAt to be consistent with OSM API. Still checks for createdAt in legacy dbs.
  • BREAKING: Only most recent fork is returned on GET /:type(node|way|relation)/:id, unless ?forks=true query param is set.
  • BREAKING: Only most recent forks are returned on GET /:type(nodes|ways|relations)\\?:ktype=:ids, unless ?forks=true query param is set.
  • BREAKING: Only most recent forks are returned of elements in GET /map, unless ?forks=true query param is set.
  • BREAKING: Routes no longer start with /api/0.6/, routes are now mounted on /
  • Error messages should be more consistent
  • More robust XML parsing

Fixed

  • Always set xml content-encoding to utf-8 (Very important since the default charset is ISO-8859-1 see http://www.w3.org/International/articles/http-charset/index)
  • Set headers content-encoding: identity and no-cache for all routes
  • Correctly parse id for closing a forked changeset.
  • members and nodes are returned before tags in Xml.
  • Delete operations must have changeset attribute set.
substack
published 1.12.3 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc