You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a currently working example, where I use my <code-mirror> HTML element inside of a <live-code> HTML element to make my static HTML pages live-editable:
I think this might be something we have to consider in the age of import maps with semver CDN URLs. It is now something I have to try to remember for my libs too, as I strongly engourage people to use versions in import map CDN URLs, and don't want them to have broken apps if they use a compatible range such as ^ which is supposed to pull the latest non-breaking version.
Browser and platform
No response
Reproduction link
No response
The text was updated successfully, but these errors were encountered:
find-cluster-break is a new dependency of @codemirror/state, since 6.5.0. It is properly declared in package.json, so if your setup isn't installing it that would be an issue with your CDN or your use of it.
Describe the issue
Here's a currently working example, where I use my
<code-mirror>
HTML element inside of a<live-code>
HTML element to make my static HTML pages live-editable:https://github.com/trusktr/trusktr/blob/44151b83f8cd8d9759f14391f59290470798ec47/index.html
The
importmap.js
has the CodeMirror dependencies:https://github.com/trusktr/trusktr/blob/44151b83f8cd8d9759f14391f59290470798ec47/importmap.js
If we update
@codemirror/state
from6.4.1
to6.5.2
, the app will break with this error:This is not a breaking change with the API, but if change the URL from this pinned version,
to one that has a semver version range,
then it will automatically get the latest "compatible" in-range version, https://cdn.jsdelivr.net/npm/@codemirror/[email protected]/dist/index.js at time of writing, which currently adds the new import of a missing dependency,
I think this might be something we have to consider in the age of import maps with semver CDN URLs. It is now something I have to try to remember for my libs too, as I strongly engourage people to use versions in import map CDN URLs, and don't want them to have broken apps if they use a compatible range such as
^
which is supposed to pull the latest non-breaking version.Browser and platform
No response
Reproduction link
No response
The text was updated successfully, but these errors were encountered: