-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Storybook Web Components] Changes in next major release of lit-html #13489
Comments
Thanks so much for the heads up @Westbrook 🙏 Any rough ETA on the Currently Something like: let isTemplateResult = (element) => (element instanceof TemplateResult);
try {
// if 2.0 is installed
{ isTemplateResult } = require('lit-html/directive-helpers.js');
} catch() {}
... I've also created an issue #13491 to aggregate some of the possibly breaking changes that are piling up. I'd consider doing a prerelease with a breaking change, but that's a ton of work so I'd prefer a less disruptive solution if we can swing that. WDYT? |
First, the good news, I also brought this up with the This last week Thanks for being interested in addressing this @shilman! In that there may be a number of small or large breaks up coming, I also submitted #13493 which should prepare the web components build for even more future capabilities. |
Huzzah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.3.0-alpha.43 containing PR #14898 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Currently the web components version of Storybook depends on lit-html in it's rendering of stories using the following
instanceof
checking across a couple of different locations:storybook/app/web-components/src/client/preview/render.ts
Line 20 in 8232c4c
The upcoming release of
[email protected]
(currently available as2.0.0-pre.5
) will be removing the ability to leverage this in favor of aisTemplateResult()
helper method.I don't know if there is any bundler magic that would allow a non-breaking change to this Storybook package to support both of these release version, or if we could start seeing a beta release of a 7.0 of this package, but I wanted to open the conversation as to what options might be available to see support for this.
I'd be happy to submit a PR with the discrete update to the updated technique, if that was appropriate.
Please advise.
The text was updated successfully, but these errors were encountered: