chore(deps): bump the production-dependencies group with 6 updates (#1804)
* chore(deps): bump the production-dependencies group with 6 updates Bumps the production-dependencies group with 6 updates: | Package | From | To | | --- | --- | --- | | [hast-util-to-jsx-runtime](https://github.com/syntax-tree/hast-util-to-jsx-runtime) | `2.3.4` | `2.3.5` | | [pixi.js](https://github.com/pixijs/pixijs) | `8.8.0` | `8.8.1` | | [preact](https://github.com/preactjs/preact) | `10.26.2` | `10.26.4` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.13.5` | `22.13.9` | | [prettier](https://github.com/prettier/prettier) | `3.5.2` | `3.5.3` | | [typescript](https://github.com/microsoft/TypeScript) | `5.7.3` | `5.8.2` | Updates `hast-util-to-jsx-runtime` from 2.3.4 to 2.3.5 - [Release notes](https://github.com/syntax-tree/hast-util-to-jsx-runtime/releases) - [Commits](https://github.com/syntax-tree/hast-util-to-jsx-runtime/compare/2.3.4...2.3.5) Updates `pixi.js` from 8.8.0 to 8.8.1 - [Release notes](https://github.com/pixijs/pixijs/releases) - [Commits](https://github.com/pixijs/pixijs/compare/v8.8.0...v8.8.1) Updates `preact` from 10.26.2 to 10.26.4 - [Release notes](https://github.com/preactjs/preact/releases) - [Commits](https://github.com/preactjs/preact/compare/10.26.2...10.26.4) Updates `@types/node` from 22.13.5 to 22.13.9 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `prettier` from 3.5.2 to 3.5.3 - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.5.2...3.5.3) Updates `typescript` from 5.7.3 to 5.8.2 - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.3...v5.8.2) --- updated-dependencies: - dependency-name: hast-util-to-jsx-runtime dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: pixi.js dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: preact dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * type fixes * fix more types --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
This commit is contained in:
		
							parent
							
								
									a1162b978a
								
							
						
					
					
						commit
						a3b6201365
					
				| @ -37,7 +37,7 @@ Transformers **map** over content, taking a Markdown file and outputting modifie | ||||
| ```ts | ||||
| export type QuartzTransformerPluginInstance = { | ||||
|   name: string | ||||
|   textTransform?: (ctx: BuildCtx, src: string | Buffer) => string | Buffer | ||||
|   textTransform?: (ctx: BuildCtx, src: string) => string | ||||
|   markdownPlugins?: (ctx: BuildCtx) => PluggableList | ||||
|   htmlPlugins?: (ctx: BuildCtx) => PluggableList | ||||
|   externalResources?: (ctx: BuildCtx) => Partial<StaticResources> | ||||
|  | ||||
							
								
								
									
										65
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										65
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -25,7 +25,7 @@ | ||||
|         "globby": "^14.1.0", | ||||
|         "gray-matter": "^4.0.3", | ||||
|         "hast-util-to-html": "^9.0.5", | ||||
|         "hast-util-to-jsx-runtime": "^2.3.4", | ||||
|         "hast-util-to-jsx-runtime": "^2.3.5", | ||||
|         "hast-util-to-string": "^3.0.1", | ||||
|         "is-absolute-url": "^4.0.1", | ||||
|         "js-yaml": "^4.1.0", | ||||
| @ -34,8 +34,8 @@ | ||||
|         "mdast-util-to-hast": "^13.2.0", | ||||
|         "mdast-util-to-string": "^4.0.0", | ||||
|         "micromorph": "^0.4.5", | ||||
|         "pixi.js": "^8.8.0", | ||||
|         "preact": "^10.26.2", | ||||
|         "pixi.js": "^8.8.1", | ||||
|         "preact": "^10.26.4", | ||||
|         "preact-render-to-string": "^6.5.13", | ||||
|         "pretty-bytes": "^6.1.1", | ||||
|         "pretty-time": "^1.1.0", | ||||
| @ -79,15 +79,15 @@ | ||||
|         "@types/d3": "^7.4.3", | ||||
|         "@types/hast": "^3.0.4", | ||||
|         "@types/js-yaml": "^4.0.9", | ||||
|         "@types/node": "^22.13.5", | ||||
|         "@types/node": "^22.13.9", | ||||
|         "@types/pretty-time": "^1.1.5", | ||||
|         "@types/source-map-support": "^0.5.10", | ||||
|         "@types/ws": "^8.5.14", | ||||
|         "@types/yargs": "^17.0.33", | ||||
|         "esbuild": "^0.25.0", | ||||
|         "prettier": "^3.5.2", | ||||
|         "prettier": "^3.5.3", | ||||
|         "tsx": "^4.19.3", | ||||
|         "typescript": "^5.7.3" | ||||
|         "typescript": "^5.8.2" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "20 || >=22", | ||||
| @ -1916,9 +1916,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@types/node": { | ||||
|       "version": "22.13.5", | ||||
|       "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.5.tgz", | ||||
|       "integrity": "sha512-+lTU0PxZXn0Dr1NBtC7Y8cR21AJr87dLLU953CWA6pMxxv/UDc7jYAY90upcrie1nRcD6XNG5HOYEDtgW5TxAg==", | ||||
|       "version": "22.13.9", | ||||
|       "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.9.tgz", | ||||
|       "integrity": "sha512-acBjXdRJ3A6Pb3tqnw9HZmyR3Fiol3aGxRCK1x3d+6CDAMjl7I649wpSd+yNURCjbOUGu9tqtLKnTGxmK6CyGw==", | ||||
|       "dev": true, | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
| @ -3224,6 +3224,15 @@ | ||||
|         "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/gifuct-js": { | ||||
|       "version": "2.1.2", | ||||
|       "resolved": "https://registry.npmjs.org/gifuct-js/-/gifuct-js-2.1.2.tgz", | ||||
|       "integrity": "sha512-rI2asw77u0mGgwhV3qA+OEgYqaDn5UNqgs+Bx0FGwSpuqfYn+Ir6RQY5ENNQ8SbIiG/m5gVa7CD5RriO4f4Lsg==", | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
|         "js-binary-schema-parser": "^2.0.3" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/github-slugger": { | ||||
|       "version": "2.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz", | ||||
| @ -3541,9 +3550,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/hast-util-to-jsx-runtime": { | ||||
|       "version": "2.3.4", | ||||
|       "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.4.tgz", | ||||
|       "integrity": "sha512-2GSifZSlBD35z6/+sp+btB333wHFPck/rrlKZMc9IOUJk6anHuQuqC/oNI80Pj717wo8JCPdXjjasVqQu3UH8Q==", | ||||
|       "version": "2.3.5", | ||||
|       "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.5.tgz", | ||||
|       "integrity": "sha512-gHD+HoFxOMmmXLuq9f2dZDMQHVcplCVpMfBNRpJsF03yyLZvJGzsFORe8orVuYDX9k2w0VH0uF8oryFd1whqKQ==", | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
|         "@types/estree": "^1.0.0", | ||||
| @ -3928,6 +3937,12 @@ | ||||
|         "@pkgjs/parseargs": "^0.11.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/js-binary-schema-parser": { | ||||
|       "version": "2.0.3", | ||||
|       "resolved": "https://registry.npmjs.org/js-binary-schema-parser/-/js-binary-schema-parser-2.0.3.tgz", | ||||
|       "integrity": "sha512-xezGJmOb4lk/M1ZZLTR/jaBHQ4gG/lqQnJqdIv4721DMggsa1bDVlHXNeHYogaIEHD9vCRv0fcL4hMA+Coarkg==", | ||||
|       "license": "MIT" | ||||
|     }, | ||||
|     "node_modules/js-yaml": { | ||||
|       "version": "4.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", | ||||
| @ -5468,9 +5483,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/pixi.js": { | ||||
|       "version": "8.8.0", | ||||
|       "resolved": "https://registry.npmjs.org/pixi.js/-/pixi.js-8.8.0.tgz", | ||||
|       "integrity": "sha512-0xW8tKa+uF28mi1SwvnNscMpYJSQrqLN7jJs6Ore37FZoXmIRzQNrGA6drpHDVTuEmoqJlSiGLCk5cUgz3ODgQ==", | ||||
|       "version": "8.8.1", | ||||
|       "resolved": "https://registry.npmjs.org/pixi.js/-/pixi.js-8.8.1.tgz", | ||||
|       "integrity": "sha512-Zmox3Vy52Kl6X/uxknKlxJWPVEFiP63nsX8soqB4butTkIOK3y7c9C204wcDfAgkwO1OlwYxscWtHv+ef4gqgA==", | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
|         "@pixi/colord": "^2.9.6", | ||||
| @ -5480,6 +5495,7 @@ | ||||
|         "@xmldom/xmldom": "^0.8.10", | ||||
|         "earcut": "^2.2.4", | ||||
|         "eventemitter3": "^5.0.1", | ||||
|         "gifuct-js": "^2.1.2", | ||||
|         "ismobilejs": "^1.1.1", | ||||
|         "parse-svg-path": "^0.1.2" | ||||
|       } | ||||
| @ -5491,9 +5507,9 @@ | ||||
|       "license": "MIT" | ||||
|     }, | ||||
|     "node_modules/preact": { | ||||
|       "version": "10.26.2", | ||||
|       "resolved": "https://registry.npmjs.org/preact/-/preact-10.26.2.tgz", | ||||
|       "integrity": "sha512-0gNmv4qpS9HaN3+40CLBAnKe0ZfyE4ZWo5xKlC1rVrr0ckkEvJvAQqKaHANdFKsGstoxrY4AItZ7kZSGVoVjgg==", | ||||
|       "version": "10.26.4", | ||||
|       "resolved": "https://registry.npmjs.org/preact/-/preact-10.26.4.tgz", | ||||
|       "integrity": "sha512-KJhO7LBFTjP71d83trW+Ilnjbo+ySsaAgCfXOXUlmGzJ4ygYPWmysm77yg4emwfmoz3b22yvH5IsVFHbhUaH5w==", | ||||
|       "license": "MIT", | ||||
|       "funding": { | ||||
|         "type": "opencollective", | ||||
| @ -5509,9 +5525,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/prettier": { | ||||
|       "version": "3.5.2", | ||||
|       "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.2.tgz", | ||||
|       "integrity": "sha512-lc6npv5PH7hVqozBR7lkBNOGXV9vMwROAPlumdBkX0wTbbzPu/U1hk5yL8p2pt4Xoc+2mkT8t/sow2YrV/M5qg==", | ||||
|       "version": "3.5.3", | ||||
|       "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", | ||||
|       "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", | ||||
|       "dev": true, | ||||
|       "license": "MIT", | ||||
|       "bin": { | ||||
| @ -6968,10 +6984,11 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/typescript": { | ||||
|       "version": "5.7.3", | ||||
|       "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", | ||||
|       "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", | ||||
|       "version": "5.8.2", | ||||
|       "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", | ||||
|       "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", | ||||
|       "dev": true, | ||||
|       "license": "Apache-2.0", | ||||
|       "bin": { | ||||
|         "tsc": "bin/tsc", | ||||
|         "tsserver": "bin/tsserver" | ||||
|  | ||||
							
								
								
									
										12
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								package.json
									
									
									
									
									
								
							| @ -51,7 +51,7 @@ | ||||
|     "globby": "^14.1.0", | ||||
|     "gray-matter": "^4.0.3", | ||||
|     "hast-util-to-html": "^9.0.5", | ||||
|     "hast-util-to-jsx-runtime": "^2.3.4", | ||||
|     "hast-util-to-jsx-runtime": "^2.3.5", | ||||
|     "hast-util-to-string": "^3.0.1", | ||||
|     "is-absolute-url": "^4.0.1", | ||||
|     "js-yaml": "^4.1.0", | ||||
| @ -60,8 +60,8 @@ | ||||
|     "mdast-util-to-hast": "^13.2.0", | ||||
|     "mdast-util-to-string": "^4.0.0", | ||||
|     "micromorph": "^0.4.5", | ||||
|     "pixi.js": "^8.8.0", | ||||
|     "preact": "^10.26.2", | ||||
|     "pixi.js": "^8.8.1", | ||||
|     "preact": "^10.26.4", | ||||
|     "preact-render-to-string": "^6.5.13", | ||||
|     "pretty-bytes": "^6.1.1", | ||||
|     "pretty-time": "^1.1.0", | ||||
| @ -102,14 +102,14 @@ | ||||
|     "@types/d3": "^7.4.3", | ||||
|     "@types/hast": "^3.0.4", | ||||
|     "@types/js-yaml": "^4.0.9", | ||||
|     "@types/node": "^22.13.5", | ||||
|     "@types/node": "^22.13.9", | ||||
|     "@types/pretty-time": "^1.1.5", | ||||
|     "@types/source-map-support": "^0.5.10", | ||||
|     "@types/ws": "^8.5.14", | ||||
|     "@types/yargs": "^17.0.33", | ||||
|     "esbuild": "^0.25.0", | ||||
|     "prettier": "^3.5.2", | ||||
|     "prettier": "^3.5.3", | ||||
|     "tsx": "^4.19.3", | ||||
|     "typescript": "^5.7.3" | ||||
|     "typescript": "^5.8.2" | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -67,7 +67,8 @@ export const FrontMatter: QuartzTransformerPlugin<Partial<Options>> = (userOpts) | ||||
|         [remarkFrontmatter, ["yaml", "toml"]], | ||||
|         () => { | ||||
|           return (_, file) => { | ||||
|             const { data } = matter(Buffer.from(file.value), { | ||||
|             const fileData = Buffer.from(file.value as Uint8Array) | ||||
|             const { data } = matter(fileData, { | ||||
|               ...opts, | ||||
|               engines: { | ||||
|                 yaml: (s) => yaml.load(s, { schema: yaml.JSON_SCHEMA }) as object, | ||||
|  | ||||
| @ -156,20 +156,12 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>> | ||||
|     textTransform(_ctx, src) { | ||||
|       // do comments at text level
 | ||||
|       if (opts.comments) { | ||||
|         if (src instanceof Buffer) { | ||||
|           src = src.toString() | ||||
|         } | ||||
| 
 | ||||
|         src = (src as string).replace(commentRegex, "") | ||||
|         src = src.replace(commentRegex, "") | ||||
|       } | ||||
| 
 | ||||
|       // pre-transform blockquotes
 | ||||
|       if (opts.callouts) { | ||||
|         if (src instanceof Buffer) { | ||||
|           src = src.toString() | ||||
|         } | ||||
| 
 | ||||
|         src = (src as string).replace(calloutLineRegex, (value) => { | ||||
|         src = src.replace(calloutLineRegex, (value) => { | ||||
|           // force newline after title of callout
 | ||||
|           return value + "\n> " | ||||
|         }) | ||||
| @ -177,12 +169,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>> | ||||
| 
 | ||||
|       // pre-transform wikilinks (fix anchors to things that may contain illegal syntax e.g. codeblocks, latex)
 | ||||
|       if (opts.wikilinks) { | ||||
|         if (src instanceof Buffer) { | ||||
|           src = src.toString() | ||||
|         } | ||||
| 
 | ||||
|         // replace all wikilinks inside a table first
 | ||||
|         src = (src as string).replace(tableRegex, (value) => { | ||||
|         src = src.replace(tableRegex, (value) => { | ||||
|           // escape all aliases and headers in wikilinks inside a table
 | ||||
|           return value.replace(tableWikilinkRegex, (_value, raw) => { | ||||
|             // const [raw]: (string | undefined)[] = capture
 | ||||
| @ -196,7 +184,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>> | ||||
|         }) | ||||
| 
 | ||||
|         // replace all other wikilinks
 | ||||
|         src = (src as string).replace(wikilinkRegex, (value, ...capture) => { | ||||
|         src = src.replace(wikilinkRegex, (value, ...capture) => { | ||||
|           const [rawFp, rawHeader, rawAlias]: (string | undefined)[] = capture | ||||
| 
 | ||||
|           const [fp, anchor] = splitAnchor(`${rawFp ?? ""}${rawHeader ?? ""}`) | ||||
|  | ||||
| @ -18,7 +18,7 @@ export type QuartzTransformerPlugin<Options extends OptionType = undefined> = ( | ||||
| ) => QuartzTransformerPluginInstance | ||||
| export type QuartzTransformerPluginInstance = { | ||||
|   name: string | ||||
|   textTransform?: (ctx: BuildCtx, src: string | Buffer) => string | Buffer | ||||
|   textTransform?: (ctx: BuildCtx, src: string) => string | ||||
|   markdownPlugins?: (ctx: BuildCtx) => PluggableList | ||||
|   htmlPlugins?: (ctx: BuildCtx) => PluggableList | ||||
|   externalResources?: (ctx: BuildCtx) => Partial<StaticResources> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user