Skip to content

Fix for #156#157

Open
flovan wants to merge 3 commits into
klei:masterfrom
flovan:flovan-patch-1
Open

Fix for #156#157
flovan wants to merge 3 commits into
klei:masterfrom
flovan:flovan-patch-1

Conversation

@flovan

@flovan flovan commented Dec 8, 2015

Copy link
Copy Markdown

Rather than using the getFilepath'd filename to get the extension, I use the original path and pass the extension directly into the transform constructor.

Florian added 3 commits December 8, 2015 10:23
Rather than using the `getFilepath`'d filename, get the extensions of the original path, and pass it into the transform constructor.
@flovan

flovan commented Dec 8, 2015

Copy link
Copy Markdown
Author

Oops my bad, it seems my changes would be breaking to the api, making this more of a 4.0.0. I'll have to rethink how to handle this situation. Suggestions are welcome of course!

Comment thread package.json

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don’t bump package version. This is module owners job.

@joakimbeng

Copy link
Copy Markdown
Member

For me a breaking change is not a big deal, I'm working on another small breaking change anyway.
But this change makes the transform function's argument list too long to be useful IMO.
Maybe a better and future proof transform function API would be to just have two arguments: filepath and options. Where options is an object which contains all other params. What do you think?

@joakimbeng joakimbeng mentioned this pull request Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants