html no longer exported from @milkdown/kit/component #1878
Replies: 2 comments
-
Hi, Thanks for reporting this. I didn't follow the semver because of the same reasons mentioned in this article:
In the past versions of milkdown. The v6 to v7 is a major porject level change becuase we've migrated to a headless editor framework and introduced the crepe editor. So I hoped v8 can be that kind of big announcement. And the update in But your opionions are really valuable and reminds me that users expect the project to follow semver. So I'll reconsider how can I make it possible to have something like a |
Beta Was this translation helpful? Give feedback.
-
Thanks for the context! I understand your need to make changes so that your dependencies stay up to date and that can cause breaking changes for library users. That's not an issue. It's more the minor version breaking change and lack of docs (and an explanation like this one you just shared) that caught me off guard. I love the library and appreciate all the work you've shared. Thanks again! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Initial checklist
Affected packages and versions
7.9.0
Link to runnable example
No response
Steps to reproduce
import { html } from "@milkdown/kit/component";
html
functionExpected behavior
I would expect that
import { html } from "@milkdown/kit/component";
would continue to work for a minor release, or the migration path to the current release would be documented somewhere.The CHANGELOG for v7.9.0 states it's a minor version. It also shows major breaking changes. Public APIs have been changed.
Actual behavior
You'll get something like
... does not provide an export named 'html'
in the build output because this API has been moved.I updated my customization of
renderLanguage
to the sample below, but there was 0 documentation that this would be required.All that said, I wouldn't need to customize
renderLanguage
ifLanguageDescription
could accept a customdisplayName
.This would allow me to display
C#
in the code menu drop down but renderlanguage-csharp
which is the name required by Prism.Runtime
Chrome
OS
Windows
Build and bundle tools
Vite
Beta Was this translation helpful? Give feedback.
All reactions