Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken compile with TypeScript 3.4 #935

Closed
linde12 opened this issue Mar 19, 2020 · 15 comments · Fixed by #936
Closed

Broken compile with TypeScript 3.4 #935

linde12 opened this issue Mar 19, 2020 · 15 comments · Fixed by #936
Assignees

Comments

@linde12
Copy link

linde12 commented Mar 19, 2020

Initiative / goal

Clarity regarding versioning.

Background

Today our builds broke because we are using lit-element@^2.2.0 combined with Angular 8 (using typescript 3.4.x). I debugged for a while and found that this happens because In v2.3.0 of lit-element the generated typescript definitions were generated with typescript 3.8.x and that version is incompatible with 3.4.x. I was assuming lit-element was following semver but after a closer look i couldn't find any documentation on it. The point of this PR is just to make it clearer that we may have breaking changes when the minor flag changes.

Scope

Clarify, in README.md possibly, on what versioning strategy lit-element is following.

@justinfagnani
Copy link
Contributor

Sorry you've experienced a break. Let's narrow this down to the specific break, rather than the very general title it has now. We do strive to follow semver, so I'd like to find out what actually happened.

In general, the version of TypeScript that we use shouldn't matter much for consumers, unless TypeScript itself has new backwards-incompatible feature in .d.ts output. I'm going to try run a diff between the .d.ts files, but do you have any details on what broke?

@justinfagnani justinfagnani changed the title 2.3.0 Breaking Change Broken compile with TypeScript 3.4 Mar 19, 2020
@rictic
Copy link
Contributor

rictic commented Mar 19, 2020

Workaround: try setting "skipLibCheck": true in compiler options

IMO this is not a breaking change, or a violation of semver. The code works at runtime.

The TypeScript compiler does not follow semver, so if we treated type checking issues as part of the semver contract then we would have to freeze a specific version of typescript as the only supported version until we next did a major breaking change. This wouldn't be helpful for our users, as most would, in practice, be either unable to use that version of TypeScript or would be missing out on newer TypeScript features.

That isn't to say that this isn't an issue for you that we'd like to fix – and odds are decent that it will be a pretty easy fix – it's just that we need to set expectations. This isn't unique to LitElement either, it's a general problem of including types with a library on npm.

@justinfagnani
Copy link
Contributor

Reference for the TypeScript semver bug: microsoft/TypeScript#14116

@rictic
Copy link
Contributor

rictic commented Mar 19, 2020

What're the error messages you're seeing?

Poking around with a local version of TS 3.4 I'm seeing An accessor cannot be declared in an ambient context.. It looks like a recent version of tsc started emitting getters in .d.ts files, while previously they would be emitted as readonly fields.

@rictic
Copy link
Contributor

rictic commented Mar 19, 2020

Looks like we can test with other versions of TypeScript by doing:

npm ci
npm run build # build with version from npm ci
npm install typescript@~3.4
npx tsc lit-element.d.ts --noEmit -t esnext --moduleResolution Node

@rictic
Copy link
Contributor

rictic commented Mar 19, 2020

The only thing stopping us from LitElement itself building with TypeScript 3.4 is the ?. syntax, but that code expands out a decent amount when transpiled to ≤ES2019 so maybe shouldn't get in the habit of using it in LitElement or lit-html yet.

@justinfagnani
Copy link
Contributor

Ideally it would be nice if TypeScript versioned the input syntax and output declaration syntax separately. We would like to use as new of features as possible for our code, but make our declaration files as compatible as possible.

@mzeiher
Copy link

mzeiher commented Mar 19, 2020

this also broke our builds, same for lit-html 1.2.0, we also got into this error with our own libraries, at the moment we use https://github.com/sandersn/downlevel-dts to ship different versions of type definitions for our library maybe this would also be a way for lit-* libraries? So we can still use the newest typescript but still support old typescript versions in the d.ts files next to the current one

@justinfagnani
Copy link
Contributor

Thanks for the pointer to that project @mzeiher!

I filed microsoft/TypeScript#37478 on TypeScript for this issue.

@linde12
Copy link
Author

linde12 commented Mar 19, 2020

Sorry you've experienced a break. Let's narrow this down to the specific break, rather than the very general title it has now. We do strive to follow semver, so I'd like to find out what actually happened.

