- #3156
ae6f6808
- Lit and its underlying libraries can now be imported directly from Node without crashing, without the need to load the @lit-labs/ssr dom-shim library. Note that actually rendering from a Node context still requires the @lit-labs/ssr dom-shim, and the appropriate integration between @lit-labs/ssr and your framework/tool.
-
#3003
daddeb34
- Lit'sasync-directive
now re-exports everything from thedirective
module. -
#3120
6361a4b4
- Bindthis
to custom attribute converter methods -
Updated dependencies [
daddeb34
,0725fdb4
,3766ae4c
,6361a4b4
,ae6f6808
]:- lit-html@2.3.0
- @lit/reactive-element@1.4.0
-
#3130
1f0567f1
- Export the underlying type of thekeyed
directive. -
#3132
2fe2053f
- Added "types" entry to package exports. This tells newer versions of TypeScript where to look for typings for each module.
- #2978
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.
- #2952
a78cc3b7
- Fix SSR hydration bug relating to and other void elements having attribute bindings.
-
#2828
b3b6bc33
- Remove private Lit 2 migration helpers:INTERNAL
andclearContainerForLit2MigrationOnly
. This logic is no longer depended on.
-
#2732
3e181bcb
- Enforce use of file extensions in imports. Fixes an issue with older TypeScript compilers. -
#2688
ef178ef6
- Add explicit types to the jsdoc code samples forquery
,queryAll
, andqueryAsync
.
-
#2657
a6069c40
- Remove readonly restriction fromStyleInfo
interface as addition, deletion, and updating of styles is valid. ExpandedstyleMap
documentation with links to lit.dev. -
#2642
badc532c
- Add an additional security brand check to StaticValues; Similar to #2307 -
#2691
171143bd
- Fixesref
bug when auto-bound class method used as a callback could incorrectly receiveundefined
. -
#2661
9a3a38cd
- Give a clearer error message when rendering into null/undefined -
#2646
365cd09a
- Clarify that hacking around the template strings array brand error can create security vulnerabilities.
- #2635
ae358703
- Make the event debug logger lazier, doing even less work (with no side effects) even in dev mode unless the page has opted in.
- #2401
2c9d0008
- Added a devlog events system that may be used for debugging and visualizing Lit's internals.
- Updated dependencies [
2c9d0008
]:- lit-element@3.2.0
- lit-html@2.2.0
- @lit/reactive-element@1.3.0
-
#2518
bbbf21d4
- Fix breaking change in the PropertyValues type. Make PropertyValues compatible with Map<string, string> and other Map types. -
#2526
a50d188a
- Export PropertyValueMap such that JavaScript generated by Google Closure Compiler can reference this type. Do not directly import thePropertyValueMap
interface.
-
#2498
2a1dc7a1
- Replace 'rare' with 'invalid' in svg tag function JSDocs. -
#2482
6ea3d6c4
- Update the definition of the PropertyValues type to give better types to.get(k)
..get(k)
is now defined to return the correct type when usingPropertyValues<this>
and a parameter that's a key of the element class. -
#2464
df4e1a46
- Fix type signature in queryAssignedNodes JSDoc code example. -
#2479
89560520
- Expand JSDocs for thesvg
tagged template literal (TTL). The new documentation makes it more clear that thesvg
tag function should only be used for SVG fragments, and not for the<svg>
HTML element. -
#2457
48d69184
- Add JSDoc to thewillUpdate
lifecycle callback. Expand the docs forfirstUpdated
, andattributeChangedCallback
. Minor code sample fixes.
-
#2399
5ac025bf
- Correct typo inasync-directive
module comment -
#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 files
- #2327
49ecf623
- AddqueryAssignedElements
decorator for a declarative API that callsHTMLSlotElement.assignedElements()
on a specified slot.selector
option allows filtering returned elements with a CSS selector.
- Updated dependencies [
08e7fc56
,fcc2b3d0
,eb5c5d2b
,49ecf623
,26e3fb7b
,d319cf5f
,1d563e83
,221cb0a9
]:- @lit/reactive-element@1.1.0
- lit-html@2.1.0
- lit-element@3.1.0
- New package serving as the main entry point for all users of Lit (including
LitElement
,ReactiveElement
, andlit-html
). See the Migration Guide for more details.
-
#2103
15a8356d
- Updates theexports
field ofpackage.json
files to replace the subpath folder mapping 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.
- #1942
c8fe1d4
- For minified class fields on classes in lit libraries, added prefix to stable properties to avoid collisions with user properties.
- #1959
6938995
- Changed prefix used for minifying class field names on lit libraries to stay within ASCII subset, to avoid needing to explicitly set the charset for scripts in some browsers.
-
Updated dependencies [
ff0d1556
,5768cc60
,69389958
,5fabe2b5
,52a47c7e
,5fabe2b5
,5fabe2b5
,5fabe2b5
,f05be301
,5fabe2b5
,56e8efd3
,662209c3
,a791514b
,5fabe2b5
]:- lit-html@2.0.0-rc.4
Changes below were based on the Keep a Changelog format. All changes above are generated automatically by Changesets.
- Updated dependencies
- (Since 2.0.0-pre.1) Renamed
hydrate
andhydrate-support
modules toexperimental-hydrate
andexperimental-hydrate-support
, respectively, to reflect their experimental nature. Experimental modules may undergo breaking changes within otherwise non-major releases.
- Updated dependencies
Initial release