File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 217217 " lit-html"
218218 ],
219219 "engines" : {
220- "node" : " >=20" ,
220+ "node" : " >=20.10.0 " ,
221221 "yarn" : " >=4.6.0"
222222 },
223223 "wireit" : {
Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ const packageVersion = async function (packageName) {
1919 packageJSON = await import (
2020 `../../packages/${ packageName } /package.json` ,
2121 {
22- assert : { type : 'json' } ,
22+ with : { type : 'json' } ,
2323 }
2424 ) . then ( ( packageDefault ) => packageDefault . default ) ;
2525 } catch ( e ) {
2626 try {
2727 packageJSON = await import (
2828 `../../tools/${ packageName } /package.json` ,
2929 {
30- assert : { type : 'json' } ,
30+ with : { type : 'json' } ,
3131 }
3232 ) . then ( ( packageDefault ) => packageDefault . default ) ;
3333 } catch ( e ) { }
Original file line number Diff line number Diff line change @@ -63,8 +63,11 @@ const findDeprecationNotice = async function (filePath) {
6363 for await ( const mdPath of globby . stream ( filePath ) ) {
6464 const hasDeprecation = fs . existsSync ( mdPath ) ;
6565 if ( hasDeprecation ) {
66+ // Using 'with' syntax for import attributes (required in Node.js 20.10+).
67+ // The 'assert' keyword was deprecated and replaced with 'with' per TC39 proposal.
68+ // See: https://github.com/tc39/proposal-import-attributes
6669 const packageJSON = await import ( mdPath , {
67- assert : { type : 'json' } ,
70+ with : { type : 'json' } ,
6871 } ) . then ( ( packageDefault ) => packageDefault . default ) ;
6972 return packageJSON . deprecationNotice ;
7073 }
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ $ node test/benchmark/cli -n 20
235235 'package.json'
236236 ) ,
237237 {
238- assert : { type : 'json' } ,
238+ with : { type : 'json' } ,
239239 }
240240 ) ;
241241 if ( pjson . version === '0.0.1' && opts . compare !== 'none' ) {
@@ -245,7 +245,9 @@ $ node test/benchmark/cli -n 20
245245 ) ;
246246 return ;
247247 }
248- if ( ! config . benchmarks ) return ;
248+ if ( ! config . benchmarks ) {
249+ return ;
250+ }
249251 if ( opts . compare !== 'none' ) {
250252 config . benchmarks . push ( {
251253 name : `${ packageName } :${ benchmark } ` ,
You can’t perform that action at this time.
0 commit comments