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
[all] Upgrade all package locks, includes TypeScript 4.4.2 #2113
Conversation
🦋 Changeset detectedLatest commit: 18bd187 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📊 Tachometer Benchmark ResultsSummarynop-update
render
update
update-reflect
Resultslit-element-list
render
update
update-reflect
lit-html-kitchen-sink
render
update
nop-update
lit-html-repeat
render
update
lit-html-template-heavy
render
update
reactive-element-list
render
update
update-reflect
|
packages/lit-html/src/lit-html.ts
Outdated
// entityReferenceExpansion parameter. This is the previous signature. | ||
entityReferenceExpansion?: boolean | ||
) => TreeWalker | ||
)(d, 129 /* NodeFilter.SHOW_{ELEMENT|COMMENT} */, null, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems awkward in comparison to just depending on the IE11 types.
Another nice part about depending on IE11 types is that if/when we drop IE11 support, we can drop those types and the error will let us know we can drop this hack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, done.
We will need to add this dependency, or write a patch, when we next import into google3, though.
Actually I guess not until we upgrade the TS version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PTAL @rictic
@@ -20,6 +20,6 @@ | |||
"rollup": "^2.41.1", | |||
"rollup-plugin-summary": "^1.3.0", | |||
"rollup-plugin-terser": "^7.0.2", | |||
"typescript": "^4.3.5" | |||
"typescript": "~4.3.5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this what we want to do here long term?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, but the typescript rollup plugin is totally broken with TypeScript 4.4, see rollup/plugins#983
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Too bad there's no comments allowed in json files :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do want to keep the typescript constraint as a ~x.y.z
though, so this is great. We should have had that before, but relied on the package lock...
devDependency
on new@types/web-ie11
package to address TS 4.4 changes document.createTreeWalker to only take three params, which is illegal in IE11 microsoft/TypeScript-DOM-lib-generator#1068xmldom
to new@xmldom/xmldom
due to [Security] now published as @xmldom/xmldom xmldom/xmldom#271@types/node
dependency tointernal-scripts
(not sure why this wasn't an error before -- maybe the Node types were coming via a transitive dependency which was removed by an upgrade).@lit/localize-tools
changes: don't runbuild
as part oftest
script, use@lit/ssr
bare module in test instead of relative path, trivial config file schema change from dependency upgrade.