meteor-node-csv icon indicating copy to clipboard operation
meteor-node-csv copied to clipboard

Meteor 0.9 compatibility

Open cyboman32 opened this issue 10 years ago • 4 comments

$ 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

:(

cyboman32 avatar Aug 27 '14 07:08 cyboman32

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.

Dsyko avatar Aug 27 '14 07:08 Dsyko

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 avatar Aug 27 '14 18:08 mrmowgli

@mrmowgli @Dsyko i get 'Package dsyko:node-csv-npm has no compatible build for version 0.3.6'

cristiandley avatar Aug 28 '14 11:08 cristiandley

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!

Dsyko avatar Sep 02 '14 21:09 Dsyko