-
Notifications
You must be signed in to change notification settings - Fork 39
chore(deps): update dependency @lwc/compiler to v7 j:kit-282 #3625
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
Conversation
|
Pull Request Report PR Title ✅ Title follows the conventional commit spec. Bundle Size
SSR Progress
Detailed logssearch : buildInteractiveResultsearch : buildInteractiveInstantResult search : buildInteractiveRecentResult search : buildInteractiveCitation search : buildGeneratedAnswer recommendation : missing SSR support product-recommendation : missing SSR support product-listing : missing SSR support case-assist : missing SSR support insight : missing SSR support commerce : missing SSR support |
|
After investigation it would be best to stay on
|
erocheleau
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stay on 5.x.x for @lwc/compiler.
34c82b3 to
64e50ab
Compare
8fb1cfc to
b457154
Compare
c6eda1b to
b46866b
Compare
b46866b to
1660570
Compare
@erocheleau can you open a PR to "lock" lwc/compiler to v5 then?, see renovate.json for examples. |
1660570 to
ec6e150
Compare
2e1d72f to
d0459b5
Compare
d0459b5 to
9d2de46
Compare
|
@erocheleau, salesforce/sfdx-lwc-jest#356 thsi got merged, and is included in #3765. |
9d2de46 to
6d6329f
Compare
67af92b to
5121d46
Compare
5121d46 to
2520c64
Compare
2520c64 to
2070951
Compare
2070951 to
1a3fa90
Compare
1a3fa90 to
5e86dba
Compare
5e86dba to
ce96977
Compare
ce96977 to
d1778ab
Compare
d1778ab to
08a1245
Compare
08a1245 to
5a117e2
Compare
5a117e2 to
edeee48
Compare
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This PR contains the following updates:
5.3.0->7.2.2Release Notes
salesforce/lwc (@lwc/compiler)
v7.2.2Compare Source
What's Changed
release:versionscript by @nolanlawson in https://github.com/salesforce/lwc/pull/4475Full Changelog: salesforce/lwc@v7.2.1...v7.2.2
v7.2.1Compare Source
What's Changed
ssr-compilerfixture tests withengine-serverby @nolanlawson in https://github.com/salesforce/lwc/pull/4406getStylesheetsContentby @nolanlawson in https://github.com/salesforce/lwc/pull/4404@lwc/shareddep by @nolanlawson in https://github.com/salesforce/lwc/pull/4415New Contributors
Full Changelog: salesforce/lwc@v7.2.0...v7.2.1
v7.2.0Compare Source
What's Changed
Full Changelog: salesforce/lwc@v7.1.2...v7.2.0
v7.1.3Compare Source
What's Changed
Full Changelog: salesforce/lwc@v7.1.2...v7.1.3
v7.1.2Compare Source
What's Changed
Full Changelog: salesforce/lwc@v7.1.1...v7.1.2
v7.1.1Compare Source
What's Changed
Full Changelog: salesforce/lwc@v7.1.0...v7.1.1
v7.1.0Compare Source
What's Changed
insertBeforewith 1 arg by @manoharsiriki in https://github.com/salesforce/lwc/pull/4359data-lwc-host-mutatedduring SSR by @nolanlawson in https://github.com/salesforce/lwc/pull/4358New Contributors
Full Changelog: salesforce/lwc@v7.0.5...v7.1.0
v7.0.5Compare Source
What's Changed
parseHTMLUnsafepolyfill by @nolanlawson in https://github.com/salesforce/lwc/pull/4367Full Changelog: salesforce/lwc@v7.0.4...v7.0.5
v7.0.4Compare Source
What's Changed
xlink:hrefby @nolanlawson in https://github.com/salesforce/lwc/pull/4346yarn lint --fixby @nolanlawson in https://github.com/salesforce/lwc/pull/4355.onlysupport by @nolanlawson in https://github.com/salesforce/lwc/pull/4356Document.parseHTMLUnsafeby @nolanlawson in https://github.com/salesforce/lwc/pull/4357.eslintrcon commit by @nolanlawson in https://github.com/salesforce/lwc/pull/4361<a>/<area>hrefby @nolanlawson in https://github.com/salesforce/lwc/pull/4354Full Changelog: salesforce/lwc@v7.0.3...v7.0.4
v7.0.3Compare Source
What's Changed
Full Changelog: salesforce/lwc@v7.0.2...v7.0.3
v7.0.2Compare Source
What's Changed
id/IDref attributes by @nolanlawson in https://github.com/salesforce/lwc/pull/4330New Contributors
Full Changelog: salesforce/lwc@v7.0.1...v7.0.2
v7.0.1Compare Source
What's Changed
content.childNodesby @ekashida in https://github.com/salesforce/lwc/pull/4311spellcheckby @nolanlawson in https://github.com/salesforce/lwc/pull/4317Full Changelog: salesforce/lwc@v7.0.0...v7.0.1
v7.0.0Compare Source
LWC v7.0.0 contains breaking changes. Please read carefully below if you are upgrading from v6.
If you are upgrading from v5, please upgrade to v6 first.
New features
classes in templatesthis.stylefor a more ergonomic way to change component styles at runtimethis.hostElementfor an alternative tothis.template.hostthat works in light DOMSummary of breaking changes
this.stylepropertythis.hostElementproperty@lwc/template-compilerAPI changesBreaking changes
Class object binding
Class object binding is a new feature that makes it more ergonomic to render
classattributes in your LWC components. As part of this feature,classrendering has changed for some uncommon use cases.If you are using a dynamic
classin your template:Then the rendering of this
classmay change if you were previously definingmyClassas something other than a string,null, orundefined.For example, consider if
myClassis a boolean:Old behavior:
This renders:
New behavior:
This change applies to booleans, numbers, functions, arrays, and objects. Below is a table summarizing the change:
trueclass="true"class=""1class="1"class=""() => {}class="() => {}"class=""["a", "b"]class="a,b"class="a b"{ a: true }class="[object Object]"class="a"In short:
This may break a component if it is using a CSS selector like these:
Or if it is using
querySelectoror other traversal techniques that rely on the class name:In rare cases, this can also cause breakages across component boundaries. For example, if you have a global stylesheet relying on light DOM or synthetic shadow DOM, and thus the ability to pierce inside of components you don't own, then the above CSS selectors would break in that case as well.
To resolve any breakages:
class="false"orclass="1"), convert it to a string usingString(value).This change may also require updating snapshots, e.g. in Jest tests.
New
this.stylepropertyComponents can now access their
CSSStyleDeclarationusingthis.style:This is a breaking change if the component uses
this.styleas an expando:In the above case, the component author may assume that
this.styleis initiallyundefined, and then set it to a new value ("foo"). After this change, the above code will not work as expected, becausethis.styleis initially truthy rather thanundefined.To resolve this, set a class property on the component, initialized to
undefined, rather than using an expando:+ style = undefined renderedCallback() { if (!this.style) { this.style = "foo" } }You may also rename your
this.styleexpando to something else (e.g.this.customStyle).New
this.hostElementpropertyComponents can now access
this.hostElementas a convenient alternative tothis.template.host:Additionally, this works in light DOM components to access the "host" element (similar to the
:hostCSS pseudo-class in light DOM scoped styles). This provides an ergonomic way to access the rootHTMLElementobject in either light DOM or shadow DOM components.Similar to the new
this.styleproperty, this is a breaking change if you are usingthis.hostElementalready as an expando. Refer to thethis.stylerelease notes for a resolution.Improved TypeScript types
The TypeScript definitions for the
lwcpackage are greatly improved, to more closely match the ground truth of the actual APIs forLightningElement,createElement, etc. at runtime. You may need to adjust your TypeScript code or version to adapt to the new typings.Summary
"ESNext".ContextValuehas been renamed toWireContextValue.ContextConsumerhas been renamed toWireContextConsumer.Contextualizerhas been renamed toWireContextProvider.StylesheetFactoryhas been renamed toStylesheet.StylesheetFactorieshas been renamed toStylesheets.StringKeyedRecordhas been removed. Instead, use the typeRecord<string, any>.ShadowSupportModehas been removed. Instead, use the string values"any","reset", or"native".WireAdapteris now a generic type with a default type parameter.WireAdapterConstructoris now a generic type with a default type parameter.this.templateis now possibly null, reflecting the state for components using light DOM.this.template.hostin aLightningElementis now typed asHTMLElement, rather than the broaderElement.createElementhas been updated to reflect the fact that the element created contains the@api-decorated props from the component definition.LightningHTMLElement, has been introduced to provide an easy way of accessing the return type."lwc"now provides module definitions for HTML/CSS imports. The module definitions are also available by directly importing a new package,@lwc/types.Common breakages and fixes
import myComponent from './my-component.html')@lwc/typesorlwc/typessomewhere in your project. I.e.:import '@​lwc/types'.StringKeyedRecordRecord<string, any>or similar.ContextValueWireContextValue, but it's really justRecord<string, any>, so you could use a more precise type instead.ContextConsumerWireContextConsumerContextualizerWireContextProvidercreateElementHTMLElement & MyComponentApiDecoratedProps. You have to define your own interface to get the@apidecorated props, because TypeScript can't detect that. (You can use your component class, but that includes all component andLightningElementprops, not just component@apidecorated props, so it's not ideal.)this.templateis possibly undefined?.) or non-null assertion (!.)ClassMemberDecoratorContext(or other decorator type)@lwc/template-compilerAPI changesDue to a refactoring of the
@lwc/compilerand@lwc/template-compilerpackages, the@lwc/template-compilercompilefunction now requires the component's file name (i.e. thenamespaceandnameoptions) when compiling the template.To resolve the breaking change, add the new options. For example:
What's Changed
this.hostElementbehind API version 62 by @nolanlawson in https://github.com/salesforce/lwc/pull/4308New Contributors
Full Changelog: salesforce/lwc@v6.7.2...v7.0.0
v6.7.2Compare Source
What's Changed
v6.7.2by @rax-it in https://github.com/salesforce/lwc/pull/4297v6.7.2by @rax-it in https://github.com/salesforce/lwc/pull/4300Full Changelog: salesforce/lwc@v6.7.1...v6.7.2
v6.7.1Compare Source
What's Changed
Full Changelog: salesforce/lwc@v6.7.0...v6.7.1
v6.7.0Compare Source
What's Changed
Full Changelog: salesforce/lwc@v6.6.7...v6.7.0
v6.6.7Compare Source
What's Changed
v.6.6.7by @rax-it in https://github.com/salesforce/lwc/pull/4276Full Changelog: salesforce/lwc@v6.6.6...v6.6.7
v6.6.6Compare Source
What's Changed
Full Changelog: salesforce/lwc@v6.6.5...v6.6.6
v6.6.5Compare Source
What's Changed
Full Changelog: salesforce/lwc@v6.6.4...v6.6.5
v6.6.4Compare Source
What's Changed
New Contributors
Full Changelog: salesforce/lwc@v6.6.3...v6.6.4
v6.6.3Compare Source
What's Changed
--allfrom build script to enable using--projectby @wjhsf in https://github.com/salesforce/lwc/pull/4192<style>validation by @nolanlawson in https://github.com/salesforce/lwc/pull/4201Full Changelog: salesforce/lwc@v6.6.2...v6.6.3
v6.6.2Compare Source
What's Changed
@lwc/engine-servercircular dependency warning by @jmsjtu in https://github.com/salesforce/lwc/pull/4194@lwc/engine-servertest fixtures for attribute ordering by @jmsjtu in https://github.com/salesforce/lwc/pull/4193Full Changelog: salesforce/lwc@v6.6.1...v6.6.2
v6.6.1Compare Source
What's Changed
traverseAndSetElementsby @nolanlawson in https://github.com/salesforce/lwc/pull/4181Full Changelog: salesforce/lwc@v6.6.0...v6.6.1
v6.6.0Compare Source
What's Changed
Full Changelog: salesforce/lwc@v6.5.3...v6.6.0
v6.5.3Compare Source
What's Changed
swapStyle()on CSS library by @nolanlawson in https://github.com/salesforce/lwc/pull/4162Full Changelog: salesforce/lwc@v6.5.2...v6.5.3
v6.5.2Compare Source
What's Changed
Full Changelog: salesforce/lwc@v6.5.1...v6.5.2
v6.5.1Compare Source
What's Changed
Array#splicein mutation tracking by @nolanlawson in https://github.com/salesforce/lwc/pull/4129Configuration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.