-
Notifications
You must be signed in to change notification settings - Fork 962
Comparing changes
Open a pull request
base repository: lit/lit
base: lit@2.2.8
head repository: lit/lit
compare: lit@2.3.0
Commits on Jul 25, 2022
-
[lit-html] Provide
directive
exports viaasync-directive
(#3003)[lit-html] Provide directive exports via async-directive. Fixes #2790. This is being done for convenience.
Steve Orvell authoredJul 25, 2022 Configuration menu - View commit details
-
Copy full SHA for daddeb3 - Browse repository at this point
Copy the full SHA daddeb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1ae0ff - Browse repository at this point
Copy the full SHA d1ae0ffView commit details
Commits on Jul 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 27e08e5 - Browse repository at this point
Copy the full SHA 27e08e5View commit details -
[internal/scripts] Add markdownFile option to release-image script (#…
…3148) If markdownFile is provided, the release image will be generated from the contents. This allows: 1. Using the "Version Packages" description to generate an image. 2. A workaround for providing custom release-image contents.
Configuration menu - View commit details
-
Copy full SHA for 41c85d4 - Browse repository at this point
Copy the full SHA 41c85d4View commit details -
[infra] Integrate release-image into a Github Action (#3176)
* Add Generate Release Image Action that runs when changelog files are modified
Configuration menu - View commit details
-
Copy full SHA for 6e0d0b4 - Browse repository at this point
Copy the full SHA 6e0d0b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18f8a90 - Browse repository at this point
Copy the full SHA 18f8a90View commit details
Commits on Jul 28, 2022
-
Export StaticValue from lit-html/static (#3186)
* Export StaticValue from lit-html/static Class properties initialized with a literal are implicitly typed as `any` because `StaticValue` is not exported. * Add changeset * Update .changeset/hip-eels-ring.md Co-authored-by: Augustine Kim <augustinekim@google.com> * Remove unnecessary re-export for StaticValue type Co-authored-by: Augustine Kim <augustinekim@google.com>
Configuration menu - View commit details
-
Copy full SHA for 3766ae4 - Browse repository at this point
Copy the full SHA 3766ae4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84437af - Browse repository at this point
Copy the full SHA 84437afView commit details
Commits on Aug 4, 2022
-
s/comment comment/comment/ Upstreaming cl/465058282
Configuration menu - View commit details
-
Copy full SHA for 325db3c - Browse repository at this point
Copy the full SHA 325db3cView commit details -
[core/ssr] Add Node builds that don't explode (#3156)
### Background Before this PR, importing Lit with Node causes errors such as `window is not defined`. The only way to load Lit was to first ensure that the `dom-shim.js` module provided by the `@lit-labs/ssr` package was loaded, which defines `window` plus APIs like `HTMLElement` and `customElements`. This meant that using Lit in frameworks such as Next did not work out-of-the-box _even when only client-side rendering is needed_. ### This change After this PR, Lit can be imported from Node without errors, and custom elements can be defined as no-ops. This doesn't remove the need for loading the DOM shim shim when SSR is actually needed, but it does give us compatibility at least for client-side rendering in frameworks like Next, without the user needing to do anything special. This works by adding a Node-specific Rollup build and a `node` export condition to `lit-html` and `@lit/reactive-element`. Neither `lit-element` nor `lit` need a Node build, because only the underlying 2 libraries currently need Node-specific behavior. This only defines `customElements` as new globals. It does not define `window`, `HTMLElement`, or any other APIs. This way, we won't affect the behavior of libraries that detect whether they are in Node vs the browser by checking for a `window` global. For testing, I've added a `node-imports.ts` file to each package, and added a new `node:test` script which executes that module with Node. This confirms that Node doesn't crash on import. Fixes #3079 ### Size This actually slightly drops the size of the main `lit-html.js` and `reactive-element.js` production build files: | File | Old size (raw/gzip/brotli) | New size (raw/gzip/brotli) | | ------------------- | -------------- | -------------- | | lit-html.js | 8.68 / 3.45 / 3.13 | 8.02 / 3.38 / 3.07 | | reactive-element.js | 5.97 / 2.17 / 1.93 | 5.95 / 2.17 / 1.92 |
Configuration menu - View commit details
-
Copy full SHA for ae6f680 - Browse repository at this point
Copy the full SHA ae6f680View commit details
Commits on Aug 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6361a4b - Browse repository at this point
Copy the full SHA 6361a4bView commit details -
In DEV_MODE, render a warning instead of rendering a template's host …
…in the template. (#3199) * 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. * Log a warning as well
Configuration menu - View commit details
-
Copy full SHA for 0725fdb - Browse repository at this point
Copy the full SHA 0725fdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0162fba - Browse repository at this point
Copy the full SHA 0162fbaView commit details
Commits on Aug 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2346231 - Browse repository at this point
Copy the full SHA 2346231View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19d7bd2 - Browse repository at this point
Copy the full SHA 19d7bd2View commit details
Commits on Aug 10, 2022
-
Batch of virtualizer test coverage: flow layout, visibilitychanged, r…
…angechanged (#3206) * Added initial test for flow layout behavior and item visibility. * Covering more scrollToIndex test cases for flow layout. * Added resize-based VisibilityChanged event test. * Modified flow tests to use larger items collection. * Added rangechange and visibilitychange tests and fixed up tests. * Replaced item creation with array() helper. * Removed redundant smoke test for visibilitychanged events. * Removed vagueness around rangechange event comments and overhang size.
Configuration menu - View commit details
-
Copy full SHA for 42b1ae8 - Browse repository at this point
Copy the full SHA 42b1ae8View commit details
Commits on Aug 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7848b72 - Browse repository at this point
Copy the full SHA 7848b72View commit details -
[labs/react] Fix for #2799: add support for properties with custom ac…
Configuration menu - View commit details
-
Copy full SHA for 043d9c8 - Browse repository at this point
Copy the full SHA 043d9c8View commit details
Commits on Aug 12, 2022
-
Also re-run release image generator on pushes (#3214)
This way it will run not only when a release PR is opened, but also when it's updated.
Configuration menu - View commit details
-
Copy full SHA for b70f777 - Browse repository at this point
Copy the full SHA b70f777View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2674a74 - Browse repository at this point
Copy the full SHA 2674a74View commit details -
Co-authored-by: Alexander Marks <aomarks@google.com>
Configuration menu - View commit details
-
Copy full SHA for 41ab4c4 - Browse repository at this point
Copy the full SHA 41ab4c4View commit details
There are no files selected for viewing