Skip to content

Commit 77c6559

Browse files
Prepare 2.5.0 release (#1190)
* Add decorators.* to .gitignore * Prepare v2.5.0 * Update repo references from Polymer to Lit * Install Babel peer deps?
1 parent f2d3135 commit 77c6559

File tree

9 files changed

+20955
-1903
lines changed

9 files changed

+20955
-1903
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<!--
22
If you are asking a question rather than filing a bug, try one of these instead:
3-
- StackOverflow (https://stackoverflow.com/questions/tagged/polymer)
4-
- Polymer Slack Channel (https://bit.ly/polymerslack)
5-
- Mailing List (https://groups.google.com/forum/#!forum/polymer-dev)
3+
- StackOverflow (https://stackoverflow.com/questions/tagged/lit-element)
4+
- Lit and Friends Slack Channel (https://lit.dev/slack-invite/)
65
-->
7-
<!-- Instructions For Filing a Bug: https://github.com/Polymer/lit-element/blob/master/CONTRIBUTING.md#filing-bugs -->
6+
<!-- Instructions For Filing a Bug: https://github.com/lit/lit-element/blob/master/CONTRIBUTING.md#filing-bugs -->
87
### Description
98
<!-- Example: Error thrown when calling `appendChild` on Lit element -->
109

@@ -45,5 +44,5 @@ Example:
4544
<!--
4645
`npm ls` will show the version of webcomponents.js and lit-element
4746
-->
48-
- lit-element: vX.X.X
47+
- lit-element: v2.X.X
4948
- webcomponents: vX.X.X

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<!-- Instructions: https://github.com/Polymer/lit-element/blob/master/CONTRIBUTING.md#contributing-pull-requests -->
1+
<!-- Instructions: https://github.com/lit/lit-element/blob/master/CONTRIBUTING.md#contributing-pull-requests -->
22
### Reference Issue
33
<!-- Example: Fixes #1234 -->

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
/lit-element.d.ts
1010
/lit-element.d.ts.map
1111

12+
/decorators.js
13+
/decorators.js.map
14+
/decorators.d.ts
15+
/decorators.d.ts.map
16+
1217
/test/**/*.d.ts
1318
/test/**/*.d.ts.map
1419
/test/**/*.js

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1717
<!-- ### Removed -->
1818
<!-- ### Fixed -->
1919

20-
## Unreleased
20+
## [2.5.0] - 2021-04-29
2121

2222
### Changed
2323

CONTRIBUTING.md

Lines changed: 16 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
1-
# Contributing to Polymer
1+
# Contributing to LitElement
22

3-
There are many ways to contribute to the Polymer project! We welcome and truly appreciate contribution in all forms - issues and pull requests to the [main library](https://github.com/polymer/polymer), issues and pull requests to the [elements the Polymer team maintains](https://github.com/polymerelements), issues and pull requests to one of our many [Polymer-related tools](https://github.com/polymer), and of course we love to hear about any Polymer elements that you build to share with the community!
3+
There are many ways to contribute to Lit! We welcome and truly appreciate contribution in all forms - issues and pull requests to the [main libraries](https://github.com/lit/lit), issues and pull requests to the [lit.dev site](https://github.com/lit/lit.dev), and of course we love to hear about any Lit components that you build to share with the community!
4+
5+
## Status of this repository
6+
7+
The main LitElement code has been moved into the [Lit monorepo](https://github.com/lit/lit). All new development is happening there. This repository is only for critical updates to `lit-element` 2.x.
48

59
## Logistics
610

7-
### Communicating with the Polymer team
11+
### Communicating with the team
812

913
Beyond GitHub, we try to have a variety of different lines of communication open:
1014

11-
* [Blog](https://blog.polymer-project.org/)
15+
* [Blog](https://lit.dev/blog/)
1216
* [Twitter](https://twitter.com/buildWithLit)
13-
* [Mailing list](https://groups.google.com/forum/#!forum/polymer-dev)
14-
* [Slack channel](https://bit.ly/polymerslack)
15-
16-
### The Polymer Repositories
17-
18-
Because of the component-based nature of the Polymer project, we tend to have lots of different repositories. Our main repository for the Polymer library itself is at [github.com/Polymer/polymer](https://github.com/polymer/polymer). File any issues or pull requests that have to do with the core library on that repository, and we'll take a look ASAP.
19-
20-
We keep all of the element "product lines" that the Polymer team maintains and distributes in the [PolymerElements](https://github.com/polymerelements) organization. For any element-specific issues or pull requests, file directly on the element's repository, such as the `paper-button` repository at [github.com/polymerelements/paper-button](https://github.com/polymerelements/paper-button). Of course, the elements built by the Polymer team are just a tiny fraction of all the Polymer-based elements out there - catalogs of other web components include [https://www.webcomponents.org/](https://github.com/webcomponents/webcomponents.org) and [component.kitchen](https://component.kitchen).
21-
22-
The GoogleWebComponents element product line is maintained by teams all across Google, and so is kept in a separate organization: the [GoogleWebComponents](https://github.com/googlewebcomponents) org. Feel free to file issues and PR's on those elements directly in that organization.
23-
24-
We also track each element product line overall in "meta-repos", named as `$PRODUCTLINE-elements`. These include [paper-elements](https://github.com/polymerelements/paper-elements), [iron-elements](https://github.com/polymerelements/iron-elements), [gold-elements](https://github.com/polymerelements/gold-elements), and more. Feel free to file issues for element requests on those meta-repos, and the README in each repo tracks a roadmap for the product line.
17+
* [Slack channel](https://lit.dev/slack-invite/)
2518

2619
### Contributor License Agreement
2720

@@ -39,11 +32,9 @@ Docs source is in the `docs` folder. To build the site yourself, see the instruc
3932

4033
### Filing bugs
4134

42-
The Polymer team heavily uses (and loves!) GitHub for all of our software management. We use GitHub issues to track all bugs and features.
35+
The Lit team heavily uses (and loves!) GitHub for all of our software management. We use GitHub issues to track all bugs and features.
4336

44-
If you find an issue, please do file it on the repository. The [lit-element issues](https://github.com/Polymer/lit-element/issues) should be used only for issues on the lit-element library itself - bugs somewhere in the core codebase.
45-
46-
For issues with elements the team maintains, please file directly on the element's repository. If you're not sure if a bug stems from the element or the library, air toward filing it on the element and we'll move the issue if necessary.
37+
If you find an issue, please do file it on the repository. The [lit-element issues](https://github.com/lit/lit-element/issues) should be used only for issues on the lit-element library itself - bugs somewhere in the core codebase.
4738

4839
Please file issues using the issue template provided, filling out as many fields as possible. We love examples for addressing issues - issues with a jsBin, Plunkr, jsFiddle, or glitch.me repro will be much easier for us to work on quickly. You can start with [this StackBlitz](https://stackblitz.com/edit/lit-element-example?file=index.js) which sets up the basics to demonstrate a lit-element. If you need your repro to run in IE11, you can start from [this glitch](https://glitch.com/edit/#!/hello-lit-element?path=index.html:1:0), which serves the source via polyserve for automatic transpilation, although you must sign up for a glitch.me account to ensure your code persists for more than 5 days (note the glitch.me _editing environment_ is not compatible with IE11, however the "live" view link of the running code should work).
4940

@@ -64,31 +55,19 @@ PR's are even better than issues. We gladly accept community pull requests. In g
6455

6556
If you've completed all of these steps the core team will do its best to respond to the PR as soon as possible.
6657

67-
#### Contributing Code to Elements
68-
69-
Though the aim of the Polymer library is to allow lots of flexibility and not get in your way, we work to standardize our elements to make them as toolable and easy to maintain as possible.
70-
71-
All elements should follow the [Polymer element style guide](https://www.polymer-project.org/3.0/docs/tools/documentation), which defines how to specify properties, documentation, and more. It's a great guide to follow when building your own elements as well, for maximum standardization and toolability. For instance, structuring elements following the style guide will ensure that they work with the [`iron-component-page`](https://github.com/polymerelements/iron-component-page) element, an incredibly easy way to turn any raw element directly into a documentation page.
72-
73-
#### Contributing Code to the Polymer library
58+
#### Contributing Code to LitElement
7459

7560
We follow the most common JavaScript and HTML style guidelines for how we structure our code - in general, look at the code and you'll know how to contribute! If you'd like a bit more structure, the [Google JavaScript Styleguide](https://google.github.io/styleguide/javascriptguide.xml) is a good place to start.
7661

77-
Polymer also participates in Google's [Patch Rewards Program](https://www.google.com/about/appsecurity/patch-rewards/), where you can earn cold, hard cash for qualifying security patches to the Polymer library. Visit the [patch rewards page](https://www.google.com/about/appsecurity/patch-rewards/) to find out more.
62+
Lit also participates in Google's [Patch Rewards Program](https://www.google.com/about/appsecurity/patch-rewards/), where you can earn cold, hard cash for qualifying security patches to the Lit library. Visit the [patch rewards page](https://www.google.com/about/appsecurity/patch-rewards/) to find out more.
7863

7964
## Unit tests
8065

81-
All Polymer projects use [`polymer-cli`](https://github.com/Polymer/tools/tree/master/packages/cli) for unit tests.
82-
83-
For maximum flexibility, install `polymer-cli` locally:
84-
85-
npm install -g polymer-cli
86-
8766
### Running the lit-element unit tests
8867

8968
To run the lit-element unit tests:
9069

91-
1. Clone the [lit-element repo](https://github.com/polymer/lit-element).
70+
1. Clone the [lit-element repo](https://github.com/lit/lit-element).
9271

9372
2. Install the dependencies:
9473

@@ -98,45 +77,13 @@ To run the lit-element unit tests:
9877

9978
npm test
10079

101-
Or if you have `polymer-cli` installed locally:
102-
103-
polymer test --npm
104-
10580
To run individual test suites:
10681

10782
<code>npm test <var>path/to/suite</var></code>
10883

109-
Or:
110-
111-
<code>polymer test --npm <var>path/to/suite</var></code>
112-
113-
For example:
114-
115-
polymer test --npm test/index.html
116-
117-
You can also run tests in the browser:
118-
119-
polymer serve --npm
120-
121-
Navigate to:
122-
123-
[`http://localhost:8080/components/@polymer/lit-element/test/index.html`](http://localhost:8080/components/@polymer/lit-element/test/index.html)
12484

12585
### Configuring `web-component-tester`
12686

127-
By default, `polymer test` runs tests on all installed browsers. You can configure it
128-
to run tests on a subset of available browsers, or to run tests remotely using Sauce Labs.
129-
130-
See the [`web-component-tester` README](https://github.com/Polymer/tools/tree/master/packages/web-component-tester) for
131-
information on configuring the tool using by `polymer-cli` to run the tests.
132-
133-
### Viewing the source documentation locally
134-
135-
You can view the updates you make to the source documentation locally with the following steps.
136-
Make sure to rerun step 1 after every change you make.
137-
138-
1. Run `polymer analyze > analysis.json`
139-
140-
1. Run `polymer serve`
87+
By default, `npm test` runs tests on all installed browsers. You can configure it to run tests on a subset of available browsers, or to run tests remotely using Sauce Labs.
14188

142-
1. Open `http://127.0.0.1:PORT/components/polymer/` to view the documentation
89+
See the [`web-component-tester` README](https://github.com/Polymer/tools/tree/master/packages/web-component-tester) for information on configuring the test runner.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
LitElement is simple base class for creating fast, lightweight web components with [lit-html](https://lit-html.polymer-project.org/).
44

5-
[![Build Status](https://travis-ci.org/Polymer/lit-element.svg?branch=master)](https://travis-ci.org/Polymer/lit-element)
5+
[![Build Status](https://travis-ci.org/lit/lit-element.svg?branch=master)](https://travis-ci.org/lit/lit-element)
66
[![Published on npm](https://img.shields.io/npm/v/lit-element.svg)](https://www.npmjs.com/package/lit-element)
77
[![Join our Slack](https://img.shields.io/badge/slack-join%20chat-4a154b.svg)](https://lit.dev/slack-invite/)
8-
[![Mentioned in Awesome lit-html](https://awesome.re/mentioned-badge.svg)](https://github.com/web-padawan/awesome-lit-html)
8+
[![Mentioned in Awesome lit-html](https://awesome.re/mentioned-badge.svg)](https://github.com/web-padawan/awesome-lit)
99

1010
## Looking for Lit?
1111

12-
LitElement is now part of the [Lit library monorepo](https://github.com/lit/lit).
13-
Lit 2 includes lit-html 2.x and LitElement 3.x.
12+
LitElement is now part of the [Lit library monorepo](https://github.com/lit/lit). Lit 2 includes lit-html 2.x and LitElement 3.x.
1413

1514
This repo contains the code for LitElement 2.x.
1615

@@ -98,10 +97,11 @@ To prepare for Lit 2, update these APIs:
9897

9998
| LitElement 2.4 | LitElement 2.5/Lit 2 |
10099
|------------------------|-----------------------|
101-
| `import {customElement} from 'lit-element';` | `import {customElement} from 'lit-element/decorators.js';`
100+
| Decorator imports:<br>`import {customElement} from 'lit-element';` | `import {customElement} from 'lit-element/decorators.js';`
102101
| `@internalProperty() foo;` | `@state() foo;` |
103102
| Override `_getUpdateComplete()` | Override `getUpdateComplete()` |
104-
103+
| Shadow root options:</br> Override `createRenderRoot()`. | Add `static shadowRootOptions`.
104+
| `import {UpdatingElement} from 'lit-element';` | `import {ReactiveElement} from 'lit-element';` |
105105
## Contributing
106106

107107
Please see [CONTRIBUTING.md](./CONTRIBUTING.md).

0 commit comments

Comments
 (0)