meteor-node-csv
meteor-node-csv copied to clipboard
Meteor 0.9 compatibility
$ meteor add dsyko:node-csv-npm Refreshing package metadata. This may take a moment. No compatible build found for dsyko:[email protected] Package dsyko:node-csv-npm has no compatible build for version 0.3.6
:(
I may get around to porting this to 0.9 at some point, but this is really just a thin wrapper around the 'csv' package from NPM. There may be a better way to include NPM packages in Meteor now, I was using arunoda's npm package before but it looks like it is also incompatible with 0.9.0 for now.
FYI, Arunoda posted a timely hackpad regarding adding 0.9 support for existing packages: https://hackpad.com/Add-Meteor-0.9-support-for-your-Existing-Packages-P0R7y1PiXlu
@Dsyko you can do this to support both:
Package.on_use(function(api) {
// Dependencies
// 0.9.0+
if (api.versionsFrom) {
// common
api.use....
}
// Pre-0.9.0
else {
api.use ....
}
Now that 0.9.0 is out, you should be able to run
mrt migrate-package path/to/old/meteor-node-csv path/to/new/dsyko:meteor-node-csv
It will create that folder dsyko:meteor-node-csv, and you can directly commit those changes. Bump the version in package.js, and run meteor publish, and BOOM, 0.9.0 compatible :-)
@mrmowgli @Dsyko i get 'Package dsyko:node-csv-npm has no compatible build for version 0.3.6'
Just published a new version, thanks to a pull request from @cyboman32 it should be up here: http://atmospherejs.com/dsyko/node-csv-npm Let me know if its working, thanks!