voxel / voxel-stitch

stitch block textures into a tile map for rect-mip-map
4 stars 1 forks source link

Update save-pixels / pngjs to fix npm WARN engine pngjs@0.4.0: wanted: {"node":"0.8.x"} (current: {"node":"5.3.0","npm":"3.3.12"}) #10

Open deathcap opened 8 years ago

deathcap commented 8 years ago

Installing voxel-stitch logs this warning:

npm WARN engine pngjs@0.4.0: wanted: {"node":"0.8.x"} (current: {"node":"5.3.0","npm":"3.3.12"})

maybe time to update the dependencies:

npm list

│ └─┬ voxel-stitch@0.10.1
…
│   └─┬ save-pixels@0.3.0
│     └── pngjs@0.4.0

latest versions:

https://www.npmjs.com/package/save-pixels 2.3.0 https://www.npmjs.com/package/pngjs 2.2.0

deathcap commented 8 years ago

save-pixels >=2.0.0 includes this API change: https://github.com/scijs/save-pixels/issues/6 get-pixels@3.0.2 ndarray signature inconsistent with save-pixels' png -- used by voxel-stitch as savePixels(level, 'canvas'), previously data was an ndarray with shape: [rows, columns, channels], changed to: [width, height, channels]. The level pyramid comes from https://github.com/voxel/rect-mip-map so it may require changes too.