-
Notifications
You must be signed in to change notification settings - Fork 666
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
4.0.0 #1155
Comments
@mscuthbert @rvilarl @tommadams @0xfe Please cc any others that we'd like to include on this discussion. @mscuthbert started this disussion at #1149 Let's freeze any features soon-ish :-). Then we can just test and fix tiny bugs before we cut the 4.0.0 release. |
@ronyeh I do not know how to add cards to the project :( Anyway I suggest:
|
Let me add those to the project board. The project seems like a visual way to organize GitHub issues (like a basic version of Trello), so if there is a really important item to include in 4.0.0, I'd recommend turning it into a GitHub issue, and then I'll track it using the project kanban. As for your two items:
|
For documentation the necessities to me are:
numbers 1 and 2 are actually missing from all current versions. I think 3 is still good. |
Thanks for the heads up! One feature that I would personally like to get in that feels like it belongs to a major point release is the ability to construct your own render context and pass it to the I think all that is required is a light refactoring and moving some code from As for why... I've hacked together an SVGContext that generates a string rather than a DOM object, which could in theory allow Vexflow to run as a webworker without an offscreen canvas: it seems like widespread support for that feature is a long way off. Text measurement is a tricky issue but can technically be solved with a text measurer object that runs on the main thread and communicates with the webworker via messages. What to folks think? |
:-) Send in a PR and we can all decide if it'll be in 4.0.0 or 5.0.0, haha. (Michael seems to be itching to get a 4.0.0 out 😃.) It sounds cool though. So this PathContext (or whatever you named it) just builds an internal string representation (or an array of strings, which is ultimately joined)? It reminds me of the d3 path module, which I ran across a while back: https://github.com/d3/d3-path/blob/main/src/path.js As long as the PR isn't too crazy, I don't see why not. So let's say we'll allow Rodrigo, Ron, and Tom each the opportunity to include one last personal pet PR into the 4.0.0 release. Then we're feature frozen and can only test and fix minor GitHub issues until Mohit decides he wants to publish it to npm and unpkg. :-) |
A trello style project board is probably too much overhead since we only have a few collaborators. I put up a wiki page instead: https://github.com/0xfe/vexflow/wiki/TODOs-for-4.0.0 It's probably safest if you open an issue and then just add a URL to that issue into the wiki for tracking purposes. I have no idea what happens if two people edit the wiki simultaneously, so be careful. :-) |
Yeah, I'm a release often type of person (at least philosophically -- some projects are too much of a pain to build a release for). And I know I'll ramp up my contributions to VF 4+ more once I'm seeing it every day in my projects. Pinning a release to master or another moving target isn't something I'm comfortable doing except in hobby projects. |
I think we've forgotten to tag @h-sug1no in this discussion who has contributed so much since the end of 1.2 also. |
+1 for @mscuthbert's comment about releasing early and often, and staying on @tommadams generating an SVG string sounds really useful for many reasons -- that PR is happily welcomed! |
Thank you for notifying me! Right now, I don't have any projects that depend on vexflow, so I don't have any special requirements for 4.0.0. |
v4.1/5 request that I'm willing to implement once this is out: |
Yes, also for other elements, especially when they have a class, e.g. In OSMD, we added this for TabNotes as well ( |
same, the main modification I have in my branch for smoosic is to be able to put many elements into groups. For any application that's interactive, you need to know where everything is. |
Awesome, it sounds like for version 4.1, we will have SVG group tags for everything! @mscuthbert can open a GitHub issue for this and @sschmidTU / @AaronDavidNewman can review the PR when it is submitted (post 4.0 release). |
I feel that we should set a deadline for 4.0. If some 4.0 are not ready by then, we can just delay them. What do you think? This weekend 10.10? That would be exiting! |
I'm out this weekend until mid next week. For a major revision I'd rather have the major contributors each give a thumbs up re: features and known bugs, than commiting to a particular date. :-) But that's my opinion. If others want to pin a date down, that's fine with me. I can always get my contributions merged into a future version! |
The date could be delayed but October sounds good. This would stop the feedback on 3.0.9 and setting a date would be a little bit more agile :) |
I'm thumbs up. The only things that need to absolutely need to happen by 4.0.0 is anything that we've removed planning to add back in another way needs to be restored. I haven't seen anything like that left on the list. There's always 4.0.1 for fixing bugs we missed, 4.1 for adding more features, and 5.0 for doing more refactors. They can be November, December, and January releases if that's when we're ready. The numbers don't mean very much except for semantic versioning. Thanks! |
I agree it should be beneficial to release a new version rather soon. There will probably be very quick feedback and new versions very soon after that - no matter how much time is taken for 4.0. So, instead of trying perfectionism, this seems more pragmatic to me :) it will also be nice to test the new npm release (i hope there will be one). |
Now that we are changing the API in 4.0 I would like to add #1070 making those member protected and providing access functions |
I'm happy to try my best to support an October release if everyone else is into it. (Just be aware there are lots of little maintenance things that will have to be done, especially by Mohit....unless he wants one of us to do the I will be able to find some time starting later this week. I'd like to wrap up my Font PR and present it to you all to see if you'd like it in the 4.0 release. |
Question for y'all: what's the best way to do a staging release so that people can easily npm install and test against their projects? @0xfe would it be okay for us to npm publish a "vexflow-beta" project that includes a big disclaimer about providing no support and to not use it in production? That way Simon and Myke and others can npm install from that project and tell us what things are broken, and where our changelog / migration guide is insufficient. (Yes, currently we don't have a migration guide, and the changelog is insufficient....) For the vexflow-beta npm package, I would have the major and minor revision track with the release number. But the third digit will just be an integer that increments anytime we need to make another beta release, until we are ready to publish the official release. To prevent confusion, we could start the third number at like 9000 or something weird. Then just increment by +1 any time a PR is merged. |
Recently we had a discussion about whether we should be checking in releases (e.g., vexflow-min.js) into the repository. From the main README, I see that we are serving releases from unpkg.com: https://github.com/0xfe/vexflow/#using-the-html-script-tag If we want to eliminate the production builds from the repo, while continuing to support the unpkg URL, perhaps we can utilize Another potential issue: If someone included a |
@0xfe when are you planning to do the October release? |
@ronyeh yes, the 4.0 release will break pages that use that URL -- I think it's fine though, because there's an expectation that things will break when you don't use version numbers in your tags. We can either:
|
@rvilarl I can push whenever we think we're ready. I'm waiting for you, Ron, Michael to say when. I'll build/test, run some additional sanity tests, and push out a beta 4.0. I'd like to update vextab to support 4.0 before it becomes final. |
@0xfe I will stop submitting PRs. I believe that it is now more important to release. So once #1193 #1195 #1196 #1198 #1199 are either merge or rejected I am ready to go. |
Hey guys, I have a small fix that I am pushing right now for some of the hardcoded metrics. It fixes issues:
I have no interest in whether it is included in 4.0.0 release, but I wanted to let you know. Since it is only metrics for these glyphs that are affected, there should be no impact on other visual regression tests. |
Hi all, Sorry I've been holding up the release. I will devote more time this week to help wrap things up. The Font PR is pretty close. I still need to add more tests. I'm happy with it, but unfortunately its scope has ballooned quite a bit. I'll share more details in the PR discussion over at: #1163 But the high level is that the Font PR contributes:
As for the release. Some questions I have are:
|
No problem, Ron. I'm in no rush, however this stuff can just keep going, so let's decide a way to time/feature box it. We can release with more frequency after 4.0. I don't have very credible answers for your questions (outside of early thoughts) -- wondering if there are best practices here. @mscuthbert how do you publish your typescript npm packages? |
This short article helped me to understand a little more. https://dev.to/loonywizard/how-to-publish-typescript-package-to-npm-2k54 I assume we publish:
As for avoiding feature creep, my Font PR is my last one (though it's a big one...). I see a bunch of other PRs lining up behind mine though. Maybe we need to make an executive decision that any completely new PR submitted after today, October 25, is not included in 4.0 (unless it's super high priority enough that you personally approve it). |
Also, we all should first try "npm link" on a local clone of VexFlow to make sure our projects that depend on VexFlow still work. This can be a quick first pass sanity check before you publish the beta. |
OK, maybe we can (arbitrarily) declare that PR #1199 is the last new/independent PR that will make it into 4.0. :-) Although my Font PR is a bit big, so upon your advice I might end up breaking it into several PRs for easier review. |
Oh, don't follow my practices -- I learned what I could about npm from Vexflow, so it's a circular argument. But I generally publish everything except generated docs, however, the only thing that people will really need are the min.js, the map file, and the .d.ts files that should be generated in types. I could not figure out how to create one single .d.ts file for music21j, so they're all separate files. |
I think that if the font PR is very big, why don't we put it in 4.1 or 4.0.0-beta-2 or something like that? I'd really like to do some testing on the 4.0 branch and Thanksgiving is my feature-freeze for infrastructure changes on another project; if I can't get a version of Vexflow working there by then, I'll need to wait until the summer to move up to 4. |
Hey @mscuthbert, I'm pretty invested in getting this Font PR merged into 4.0, mostly because I'd like to take a short break from VexFlow afterward to spend time on my other projects. I'll personally assist you with your project migration to 4.0. If I introduced a breaking change, I'll direct you to the new way of doing things. If the new way of doing things is terrible compared to 3.0.9, we can consider reverting some parts of the public API. Mostly, I think it'll be good for me and Rodrigo to provide (a little) assistance with migrating your project & OSMD's project & other people's projects to 4.0, because it will help us uncover stumbling blocks. We can either log those issues in CHANGELOG and a migration guide, or if truly necessary we can add a 3.0.9 compatibility API or revert something. |
Sounds good. Javascript Devs will use the js build, Typescript devs will probably build from the .ts sources. (OSMD builds from the .js sources currently) |
I agree that old release builds shouldn't be in the npm package. They probably shouldn't be checked out by default in the main git repo either. However for maintainers like us, there is a benefit to having easy access to old release builds for regression testing purposes. Options:
|
oh, you gotta have the declarations file otherwise all this typescript goes to waste. The entrance point for the typings goes in “typings” in the package.json
|
@AaronDavidNewman @mscuthbert @ronyeh @sschmidTU @0xfe I vote to make a first beta tomorrow and a second one next weekend. I am pretty sure that we will get many problems in the first one and we should just give it a try. Please use the thumbs. :) |
Sure I'm fine with beta. But has anyone else tried npm link yet? I ran into issues, and that's why I submitted the build improvements PR. |
Hi all, I want to ask a question about a possible slight restructuring of the npm package. Proposal for the structure of the NPM Package
One possible side benefit of keeping the What does everyone think? I'd be happy to let someone else take the lead on the restructuring of the npm package (e.g., @rvilarl). I have my hands full already trying to get my main Font PR reviewed and merged, hehe. This idea was inspired a little by how Tone.js structures their npm release. (I'm a fan of Tone.js if you can't tell.) |
Check out the latest version here: https://github.com/ronyeh/vexflow/tree/4.0.0-alpha The accompanying typescript example is here: https://github.com/ronyeh/vexflow-example-typescript You can also take a look at the Have fun, and let me know if you have any questions. I'll put together some docs / tutorials soon on how to integrate with VexFlow 4. I successfully did it with VexTab already, and there actually weren't many breaking changes. |
Congrats everyone on getting to 4.0-beta! I will keep this issue open as a meta / tracker issue and we can close it once the official release is out. Suggested PRs for refinements to 4.0 beta 2Better DocumentationI'd suggest updating and migrating the wiki docs into markdown files stored in the It's still nice to have really short (hello world / getting started) examples directly in the wiki and initial README. However, anything longer is tough to maintain / version / compile if it's not in the repository. For example, I was updating Rodrigo's docs on fonts from this summer, and I encountered a bunch of copy & paste typos. Totally understandable, since it's tough to write code inside triple tick marks inside the GitHub wiki editor! Native ESM supportThis is coming soon, and I will request your help in testing it for beta 2. Remove releases/ folderThis is coming shortly. The npm release is now directly stored in vexflow/build/. They can be served from jsdelivr or unpkg from the build/ folder, as many other libraries do. As an aside, I have been doing some testing this week and unpkg seemed less responsive to me than jsdelivr. Perhaps someone can do research into this? @0xfe I'd at least suggest including the jsdelivr CDN as an equal alternative to unpkg, so folks know that it is an alternative. Any more suggested refinement PRs, for beta 2?If you run into roadblocks during your migration to VexFlow 4 beta, please file a separate issue and @ tag me. |
My suggestion is to reduce the number of open issues to 50. |
I don't have an problem with keeping old issues around if we (eventually) want to handle them. However, if there is no momentum for something, or if an issue is no longer actionable due to it being outdated or too vague, we can always close it. The originator of the bug can always submit a new one if it still applies to his/her project, and we can investigate (as long as we can repro). |
+1 for just closing old issues |
Moving the 4.0.x release discussion to: |
I'm going to open the discussion as a GitHub issue. When we ship it, we can close this issue and celebrate. :-)
I started a kanban here.Edit: a trello style project board is probably too much overhead since we only have a few collaborators. I put up a wiki page instead: https://github.com/0xfe/vexflow/wiki/TODOs-for-4.0.0
Myke started a thread on the vexflow mailing list. We can monitor it for any replies: https://groups.google.com/g/vexflow/c/e61nXKB-dKo
Please list your "must-haves" and also "nice-to-haves" below. The rest can be punted to version 4.1.0, or version 5.0.0. We can re-organize any items if necessary on the project board: https://github.com/0xfe/vexflow/projects/4
The text was updated successfully, but these errors were encountered: