fix(deps): update dependency lit-element to v4 #62
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.5.1
->4.1.1
Release Notes
lit/lit (lit-element)
v4.1.1
Compare Source
Patch Changes
99703a03
- Revert the Terser plugin for Rollup torollup-plugin-terser
from@rollup/plugin-terser
due to a bug that prevented our minified name prefixing from working.
v4.1.0
Compare Source
Minor Changes
feccc1ba
- Add MathML support with themathml
template tagPatch Changes
feccc1ba
]:v4.0.6
Compare Source
Patch Changes
abf30b3e
- The value provided by theref()
directive will always beundefined
when the element is disconnected.v4.0.5
Compare Source
Patch Changes
bd881370
- Fix the lit-html marker length to be consistently 9 characters.v4.0.4
Compare Source
Patch Changes
57b00630
- Add "browser" export condition entrypoints to any package.json files with "node"export conditions. This fixes Node test runners emulating browser environments that were incorrectly loading the
"node" entrypoints instead of the browser code.
1a32b61e
,e901c582
,57b00630
,dca963f7
]:v4.0.3
Compare Source
Patch Changes
#4473
9a4d569f
- Add a warning in dev mode when binding this.requestUpdate directly as an event listener.#4413
f60a3a2c
- Remove unused internal parameters torequestUpdate()
v4.0.2
Compare Source
Patch Changes
#4387
bf551b5b
- EnsurerenderRoot
exists before first update (#4268)#4282
c7922a0c
Thanks @MaxArt2501! - Fix a bug where accessing a@query
decorated field with thecache
flag set before the first update would result innull
being cached permanently.null
will no longer be cached before the first update and inDEV_MODE
now raises a warning.#4388
839ca0f8
- Fixes bug where adding or removing controllers during a reactive controller lifecycle would affect the execution of other controllers (#4266). Controllers can now be added/removed during lifecycle without affecting others.Updated dependencies [
949a5467
]:v4.0.1
Compare Source
Patch Changes
#4284
89a5b088
- Allownull
to be in the type of@query()
decorated fields#4306
c28ebba1
- Update dependency version to refer to stable versions, rather than pre-release versions of our own packages.v4.0.0
Compare Source
Major Changes
#3751
dfd747cf
- Simplify lit-html attribute handling for standards-compliant browsers that iterate attributes in source order#4254
1040f758
- Change the type ofReactiveElement.renderRoot
and return type ofReactiveElement.createRenderRoot()
to beHTMLElement | DocumentFragment
to match each other and lit-html'srender()
method.#4146
0f6878dc
- Generated accessor for reactive properties now wrap user accessors and automatically callthis.requestUpdate()
in the setter. As in previous versions, users can still specifynoAccessor: true
, in which case they should callthis.requestUpdate()
themselves in the setter if they want to trigger a reactive update.#3759
1db01376
- Use replaceWith() for SVG templates#3750
c3e473b4
- Use toggleAttribute() to simplify boolean attribute parts#3850
7e8491d4
- Delete deprecated queryAssignedNodes behavior and arguments.Migrate deprecated usage with a selector argument to use
@queryAssignedElements
. E.g.:@queryAssignedNodes('list', true, '.item')
to@queryAssignedElements({slot: '', flatten: false, selector: '.item'})
.#3754
76795a18
- Remove UpdatingElement alias for ReactiveElement#3765
92cedaa2
- Remove experimental hydrate modules. These are available from@lit-labs/ssr-client
.#3756
f06f7972
- Drop IE11 support#3896
2eba6997
- Warn on async overrides of performUpdate()Patch Changes
#4183
6470807f
- Make the decorators work with theaccessor
keyword whenexperimentalDecorators
is true.#3762
23c404fd
- Remove Lit 1 -> Lit 2 migration warnings#3918
2a01471a
- Some code golf on ReactiveElement#3809
6f2833fd
- Use for/of loops in more places#3710
09949234
- Addundefined
to the return type of PropertyValues.get()Updated dependencies:
#4141
6b515e43
- Update TypeScript to ~5.2.0v3.3.3
Compare Source
Patch Changes
#4031
8057c78d
- Rename ReactiveElement._initialize to __initialize, make it private, and remove the @internal annotation. This will help prevent collisions with subclasses that implement their own _initialize method, while using development builds.Updated dependencies [
e2c50569
]:v3.3.2
Compare Source
Patch Changes
4431cbb8
- Fix styleMap initial render of mixed-case custom propsv3.3.1
Compare Source
Patch Changes
#3720
575fb578
-lit-html/experimental-hydrate.js
andlit-element/experimental-hydrate-support.js
have been moved to@lit-labs/ssr-client
.The modules in the original location have been marked deprecated and will be removed in a future version.
v3.3.0
Compare Source
Minor Changes
b95c86e5
- [SSR only] Reflect ARIA attributes onto server rendered Lit elements with attached internals during SSR and remove them upon hydration.Patch Changes
4d698430
,b95c86e5
,e00f6f52
,88a40177
]:v3.2.2
Compare Source
Patch Changes
2fe2053f
- Added "types" entry to package exports. This tells newer versions of TypeScript where to look for typings for each module.v3.2.1
Compare Source
Patch Changes
634d4560
- Changed the caching behavior of the css`` template literal tag so that same-text styles do not share a CSSStyleSheet. Note that this may be a breaking change in some very unusual scenarios on Chromium and Firefox > 101 only.v3.2.0
Compare Source
Minor Changes
2c9d0008
- Added a devlog events system that may be used for debugging and visualizing Lit's internals.Patch Changes
2c9d0008
]:v3.1.2
Compare Source
Patch Changes
#2370
7453e365
- Replace square bracket links with thelinkcode
JSDoc tag.Editors will create a jump to definition hyperlink for the linkcode tag if the identifier is in scope.
#2410
b9a6962b
- Correct the link path of CONTRIBUTING.md in README.md filesv3.1.1
Compare Source
Patch Changes
39b8db85
- Fix missing decorators/query-assigned-elements.js filev3.1.0
Compare Source
Minor Changes
49ecf623
- AddqueryAssignedElements
decorator for a declarative API that callsHTMLSlotElement.assignedElements()
on a specified slot.selector
option allows filtering returned elements with a CSS selector.Patch Changes
08e7fc56
,fcc2b3d0
,eb5c5d2b
,49ecf623
,26e3fb7b
,d319cf5f
,1d563e83
,221cb0a9
]:v3.0.2
Compare Source
Patch Changes
76ed65d7
- Identify athis
reference for jscompiler.5fc3818a
- PreventpolyfillSupport.noPatchSupported
from implicitly beingany
.Deduplicate types for
DevMode
-suffixed polyfill support functions.v3.0.1
Compare Source
Patch Changes
ba5e1391
- Replace dynamic name lookups for polyfill support functions with static names.v3.0.0
Compare Source
Major Changes
Most users should no longer import directly from
lit-element
, and instead prefer importingLitElement
from thelit
packages. The default entry point forlit-element
remains backward-compatible and includes all decorators. However, it's recommended to useimport {LitElement} from 'lit';
and import decorators fromlit/decorators
as necessary. See the Upgrade Guide for more details.UpdatingElement
has been moved from thelit-element
package to the@lit/reactive-element
package and renamed toReactiveElement
. See the ReactiveElement API documentation for more details. In addition, the source forcss-tag
, and alldecorators
have been moved to@lit/reactive-element
. However, all symbols are re-exported from bothlit
andlit-element
packages.The
@internalProperty
decorator has been renamed to@state
.Errors that occur during the update cycle were previously squelched to allow subsequent updates to proceed normally. Now errors are re-fired asynchronously so they can be detected. Errors can be observed via an
unhandledrejection
event handler on window.The
lib
folder has been removed.Rendering of
renderRoot
/shadowRoot
) viacreateRenderRoot
and support forstatic styles
has moved fromLitElement
toReactiveElement
.The
createRenderRoot
method is now called just before the first update rather than in the constructor. Element code can not assume therenderRoot
exists before the elementhasUpdated
. This change was made for compatibility with SSR.ReactiveElement
'sinitialize
method has been removed. This work is now done in the element constructor.The static
render
has been removed.For consistency, renamed
_getUpdateComplete
togetUpdateComplete
.When a property declaration is
reflect: true
and itstoAttribute
function returnsundefined
the attribute is now removed where previously it was left unchanged (#872).The dirty check in
attributeChangedCallback
has been removed. While technically breaking, in practice it should very rarely be (#699).LitElement's
adoptStyles
method has been removed. Styling is now adopted increateRenderRoot
. This method may be overridden to customize this behavior.LitElement's
static getStyles
method has been renamed tostatic finalizeStyles
and now takes a list of styles the user provided and returns the styles which should be used in the element. If this method is overridden to integrate into a style management system, typically thesuper
implementation should be called.Removed build support for TypeScript 3.4.
Decorators are no longer exported from the
lit-element
module. Instead, import any decorators you use fromlit/decorators/*
.lit-html
has been updated to 2.x.Support for running in older browsers has been removed from the default configuration. Import the
polyfill-support
module to support Shady DOM. Note also that Lit parts inside<style>
elements are no longer supported. See Polyfills for more details.For simplicity,
requestUpdate
no longer returns a Promise. Instead await theupdateComplete
Promise.Removed
requestUpdateInternal
. TherequestUpdate
method is now identical to this method and should be used instead.#2103
15a8356d
- Updates theexports
field ofpackage.json
files to replace the subpathfolder
mapping
syntax with an explicit list of all exported files.
The
/
-suffixed syntax for subpath folder mapping originally used in thesefiles is deprecated. Rather than update to the new syntax, this change replaces
these mappings with individual entries for all exported files so that (a) users
must import using extensions and (b) bundlers or other tools that don't resolve
subpath folder mapping exactly as Node.js does won't break these packages'
expectations around how they're imported.
Minor Changes
renderOptions
class field now exists onLitElement
and can be set/overridden to modify the options passed tolit-html
.static shadowRootOptions
for customizing shadowRoot options. Rather than implementingcreateRenderRoot
, this property can be set. For example, to create a closed shadowRoot using delegates focus:static shadowRootOptions = {mode: 'closed', delegatesFocus: true}
.development
Node exports condition. See Development and production builds for more details.Patch Changes
f43b811
- Don't publish src/ to npm.css
function now maintains a cache and will use a cached value if available when the same style text is requested.static get properties
on an undefined superclass with@property
on a subclass ([#890]https://github.com/Polymer/lit-element/issues/890));Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.