-
Notifications
You must be signed in to change notification settings - Fork 382
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
chore: udpate deps #3520
chore: udpate deps #3520
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -29,7 +29,7 @@ | |||||
"@lwc/rollup-plugin-node-resolve-legacy": "npm:rollup-plugin-node-resolve@5.2.0", | ||||||
"folder-hash": "4.0.4", | ||||||
"markdown-table": "^3.0.3", | ||||||
"tachometer": "0.5.10" | ||||||
"tachometer": "0.7.0" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can't upgrade Tachometer. See the note above: lwc/packages/@lwc/perf-benchmarks/package.json Lines 15 to 16 in 5a6188e
|
||||||
}, | ||||||
"nx": { | ||||||
"targets": { | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,13 +13,13 @@ const CAMEL_REGEX = /-([a-z])/g; | |
* Maps boolean attribute name to supported tags: 'boolean attr name' => Set of allowed tag names | ||
* that supports them. | ||
*/ | ||
const BOOLEAN_ATTRIBUTES = new Map([ | ||
['autofocus', new Set(['button', 'input', 'keygen', 'select', 'textarea'])], | ||
['autoplay', new Set(['audio', 'video'])], | ||
['checked', new Set(['command', 'input'])], | ||
const BOOLEAN_ATTRIBUTES = /*@__PURE__@*/ new Map([ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needed because rollup started marking We could mark Map, Set as pure in rollup.config.js, but that would be on the consumer to do, and if they, for some reason, don't do it, these are not tree-shaken. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting! Great find. Looks like they're marking all |
||
['autofocus', /*@__PURE__@*/ new Set(['button', 'input', 'keygen', 'select', 'textarea'])], | ||
['autoplay', /*@__PURE__@*/ new Set(['audio', 'video'])], | ||
['checked', /*@__PURE__@*/ new Set(['command', 'input'])], | ||
[ | ||
'disabled', | ||
new Set([ | ||
/*@__PURE__@*/ new Set([ | ||
'button', | ||
'command', | ||
'fieldset', | ||
|
@@ -30,17 +30,18 @@ const BOOLEAN_ATTRIBUTES = new Map([ | |
'textarea', | ||
]), | ||
], | ||
['formnovalidate', new Set(['button'])], // button[type=submit] | ||
['hidden', new Set()], // Global attribute | ||
['loop', new Set(['audio', 'bgsound', 'marquee', 'video'])], | ||
['multiple', new Set(['input', 'select'])], | ||
['muted', new Set(['audio', 'video'])], | ||
['novalidate', new Set(['form'])], | ||
['open', new Set(['details'])], | ||
['readonly', new Set(['input', 'textarea'])], | ||
['required', new Set(['input', 'select', 'textarea'])], | ||
['reversed', new Set(['ol'])], | ||
['selected', new Set(['option'])], | ||
['formnovalidate', /*@__PURE__@*/ new Set(['button'])], // button[type=submit] | ||
['hidden', /*@__PURE__@*/ new Set()], // Global attribute | ||
['loop', /*@__PURE__@*/ new Set(['audio', 'bgsound', 'marquee', 'video'])], | ||
['multiple', /*@__PURE__@*/ new Set(['input', 'select'])], | ||
['muted', /*@__PURE__@*/ new Set(['audio', 'video'])], | ||
['novalidate', /*@__PURE__@*/ new Set(['form'])], | ||
['open', /*@__PURE__@*/ new Set(['details'])], | ||
['readonly', /*@__PURE__@*/ new Set(['input', 'textarea'])], | ||
['readonly', /*@__PURE__@*/ new Set(['input', 'textarea'])], | ||
['required', /*@__PURE__@*/ new Set(['input', 'select', 'textarea'])], | ||
['reversed', /*@__PURE__@*/ new Set(['ol'])], | ||
['selected', /*@__PURE__@*/ new Set(['option'])], | ||
]); | ||
|
||
export function isBooleanAttribute(attrName: string, tagName: string): boolean { | ||
|
@@ -52,7 +53,7 @@ export function isBooleanAttribute(attrName: string, tagName: string): boolean { | |
} | ||
|
||
// This list is based on https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes | ||
const GLOBAL_ATTRIBUTE = new Set([ | ||
const GLOBAL_ATTRIBUTE = /*@__PURE__*/ new Set([ | ||
'accesskey', | ||
'autocapitalize', | ||
'autofocus', | ||
|
@@ -130,12 +131,12 @@ const { NO_STANDARD_ATTRIBUTE_PROPERTY_MAPPING, NO_STANDARD_PROPERTY_ATTRIBUTE_M | |
/** | ||
* Map associating previously transformed HTML property into HTML attribute. | ||
*/ | ||
const CACHED_PROPERTY_ATTRIBUTE_MAPPING = new Map<string, string>(); | ||
const CACHED_PROPERTY_ATTRIBUTE_MAPPING = /*@__PURE__@*/ new Map<string, string>(); | ||
|
||
/** | ||
* Map associating previously transformed HTML attribute into HTML property. | ||
*/ | ||
const CACHED_ATTRIBUTE_PROPERTY_MAPPING = new Map<string, string>(); | ||
const CACHED_ATTRIBUTE_PROPERTY_MAPPING = /*@__PURE__@*/ new Map<string, string>(); | ||
|
||
export function htmlPropertyToAttribute(propName: string): string { | ||
const ariaAttributeName = AriaPropNameToAttrNameMap[propName]; | ||
|
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 checked, the breaking change is to remove the default export (isaacs/node-glob@26673b9), looks like we aren't using it anywhere anymore.