-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
🚢 3.0.0 planning issue #2232
Comments
Added Pango 2, which will solve a ton of font issues. Should N-API be considered a breaking change? I plan on testing a lot, but it will introduce at least a few regressions. |
Nice! 🙌
Might be a good idea 👍 |
can we instead remove the hole |
why should OffscreenCanvas extend EventTarget? |
Is |
@zbjornson I saw that you pushed a v3.0.0 commit & tag to the repo, but we haven't published it to npm yet. The package.json still says that Node.js 10 is minimum version, and no other of the breaking changes are in yet. Maybe we can add a few more breaking changes now before we re-tag and publish 3.0.0 to Npm? Or we consider 3.0.0 shipped and the breaking changes discussed above will go in 4.x... I'll open some PRs which we could consider. pinging @chearon also, do you have any input? |
According to MDN, |
Seems that the Mac build and the Windows tests are failing after the N-API refactor, maybe those would need to be fixed first in order to publish the package? :) |
It's not published to NPM because the Windows prebuilds aren't working (and neither @zbjornson or I have looked - that's always a huge time sink). |
Specifically, the NAPI port means that prebuilds need to be reworked (#2235 (comment)) and I haven't had time to do that. In the meantime, I tried to make Node.js v21 prebuilds for the latest 2.x version, but those failed on Windows as Caleb said. #2295 (comment) As far as more changes, I favor deferring other changes to 4.x+ since the NAPI port unblocks using node-canvas in Bun and that work is done. |
I'm all for releasing early! So I don't think we should block on anything else, but e.g. just bumping our minimum supported Node.js version (#2310) I think would be really nice to get in just so that we don't have to support old versions of Node.js that probably aren't used much, since they are end of life. Are you two open on merging breaking changes until the prebuilds are fixed and we are ready to publish to npm? How do you feel about raising supported version as I did in #2310? |
Good with me as long as they don't make the current prebuild troubles worse :)
👍 |
I've fixed the tests and increased the minimum version of Node.js. Since the Node.js version is increased now, I don't think that #2309 is a breaking change anymore so no need to rush that. Pango 2 doesn't seem to be released yet, so that change will not make it I guess. I would have loved to land If I have time, I could implement those in a branch and then we could hold off on merging until prebuilds are done and we see that they work together... We also need to update the 1️⃣ I move the v3.0.0 commit using If we don't think it will cause too many issues, I kind of prefer 1️⃣, just so that every release to npm matches up with a commit that bumps the version. This is probably something that should be enforced using Npm package provenance in the future... |
The v3.0.0 release needs to merge #2309. When will you plan to merge it? |
Is v3 done yet? |
I was so happy to find out today that @zbjornson finished prebuilds (#2235) (it was a while ago, but I'm only recently carving out new free time...). I think that was the only blocker for 3.0.0? I don't think we're going to get any feedback on the alpha releases.
I haven't seen any updates to the
Yeah, that messed up the changelog too. I like 1️⃣ as well, I just hope it doesn't cause too much trouble.
|
Oh yeah thanks, I forgot about that. I'll review/merge next time I get time. |
I have been waiting since several years to get my PRs for screen drawing merged, at least the one adding the ScreenBackend abstract class... That would fix and clean-up the rendering backend APIs and allow to add new ones later easily. |
I have a node project which uses canvas. I was looking to migrate it to deno. I believe 3.0.0-rc2 has a fix for missing node_module_register symbol error. When is the release planned for 3.0.0? Here is the link to the issue I opened in the deno repo. |
3.0 is released! |
Things to consider for the 3.0.0 major version:
Canvas
class toOffscreenCanvas
OffscreenCanvas
extend Node.jsEventTarget
Image
andImageData
behave like browsers (using node-gfx/image & node-gfx/image-data)simple-get
with Node.js builtinfetch
FontFace
anddocument.fonts
based API instead ofregisterFont
fillGlyphs(face, glyphIds)
API for fast rendering if shaping has already been done (e.g. harfbuzzjs)Please note that this issue is for discussing breaking changes and not a place for general feature requests!
The text was updated successfully, but these errors were encountered: