Skip to content

Commit

Permalink
fix: createRenderRoot lit method denylist
Browse files Browse the repository at this point in the history
  • Loading branch information
thepassle committed Apr 24, 2024
1 parent 24fc86b commit e60cb14
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/analyzer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Release 0.9.6
- Added `createRenderRoot` to lit's method denylist

## Release 0.9.5
- When using `litPlugin`, it now removes overriden lit specific lifecycle methods to be aligned with the behavior of overriding lit specific lifecycle methods in classes

Expand Down
2 changes: 1 addition & 1 deletion packages/analyzer/browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205153,7 +205153,7 @@ var fastPlugin = () => [

// src/features/framework-plugins/lit/method-denylist.js
function methodDenyListPlugin2() {
const METHOD_DENY_LIST = ["requestUpdate", "performUpdate", "shouldUpdate", "update", "render", "firstUpdated", "updated", "willUpdate"];
const METHOD_DENY_LIST = ["requestUpdate", "createRenderRoot", "performUpdate", "shouldUpdate", "update", "render", "firstUpdated", "updated", "willUpdate"];
return {
name: "CORE - LIT-METHOD-DENYLIST",
moduleLinkPhase({ moduleDoc }) {
Expand Down
2 changes: 1 addition & 1 deletion packages/analyzer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@custom-elements-manifest/analyzer",
"version": "0.9.5",
"version": "0.9.6",
"description": "",
"license": "MIT",
"type": "module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Excludes methods from the manifest
*/
export function methodDenyListPlugin() {
const METHOD_DENY_LIST = ['requestUpdate', 'performUpdate', 'shouldUpdate', 'update', 'render', 'firstUpdated', 'updated', 'willUpdate'];
const METHOD_DENY_LIST = ['requestUpdate', 'createRenderRoot', 'performUpdate', 'shouldUpdate', 'update', 'render', 'firstUpdated', 'updated', 'willUpdate'];

return {
name: 'CORE - LIT-METHOD-DENYLIST',
Expand Down

0 comments on commit e60cb14

Please sign in to comment.