Update NodeJS dependencies
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@evilmartians/lefthook | devDependencies | patch | ^1.4.7 -> ^1.4.8 |
@gitlab/svgs | dependencies | minor | ^3.58.0 -> ^3.59.0 |
prettier (source) | devDependencies | patch | ^3.0.0 -> ^3.0.1 |
rollup (source) | devDependencies | patch | ^3.27.0 -> ^3.27.2 |
sass | devDependencies | patch | ^1.64.1 -> ^1.64.2 |
vite (source) | devDependencies | patch | ^4.4.7 -> ^4.4.8 |
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
evilmartians/lefthook
v1.4.8
- feat: add assert_lefthook_installed option (#533) by @mrexox
- chore: add Add docs to MR template (#532) by @technicalpickles
- feat: add support for skipping empty summaries (#531) by @technicalpickles
prettier/prettier
v3.0.1
#14812 by @fisker)
Fix cursor positioning for a special case (// <|> is the cursor position
/* Input */
// All messages are represented in JSON.
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
import {<|> } from "fs"
/* Prettier 3.0.0 */
// All messages are represented in JSON.
// So, the prettier.py <|>controls a subprocess which spawns "node {this_file}".
import {} from "fs"
/* Prettier 3.0.1 */
// All messages are represented in JSON.
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
import {<|>} from "fs"
#15018 by @kingyue737)
Fix plugins/estree.d.ts to make it a module (Add export {}
in plugins/estree.d.ts
to fix the "File is not a module" error
#15037 by @auvred)
Add parenthesis around leading multiline comment in return statement (// Input
function fn() {
return (
/**
* @​type {...}
*/ expresssion
)
}
// Prettier 3.0.0
function fn() {
return /**
* @​type {...}
*/ expresssion;
}
// Prettier 3.0.1
function fn() {
return (
/**
* @​type {...}
*/ expresssion
);
}
#15066 by @auvred)
Add support for Vue "Generic Components" (https://blog.vuejs.org/posts/vue-3-3#generic-components
<!-- Input -->
<script setup lang="ts" generic="T extends Type1 & Type2 & (Type3 | Type4), U extends string | number | boolean"></script>
<!-- Prettier 3.0.0 -->
<script
setup
lang="ts"
generic="T extends Type1 & Type2 & (Type3 | Type4), U extends string | number | boolean"
></script>
<!-- Prettier 3.0.1 -->
<script
setup
lang="ts"
generic="
T extends Type1 & Type2 & (Type3 | Type4),
U extends string | number | boolean
"
></script>
IfStatement
(#15076 by @fisker)
Fix comments print in function a(b) {
if (b) return 1; // comment
else return 2;
}
/* Prettier 3.0.0 */
Error: Comment "comment" was not printed. Please report this error!
/* Prettier 3.0.1 */
function a(b) {
if (b) return 1; // comment
else return 2;
}
printer.preprocess
(#15123 by @so1ve)
Add missing type definition for export interface Printer<T = any> {
// ...
+ preprocess?:
+ | ((ast: T, options: ParserOptions<T>) => T | Promise<T>)
+ | undefined;
}
getVisitorKeys
method type definition for Printer
(#15125 by @auvred)
Add missing const printer: Printer = {
print: () => [],
getVisitorKeys(node, nonTraversableKeys) {
return ["body"];
},
};
readonly
array properties of AST Node (#15127 by @auvred)
Add typing to support // Input
interface TestNode {
readonlyArray: readonly string[];
}
declare const path: AstPath<TestNode>;
path.map(() => "", "readonlyArray");
// Prettier 3.0.0
interface TestNode {
readonlyArray: readonly string[];
}
declare const path: AstPath<TestNode>;
path.map(() => "", "readonlyArray");
// ^ Argument of type '"readonlyArray"' is not assignable to parameter of type '"regularArray"'. ts(2345)
// Prettier 3.0.1
interface TestNode {
readonlyArray: readonly string[];
}
declare const path: AstPath<TestNode>;
path.map(() => "", "readonlyArray");
#15129 by @pamelalozano)
Add space before unary minus followed by a function call (// Input
div {
margin: - func();
}
// Prettier 3.0.0
div {
margin: -func();
}
// Prettier 3.0.1
div {
margin: - func();
}
rollup/rollup
v3.27.2
2023-08-04
Bug Fixes
- Revert sourcemap performance improvement for now as it causes issues with Vite (#5075)
Merge Requests
- #5075: Revert perf(sourcemap): lazy compute decoded mappings (@thebanjomatic)
v3.27.1
2023-08-03
Bug Fixes
- Improve performance when generating sourcemaps (#5075)
Merge Requests
- #5075: perf(sourcemap): lazy compute decoded mappings (@thebanjomatic)
vitejs/vite
v4.4.8
- fix: modulePreload false (#13973) (488085d), closes #13973
- fix: multiple entries with shared css and no JS (#13962) (89a3db0), closes #13962
- fix: use file extensions on type imports so they work with
moduleResolution: 'node16'
(#13947) (aeef670), closes #13947 - fix(css): enhance error message for missing preprocessor dependency (#11485) (65e5c22), closes #11485
- fix(esbuild): fix static properties transpile when useDefineForClassFields false (#13992) (4ca7c13), closes #13992
- fix(importAnalysis): strip url base before passing as safeModulePaths (#13712) (1ab06a8), closes #13712
- fix(importMetaGlob): avoid unnecessary hmr of negative glob (#13646) (844451c), closes #13646
- fix(optimizer): avoid double-commit of optimized deps when discovery is disabled (#13865) (df77991), closes #13865
- fix(optimizer): enable experimentalDecorators by default (#13981) (f8a5ffc), closes #13981
- perf: replace startsWith with === (#13989) (3aab14e), closes #13989
- perf: single slash does not need to be replaced (#13980) (66f522c), closes #13980
- perf: use Intl.DateTimeFormatter instead of toLocaleTimeString (#13951) (af53a1d), closes #13951
- perf: use Intl.NumberFormat instead of toLocaleString (#13949) (a48bf88), closes #13949
- perf: use magic-string hires boundary for sourcemaps (#13971) (b9a8d65), closes #13971
- chore(reporter): remove unnecessary map (#13972) (dd9d4c1), closes #13972
- refactor: add new overload to the type of defineConfig (#13958) (24c12fe), closes #13958
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by GitLab Dependency Bot