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

Ship 2.0.0 #1281

Merged
merged 1 commit into from
Oct 14, 2018
Merged

Ship 2.0.0 #1281

merged 1 commit into from
Oct 14, 2018

Conversation

zbjornson
Copy link
Collaborator

What do you guys think, is it time finally?

  • No known regressions.
  • Complete docs present for upgrading from v1.x.
  • All open PRs are semver minor/patch, except Linus' Add support for WebP decoding #1280, which I think should be 3.x because it drops Node.js 6.x support.
  • Five possible semver-major issues open, but none have activity and another semver-major release can come in the near future.
  • Prebuilds are working fairly smoothly. The largest improvement would probably come from uploading the binaries in the npm tarball itself, but the builds are too large right now. Using N-API so we have a stable ABI would require Node.js 10 for non-experimental support. I think the dependencies could be deduped between ABI builds though (should only need one per platform).

Closes #743
Closes #916

@LinusU
Copy link
Collaborator

LinusU commented Oct 14, 2018

except Linus' #1280, which I think should be 3.x because it drops Node.js 6.x support.

👍

Five possible semver-major issues open, but none have activity and another semver-major release can come in the near future.

I've actually addressed one of them as a side effect in #1280, in that PR all loading is async

Prebuilds are working fairly smoothly.

👍


Let's do this! I'm ready to cut a release whenever, should we sync up so that we can get the prebuilt packages done just after?

ping @chearon

Actually, I'll merge and release this, but keep it under the next tag on npm until we get the prebuilds out. Then we can just update the latest tag to point at 2.0.0 as well, and all users will start getting that version.

Thanks everyone for all of the great help building 2.x, it's really been amazing! ❤️ 🚀 🎉

@LinusU LinusU merged commit 2cf63ee into Automattic:master Oct 14, 2018
@LinusU
Copy link
Collaborator

LinusU commented Oct 14, 2018

Just realized that I maybe was a bit quick in merging this, just got so excited ☺️

I haven't put this under the latest tag on npm yet, so feel free to chime in with any feedback, it's not too late to change things. If anyone felt that they didn't get enough time to comment I'm really sorry about that 🙈

@asturur
Copy link
Contributor

asturur commented Oct 14, 2018

give me time to read the next major breaking PRs, please, if one of them is fabricJS related i could consider doing a deep dive.

From alpha to release without beta and rc, i was not prepared yet

@asturur
Copy link
Contributor

asturur commented Oct 14, 2018

All the semver major open issues looks like not so important from a functionality stand point ( TO ME ).

I have 2 questions:

why adding ctx.filter should be a major break?

also

How we are with fonts? can we actually define 2 fonts file, with the same family but different bold/italic style and having it working? this is important for me and i available to make it work if possible

@zbjornson zbjornson deleted the zb/200 branch October 14, 2018 20:09
@zbjornson
Copy link
Collaborator Author

I've actually addressed one of them as a side effect in #1280, in that PR all loading is async

@LinusU I was going to ask if you wanted to pull out the nice refactoring you did in #1280, separate from WebP support.


@asturur :

why adding ctx.filter should be a major break?

We use ctx.filter currently for setting quality of some operations. Since that was added (years ago), a standard property with the same name was added: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter. We need to rename our filter property. We could do that quickly now.

can we actually define 2 fonts file, with the same family but different bold/italic style and having it working?

I believe so. The API allows it, and I think the upstream pango bug that caused incorrect font selection was fixed with @chearon's patch.

BTW, since fabric uses jsdom: I have a jsdom PR open already. I need to update it a bit, but jsdom's package.json is set to use 1.x (not "latest"), so publishing 2.x won't break jsdom immediately.


I just closed my proposed #934 (see reason there).

@asturur
Copy link
Contributor

asturur commented Oct 14, 2018

i would ask to use this major release to rename .filter in .somethingElse and leave open for implementing filters ( hardly someone will do that ) with a minor patch.

@asturur
Copy link
Contributor

asturur commented Oct 14, 2018

BTW, since fabric uses jsdom: I have a jsdom PR open already. I need to update it a bit, but jsdom's package.json is set to use 1.x (not "latest"), so publishing 2.x won't break jsdom immediately.

I know about this PR, i think i was also in the PR asking to backport to 9.12 that was last node 4 working version of jsdom. Since node 4 is officially out, i ll probably update to fabric 3.0 dropping node4 so i can switch to all the new stack.

@asturur
Copy link
Contributor

asturur commented Oct 14, 2018

Is also unclear to me where is the connection between fonts in jsdom and node-canvas and if this is something that should be added.

Other question: Is svg supported out of the box? or prebuilt binaries still do not support it?

@zbjornson zbjornson mentioned this pull request Oct 14, 2018
1 task
@chearon
Copy link
Collaborator

chearon commented Oct 15, 2018

ping @chearon

On it! When the binaries are all listed here you can update the tag.

Other question: Is svg supported out of the box? or prebuilt binaries still do not support it?

Just not on Windows right now: node-gfx/node-canvas-prebuilt#42. We can update the binaries retroactively if absolutely necessary.

@LinusU
Copy link
Collaborator

LinusU commented Oct 16, 2018

@chearon I've unpublished 2.0.0 and published 2.0.1, would you mind starting a new job for the prebuilds? Sorry about the mess 🙈

@chearon
Copy link
Collaborator

chearon commented Oct 16, 2018

No worries, all done!

@LinusU
Copy link
Collaborator

LinusU commented Oct 18, 2018

screenshot 2018-10-18 at 08 38 20

We're live! 🎉 🌮 🚀

@asturur
Copy link
Contributor

asturur commented Oct 18, 2018

cannot wait to upgrade everything and finally have svg tests on node for fabricjs.

Also looking forward filling the gap on text position on scaled context.

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.

4 participants