diff --git a/.editorconfig b/.editorconfig index ae71ce1735..b60dee1205 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,11 +1,5 @@ -# Copyright (c) 2014 The Polymer Project Authors. All rights reserved. -# This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt -# The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt -# The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt -# Code distributed by Google as part of the polymer project is also -# subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt - -# Polymer EditorConfig +# Copyright 2014 Google LLC +# SPDX-License-Identifier: BSD-3-Clause root = true diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 92a192fb1a..4b3a1f7a74 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -8,7 +8,7 @@ assignees: '' # Description diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 042eba0a62..6be90c8577 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -93,8 +93,8 @@ If you've already signed a CLA but are still getting bothered by the awfully ins ## Set up ```bash -git clone https://github.com/Polymer/lit-html.git -cd lit-html +git clone https://github.com/lit/lit.git +cd lit npm install npm run bootstrap npm run build diff --git a/packages/benchmarks/README.md b/packages/benchmarks/README.md index 5309a6cf1c..84b5f5b5a9 100644 --- a/packages/benchmarks/README.md +++ b/packages/benchmarks/README.md @@ -3,7 +3,7 @@ Benchmarks for lit-html and LitElement. ```bash -git clone git@github.com:Polymer/lit-html.git +git clone git@github.com:lit/lit.git cd lit-html npm install diff --git a/packages/labs/motion/demo/animation.html b/packages/labs/motion/demo/animation.html index 9bce068d87..45557083a6 100644 --- a/packages/labs/motion/demo/animation.html +++ b/packages/labs/motion/demo/animation.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +-->
diff --git a/packages/labs/motion/demo/hero.html b/packages/labs/motion/demo/hero.html index 6c8cd56122..5b83f63b56 100644 --- a/packages/labs/motion/demo/hero.html +++ b/packages/labs/motion/demo/hero.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/index.html b/packages/labs/motion/demo/index.html index 043794a3f2..e0186db53d 100644 --- a/packages/labs/motion/demo/index.html +++ b/packages/labs/motion/demo/index.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/list.html b/packages/labs/motion/demo/list.html index 9bd2213734..98c951842c 100644 --- a/packages/labs/motion/demo/list.html +++ b/packages/labs/motion/demo/list.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/lists.html b/packages/labs/motion/demo/lists.html index ff2000b44c..3a2a69d8f2 100644 --- a/packages/labs/motion/demo/lists.html +++ b/packages/labs/motion/demo/lists.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/lit-logo.html b/packages/labs/motion/demo/lit-logo.html index 7bcc98f5e6..20399621d9 100644 --- a/packages/labs/motion/demo/lit-logo.html +++ b/packages/labs/motion/demo/lit-logo.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/lit.html b/packages/labs/motion/demo/lit.html index baca645e95..b8192bad82 100644 --- a/packages/labs/motion/demo/lit.html +++ b/packages/labs/motion/demo/lit.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/scaling.html b/packages/labs/motion/demo/scaling.html index 7278d88595..52404b305c 100644 --- a/packages/labs/motion/demo/scaling.html +++ b/packages/labs/motion/demo/scaling.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/simple.html b/packages/labs/motion/demo/simple.html index 9ccdd1df38..1201b2bd28 100644 --- a/packages/labs/motion/demo/simple.html +++ b/packages/labs/motion/demo/simple.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/tabs.html b/packages/labs/motion/demo/tabs.html index 9933d89ed2..9dbd95bc3f 100644 --- a/packages/labs/motion/demo/tabs.html +++ b/packages/labs/motion/demo/tabs.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/rollup.config.js b/packages/labs/motion/rollup.config.js index f352639e9e..934e2b04fd 100644 --- a/packages/labs/motion/rollup.config.js +++ b/packages/labs/motion/rollup.config.js @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import {litProdConfig} from '../../../rollup-common.js'; diff --git a/packages/labs/motion/scripts/dev.sh b/packages/labs/motion/scripts/dev.sh index cadab3fe68..0b8f1f1834 100755 --- a/packages/labs/motion/scripts/dev.sh +++ b/packages/labs/motion/scripts/dev.sh @@ -1,11 +1,7 @@ #!/usr/bin/env bash -# Copyright (c) 2020 The Polymer Project Authors. All rights reserved. -# This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt -# The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt -# The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt -# Code distributed by Google as part of the polymer project is also -# subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt +# Copyright 2021 Google LLC +# SPDX-License-Identifier: BSD-3-Clause set -e diff --git a/packages/labs/motion/src/index.ts b/packages/labs/motion/src/index.ts index 96db622f30..aa918ac260 100644 --- a/packages/labs/motion/src/index.ts +++ b/packages/labs/motion/src/index.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ export * from './flip.js'; export * from './flip-controller.js'; diff --git a/packages/labs/motion/src/test/flip_controller_test.ts b/packages/labs/motion/src/test/flip_controller_test.ts index 090309601a..07d3ce7664 100644 --- a/packages/labs/motion/src/test/flip_controller_test.ts +++ b/packages/labs/motion/src/test/flip_controller_test.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import {LitElement /*css, html, CSSResultGroup, TemplateResult*/} from 'lit'; diff --git a/packages/labs/motion/src/test/flip_test.ts b/packages/labs/motion/src/test/flip_test.ts index a490066284..0be6a9aa07 100644 --- a/packages/labs/motion/src/test/flip_test.ts +++ b/packages/labs/motion/src/test/flip_test.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import {LitElement, css, html, CSSResultGroup, TemplateResult} from 'lit'; diff --git a/packages/labs/motion/src/test/test-helpers.ts b/packages/labs/motion/src/test/test-helpers.ts index 86a3d5f916..f841e29772 100644 --- a/packages/labs/motion/src/test/test-helpers.ts +++ b/packages/labs/motion/src/test/test-helpers.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ let count = 0; diff --git a/packages/labs/react/src/test/use-controller_test.ts b/packages/labs/react/src/test/use-controller_test.ts index 42f0c7d5ba..dd52efd7fd 100644 --- a/packages/labs/react/src/test/use-controller_test.ts +++ b/packages/labs/react/src/test/use-controller_test.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ // import * as ReactModule from 'react'; diff --git a/packages/labs/react/src/use-controller.ts b/packages/labs/react/src/use-controller.ts index 598094cfb4..f8ad81bba2 100644 --- a/packages/labs/react/src/use-controller.ts +++ b/packages/labs/react/src/use-controller.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import type * as ReactModule from 'react'; diff --git a/packages/labs/scoped-registry-mixin/rollup.config.js b/packages/labs/scoped-registry-mixin/rollup.config.js index f7953363cb..d70ce8417e 100644 --- a/packages/labs/scoped-registry-mixin/rollup.config.js +++ b/packages/labs/scoped-registry-mixin/rollup.config.js @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import {litProdConfig} from '../../../rollup-common.js'; diff --git a/packages/labs/scoped-registry-mixin/scripts/dev.sh b/packages/labs/scoped-registry-mixin/scripts/dev.sh index 4bc81d72ed..0b8f1f1834 100755 --- a/packages/labs/scoped-registry-mixin/scripts/dev.sh +++ b/packages/labs/scoped-registry-mixin/scripts/dev.sh @@ -1,11 +1,7 @@ #!/usr/bin/env bash -# Copyright (c) 2021 The Polymer Project Authors. All rights reserved. -# This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt -# The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt -# The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt -# Code distributed by Google as part of the polymer project is also -# subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt +# Copyright 2021 Google LLC +# SPDX-License-Identifier: BSD-3-Clause set -e diff --git a/packages/labs/scoped-registry-mixin/src/scoped-registry-mixin.ts b/packages/labs/scoped-registry-mixin/src/scoped-registry-mixin.ts index 304f3ecd34..2097fe54fc 100644 --- a/packages/labs/scoped-registry-mixin/src/scoped-registry-mixin.ts +++ b/packages/labs/scoped-registry-mixin/src/scoped-registry-mixin.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import type {LitElement} from 'lit'; diff --git a/packages/labs/scoped-registry-mixin/src/test/scoped-registry-mixin_test.ts b/packages/labs/scoped-registry-mixin/src/test/scoped-registry-mixin_test.ts index 1e6609a181..e580b18c7c 100644 --- a/packages/labs/scoped-registry-mixin/src/test/scoped-registry-mixin_test.ts +++ b/packages/labs/scoped-registry-mixin/src/test/scoped-registry-mixin_test.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import '@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js'; diff --git a/packages/labs/ssr/README.md b/packages/labs/ssr/README.md index d28b2baa9c..26a1313b7a 100644 --- a/packages/labs/ssr/README.md +++ b/packages/labs/ssr/README.md @@ -147,4 +147,4 @@ Please note the following current limitations with the SSR package: - **DOM access**: The above point means care should be taken to avoid interacting directly with the DOM in certain lifecycle callbacks. Concretely, you should generally only interact directly with the DOM (like accessing child/parent nodes, querying, imperatively adding event listeners, dispatching events, etc.) in the following lifecycle callbacks, which are not called on the server: - `LitElement`'s `update`, `updated`, `firstUpdated`, or event handlers - `Directive`'s `update` -- **Patterns for usage**: As mentioned above under "Status", we intend to flesh out a number of common patterns for using this package, and provide appropriate APIs and documentation for these as the package reaches maturity. Concerns like server/client data management, incremental loading and hydration, etc. are currently beyond the scope of what this package offers, but we believe it should support building these patterns on top of it going forwrad. Please [file issues](https://github.com/Polymer/lit-html/issues/new/choose) for ideas, suggestions, and use cases you may encounter. +- **Patterns for usage**: As mentioned above under "Status", we intend to flesh out a number of common patterns for using this package, and provide appropriate APIs and documentation for these as the package reaches maturity. Concerns like server/client data management, incremental loading and hydration, etc. are currently beyond the scope of what this package offers, but we believe it should support building these patterns on top of it going forwrad. Please [file issues](https://github.com/lit/lit/issues/new/choose) for ideas, suggestions, and use cases you may encounter. diff --git a/packages/lit-element/src/lit-element.ts b/packages/lit-element/src/lit-element.ts index 8ddf39ed4c..2b5a056b8e 100644 --- a/packages/lit-element/src/lit-element.ts +++ b/packages/lit-element/src/lit-element.ts @@ -128,7 +128,7 @@ export class LitElement extends ReactiveElement { // TODO(kschaaf): Consider debouncing directive disconnection so element moves // do not thrash directive callbacks - // https://github.com/Polymer/lit-html/issues/1457 + // https://github.com/lit/lit/issues/1457 /** * @category lifecycle */ @@ -183,7 +183,7 @@ if (DEV_MODE) { `\`${name}\` is implemented. It ` + `has been removed from this version of LitElement. ` // TODO(sorvell): add link to changelog when location has stabilized. - // + See the changelog at https://github.com/Polymer/lit-html/blob/main/packages/lit-element/CHANGELOG.md` + // + See the changelog at https://github.com/lit/lit/blob/main/packages/lit-element/CHANGELOG.md` ); } }; diff --git a/packages/lit-html/src/experimental-hydrate.ts b/packages/lit-html/src/experimental-hydrate.ts index 81b20dccd8..d90017bad6 100644 --- a/packages/lit-html/src/experimental-hydrate.ts +++ b/packages/lit-html/src/experimental-hydrate.ts @@ -217,7 +217,7 @@ const openChildPart = ( // we need to decide what to do in this case. Note that this part won't be // retained by any parent TemplateInstance, since a primitive had been // rendered in its place. - // https://github.com/Polymer/lit-html/issues/1434 + // https://github.com/lit/lit/issues/1434 // throw new Error('Hydration value mismatch: Found a TemplateInstance' + // 'where a leaf value was expected'); part = new ChildPart(marker, null, state.part, options); @@ -245,7 +245,7 @@ const openChildPart = ( // TODO(kschaaf): We can detect when a primitive is being hydrated on the // client where a TemplateResult was rendered on the server, but we need to // decide on a strategy for what to do next. - // https://github.com/Polymer/lit-html/issues/1434 + // https://github.com/lit/lit/issues/1434 // if (marker.data !== 'lit-part') { // throw new Error('Hydration value mismatch: Primitive found where TemplateResult expected'); // } diff --git a/packages/lit-html/src/lit-html.ts b/packages/lit-html/src/lit-html.ts index de9305ab9c..978ff9a08d 100644 --- a/packages/lit-html/src/lit-html.ts +++ b/packages/lit-html/src/lit-html.ts @@ -1125,7 +1125,7 @@ class ChildPart { // If no existing part, create a new one // TODO (justinfagnani): test perf impact of always creating two parts // instead of sharing parts between nodes - // https://github.com/Polymer/lit-html/issues/1266 + // https://github.com/lit/lit/issues/1266 itemParts.push( (itemPart = new ChildPart( this._insert(createMarker()), diff --git a/packages/lit-html/src/test/directives/class-map_test.ts b/packages/lit-html/src/test/directives/class-map_test.ts index 8b125cf789..291f9eb566 100644 --- a/packages/lit-html/src/test/directives/class-map_test.ts +++ b/packages/lit-html/src/test/directives/class-map_test.ts @@ -88,7 +88,7 @@ suite('classMap directive', () => { assert.isTrue(el.classList.contains('bb')); }); - // TODO (justinfagnani): unskip and resolve https://github.com/Polymer/lit-html/issues/1278 + // TODO (justinfagnani): unskip and resolve https://github.com/lit/lit/issues/1278 test.skip('can not override static classes', () => { renderClassMapStatic({aa: false, bb: true}); const el = container.firstElementChild!; diff --git a/packages/lit-html/src/test/directives/template-content_test.ts b/packages/lit-html/src/test/directives/template-content_test.ts index e89c400989..fef9614dfc 100644 --- a/packages/lit-html/src/test/directives/template-content_test.ts +++ b/packages/lit-html/src/test/directives/template-content_test.ts @@ -61,7 +61,7 @@ suite('templateContent', () => { // TODO (justinfagnani): lit-html core has a bug/limitiation around swapping // a directive with a non-directive. - // See https://github.com/Polymer/lit-html/issues/1286 + // See https://github.com/lit/lit/issues/1286 test.skip('re-renders a template over a non-templateContent value', () => { const go = (v: unknown) => render(html`