Releases: calvinmetcalf/shapefile-js
Releases · calvinmetcalf/shapefile-js
v6.0.1
Major redesign
- rewrites all logic to use DataView objects (available in node and the browser) instead of node buffers.
- Avoid all node specific APIs in the library and its dependencies, this includes changing to use but-unzip for unzipping stuff.
- no more poly filling for older browsers, this means we've gone from 234K MINIFIED to 226K UNMINIFIED (97k minified).
- Adds new API to pass an object containing
shp
and optionaldbf
,prj
andcpg
properties, allowing you to easily shapefile where the pieces were given to you individually, (it's the same, function, just accepts an object now). - updates to the readme.
v5.0.2
handles relative urls in projects now
V5.0.1 Now handles shapefiles that lie to you
should also work better with rollup
V5.0.0 Now with ESM modules
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
sensibly handle certain malformed files
V4.0.1 very minor breaking changes
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