Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing xml2json dependency for xml2js for smaller dependency footprint... #15

Closed
wants to merge 3 commits into from

Conversation

cromestant
Copy link
Contributor

xml2json module builds lots of dependencie sand is huge.
Unless I missed something ( tests pass) it is not required and can do with this smaller footprint xml2js module.

@markstos
Copy link
Collaborator

markstos commented Apr 8, 2015

@robludwig Do you agree that it's safe to replace xml2json with xml2js here?

@cromestant
Copy link
Contributor Author

just to be clear the xml2json project is great, but in this case is not really required.
Do run other tests if you have others than themake test , but everything is running for me.

@robludwig
Copy link
Contributor

fair enough. can we peg the version of xml2js to something more specific?

@cromestant
Copy link
Contributor Author

Refined to current minor.

@robludwig
Copy link
Contributor

👍

@cromestant
Copy link
Contributor Author

Hello, any updates on merging this PR?

@markstos
Copy link
Collaborator

@cromestant It appears there is not test coverage for returning error messages as JavaScript objects. Please add this test coverage to the PR to confirm the package change doesn't change what's returned.

…ponse objects to not use arrays and to not wrap attrs in an object, so as to mimic previous lib's behavior ( although it was not needed).

* fixed final test where message was misspeled ( capitalization).
* Fixed final assert message as I did not find an instance where that string could be returned ('node-ses failed with status: 403 and data') fixed it with the default string, although test should be improved as with config this will not be the response.

current build throws no test errors on this end.
@cromestant
Copy link
Contributor Author

added better parsing and fixed a test.

hope I did not misunderstand your request.

@markstos
Copy link
Collaborator

Thanks, I'll take a look.

On Mon, Apr 13, 2015 at 6:05 PM, cromestant notifications@github.com
wrote:

added better parsing and fixed a test.

hope I did not misunderstand your request.

Reply to this email directly or view it on GitHub
#15 (comment).

Mark Stosberg
Senior Systems Engineer
RideAmigos

@markstos
Copy link
Collaborator

I found the patch had a bug in it. It lacked some return calls, so that when the XML error parsing was invoked, the callback would be called twice, once as an "error" and then a second time as "success".

I added new test coverage to check for this and also fixed the issue.

I squashed the various commits and merged them into master:

600e901

Unless @aheckmann or @robludwig object in the next day or so, I'll publish the new version which replaces the xml2json dependency with xml2js.

The new version I prepared also bumps our other dependencies as long as we are doing some maintenance.

@cromestant
Copy link
Contributor Author

great,
question on githug etiquette, should I close this pull request now? or wait until merge?
Also now it states that there are conflicts, should I just rebase on yours?

@markstos
Copy link
Collaborator

I'll close the pull request when I release soon, as there's still an open comment period if Rob or Aaron have any final comments.

Regarding the commits, I recommend using your own branch until the release happens, and then switching to using the released version. At that point, you can delete your branch.

@aheckmann
Copy link
Owner

LGTM

@markstos
Copy link
Collaborator

Releasing today, so closing.

@markstos markstos closed this Jun 22, 2015
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.

None yet

4 participants