-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip: upgrade to lit 2 * Replacing references of NodePart to ChildPart per Lit 2.0 upgrade guide. Upgrading testing dependency to use Lit 2.0. Five failing tests. * WIP: Virtual components w/ Lit 2.0. Three failing tests. * Some tweaks, but still have failing tests. * Switching to AsyncDirective per the lit 2.0 upgrade guide. One failing test. * The lit 2 upgrade guide had indicated that the weakmaps should be removed in favor of state within the directive class. In our case it turns out we needed those weakmaps because that is how we keep track of schedulers for the virtual components. * Upgrading some dev dependencies in an effort to purge older versions of lit from the lock file. Only partially successful. * Updating check in virtual component update() method to address issue #337. * Reverting rocket dev dependencies. Co-authored-by: Benny Powers <[email protected]>
- Loading branch information
1 parent
d85d7a6
commit 6b92ea1
Showing
23 changed files
with
18,937 additions
and
2,684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { html } from 'https://unpkg.com/lit[email protected]/lit-element.js?module'; | ||
import { html } from 'https://unpkg.com/lit?module'; | ||
import { useState } from '../../haunted.js'; | ||
import LitHauntedElement, { litHaunted } from './lit-haunted-element.js'; | ||
|
||
|
@@ -32,7 +32,7 @@ function App() { | |
return html` | ||
<p>A paragraph</p> | ||
<click-element @increment=${() => setCount(count + 1)}></click-element> | ||
<p><strong>Count:</strong> ${count}</p> | ||
`; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { LitElement } from 'https://unpkg.com/lit[email protected]/lit-element.js?module'; | ||
import { LitElement } from 'https://unpkg.com/lit?module'; | ||
import { State } from '../../haunted.js'; | ||
|
||
export default class LitHauntedElement extends LitElement { | ||
|
@@ -25,4 +25,4 @@ export const litHaunted = (renderer) => { | |
return renderer.call(this, this); | ||
} | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { LitElement } from 'https://unpkg.com/lit[email protected]/lit-element.js?module'; | ||
import { LitElement } from 'https://unpkg.com/lit?module'; | ||
import { State } from '../../haunted.js'; | ||
|
||
export default function(renderer) { | ||
|
@@ -30,4 +30,4 @@ export default function(renderer) { | |
super.disconnectedCallback(); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.