In general, the version of TypeScript that we use shouldn't matter much for consumers, unless TypeScript itself has new backwards-incompatible feature in .d.ts output. I'm going to try run a diff between the .d.ts files, but do you have any details on what broke?

No worries at all! As for the generic title I just assumed it was intentional (typescript team does this as well where they don't follow semver and instead do breaking changes on the minor flag)

As @rictic mentioned the problems lies with backwards-compat in d.ts files and the specific error i got was the "An accessor cannot be declared in an ambient context" one because of the getters in the newer version of TS.

Anyway, to prevent future confusion it might be a good idea to mention something about following semver in the readme.

@linde12
Copy link
Author

linde12 commented Mar 19, 2020

Workaround: try setting "skipLibCheck": true in compiler options

IMO this is not a breaking change, or a violation of semver. The code works at runtime.

The TypeScript compiler does not follow semver, so if we treated type checking issues as part of the semver contract then we would have to freeze a specific version of typescript as the only supported version until we next did a major breaking change. This wouldn't be helpful for our users, as most would, in practice, be either unable to use that version of TypeScript or would be missing out on newer TypeScript features.

That isn't to say that this isn't an issue for you that we'd like to fix – and odds are decent that it will be a pretty easy fix – it's just that we need to set expectations. This isn't unique to LitElement either, it's a general problem of including types with a library on npm.

Yes, we considered using skipLibCheck but instead, as we "owned" that part of the code, we were able to just use v2.2.0 of lit-element.

IMO it is a breaking change per definition regardless if it's a dependency that is causing the break or not. It is breaking builds for some users who use an older version of typescript in their build process.

I agree that this is a problem for packages in general and i do hope the typescript team will address this at some point, but as a short term solution maybe downlevel-dts could solve the issue?

@rictic
Copy link
Contributor

rictic commented Mar 19, 2020

Yep, we should have a fix out shortly, and I'm adding a test that the downleveled .d.ts files compile in TS 3.4 to our continuous integration.

Given TypeScript's versioning and breakages policy, it's not impossible that skipLibCheck would be required at some points along the line, but with downlevel-dts we've at least got a fighting chance :)

Thanks again for the pointer @mzeiher!

@mzeiher
Copy link

mzeiher commented Mar 19, 2020

glad to be able to help :), this also led to a lot of headaches within our libraries :(

@GCour
Copy link

GCour commented Mar 19, 2020

What was the error? I'm getting this at the moment:

ERROR in node_modules/lit-element/lib/css-tag.d.ts:16:9 - error TS1086: An accessor cannot be declared in an ambient context.

16     get styleSheet(): CSSStyleSheet | null;
           ~~~~~~~~~~
node_modules/lit-element/lib/updating-element.d.ts:153:16 - error TS1086: An accessor cannot be declared in an ambient context.

153     static get observedAttributes(): string[];
                   ~~~~~~~~~~~~~~~~~~
node_modules/lit-element/lib/updating-element.d.ts:335:17 - error TS1086: An accessor cannot be declared in an ambient context.

335     private get _hasRequestedUpdate();
                    ~~~~~~~~~~~~~~~~~~~
node_modules/lit-element/lib/updating-element.d.ts:336:19 - error TS1086: An accessor cannot be declared in an ambient context.

336     protected get hasUpdated(): number;
                      ~~~~~~~~~~
node_modules/lit-element/lib/updating-element.d.ts:370:9 - error TS1086: An accessor cannot be declared in an ambient context

@rictic
Copy link
Contributor

rictic commented Mar 19, 2020

Yep, that's the failure that should be fixed by #936 @GCour

rictic added a commit to lit/lit that referenced this issue Mar 19, 2020
Related to lit/lit-element#935

Haven't heard anything about this being a problem for lit-html, but better to be ahead of any issues.
rictic added a commit to lit/lit that referenced this issue Mar 19, 2020
* Use downlevel-dts, test compile in TS 3.4

Related to lit/lit-element#935

Haven't heard anything about this being a problem for lit-html, but better to be ahead of any issues.

* Lock typescript version at ~3.8

Prevent breakage for devs coming into the lit-html repo and doing `npm install` after a new breaking release of TypeScript
bicknellr added a commit to lit/lit that referenced this issue May 3, 2021
* Remove trusted types mention from changelog

* Adds rendering test composing parts and slots (#1077)

* Adds rendering test composing parts and slots

Tests if #1046 has been addressed in the webcomponents polyfills.

* Update @webcomponents/webcomponentsjs dev dependency to required version

* Add 1.2.0 release notes (#1104)

* Don't disturb imperatively added classes in classMap (#1112)

Fix #1111

Revert classMap to previous implementation, but don't use classList or className.

* Fix lint errors (#1116)

* Prepare 1.2.0-pre.1 release (#1117)

* Link changelog issue (#1118)

* Prepare 1.2.0 release (#1128)

* Use downlevel-dts, test compile in TS 3.4 (#1129)

* Use downlevel-dts, test compile in TS 3.4

Related to lit/lit-element#935

Haven't heard anything about this being a problem for lit-html, but better to be ahead of any issues.

* Lock typescript version at ~3.8

Prevent breakage for devs coming into the lit-html repo and doing `npm install` after a new breaking release of TypeScript

* Prepare 1.2.1 release (#1130)

* Update new task template

* Update lint dependencies (#1099)

* Update a broken link in the documentation. (#1138)

* Doc usability improvements. Fixes #1133. (#1147)

* Doc usability improvements. Fixes #1133.

* Address feedback.

* Fix typo. (#1152)

* Update issue templates

added label

* Restore trusted types (#1153)

* Revert "Revert "Add trusted types support to lit html (#970)""

This reverts commit cedf4b3.

It also refactors the trusted types tests so that they can run with native trusted types enabled.

Also revamp the trusted types tests, and run all lit-html tests with trusted types enabled on browsers that support it natively.

* Adds the correct path information to the release notes links for #1163 (#1164)

* Updating links in guide to point to correct guides

https://lit-html.polymer-project.org/guide/release-notes

* Didn't need to actually go down a level in the dir

* Update docs/guide/release-notes/1.2.0.md

Co-authored-by: Arthur Evans <arthure@google.com>

* Update docs/guide/release-notes/1.2.0.md

Co-authored-by: Arthur Evans <arthure@google.com>

* Update docs/guide/release-notes/1.2.0.md

Co-authored-by: Arthur Evans <arthure@google.com>

Co-authored-by: Arthur Evans <arthure@google.com>

* Correct copyright dates. (#1171)

* Add BLM banner (#1172)

* docs: fixed small error (#1180)

Since this is just a typo fix in the README, I'm going to go ahead and merge it.

* Fix api doc (#1178)

* Fixes #1177.

* Fix links.

* Remove unneeded typedoc tags.

* Redirect old API URLs.

* Update firefox and edge logo (#1161)

Co-authored-by: Arthur Evans <arthure@google.com>

* Update dev server recommendations (#1059)

* Update dev server recommendations

Came here to fix a broken link, got more than I bargained for. Other recommendations (like linting and IDE plugins) may need updating as well.

* Address comments.

* Fix typos, add notes on attribute prefixes. (#933)

* Fix typos, add notes on attribute prefixes.

* More detail on strings param

* Run format.

* Make IDE plugins links, change recommendation (#956)

* Make IDE plugins links, change recommendation

I think we should recommend runem.lit-plugin because it supports type checking of template bindings, and it seems to be robust (I ran it across all of google3 and there were only a small number of issues, which I'm sending out PRs for)

* Address feedback, update linting suggestion.

* Address more feedback.

Co-authored-by: Arthur Evans <arthure@google.com>

* Bump lodash from 4.17.15 to 4.17.19 in /docs (#1183)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Arthur Evans <arthure@google.com>

* Set type in package.json to "module" (#1146)

This would let Node >=13 to load lit-html as ES modules without any other bundling tools.

Move check-version-tracker file extension to .cjs to continue loading it as cjs.

* Fix trusted types tests. (#1193)

* Fix trusted types tests.

Also fix support for trusted types in the unsafeSVG directive.

Have to handle IE separately in unsafe-svg because apparently the svgElement.innerHTML setter is a no op in IE :/

* chore(shady-render): export shadyTemplateFactory (#1135)

* Update changelog for 1.3.0

* Prepare 1.3.0-pre.1 release

* Add 1.3.0 release notes (#1202)

* Prep 1.3.0 release

* Update package lock

* Remove ts3.4 typings before generating

* Update Tachometer

* Add chromedriver as a devDependency

* Fix flaky async-append test

* Update build docs (#1201)

* Revised build docs WIP.

* Update build docs. Fixes #1148.

* Address feedback.

* Address feedback, fix typos.

* Create lit-html-next-bug-report.md (#1308)

* Create lit-html-next-bug-report.md

Add issue template

* Apply suggestions from code review

* Create lit-element@next-major issue template (#1320)

* Create lit-element-next-bug-report.md

* Apply suggestions from code review

* Fix issue template formatting

* Fix styleMap example (#1433)

Example function has a body, hence it doesn't have an implicit return value. An explicit return value is needed for the example to make sense.

* Fix typos in 03-styling-templates.md (#1511)

* Fix typos in 06-template-reference.md (#1562)

* [lit-html] add Lit 2 directive syntax to Lit 1 (#1654)

Co-authored-by: Kevin Schaaf <kschaaf@google.com>
Co-authored-by: Russell Bicknell <bicknellr@google.com>

* Small fixes to 1.3.0 release ntoes (#1719)

* Correct evasive typo (#1725)

change "current" -> "currently"

* Small tweaks to forward-compat directives (#1748)

* [lit-html] Update Twitter handle from polymer -> buildWithLit (#1779)

* Add version banner, landing page redirect. (#1786)

* [lit-html] Prepare v1.4.0 release (#1809)

Co-authored-by: Justin Fagnani <justinfagnani@google.com>
Co-authored-by: Steve Orvell <sorvell@google.com>
Co-authored-by: Abraham Williams <4braham@gmail.com>
Co-authored-by: Peter Burns <rictic@google.com>
Co-authored-by: Abdón Rodríguez Davila <a@abdonrd.com>
Co-authored-by: Lukas Papay <papay.lukas@gmail.com>
Co-authored-by: Arthur Evans <arthure@google.com>
Co-authored-by: nicolejadeyee <nicolejadeyee@gmail.com>
Co-authored-by: Paul Kinlan <paul.kinlan@gmail.com>
Co-authored-by: 0xflotus <0xflotus@gmail.com>
Co-authored-by: Felix Schulze Sindern <47390169+FelixSchuSi@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: vikerman <vikerman@users.noreply.github.com>
Co-authored-by: Manuel Martín <manuel.martin@gmail.com>
Co-authored-by: tikotus <jahvenni@gmail.com>
Co-authored-by: Nicolás Font <nicolasfont@gmail.com>
Co-authored-by: Vadim Filimonov <philimonovvadim@gmail.com>
Co-authored-by: Elliott Marquez <emarquez@google.com>
Co-authored-by: Kevin Schaaf <kschaaf@google.com>
Co-authored-by: Todd Pressley <todd.pressley1@gmail.com>
Co-authored-by: Elliott Marquez <me@elliottmarquez.dev>
bicknellr added a commit to lit/lit that referenced this issue Jul 1, 2021
* Remove trusted types mention from changelog

* Adds rendering test composing parts and slots (#1077)

* Adds rendering test composing parts and slots

Tests if #1046 has been addressed in the webcomponents polyfills.

* Update @webcomponents/webcomponentsjs dev dependency to required version

* Add 1.2.0 release notes (#1104)

* Don't disturb imperatively added classes in classMap (#1112)

Fix #1111

Revert classMap to previous implementation, but don't use classList or className.

* Fix lint errors (#1116)

* Prepare 1.2.0-pre.1 release (#1117)

* Link changelog issue (#1118)

* Prepare 1.2.0 release (#1128)

* Use downlevel-dts, test compile in TS 3.4 (#1129)

* Use downlevel-dts, test compile in TS 3.4

Related to lit/lit-element#935

Haven't heard anything about this being a problem for lit-html, but better to be ahead of any issues.

* Lock typescript version at ~3.8

Prevent breakage for devs coming into the lit-html repo and doing `npm install` after a new breaking release of TypeScript

* Prepare 1.2.1 release (#1130)

* Update new task template

* Update lint dependencies (#1099)

* Update a broken link in the documentation. (#1138)

* Doc usability improvements. Fixes #1133. (#1147)

* Doc usability improvements. Fixes #1133.

* Address feedback.

* Fix typo. (#1152)

* Update issue templates

added label

* Restore trusted types (#1153)

* Revert "Revert "Add trusted types support to lit html (#970)""

This reverts commit cedf4b3.

It also refactors the trusted types tests so that they can run with native trusted types enabled.

Also revamp the trusted types tests, and run all lit-html tests with trusted types enabled on browsers that support it natively.

* Adds the correct path information to the release notes links for #1163 (#1164)

* Updating links in guide to point to correct guides

https://lit-html.polymer-project.org/guide/release-notes

* Didn't need to actually go down a level in the dir

* Update docs/guide/release-notes/1.2.0.md

Co-authored-by: Arthur Evans <arthure@google.com>

* Update docs/guide/release-notes/1.2.0.md

Co-authored-by: Arthur Evans <arthure@google.com>

* Update docs/guide/release-notes/1.2.0.md

Co-authored-by: Arthur Evans <arthure@google.com>

Co-authored-by: Arthur Evans <arthure@google.com>

* Correct copyright dates. (#1171)

* Add BLM banner (#1172)

* docs: fixed small error (#1180)

Since this is just a typo fix in the README, I'm going to go ahead and merge it.

* Fix api doc (#1178)

* Fixes #1177.

* Fix links.

* Remove unneeded typedoc tags.

* Redirect old API URLs.

* Update firefox and edge logo (#1161)

Co-authored-by: Arthur Evans <arthure@google.com>

* Update dev server recommendations (#1059)

* Update dev server recommendations

Came here to fix a broken link, got more than I bargained for. Other recommendations (like linting and IDE plugins) may need updating as well.

* Address comments.

* Fix typos, add notes on attribute prefixes. (#933)

* Fix typos, add notes on attribute prefixes.

* More detail on strings param

* Run format.

* Make IDE plugins links, change recommendation (#956)

* Make IDE plugins links, change recommendation

I think we should recommend runem.lit-plugin because it supports type checking of template bindings, and it seems to be robust (I ran it across all of google3 and there were only a small number of issues, which I'm sending out PRs for)

* Address feedback, update linting suggestion.

* Address more feedback.

Co-authored-by: Arthur Evans <arthure@google.com>

* Bump lodash from 4.17.15 to 4.17.19 in /docs (#1183)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Arthur Evans <arthure@google.com>

* Set type in package.json to "module" (#1146)

This would let Node >=13 to load lit-html as ES modules without any other bundling tools.

Move check-version-tracker file extension to .cjs to continue loading it as cjs.

* Fix trusted types tests. (#1193)

* Fix trusted types tests.

Also fix support for trusted types in the unsafeSVG directive.

Have to handle IE separately in unsafe-svg because apparently the svgElement.innerHTML setter is a no op in IE :/

* chore(shady-render): export shadyTemplateFactory (#1135)

* Update changelog for 1.3.0

* Prepare 1.3.0-pre.1 release

* Add 1.3.0 release notes (#1202)

* Prep 1.3.0 release

* Update package lock

* Remove ts3.4 typings before generating

* Update Tachometer

* Add chromedriver as a devDependency

* Fix flaky async-append test

* Update build docs (#1201)

* Revised build docs WIP.

* Update build docs. Fixes #1148.

* Address feedback.

* Address feedback, fix typos.

* Create lit-html-next-bug-report.md (#1308)

* Create lit-html-next-bug-report.md

Add issue template

* Apply suggestions from code review

* Create lit-element@next-major issue template (#1320)

* Create lit-element-next-bug-report.md

* Apply suggestions from code review

* Fix issue template formatting

* Fix styleMap example (#1433)

Example function has a body, hence it doesn't have an implicit return value. An explicit return value is needed for the example to make sense.

* Fix typos in 03-styling-templates.md (#1511)

* Fix typos in 06-template-reference.md (#1562)

* [lit-html] add Lit 2 directive syntax to Lit 1 (#1654)

Co-authored-by: Kevin Schaaf <kschaaf@google.com>
Co-authored-by: Russell Bicknell <bicknellr@google.com>

* Small fixes to 1.3.0 release ntoes (#1719)

* Correct evasive typo (#1725)

change "current" -> "currently"

* Small tweaks to forward-compat directives (#1748)

* [lit-html] Update Twitter handle from polymer -> buildWithLit (#1779)

* Add version banner, landing page redirect. (#1786)

* [lit-html] Prepare v1.4.0 release (#1809)

* build: add lit 2 directive files for publish (#1841)

* Prepare lit-html 1.4.1 release (#1849)

* Update social media links. (#1813)

* [lit-html] Add `PropertyPart` to directives forward-compat file. (#1869)

* Add `PropertyPart` to directives forward-compat file.

* Test that `PartInfo`s provided to directives have the correct `.type`.

* Use better names in templates used to test PartInfo.

* Remove unnecessary constructor.

* format

* `lit-html-1.x`: Run tests on GitHub actions (#1967)

* Copy test workflow from main branch.

* Update test workflows to work with the lit-html-1.x branch.

* Run local tests in XVFB

* Update `actions/setup-node` and node version.

* Remove 'benchmarks.yml' reference in comments.

* Delete `.travis.yml` and `travis-bench.sh`.

* Initial attempt at porting the benchmarks to a GitHub action.

* Update tachometer.

* Copy benchmarks workflow from main branch.

* Update benchmark workflow to work with the lit-html-1.x branch.

* Fix node_modules key.

* Update to `actions/setup-node@v2`.

* Use `git+https` protocol to avoid SSH which doesn't seem to work.

* Move tachometer config to an external file.

* Fix benchmark names in report action.

* Update chromedriver.

* Update URLs and references in tachometer.json .

* Update ref in tachometer.json .

* Update badge in README.md .

* Remove `report-id` field from Tachometer reporter step.

* Upstream cl/376929825: Fix compilation issues with TypeScript 4.3. (#1940)

Co-authored-by: Justin Fagnani <justinfagnani@google.com>
Co-authored-by: Steve Orvell <sorvell@google.com>
Co-authored-by: Abraham Williams <4braham@gmail.com>
Co-authored-by: Peter Burns <rictic@google.com>
Co-authored-by: Abdón Rodríguez Davila <a@abdonrd.com>
Co-authored-by: Lukas Papay <papay.lukas@gmail.com>
Co-authored-by: Arthur Evans <arthure@google.com>
Co-authored-by: nicolejadeyee <nicolejadeyee@gmail.com>
Co-authored-by: Paul Kinlan <paul.kinlan@gmail.com>
Co-authored-by: 0xflotus <0xflotus@gmail.com>
Co-authored-by: Felix Schulze Sindern <47390169+FelixSchuSi@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: vikerman <vikerman@users.noreply.github.com>
Co-authored-by: Manuel Martín <manuel.martin@gmail.com>
Co-authored-by: tikotus <jahvenni@gmail.com>
Co-authored-by: Nicolás Font <nicolasfont@gmail.com>
Co-authored-by: Vadim Filimonov <philimonovvadim@gmail.com>
Co-authored-by: Elliott Marquez <emarquez@google.com>
Co-authored-by: Kevin Schaaf <kschaaf@google.com>
Co-authored-by: Todd Pressley <todd.pressley1@gmail.com>
Co-authored-by: Elliott Marquez <me@elliottmarquez.dev>
bicknellr added a commit to lit/lit that referenced this issue Aug 6, 2021
* Remove trusted types mention from changelog

* Adds rendering test composing parts and slots (#1077)

* Adds rendering test composing parts and slots

Tests if #1046 has been addressed in the webcomponents polyfills.

* Update @webcomponents/webcomponentsjs dev dependency to required version

* Add 1.2.0 release notes (#1104)

* Don't disturb imperatively added classes in classMap (#1112)

Fix #1111

Revert classMap to previous implementation, but don't use classList or className.

* Fix lint errors (#1116)

* Prepare 1.2.0-pre.1 release (#1117)

* Link changelog issue (#1118)

* Prepare 1.2.0 release (#1128)

* Use downlevel-dts, test compile in TS 3.4 (#1129)

* Use downlevel-dts, test compile in TS 3.4

Related to lit/lit-element#935

Haven't heard anything about this being a problem for lit-html, but better to be ahead of any issues.

* Lock typescript version at ~3.8

Prevent breakage for devs coming into the lit-html repo and doing `npm install` after a new breaking release of TypeScript

* Prepare 1.2.1 release (#1130)

* Update new task template

* Update lint dependencies (#1099)

* Update a broken link in the documentation. (#1138)

* Doc usability improvements. Fixes #1133. (#1147)

* Doc usability improvements. Fixes #1133.

* Address feedback.

* Fix typo. (#1152)

* Update issue templates

added label

* Restore trusted types (#1153)

* Revert "Revert "Add trusted types support to lit html (#970)""

This reverts commit cedf4b3.

It also refactors the trusted types tests so that they can run with native trusted types enabled.

Also revamp the trusted types tests, and run all lit-html tests with trusted types enabled on browsers that support it natively.

* Adds the correct path information to the release notes links for #1163 (#1164)

* Updating links in guide to point to correct guides

https://lit-html.polymer-project.org/guide/release-notes

* Didn't need to actually go down a level in the dir

* Update docs/guide/release-notes/1.2.0.md

Co-authored-by: Arthur Evans <arthure@google.com>

* Update docs/guide/release-notes/1.2.0.md

Co-authored-by: Arthur Evans <arthure@google.com>

* Update docs/guide/release-notes/1.2.0.md

Co-authored-by: Arthur Evans <arthure@google.com>

Co-authored-by: Arthur Evans <arthure@google.com>

* Correct copyright dates. (#1171)

* Add BLM banner (#1172)

* docs: fixed small error (#1180)

Since this is just a typo fix in the README, I'm going to go ahead and merge it.

* Fix api doc (#1178)

* Fixes #1177.

* Fix links.

* Remove unneeded typedoc tags.

* Redirect old API URLs.

* Update firefox and edge logo (#1161)

Co-authored-by: Arthur Evans <arthure@google.com>

* Update dev server recommendations (#1059)

* Update dev server recommendations

Came here to fix a broken link, got more than I bargained for. Other recommendations (like linting and IDE plugins) may need updating as well.

* Address comments.

* Fix typos, add notes on attribute prefixes. (#933)

* Fix typos, add notes on attribute prefixes.

* More detail on strings param

* Run format.

* Make IDE plugins links, change recommendation (#956)

* Make IDE plugins links, change recommendation

I think we should recommend runem.lit-plugin because it supports type checking of template bindings, and it seems to be robust (I ran it across all of google3 and there were only a small number of issues, which I'm sending out PRs for)

* Address feedback, update linting suggestion.

* Address more feedback.

Co-authored-by: Arthur Evans <arthure@google.com>

* Bump lodash from 4.17.15 to 4.17.19 in /docs (#1183)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Arthur Evans <arthure@google.com>

* Set type in package.json to "module" (#1146)

This would let Node >=13 to load lit-html as ES modules without any other bundling tools.

Move check-version-tracker file extension to .cjs to continue loading it as cjs.

* Fix trusted types tests. (#1193)

* Fix trusted types tests.

Also fix support for trusted types in the unsafeSVG directive.

Have to handle IE separately in unsafe-svg because apparently the svgElement.innerHTML setter is a no op in IE :/

* chore(shady-render): export shadyTemplateFactory (#1135)

* Update changelog for 1.3.0

* Prepare 1.3.0-pre.1 release

* Add 1.3.0 release notes (#1202)

* Prep 1.3.0 release

* Update package lock

* Remove ts3.4 typings before generating

* Update Tachometer

* Add chromedriver as a devDependency

* Fix flaky async-append test

* Update build docs (#1201)

* Revised build docs WIP.

* Update build docs. Fixes #1148.

* Address feedback.

* Address feedback, fix typos.

* Create lit-html-next-bug-report.md (#1308)

* Create lit-html-next-bug-report.md

Add issue template

* Apply suggestions from code review

* Create lit-element@next-major issue template (#1320)

* Create lit-element-next-bug-report.md

* Apply suggestions from code review

* Fix issue template formatting

* Fix styleMap example (#1433)

Example function has a body, hence it doesn't have an implicit return value. An explicit return value is needed for the example to make sense.

* Fix typos in 03-styling-templates.md (#1511)

* Fix typos in 06-template-reference.md (#1562)

* [lit-html] add Lit 2 directive syntax to Lit 1 (#1654)

Co-authored-by: Kevin Schaaf <kschaaf@google.com>
Co-authored-by: Russell Bicknell <bicknellr@google.com>

* Small fixes to 1.3.0 release ntoes (#1719)

* Correct evasive typo (#1725)

change "current" -> "currently"

* Small tweaks to forward-compat directives (#1748)

* [lit-html] Update Twitter handle from polymer -> buildWithLit (#1779)

* Add version banner, landing page redirect. (#1786)

* [lit-html] Prepare v1.4.0 release (#1809)

* build: add lit 2 directive files for publish (#1841)

* Prepare lit-html 1.4.1 release (#1849)

* Update social media links. (#1813)

* [lit-html] Add `PropertyPart` to directives forward-compat file. (#1869)

* Add `PropertyPart` to directives forward-compat file.

* Test that `PartInfo`s provided to directives have the correct `.type`.

* Use better names in templates used to test PartInfo.

* Remove unnecessary constructor.

* format

* `lit-html-1.x`: Run tests on GitHub actions (#1967)

* Copy test workflow from main branch.

* Update test workflows to work with the lit-html-1.x branch.

* Run local tests in XVFB

* Update `actions/setup-node` and node version.

* Remove 'benchmarks.yml' reference in comments.

* Delete `.travis.yml` and `travis-bench.sh`.

* Initial attempt at porting the benchmarks to a GitHub action.

* Update tachometer.

* Copy benchmarks workflow from main branch.

* Update benchmark workflow to work with the lit-html-1.x branch.

* Fix node_modules key.

* Update to `actions/setup-node@v2`.

* Use `git+https` protocol to avoid SSH which doesn't seem to work.

* Move tachometer config to an external file.

* Fix benchmark names in report action.

* Update chromedriver.

* Update URLs and references in tachometer.json .

* Update ref in tachometer.json .

* Update badge in README.md .

* Remove `report-id` field from Tachometer reporter step.

* Upstream cl/376929825: Fix compilation issues with TypeScript 4.3. (#1940)

* `lit-html-1.x`: Replace local type declarations for polyfill APIs with those imported from the polyfills. (#2017)

* Temporarily add local tarball based off of the `ts-externs` branch in webcomponents/polyfills.

* Use the polyfill tarball package.

* Remove local polyfill type declarations and reference those from the polyfill package instead.

* format

* Update webcomponentsjs tarball.

* Replace local polyfills tarball with `@webcomponents/webcomponentsjs@^2.6.0`.

Co-authored-by: Justin Fagnani <justinfagnani@google.com>
Co-authored-by: Steve Orvell <sorvell@google.com>
Co-authored-by: Abraham Williams <4braham@gmail.com>
Co-authored-by: Peter Burns <rictic@google.com>
Co-authored-by: Abdón Rodríguez Davila <a@abdonrd.com>
Co-authored-by: Lukas Papay <papay.lukas@gmail.com>
Co-authored-by: Arthur Evans <arthure@google.com>
Co-authored-by: nicolejadeyee <nicolejadeyee@gmail.com>
Co-authored-by: Paul Kinlan <paul.kinlan@gmail.com>
Co-authored-by: 0xflotus <0xflotus@gmail.com>
Co-authored-by: Felix Schulze Sindern <47390169+FelixSchuSi@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: vikerman <vikerman@users.noreply.github.com>
Co-authored-by: Manuel Martín <manuel.martin@gmail.com>
Co-authored-by: tikotus <jahvenni@gmail.com>
Co-authored-by: Nicolás Font <nicolasfont@gmail.com>
Co-authored-by: Vadim Filimonov <philimonovvadim@gmail.com>
Co-authored-by: Elliott Marquez <emarquez@google.com>
Co-authored-by: Kevin Schaaf <kschaaf@google.com>
Co-authored-by: Todd Pressley <todd.pressley1@gmail.com>
Co-authored-by: Elliott Marquez <me@elliottmarquez.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants