Turf: Turf v3.8.0 minor release

Created on 25 Jan 2017  ยท  10Comments  ยท  Source: Turfjs/turf

With the new @turf/dissolve module available (tested & published) there's a new minor release of TurfJS v3.8.0.

@turf/dissolve created by @rowanwins.

Dissolve Overview

FeatureCollection of Polygons

const dissolve = require('@turf/dissolve')
const polys = {FeatureCollection<Polygon>}
//=polys

https://gist.github.com/anonymous/5426972fd05a4bc220d4f2c7fb537220

screen shot 2017-01-25 at 1 29 39 pm

Dissolve by propertyName

dissolve(polys, 'combine')

screen shot 2017-01-25 at 1 29 45 pm

Dissovle all

dissolve(polys)

screen shot 2017-01-25 at 1 29 50 pm

CC: @Turfjs/ownership

All 10 comments

Awesome!

Cool feature! However, I wasn't able to npm install @turf/turf because the dissolve package seems to be unavailable? I see a 404 on this page:
https://www.npmjs.com/package/@turf/dissolve

I can confirm that multiple modules I have are now failing to install because of the missing dissolve module.

@hpinkos I was able to install @turf/dissolve

$ npm install @turf/dissolve
[email protected] /Users/mac/Github/test
โ””โ”€โ”ฌ @turf/[email protected] 
  โ”œโ”€โ”ฌ @turf/[email protected] 
  โ”‚ โ””โ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”ฌ @turf/[email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ””โ”€โ”ฌ [email protected] 
    โ””โ”€โ”€ [email protected] 

npm WARN [email protected] No description
npm WARN [email protected] No repository field.

Also, I'm not getting any 404 on NPM's page.

image

@mramato Which release are you using? Install the latest @turf/turf and it seems to work.

$ npm install @turf/turf
[email protected] /Users/mac/Github/test
โ””โ”€โ”ฌ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”ฌ @turf/[email protected] 
  โ”‚ โ””โ”€โ”ฌ @mapbox/[email protected] 
  โ”‚   โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”ฌ @turf/[email protected] 
  โ”‚ โ”œโ”€โ”€ @mapbox/[email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”ฌ @turf/[email protected] 
  โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”ฌ @turf/[email protected] 
  โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚   โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚   โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”ฌ @turf/[email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”ฌ @turf/[email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”ฌ @turf/[email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”ฌ @turf/[email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ”œโ”€โ”€ @turf/[email protected] 
  โ””โ”€โ”€ @turf/[email protected] 

npm WARN [email protected] No description
npm WARN [email protected] No repository field.

If you are using Yarn, it takes a bit of time to be entered in their registry.

$ yarn add @turf/turf
yarn add v0.18.1
info No lockfile found.
[1/4] ๐Ÿ”  Resolving packages...
[2/4] ๐Ÿšš  Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@turf/dissolve/-/dissolve-3.8.0.tgz: Request failed \"404 Not Found\"".
info If you think this is a bug, please open a bug report with the information provided in "/Users/mac/Github/test/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

@DenisCarriere ah okay, the dissolve module appears to be published now so my install is working. Thanks!

Looks like some of the new modules are marked as private, which explains why @DenisCarriere is able to install them.

The thing is that lerna publishes modules without any particular flags, and org-scoped packages are private by default. There's a script in the turf repo - ./scripts/organization-make-public that I just ran to fix this issue, maybe we should run that as part of every release just in case the release introduces a new module?

@DenisCarriere, previously npm install @turf/turf was failing for me but appears to be working again. I imagine @tmcw running the script fixed it. Thanks!

@tmcw that explains it!! ๐Ÿ‘

Yes I think this should apart of the postpublish a scripts, in case we miss this again.

Thanks for catching this really quickly, which is one of the reasons why I opened this issue/announcement.

Thanks again for the quick fix,

Going to close this issue, thanks a bunch to everyone who responded, we fixed this issue VERY fast ๐Ÿ‘

Was this page helpful?
0 / 5 - 0 ratings