Skip to content

Commit ed1d0be

Browse files
authored
Merge pull request #20 from webcomponents/release-cleanup
Add license and update headers; fix package.json fields.
2 parents 216f097 + 6fa7ec0 commit ed1d0be

11 files changed

+55
-86
lines changed

LICENSE

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2021 Google LLC. All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
1. Redistributions of source code must retain the above copyright notice, this
9+
list of conditions and the following disclaimer.
10+
11+
2. Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
3. Neither the name of the copyright holder nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

package-lock.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
2-
"name": "template-shadowroot",
2+
"name": "@webcomponents/template-shadowroot",
33
"version": "0.0.0",
44
"description": "",
55
"main": "template-shadowroot.js",
6+
"module": "template-shadowroot.js",
67
"browser": true,
78
"type": "module",
9+
"publishConfig": {
10+
"access": "public"
11+
},
812
"scripts": {
913
"build": "tsc --build && rollup --config rollup.config.js",
1014
"test": "karma start karma.conf.cjs --single-run",
@@ -17,15 +21,15 @@
1721
],
1822
"repository": {
1923
"type": "git",
20-
"url": "git+https://github.com/webcomponents/template-attach-shadow.git"
24+
"url": "git+https://github.com/webcomponents/template-shadowroot.git"
2125
},
2226
"keywords": [],
23-
"author": "The Polymer Authors",
27+
"author": "Google LLC",
2428
"license": "BSD-3-Clause",
2529
"bugs": {
26-
"url": "https://github.com/webcomponents/template-attach-shadow/issues"
30+
"url": "https://github.com/webcomponents/template-shadowroot/issues"
2731
},
28-
"homepage": "https://github.com/webcomponents/template-attach-shadow#readme",
32+
"homepage": "https://github.com/webcomponents/template-shadowroot#readme",
2933
"devDependencies": {
3034
"@open-wc/karma-esm": "^2.13.14",
3135
"@types/jasmine": "^3.5.8",

src/_implementation/default_implementation.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
/**
22
* @license
3-
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4-
* This code may only be used under the BSD style license found at
5-
* http://polymer.github.io/LICENSE.txt
6-
* The complete set of authors may be found at
7-
* http://polymer.github.io/AUTHORS.txt
8-
* The complete set of contributors may be found at
9-
* http://polymer.github.io/CONTRIBUTORS.txt
10-
* Code distributed by Google as part of the polymer project is also
11-
* subject to an additional IP rights grant found at
12-
* http://polymer.github.io/PATENTS.txt
3+
* Copyright 2020 Google LLC
4+
* SPDX-License-Identifier: BSD-3-Clause
135
*/
146

157
// TODO(rictic): do more robust benchmarks and pick a winner.

src/_implementation/feature_detect.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
/**
22
* @license
3-
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4-
* This code may only be used under the BSD style license found at
5-
* http://polymer.github.io/LICENSE.txt
6-
* The complete set of authors may be found at
7-
* http://polymer.github.io/AUTHORS.txt
8-
* The complete set of contributors may be found at
9-
* http://polymer.github.io/CONTRIBUTORS.txt
10-
* Code distributed by Google as part of the polymer project is also
11-
* subject to an additional IP rights grant found at
12-
* http://polymer.github.io/PATENTS.txt
3+
* Copyright 2020 Google LLC
4+
* SPDX-License-Identifier: BSD-3-Clause
135
*/
146

157
// This isn't ideal. Setting .innerHTML is not compatible with some

src/_implementation/manual_walk.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
/**
22
* @license
3-
* Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
4-
* This code may only be used under the BSD style license found at
5-
* http://polymer.github.io/LICENSE.txt
6-
* The complete set of authors may be found at
7-
* http://polymer.github.io/AUTHORS.txt
8-
* The complete set of contributors may be found at
9-
* http://polymer.github.io/CONTRIBUTORS.txt
10-
* Code distributed by Google as part of the polymer project is also
11-
* subject to an additional IP rights grant found at
12-
* http://polymer.github.io/PATENTS.txt
3+
* Copyright 2019 Google LLC
4+
* SPDX-License-Identifier: BSD-3-Clause
135
*/
146

157
import {hasNativeDeclarativeShadowRoots} from './feature_detect.js';

src/_implementation/mutation_observer.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
/**
22
* @license
3-
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4-
* This code may only be used under the BSD style license found at
5-
* http://polymer.github.io/LICENSE.txt
6-
* The complete set of authors may be found at
7-
* http://polymer.github.io/AUTHORS.txt
8-
* The complete set of contributors may be found at
9-
* http://polymer.github.io/CONTRIBUTORS.txt
10-
* Code distributed by Google as part of the polymer project is also
11-
* subject to an additional IP rights grant found at
12-
* http://polymer.github.io/PATENTS.txt
3+
* Copyright 2020 Google LLC
4+
* SPDX-License-Identifier: BSD-3-Clause
135
*/
146

157
import {hydrateShadowRoots} from './default_implementation.js';

src/_implementation/queryselectorall.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
/**
22
* @license
3-
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4-
* This code may only be used under the BSD style license found at
5-
* http://polymer.github.io/LICENSE.txt
6-
* The complete set of authors may be found at
7-
* http://polymer.github.io/AUTHORS.txt
8-
* The complete set of contributors may be found at
9-
* http://polymer.github.io/CONTRIBUTORS.txt
10-
* Code distributed by Google as part of the polymer project is also
11-
* subject to an additional IP rights grant found at
12-
* http://polymer.github.io/PATENTS.txt
3+
* Copyright 2020 Google LLC
4+
* SPDX-License-Identifier: BSD-3-Clause
135
*/
146

157
import {hasNativeDeclarativeShadowRoots} from './feature_detect.js';

src/_implementation/util.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
/**
22
* @license
3-
* Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
4-
* This code may only be used under the BSD style license found at
5-
* http://polymer.github.io/LICENSE.txt
6-
* The complete set of authors may be found at
7-
* http://polymer.github.io/AUTHORS.txt
8-
* The complete set of contributors may be found at
9-
* http://polymer.github.io/CONTRIBUTORS.txt
10-
* Code distributed by Google as part of the polymer project is also
11-
* subject to an additional IP rights grant found at
12-
* http://polymer.github.io/PATENTS.txt
3+
* Copyright 2019 Google LLC
4+
* SPDX-License-Identifier: BSD-3-Clause
135
*/
146

157
export const hasNoParentElement =

src/template-shadowroot.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
/**
22
* @license
3-
* Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
4-
* This code may only be used under the BSD style license found at
5-
* http://polymer.github.io/LICENSE.txt
6-
* The complete set of authors may be found at
7-
* http://polymer.github.io/AUTHORS.txt
8-
* The complete set of contributors may be found at
9-
* http://polymer.github.io/CONTRIBUTORS.txt
10-
* Code distributed by Google as part of the polymer project is also
11-
* subject to an additional IP rights grant found at
12-
* http://polymer.github.io/PATENTS.txt
3+
* Copyright 2019 Google LLC
4+
* SPDX-License-Identifier: BSD-3-Clause
135
*/
146

157
import {hasNativeDeclarativeShadowRoots} from './_implementation/feature_detect.js';

0 commit comments

Comments
 (0)