Skip to content

Commit

Permalink
chore: upgrade lit (#66)
Browse files Browse the repository at this point in the history
Lit v3 has been released. It is vastly compatibly with Lit v2. Some
small changes were necessary (e.g. decorators should be imported from
lit/decorators.js instead of lit-element).
  • Loading branch information
zsoerenm authored Oct 29, 2023
1 parent 0cd3e49 commit 96425ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/lit-infinite-viewer/demo/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { html } from "lit-element";
import { render } from "lit-html";
import { html, render } from "lit";
import "../src/LitInfiniteViewer";

render(html`
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-infinite-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
],
"devDependencies": {
"@daybrush/builder": "^0.1.2",
"lit-element": "^2.2.1",
"lit": "^2.7.0 || ^3.0.0",
"typescript": "^4.5.0 <4.6.0"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/lit-infinite-viewer/src/LitInfiniteViewer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { LitElement, html, customElement, property } from "lit-element";
import { LitElement, html } from "lit";
import {customElement, property} from 'lit/decorators.js';
import VanillaInfiniteViewer, {
InfiniteViewerOptions,
EVENTS, PROPERTIES, InfiniteViewerMethods, METHODS, OPTIONS
Expand Down

0 comments on commit 96425ea

Please sign in to comment.