Releases: salesforce/lwc
Releases · salesforce/lwc
v1.3.0
Improvements
- #1722 - synthetic-shadow: Default implementation for programmatic focus when delegating focus. Components using
delegatesFocus
now have afocus()
method that follows shadow semantics and focuses on the first focusable element in its shadow tree. This change is backwards compatible with components that define their ownfocus()
method.
v1.2.5
v1.2.4
Bug Fixes
- #1709 - synthetic-shadow: Refine the focus delegation behavior. The focus delegation polyfill assumed that any element with an
href
attribute was sequentially focusable via keyboard. This was tightened to only considera
andarea
tags withhref
attributes. In addition,iframe
s have also been added to the list of sequentially focusable elements.
v1.2.3
Improvements
- #1711 - engine: Add support for the
isConnected
property on component instances. This property
can be used to check if the instance is connected to the DOM.
Bug Fixes
- #1681 - wire-service: Fix a bug to discontinue usage of
WireContextEvent
event type to be consistent with the event naming standard.wirecontextevent
should be used instead.
Internal
v1.2.2
Bug Fixes
- #1704 - engine: Fix an infinite loop that was introduced during an internal refactor of how we resolve error boundaries. This bug was introduced in v1.2.0.
Internal
- #1696 - synthetic-shadow: Enable the toggling of feature flags used in the
@lwc/synthetic-shadow
polyfill. This change stores feature flag values globally such that all packages share a single instance of feature flags.
v1.2.0
Improvements
- #1687 - template-compiler: Add support for content attributes with leading hyphens. Until now, component authors were able to define component properties in Pascal case but users were not able to set those properties in their templates. Users can now set the value of a Pascal case property by adding a leading hyphen to the attribute (e.g.,
@api FooBar
can be set via-foo-bar={awesomeValue}
) - #1679 - wire-service: Add support for the lowercase event type
wirecontextevent
in addition to the currently supported event typeWireContextEvent
. This allows component authors to avoid engine warnings triggered when using event types with capital letters.WireContextEvent
is now deprecated and will be removed in a future release.
Bug Fixes
- #1676 - synthetic-shadow: Fix a bug in the
Event
polyfill so that the composed option is respected when instantiating an instance ofEvent
. The previous behavior ignored the composed option and only considered the type of the event when accessing the composed property of anEvent
instance. This polyfill exists to normalize the behavior of some browsers that incorrectly set the composed property of natively composed events.
Internal
- #1682: Remove usage of white/black as good/bad. Implements the “tone” guidelines for the WHATWG style guide.
- #1648 - engine: Remove the
instanceof Event
check inLightningElement.prototype.dispatchEvent
. The same check is run by the browser when invoking theEventTarget.prototype.dispatchEvent
method. Reduces the coupling between the engine and the DOM in preparation for server side rendering. - #1668, #1674, #1675: Review all disabled karma integration tests. Enable tests that can be enabled. Remove tests that are no longer relevant. Refactor tests appropriately based on their relevancy (native vs synthetic shadow).
- #1669 - karma-integration: Port existing webdriver integration tests to karma. Delete unnecessary tests. The goal here is to reduce the number of integration tests to the strict minimum to increase the integration test passing rate.
- #1692 - engine: Refactor the way error boundaries are computed by decoupling the logic from the DOM.
- #1683 - features: Fix a bug where unary negation of a runtime feature flag was being interpreted as a compile-time boolean false.
- engine: Improve our usage of internal types.
- #1694 - features: Remove support for feature flags as computed properties. This means that
featureFlags['ENABLE_FOO']
will no longer work and should be referenced asfeatureFlags.ENABLE_FOO
instead. - #1652 - synthetic-shadow: Add
tsc
as part of the build.tsc
should run before rollup to catch TypeScript-related errors.
v0.40.1-222.8
v0.40.1-222.8
1.0.0
Fix event determinism & minor bug fixes
Bug Fixes
- engine: patching events from lwc to be deterministic (#870) (8d3fc9f)
- compiler: add bundle entry name + filenames case validation (#902) (39b1e00)
- engine: to show shadow in IE11 devtool DOM explorer (#904) (6e2817f)
- jest-transformer: update @salesforce/apex transform (#924) (a3d6af5)
- Add crossorigin as valid img tag attribute (#918) (e861600)
- rollup-plugin: add stylesheetConfig to rollup-plugin options (#921) (ca43c83), closes #920
- compiler: remove misleading and useless stack info on CompilerError (#893) (860da4f)
- module-resolver: wrong path separator in glob call (#895) (7f1f954)
Minor bug fixes for IE11
Bug Fixes
- Fix IE11 constructor extension