Skip to content

Releases: calvinmetcalf/shapefile-js

v6.0.1

15 Jul 18:26
1eaf755
Compare
Choose a tag to compare

Major redesign

  1. rewrites all logic to use DataView objects (available in node and the browser) instead of node buffers.
  2. Avoid all node specific APIs in the library and its dependencies, this includes changing to use but-unzip for unzipping stuff.
  3. no more poly filling for older browsers, this means we've gone from 234K MINIFIED to 226K UNMINIFIED (97k minified).
  4. Adds new API to pass an object containing shp and optional dbf, prj and cpg properties, allowing you to easily shapefile where the pieces were given to you individually, (it's the same, function, just accepts an object now).
  5. updates to the readme.

v5.0.2

05 Jul 14:24
06730da
Compare
Choose a tag to compare

handles relative urls in projects now

V5.0.1 Now handles shapefiles that lie to you

07 May 14:01
4af6518
Compare
Choose a tag to compare

should also work better with rollup

V5.0.0 Now with ESM modules

26 Mar 15:52
fc4fdb7
Compare
Choose a tag to compare

During a minor change to fix how inner rings were calculated I decided to modernize the code, we've upgraded to ESM modules and switched our build system to rollup. Additionally I removed lru cache as I don't think it was actually doing much and was causing some problems

be less trusting of file lengths

12 Jul 18:24
8cc8283
Compare
Choose a tag to compare

sensibly handle certain malformed files

V4.0.1 very minor breaking changes

12 Jul 17:21
165ae82
Compare
Choose a tag to compare

breaking changes

  • shp.parseZip is now returns a promise instead of being synchronous, this is due to jszip being async in version 3
  • we use modern JS features like async functions, async/await, the WHATWG URL API, if your using this in a old browser it might stop worker

other stuff

  • it will correctly work with urls that have query params on them
  • it handles some edge cases like multiple null geometries in a row better