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

Remove 'browser' field from main jimp package's package.json. Fixes:#694 #918

Merged
merged 1 commit into from Aug 7, 2020

Conversation

wallabra
Copy link
Contributor

What's Changing and Why

The browser tag in packages/jimp/package.json is being removed. It interferes with Browserify's dependency resolution, breaking it and ironically rendering Jimp unusable in Browserify. Meanwhile, building a single JavaScript file for manual inclusion in a webpage remains trivial, as is distributing it, using Browserify.

What else might be affected

Nothing, which is why I made the decision to simply remove the disruptive field rather than replacing it with something else. Distributing the JavaScript file for clientside (e.g. HTML) inclusion of Jimp is done separately from npm, because browsers (and other client-side JavaScript applications) don't use npm, which is for server-side applications (i.e. Node.js). That, however, is a concern beyond that of this specific pull request.

Tasks

  • Add tests
  • Update Documentation
  • Update jimp.d.ts
  • Add SemVer Label

@hipstersmoothie hipstersmoothie added the minor Increment the minor version when merged label Aug 7, 2020
@hipstersmoothie hipstersmoothie merged commit f323d96 into jimp-dev:master Aug 7, 2020
@hipstersmoothie
Copy link
Collaborator

🚀 PR was released in v0.15.0 🚀

@hipstersmoothie hipstersmoothie added the released This issue/pull request has been released. label Aug 7, 2020
@wallabra
Copy link
Contributor Author

wallabra commented Aug 8, 2020

Can I see what error this pull request produces in CI? I would like to try and fix it.

@hipstersmoothie
Copy link
Collaborator

It was all good. published now

@wallabra
Copy link
Contributor Author

wallabra commented Aug 8, 2020

Ah, alright. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants