milieuinfo / webcomponent-vl-ui-upload

MIT License
1 stars 0 forks source link

Update dependency lit-html to v2 - autoclosed #191

Closed lne-bamboo closed 1 year ago

lne-bamboo commented 1 year ago

This PR contains the following updates:

Package Type Update Change
lit-html (source) devDependencies major ^1.4.1 -> ^2.0.0

⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.


Release Notes

lit/lit ### [`v2.4.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​240) [Compare Source](https://togithub.com/lit/lit/compare/847f4ba8570eb86d05be4378a3c954a941d2c063...lit-html@2.4.0) ##### Minor Changes - [#​3318](https://togithub.com/lit/lit/pull/3318) [`21313077`](https://togithub.com/lit/lit/commit/21313077669c19b3d631a50825b8a01dae1dd0d4) - Adds an `isServer` variable export to `lit` and `lit-html/is-server.js` which will be `true` in Node and `false` in the browser. This can be used when authoring components to change behavior based on whether or not the component is executing in an SSR context. ### [`v2.3.1`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​231) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.3.0...847f4ba8570eb86d05be4378a3c954a941d2c063) ##### Patch Changes - [#​3223](https://togithub.com/lit/lit/pull/3223) [`5a65ca97`](https://togithub.com/lit/lit/commit/5a65ca97464839fcd4ea59240b9910002fa64a82) - Use existing `document` in Node build ### [`v2.3.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​230) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.7...lit-html@2.3.0) ##### Minor Changes - [#​3156](https://togithub.com/lit/lit/pull/3156) [`ae6f6808`](https://togithub.com/lit/lit/commit/ae6f6808f539254b72ec7efcff34b812173abe64) - Lit and its underlying libraries can now be imported directly from Node without crashing, without the need to load the [@​lit-labs/ssr](https://togithub.com/lit-labs/ssr) dom-shim library. Note that actually rendering from a Node context still requires the [@​lit-labs/ssr](https://togithub.com/lit-labs/ssr) dom-shim, and the appropriate integration between [@​lit-labs/ssr](https://togithub.com/lit-labs/ssr) and your framework/tool. ##### Patch Changes - [#​3003](https://togithub.com/lit/lit/pull/3003) [`daddeb34`](https://togithub.com/lit/lit/commit/daddeb346a2f454b25a6a5d1722683197f25fbcd) - Lit's `async-directive` now re-exports everything from the `directive` module. - [#​3199](https://togithub.com/lit/lit/pull/3199) [`0725fdb4`](https://togithub.com/lit/lit/commit/0725fdb4dd7d36e3a7154830c41b9af4cf866e52) - In DEV_MODE, render a warning instead of rendering a template's host in the template. Most commonly this would happen when rendering `${this}` in a LitElement's template, which has the counterintuitive behavior of removing the element from the DOM, because when rendering the element's template we attach it into its own shadow root, which removes it from the DOM, causing it simply disappear. This is especially problematic with a fast HMR system. - [#​3186](https://togithub.com/lit/lit/pull/3186) [`3766ae4c`](https://togithub.com/lit/lit/commit/3766ae4c35edf794aa30ee2d738c6f63fdda44e5) - `StaticValue` interface type is now exported. ### [`v2.2.7`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​227) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.6...lit-html@2.2.7) ##### Patch Changes - [#​3130](https://togithub.com/lit/lit/pull/3130) [`1f0567f1`](https://togithub.com/lit/lit/commit/1f0567f10c56531e555329eeb006349ba022070f) - Export the underlying type of the `keyed` directive. - [#​3132](https://togithub.com/lit/lit/pull/3132) [`2fe2053f`](https://togithub.com/lit/lit/commit/2fe2053fe04e7226e5fa4e8b730e91a62a547b27) - Added "types" entry to package exports. This tells newer versions of TypeScript where to look for typings for each module. ### [`v2.2.6`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​226) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.5...lit-html@2.2.6) ##### Patch Changes - [#​2849](https://togithub.com/lit/lit/pull/2849) [`b12e8d93`](https://togithub.com/lit/lit/commit/b12e8d93fb4a45b1a16e37716ac6e0a684d5e220) - Expand documentation for `render` and `TemplateResult`. ### [`v2.2.5`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​225) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.4...lit-html@2.2.5) ##### Patch Changes - [#​2952](https://togithub.com/lit/lit/pull/2952) [`a78cc3b7`](https://togithub.com/lit/lit/commit/a78cc3b7f221a97e04dfda77d790fbea8f48d12c) - Fix SSR hydration bug relating to and other void elements having attribute bindings. ### [`v2.2.4`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​224) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.3...lit-html@2.2.4) ##### Patch Changes - [#​2847](https://togithub.com/lit/lit/pull/2847) [`79d82385`](https://togithub.com/lit/lit/commit/79d823851fcf938a8b6a0ca5f164b6b6fb1b4155) - Fix typo in API docs for live() directive. - [#​2828](https://togithub.com/lit/lit/pull/2828) [`b3b6bc33`](https://togithub.com/lit/lit/commit/b3b6bc336910d73b5abad1c7da81731c110e74be) - Remove private Lit 2 migration helpers: `INTERNAL` and `clearContainerForLit2MigrationOnly`. This logic is no longer depended on. ### [`v2.2.3`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​223) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.2...lit-html@2.2.3) ##### Patch Changes - [#​2732](https://togithub.com/lit/lit/pull/2732) [`3e181bcb`](https://togithub.com/lit/lit/commit/3e181bcb3d969775eda799fd6fcae1ead843225b) - Enforce use of file extensions in imports. Fixes an issue with older TypeScript compilers. ### [`v2.2.2`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​222) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.1...lit-html@2.2.2) ##### Patch Changes - [#​2657](https://togithub.com/lit/lit/pull/2657) [`a6069c40`](https://togithub.com/lit/lit/commit/a6069c40e78dff3adeffa7d2abe11c9c05503d22) - Remove readonly restriction from `StyleInfo` interface as addition, deletion, and updating of styles is valid. Expanded `styleMap` documentation with links to lit.dev. - [#​2642](https://togithub.com/lit/lit/pull/2642) [`badc532c`](https://togithub.com/lit/lit/commit/badc532c719f7ce42b7cf4fb9ff2d97f4615b021) - Add an additional security brand check to StaticValues; Similar to [#​2307](https://togithub.com/lit/lit/pull/2307) - [#​2691](https://togithub.com/lit/lit/pull/2691) [`171143bd`](https://togithub.com/lit/lit/commit/171143bd52720ee4a65844e5ca14667dd0187f8e) - Fixes `ref` bug when auto-bound class method used as a callback could incorrectly receive `undefined`. - [#​2661](https://togithub.com/lit/lit/pull/2661) [`9a3a38cd`](https://togithub.com/lit/lit/commit/9a3a38cd7f7b9122c79cd0e220f7ce62130e53f6) - Give a clearer error message when rendering into null/undefined - [#​2646](https://togithub.com/lit/lit/pull/2646) [`365cd09a`](https://togithub.com/lit/lit/commit/365cd09a88a1c390045452aac82510c143ffe257) - Clarify that hacking around the template strings array brand error can create security vulnerabilities. ### [`v2.2.1`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​221) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.0...lit-html@2.2.1) ##### Patch Changes - [#​2635](https://togithub.com/lit/lit/pull/2635) [`ae358703`](https://togithub.com/lit/lit/commit/ae3587038873ffcc4934fd008a0b45db4711561e) - Make the event debug logger lazier, doing even less work (with no side effects) even in dev mode unless the page has opted in. ### [`v2.2.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​220) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.1.3...lit-html@2.2.0) ##### Minor Changes - [#​2401](https://togithub.com/lit/lit/pull/2401) [`2c9d0008`](https://togithub.com/lit/lit/commit/2c9d00082a416457ee02107013dd4925bf589628) - Added a devlog events system that may be used for debugging and visualizing Lit's internals. ### [`v2.1.3`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​213) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.1.2...lit-html@2.1.3) ##### Patch Changes - [#​2498](https://togithub.com/lit/lit/pull/2498) [`2a1dc7a1`](https://togithub.com/lit/lit/commit/2a1dc7a1fd8faf501af3c4c401d822de3fbf2f9e) - Replace 'rare' with 'invalid' in svg tag function JSDocs. - [#​2459](https://togithub.com/lit/lit/pull/2459) [`23df9d45`](https://togithub.com/lit/lit/commit/23df9d4557d8c70820d76aec5c0fd3bce9106e3f) - Fix bindings inside of elements - [#​2479](https://togithub.com/lit/lit/pull/2479) [`89560520`](https://togithub.com/lit/lit/commit/89560520f08079dc1b0e91f1096934d9ccabed59) - Expand JSDocs for the `svg` tagged template literal (TTL). The new documentation makes it more clear that the `svg` tag function should only be used for SVG fragments, and not for the `<svg>` HTML element. ### [`v2.1.2`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​212) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.1.1...lit-html@2.1.2) ##### Patch Changes - [#​2399](https://togithub.com/lit/lit/pull/2399) [`5ac025bf`](https://togithub.com/lit/lit/commit/5ac025bf9610adb7069ef8d88ed6bd96ff730f2f) - Correct typo in `async-directive` module comment - [#​2410](https://togithub.com/lit/lit/pull/2410) [`b9a6962b`](https://togithub.com/lit/lit/commit/b9a6962b84c841eaabd5c4cbf8687ff34dbfe511) - Correct the link path of CONTRIBUTING.md in README.md files ### [`v2.1.1`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​211) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.1.0...lit-html@2.1.1) ##### Patch Changes - [#​2388](https://togithub.com/lit/lit/pull/2388) [`5860533f`](https://togithub.com/lit/lit/commit/5860533f25180b6e8b616105cf85037216054d7a) - Fix choose directive jsdoc code example. ### [`v2.1.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​210) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.0.2...lit-html@2.1.0) ##### Minor Changes - [#​2337](https://togithub.com/lit/lit/pull/2337) [`fcc2b3d0`](https://togithub.com/lit/lit/commit/fcc2b3d0054e69e6f76588ea9f440117b6d0deed) - Add a `keyed(key, value)` directive that clears a part if the key changes. <!----> - [#​2335](https://togithub.com/lit/lit/pull/2335) [`d319cf5f`](https://togithub.com/lit/lit/commit/d319cf5fde1c2b70185ee9a6252067ed0edaf2fc) - Add `when`, `map`, `join`, and `range` directives. <!----> - [#​2341](https://togithub.com/lit/lit/pull/2341) [`1d563e83`](https://togithub.com/lit/lit/commit/1d563e830c02a2d1a22e1e939f1ace971b1d1ae7) - Add choose() directive ##### Patch Changes - [#​2307](https://togithub.com/lit/lit/pull/2307) [`221cb0a9`](https://togithub.com/lit/lit/commit/221cb0a90787631dcc867959de19febd2ebd3fd0) - Added an additional check to prevent spoofing of internal lit types in data bindings. ### [`v2.0.2`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​202) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.0.1...lit-html@2.0.2) ##### Patch Changes - [#​2146](https://togithub.com/lit/lit/pull/2146) [`8bb33c88`](https://togithub.com/lit/lit/commit/8bb33c882bf5a9a215efac9dd9dd8665285a417d) - Work around a Chrome bug with trusted types: https://crbug.com/993268 <!----> - [#​2236](https://togithub.com/lit/lit/pull/2236) [`5fc3818a`](https://togithub.com/lit/lit/commit/5fc3818afa43365b90b921ea0fd8f41e970e767f) - Prevent `polyfillSupport.noPatchSupported` from implicitly being `any`. Deduplicate types for `DevMode`-suffixed polyfill support functions. ### [`v2.0.1`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​201) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.0.0...lit-html@2.0.1) ##### Patch Changes - [#​2152](https://togithub.com/lit/lit/pull/2152) [`ba5e1391`](https://togithub.com/lit/lit/commit/ba5e139163049014e6261123ff808700352b86a8) - Replace dynamic name lookups for polyfill support functions with static names. ### [`v2.0.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#​200) [Compare Source](https://togithub.com/lit/lit/compare/288be4f4f9a82aced12a777084bac6dd32f570aa...lit-html@2.0.0) ##### Major Changes - The `templateFactory` option of `RenderOptions` has been removed. - `TemplateProcessor` has been removed. - Symbols are not converted to a string before mutating DOM, so passing a Symbol to an attribute or text binding will result in an exception. - The `shady-render` module has been removed and is now part of `platform-support`, and Lit's polyfill support now adds the following limitations: (1) Bindings in style elements are no longer supported. Previously these could not change and in the future they may be supported via static bindings. (2) `ShadyCSS.styleElement` is no longer called automatically. This must be called whenever dynamic changes that affect styling are made that involve css custom property shimming (older browsers) or changes to custom properties used via the deprecated `@apply` feature. It was previously called only on first render, and it is now up to the user to decide when this should be called. See [Polyfills](https://lit.dev/docs/tools/requirements/#polyfills) for more details. - `render()` no longer clears the container it's rendered to. It now appends to the container by default. - Expressions in comments are no longer rendered or updated. See [Valid expression locations](https://lit.dev/docs/templates/expressions/#expression-locations) for more details. - Template caching happens per callsite, not per template-tag/callsize pair. This means some rare forms of highly dynamic template tags are no longer supported. - Arrays and other iterables passed to attribute bindings are not specially handled. Arrays will be rendered with their default toString representation. This means that ``html`<div class=${['a', 'b']}>`` will render `<div class="a,b">` instead of `<div class="a b">`. To get the old behavior, use `array.join(' ')`. - Multiple bindings in a single attribute value don't require the attribute value is quoted, as long as there is no whitespace or other attribute-ending character in the attribute value. `` html`<div id=${a}-${b}>` `` - The directive and part APIs are significantly different. See [Custom Directives](https://lit.dev/docs/templates/custom-directives/) and the [Upgrade Guide](https://lit.dev/docs/releases/upgrade/#update-custom-directive-implementations) for more details. - The `Directive` base class and `directive()` factory function are now exported from the `lit-html/directive.js` module. - `NodePart` has been renamed to `ChildPart`, along with other methods and variables that use the "Node" naming, like `PartType.Node` which is now `PartType.CHILD`. - The part exports (`ChildPart`, `AttributePart`, etc) have been change to interface-only exports. The constructors are no longer exported. Directive authors should use helpers in `directive-helpers.js` to construct parts. - The `eventContext` render option has been changed to `host`. - [#​2103](https://togithub.com/lit/lit/pull/2103) [`15a8356d`](https://togithub.com/lit/lit/commit/15a8356ddd59a1e80880a93acd21fadc9c24e14b) - Updates the `exports` field of `package.json` files to replace the [subpath folder mapping](https://nodejs.org/dist/latest-v16.x/docs/api/packages.html#packages_subpath_folder_mappings) syntax with an explicit list of all exported files. The `/`-suffixed syntax for subpath folder mapping originally used in these files 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. - [#​1764](https://togithub.com/lit/lit/pull/1764) [`0b4d6eda`](https://togithub.com/lit/lit/commit/0b4d6eda5220aeb53abe250217d70dcb8f45fe43) - Don't allow classMap to remove static classes. This keeps classMap consistent with building a string out of the classnames to be applied. ##### Minor Changes - Added `renderBefore` to render options. If specified, content is rendered before the node given via render options, e.g. `{renderBefore: node}`. - Added development mode, which can be enabled by setting the `development` Node exports condition. See [Development and production builds](https://lit.dev/docs/tools/development/#development-and-production-builds) for more details. - All usage of `instanceof` has been removed, making rendering more likely to work when multiple instances of the library interact. - Template processing is more robust to expressions in places other than text and attribute values. - `render` now returns the `ChildPart` that was created/updated by `render`. - Added `AsyncDirective`, which is a `Directive` subclass whose `disconnected` callback will be called when the part containing the directive is cleared (or transitively cleared by a Part higher in the tree) or manually disconnected using the `setConnected` API, and whose `reconnected` callback will be called when manually re-connected using `setConnected`. When implementing `disconnected`, the `reconnected` callback should also be implemented to return the directive to a usable state. Note that `LitElement` will disconnect directives upon element disconnection, and re-connect directives upon element re-connection. See [Async directives](https://lit.dev/docs/templates/custom-directives/#async-directives) for more details. - Added `setConnected(isConnected: boolean)` to `ChildPart`; when called with `false`, the `disconnected` callback will be run on any directives contained within the part (directly or transitively), but without clearing or causing a re-render to the tree. When called with `true`, any such directives' `reconnected` callback will be called prior to its next `update`/`render` callbacks. Note that `LitElement` will call this method by default on the rendered part in its `connectedCallback` and `disconnetedCallback`. - Added the `static-html` module, a static `html` tag function, a `literal` tag function, and `unsafeStatic()`, which allows template authors to add strings to the static structure of the template, before it's parsed as HTML. See [Static expressions](https://lit.dev/docs/templates/expressions/#static-expressions) for more details. - Added `lit-html/directive-helpers.js` module with helpers for creating custom directives. See [Custom directives](https://lit.dev/docs/api/custom-directives/#clearPart) for more details. - Rendering `null`, `undefined`, or empty string in a `ChildPart` now has the same affect as rendering `nothing`: it does not produce an empty text node. When rendering into an element with Shadow DOM, this makes it harder to inadvertently prevent `<slot>` fallback content from rendering. - Nested directives whose parent returns `noChange` are now unchanged. This allows the `guard` directive to guard directive values ([#​1519](https://togithub.com/Polymer/lit-html/issues/1519)). - Added optional `creationScope` to `RenderOptions`, which controls the node from which the template is cloned from. - Added support for running with [Trusted Types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/trusted-types) enforced. ##### Patch Changes - [#​1922](https://togithub.com/lit/lit/pull/1922) [`8189f094`](https://togithub.com/lit/lit/commit/8189f09406a5ee2f2c7351884486944fd46e1d5b) - Binding `noChange` into an interpolated attribute expression now no longer removes the attribute on first render - instead it acts like an empty string. This is mostly noticable when using `until()` without a fallback in interpolated attributes. - [#​1964](https://togithub.com/lit/lit/pull/1964) [`f43b811`](https://togithub.com/lit/lit/commit/f43b811405be32ce6caf82e80d25cb6170eeb7dc) - Don't publish src/ to npm. <!----> - [#​2070](https://togithub.com/lit/lit/pull/2070) [`a48f39c8`](https://togithub.com/lit/lit/commit/a48f39c8d5872dbc9a19a9bc72b22692950071f5) - Throw instead of rendering an innocuous value into a style or script when security hooks are enabled. - [#​2044](https://togithub.com/lit/lit/pull/2044) [`662209c3`](https://togithub.com/lit/lit/commit/662209c370d2f5f58cb2f24e558125f91baeebd0) - Improves disconnection handling for first-party `AsyncDirective`s (`until`, `asyncAppend`, `asyncReplace`) so that the directive (and any DOM associated with it) can be garbage collected before any promises they are awaiting resolve. </details> <hr /> <h3>Configuration</h3> <p>📅 <strong>Schedule</strong>: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).</p> <p>🚦 <strong>Automerge</strong>: Disabled by config. Please merge this manually once you are satisfied.</p> <p>♻ <strong>Rebasing</strong>: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.</p> <p>🔕 <strong>Ignore</strong>: Close this PR and you won't be reminded about this update again.</p> <hr /> <ul> <li>[ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box</li> </ul> <hr /> <p>This PR has been generated by <a rel="noreferrer nofollow" target="_blank" href="https://togithub.com/renovatebot/renovate">Renovate Bot</a>.</p> <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4zMi4wIiwidXBkYXRlZEluVmVyIjoiMzQuMzIuMCJ9--> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>